The idea, then worked examples solved step by step, then practice questions whose numbers change every time you try them.
A picture of a differential equation
A differential equation such as dxdy=x−y does not tell you y, but it tells you something at every point of the plane: if a solution's graph passes through the point (x,y), its slope there is x−y. At (2,1) the slope is 2−1=1; at (0,3) it is 0−3=−3. Draw that slope as a short line segment at many points, and you get a picture of every solution at once.
Definition.
A slope field for dxdy=f(x,y) is a set of short line segments, one at each point of a grid, each with slope f(x,y) at its point. A segment has no arrowhead: it only shows the steepness and the direction (rising, falling or level) of a solution through that point.
Drawing one by hand
The AP exam often prints a grid of points and asks you to draw the segments. Work out the slope at each point first. For dxdy=x−y at the nine points with x and y in {−1,0,1}:
| x=−1 | x=0 | x=1 |
|---|
| y=1 | −2 | −1 | 0 |
| y=0 | −1 | 0 | 1 |
| y=−1 | 0 | 1 | 2 |
Then draw at each point a short segment of that slope: level for 0, rising for a positive slope, falling for a negative one, and steeper for a larger size. Watch the nine segments go in, one point at a time:
Check the picture against the table. Along the diagonal from (−1,−1) to (1,1) every slope is 0 and every segment is level. At (1,−1) the slope is 2, steep and rising; at (−1,1) it is −2, steep and falling. A segment of slope 1 rises at 45°, so slope 2 must look clearly steeper than slope 1.
Solutions follow the segments
With segments at many points the field shows the shape of every solution. The graph of a solution runs along the segments, tangent to each one it meets, and never cuts across them. Choose a starting value y(0)=b below, and the solution through (0,b) is drawn on the field of dxdy=x−y:
Move b and look to the right: whatever b is, the solution bends toward the same rising line, y=x−1. On that line the slope given by the equation is x−(x−1)=1, the slope of the line itself, so the line is a solution too, and the field steers the others toward it. Reading where solutions go in the long run is a question the exam asks.
Reading a field: what the slope depends on
The quickest way to match a slope field to its equation is to ask where the slopes stay the same.
- If dxdy depends on x only (such as dxdy=x), every segment in one vertical column is the same: the slopes change from left to right only.
- If dxdy depends on y only (such as dxdy=2−y), every segment in one horizontal row is the same: the slopes change from bottom to top only.
- If it depends on both (such as dxdy=xy), neither rows nor columns are constant.
Here are the three fields. First dxdy=x: look down any column.
Next dxdy=2−y: look along any row.
Last dxdy=xy: no row and no column is constant.
Then use the zero slopes and the signs. For dxdy=2−y the segments are level along the line y=2, rise below it and fall above it; dxdy=y−2 would have the same level line but the opposite signs. For dxdy=xy the segments are level on both axes, and rise in the first and third quadrants, where x and y have the same sign.
Concavity from the equation
To know whether a solution is concave up or down, find dx2d2y by differentiating the equation with respect to x, remembering that y is a function of x (so the derivative of y is dxdy). For dxdy=x−y:
dx2d2y=1−dxdy=1−(x−y)=−x+y+1 So the solutions are concave up where y>x−1 (above the line the solutions approach) and concave down below it, exactly what the slider picture shows.
Note.
On the AP exam the usual slips are: segments drawn with the wrong sign, or with steepness that does not grow with the size of the slope (slope 2 must be steeper than slope 1); a field matched by x when its slopes are constant along horizontal rows, so they depend on y; and a solution curve drawn cutting across the segments instead of running along them. When you sketch at given points, every zero slope must be clearly level.
Worked examples
Each example is one kind of question the AP exam asks on slope fields. The tools are always the same: the equation gives the slope at any point; zero slopes are level segments; slopes constant down columns mean x only, constant along rows mean y only; and dx2d2y, found from the equation, gives the concavity. Every number in the working is found by the engine.
Example.
1. Sketching the field at given points. Draw the slope field for dxdy=x(y−1) at the nine points with x in {−1,0,1} and y in {0,1,2}.
Work out the slope at each point:
| x=−1 | x=0 | x=1 |
|---|
| y=2 | −1 | 0 | 1 |
| y=1 | 0 | 0 | 0 |
| y=0 | 1 | 0 | −1 |
The whole middle column (x=0) and the whole middle row (y=1) have slope 0: five level segments. The four corners have slope 1 or −1: segments at 45°, rising where the slope is 1 and falling where it is −1.
Result.
Level segments at the five points with x=0 or y=1; rising (slope 1) at (1,2) and (−1,0); falling (slope −1) at (−1,2) and (1,0).
Example.
2. Matching a field to its equation. The slope field below is for one of these equations: dxdy=x+1, dxdy=y+1, dxdy=−y−1, dxdy=x+y. Which one?
Look along a row: in each horizontal row the segments are all the same, while they change from row to row. So dxdy depends on y only, which leaves y+1 and −y−1; x+1 would be constant down columns, and x+y along neither.
Now the signs. The level segments are along y=−1, where both remaining choices are 0. Above that line the segments rise, so the slope is positive for y>−1: at (0,1), y+1=2 is positive and −y−1 is negative. And the segments get steeper farther from y=−1, as y+1 does.
Result.
dxdy=y+1.
Example.
3. A solution through a point, and where it goes. For dxdy=21y(3−y), sketch the solutions through (0,1) and through (0,4). Find limx→∞y for each.
The slope depends on y only, and it is 0 when y=0 or y=3: the constant functions y=0 and y=3 are solutions, and the field is level along those two lines.
Start at (0,1): the slope is 1, positive, so the solution rises. It keeps rising while 0<y<3, but as y nears 3 the slopes shrink toward 0, so the curve levels off under the line y=3 without crossing it (two solutions cannot cross where the field gives one slope). Start at (0,4): the slope is −2, negative, so that solution falls toward y=3 from above.
Result.
Both solutions approach the level line: limx→∞y=3 for each, the one through (0,1) rising to it and the one through (0,4) falling to it.
Example.
4. Where the slopes are zero, positive and negative. For dxdy=x(y−1), describe the points where the slope is 0, where it is positive and where it is negative.
The product x(y−1) is 0 when x=0 or y=1: along the y-axis and along the horizontal line y=1 (dashed below). These two lines cut the plane into four regions, and the sign of a product is positive when its two factors have the same sign:
- x>0 and y>1: positive (at (2,3) the slope is 4);
- x<0 and y<1: positive (at (−2,−1) it is 4);
- x>0 and y<1, or x<0 and y>1: negative (at (2,−1) it is −4).
Result.
Slope 0 on the line x=0 and on the line y=1; positive where x and y−1 have the same sign; negative where they have opposite signs.
Example.
5. Concavity and a relative minimum from the equation. Let y=f(x) be the solution of dxdy=x+y−1 with f(1)=0. Find dx2d2y in terms of x and y, and decide whether f has a relative minimum, a relative maximum or neither at x=1.
Differentiate the equation with respect to x. The derivative of x is 1, and the derivative of y is dxdy:
dx2d2y=1+dxdy=1+(x+y−1)=x+y At the point (1,0): dxdy=1+0−1=0 and dx2d2y=1+0=1. The first derivative is 0 and the second is positive, so by the second derivative test f has a relative minimum at x=1. The solution through (1,0) on the field shows it: level at the point, curving up on both sides.
Result.
dx2d2y=x+y; at (1,0), dxdy=0 and dx2d2y=1>0, so f has a relative minimum at x=1.
Answer AP-style questions on slope fields: sketching and reasoning. Each answer is checked, with the full solution, and every try brings new numbers. Practice needs a free account: it keeps your progress.