Differential-Equations ยท Unit 1 ยท Video 2 ยท Interactive Practice

Direction Fields and Isoclines: How to Draw an ODE by Hand

IKey Formulas

FormulaNameWhat you need
yโ€ฒ=f(x,y)y' = f(x,y)Direction field โ€” at (x,y)(x,y) hang a line element of slope f(x,y)f(x,y)The equation in standard form
y1โ€ฒ(x)=f(x,y1(x))y_1'(x) = f\big(x, y_1(x)\big)The theorem in one line: solution โŸบ\Longleftrightarrow integral curveA candidate function y1y_1
f(x,y)=Cf(x,y) = CIsocline โ€” the level curve of ff at level CCA slope CC, chosen before any point
xโˆ’y2=Cโ€…โ€ŠโŸบโ€…โ€Šx=y2+Cx - y^2 = C \iff x = y^2 + CIsoclines of the running example yโ€ฒ=xโˆ’y2y' = x - y^2The parabola x=y2x = y^2 shifted CC to the right

Key Insight: The isocline equation f(x,y)=Cf(x,y) = C carries no derivative โ€” a differential equation cannot be plotted, only ordinary curves can. Those get dashed lines; solid lines are reserved for integral curves, which by the theorem are exactly the graphs of the solutions.

IIVisualization 1 โ€” Pick the Slope First

Choosing the slope CC first collapses yโ€ฒ=xโˆ’y2y' = x - y^2 into one ordinary curve, xโˆ’y2=Cx - y^2 = C.

๐Ÿ’ก Every element along x=y2+Cx = y^2 + C has slope CC, while the parabola's own slope is 12y\dfrac{1}{2y} โ€” the two agree only at the single point y=12Cy = \dfrac{1}{2C}, and for C=0C = 0 nowhere at all.

IIIVisualization 2 โ€” Two Ways to Fill the Plane

Forty line elements: forty evaluations of ff point by point, or five dashed curves.

IVVisualization 3 โ€” Threading a Solution Through the Field

A curve tangent to every element it meets is exactly the graph of a solution.

๐Ÿ’ก Two integral curves can never cross: at a crossing point the single line element there would have to supply two different slopes.

VQuiz Questions

Problem 1 ยท Reading One Line Element

Given: the direction field of yโ€ฒ=xโˆ’y2y' = x - y^2 โ€” find the slope of the line element at the point (3,โˆ’2)(3, -2).

โœ… Correct! 3โˆ’(โˆ’2)2=3โˆ’4=โˆ’13 - (-2)^2 = 3 - 4 = -1, so the element at (3,โˆ’2)(3,-2) falls to the right, one unit down for one unit across.
โŒ Not quite. That is 3โˆ’(โˆ’2)3 - (-2). The right-hand side squares yy before subtracting: (โˆ’2)2=4(-2)^2 = 4.
โŒ Check the square. Squaring destroys the sign: (โˆ’2)2=+4(-2)^2 = +4, not โˆ’4-4, so you subtract 4 rather than adding it.
โŒ Reversed. You computed y2โˆ’x=4โˆ’3y^2 - x = 4 - 3. The field's slope is f(x,y)=xโˆ’y2f(x,y) = x - y^2, in that order.
โŒ Not quite. Substitute x=3x = 3 and y=โˆ’2y = -2 into f(x,y)=xโˆ’y2f(x,y) = x - y^2.
Show solution

The direction field of yโ€ฒ=f(x,y)y' = f(x,y) hangs at each point (x,y)(x,y) a line element whose slope is the number f(x,y)f(x,y). Here f(x,y)=xโˆ’y2f(x,y) = x - y^2, so at (3,โˆ’2)(3,-2):

f(3,โˆ’2)=3โˆ’(โˆ’2)2=3โˆ’4=โˆ’1f(3,-2) = 3 - (-2)^2 = 3 - 4 = -1

The element has slope โˆ’1\mathbf{-1}. Note that the answer depends on yy only through y2y^2, so the elements at (3,2)(3,2) and (3,โˆ’2)(3,-2) are identical โ€” the whole field is symmetric across the xx-axis.

Problem 2 ยท The Isocline Equation

Given: yโ€ฒ=xโˆ’y2y' = x - y^2 โ€” find the isocline along which every line element has slope C=โˆ’1C = -1.

โœ… Correct! xโˆ’y2=โˆ’1x - y^2 = -1 rearranges to x=y2โˆ’1x = y^2 - 1: the parabola x=y2x = y^2 shifted one unit left, drawn dashed, wearing elements of slope โˆ’1-1.
โŒ Wrong side. On x=y2+1x = y^2 + 1 the right-hand side is xโˆ’y2=+1x - y^2 = +1, so those elements have slope +1+1, not โˆ’1-1.
โŒ Check the algebra. Solving x=y2โˆ’1x = y^2 - 1 for yy gives y=ยฑx+1y = \pm\sqrt{x+1}; a square root does not distribute across the โˆ’1-1.
โŒ Wrong variable squared. The condition is xโˆ’y2=Cx - y^2 = C, so xx comes out as a function of yy โ€” the parabola opens to the right, not upward.
โŒ Not quite. Set the right-hand side equal to CC and solve the resulting ordinary equation: xโˆ’y2=โˆ’1x - y^2 = -1.
Show solution

An isocline collects every point of the plane whose line element has one chosen slope CC. Those points satisfy f(x,y)=Cf(x,y) = C, with no derivative left in it:

xโˆ’y2=โˆ’1โŸนx=y2โˆ’1x - y^2 = -1 \quad\Longrightarrow\quad x = y^2 - 1

That is the rightward-opening parabola x=y2x = y^2 pushed one unit to the left. Every point on it wears an element of slope โˆ’1-1, and one plot of the curve serves all of them โ€” that is the saving over evaluating ff point by point.

The family for a general CC is x=y2+Cx = y^2 + C: the same parabola sliding right as CC increases. Drawn dashed, because an isocline is scaffolding, not a solution.

Problem 3 ยท A New Field, Two Slopes

Given: yโ€ฒ=yโˆ’xy' = y - x โ€” find the isocline for C=2C = 2, and the slope of the line elements hanging on it.

Which curve is the isocline?

What slope do its line elements have?

โœ… Correct! Along y=x+2y = x + 2 every element has slope 2, steeper than the line itself, so an integral curve reaching this isocline climbs across it to the upper side.
โŒ Check the isocline. Set the right-hand side equal to the chosen slope: yโˆ’x=2y - x = 2, then solve for yy.
โŒ That is the isocline's own slope. The line y=x+2y = x + 2 rises with slope 1, but the elements hung along it carry the slope you chose in advance.
โŒ Not quite. The elements on the isocline f(x,y)=Cf(x,y) = C all have slope CC โ€” that is the whole point of picking CC first.
Show solution

Step 1 โ€” the isocline. Set the right-hand side equal to C=2C = 2:

yโˆ’x=2โŸนy=x+2y - x = 2 \quad\Longrightarrow\quad y = x + 2

Step 2 โ€” the elements. By construction every point of that line has f(x,y)=2f(x,y) = 2, so each element there has slope 2\mathbf{2} โ€” not 1, which is the slope of the isocline as a line.

The general family: yโˆ’x=Cy - x = C gives y=x+Cy = x + C, a set of parallel lines of slope 1 whose elements get steeper as CC grows.

One member is special: for C=1C = 1 the isocline y=x+1y = x + 1 carries elements of slope 1 โ€” the slope of the line itself. Substituting confirms it is a genuine solution: yโ€ฒ=1y' = 1 and yโˆ’x=1y - x = 1. That line is an isocline and an integral curve at once.

Problem 4 ยท Isocline and Integral Curve at Once

Given: yโ€ฒ=1+xโˆ’yy' = 1 + x - y โ€” exactly one of these lines is both an isocline of the field and an integral curve. Find it.

โœ… Correct! On y=xy = x the curve's own slope is yโ€ฒ=1y' = 1 and the field's slope is 1+xโˆ’x=11 + x - x = 1; the two agree, so this line is the C=1C = 1 isocline and a solution simultaneously.
โŒ Not that one. Along y=x+1y = x + 1 the field gives 1+xโˆ’(x+1)=01 + x - (x+1) = 0 โ€” horizontal elements crossing a line that climbs with slope 1.
โŒ Not that one. Along y=xโˆ’1y = x - 1 the field gives 1+xโˆ’(xโˆ’1)=21 + x - (x-1) = 2, so the elements are twice as steep as the line and cut across it.
โŒ Not that one. Along y=x+2y = x + 2 the field gives 1+xโˆ’(x+2)=โˆ’11 + x - (x+2) = -1: elements pointing down across a line that rises.
โŒ Not quite. A line is an integral curve only when its own slope equals the field's slope at every one of its points.
Show solution

Test the whole family y=x+ky = x + k at once. The graph's own slope is y1โ€ฒ(x)=1y_1'(x) = 1. The field's slope along it is

f(x,y1(x))=1+xโˆ’(x+k)=1โˆ’kf\big(x, y_1(x)\big) = 1 + x - (x + k) = 1 - k

The theorem says the graph is an integral curve exactly when those two agree:

1=1โˆ’kโŸนk=01 = 1 - k \quad\Longrightarrow\quad k = 0

So y=xy = x is the only line of the family that solves the equation. It is also an isocline: the isoclines of yโ€ฒ=1+xโˆ’yy' = 1+x-y are y=x+1โˆ’Cy = x + 1 - C, and k=0k = 0 corresponds to C=1C = 1 โ€” whose elements have slope 1, lying flat along the line and impossible to distinguish from it.

The other three lines are isoclines too (C=0C = 0, 22 and โˆ’1-1 respectively), but their elements cross them instead of lying along them, so none of them is a solution.

Solved: 0 / 4