The Slope-Field Tracer: Seeing a Differential Equation
A first-order differential equation hands you a slope at every point of the plane; drawing those slopes turns an equation you may not be able to solve into a picture you can follow.
An equation about slopes
A first-order differential equation in the form dy/dx = f(x, y) does not tell you the value of y directly. It tells you the slope a solution must have if it passes through the point (x, y). Plug in a point and you get a number: the steepness a solution curve has right there.
So the equation quietly assigns a little slope to every point in the plane. Making that assignment visible is the whole idea of a slope field.
Tracing a solution
To find a solution by eye, drop a pencil at any starting point and move so that you are always heading in the direction the nearby segments point. The curve you trace bends to stay tangent to the field. Start somewhere else and you trace a different curve. The whole family of these curves is the general solution; a single initial condition y(x0) = y0 pins down exactly one of them.
- The slope depends only on x: it is 0 along the y-axis, positive to the right, negative to the left — segments fan from downhill on the left to uphill on the right.
- Solve by integrating: \( y = \int x\,dx = \tfrac{1}{2}x^2 + C \). The solutions are upward parabolas.
- Apply the initial condition: y(0) = 1 gives \( \tfrac{1}{2}(0)^2 + C = 1 \), so C = 1.
- The slope equals y, so it is zero exactly on the line y = 0 (the x-axis) — that horizontal line is itself a solution.
- Above the axis slopes are positive and grow with height; below it they are negative — solutions race away from y = 0.
- Solve: this is exponential growth, \( y = C e^{x} \). Apply y(0) = 2: \( C e^{0} = C = 2 \).
Check your understanding
- A first-order equation dy/dx = f(x, y) assigns a slope to every point of the plane.
- Drawing those slopes as short segments produces the slope (direction) field — a picture of the equation.
- A solution is a curve tangent to the field everywhere; an initial condition selects one particular solution from the family.
- Isoclines (curves of constant slope) speed up hand sketches, and horizontal lines of zero slope are equilibrium solutions.
- Equilibria that attract nearby curves are stable and those that repel them are unstable, and distinct solutions never cross when f is well behaved.