AP Calculus AB and BC

Slope Fields and Euler's Method Explained

A slope field draws a tiny segment at every grid point whose slope equals dy/dx there, so you see the shape of solution curves without solving the equation. Euler's method (BC only, Topic 7.5) approximates one value by stepping along that field: new y = old y + (step size)(slope).

What a slope field shows

You are looking at a slope field problem when a differential equation is written in the form dydx=f(x,y)\frac{dy}{dx} = f(x, y) and the task is to sketch it, match it to a graph, or describe its solution curves, not to find a formula. A slope field (FUN-7.C.1) is a grid of short line segments. At each point the segment is drawn with the slope that the differential equation assigns to that point. Because dydx\frac{dy}{dx} is the slope of the solution curve passing through a point, the field is a picture of every solution at once.

dydx=f(x,y)\frac{dy}{dx} = f(x, y)

This is the method-selection idea behind Topics 7.3 and 7.4: a slope field gives qualitative information (where solutions rise, fall, flatten, or steepen) with no integration required. You never solve the equation to draw the field. You only evaluate f(x,y)f(x, y) at grid points. That makes slope fields the right tool when the equation is hard or impossible to solve by hand but you still need to understand how its solutions behave. Unit 7 is worth 5 to 10 percent of both the AB and BC exams, and this qualitative reasoning shows up in both multiple-choice and free-response.

Sketching a slope field (Topic 7.3)

The procedure is pure evaluation. There is no antiderivative anywhere in it.

  1. Read the slope rule f(x,y)f(x, y) straight off the right side of the differential equation.
  2. Take each grid point (x,y)(x, y) and substitute to get the numerical slope there.
  3. Draw a short segment at that point with that slope: flat when the slope is 00, tilted up to the right when positive, down when negative, and steeper as the magnitude grows.
  4. Repeat across the whole grid. Segments that share a slope reveal the shape of the solutions.

A fast shortcut is the isocline: set f(x,y)f(x, y) equal to a constant to find every point sharing one slope. Setting f(x,y)=0f(x, y) = 0 locates all the horizontal segments, where solution curves have horizontal tangents: the candidate locations for a peak or a valley (you must still check that dydx\frac{dy}{dx} changes sign, or the sign of d2ydx2\frac{d^2y}{dx^2}, to confirm an extremum). For dydx=xy\frac{dy}{dx} = x - y, the zero-slope isocline is the line y=xy = x, so every solution levels off the moment it crosses that line. Example 1 builds this field point by point.

Reasoning with slope fields on the exam

Topic 7.4 turns the picture into reasoning, and three question types come up again and again. Matching an equation to a field: test one or two easy points instead of the whole grid. If ff depends only on xx, every segment in the same vertical column is identical; if ff depends only on yy, every segment in the same horizontal row is identical. That single observation eliminates most wrong answers instantly. Sketching a particular solution: start at the given initial-condition point and draw a curve that stays tangent to the nearby segments, following them like a current (FUN-7.C.3). Your curve hugs the segments. It never crosses through one.

As a quick matching example, suppose one candidate is dydx=x\frac{dy}{dx} = x and another is dydx=y\frac{dy}{dx} = y. The first depends only on xx, so its segments are flat all along the yy-axis and grow steeper to the left and right; the second depends only on yy, so its segments are flat all along the xx-axis and grow steeper up and down. Reading which axis carries the horizontal segments settles the match in seconds.

Confirming concavity is the third type and the one students lose points on. Differentiate dydx\frac{dy}{dx} again with respect to xx, treating yy as a function of xx, to get d2ydx2\frac{d^2y}{dx^2}. Its sign tells you where the solution is concave up or down. This links Unit 7 back to the derivative reasoning of Unit 5 and is a standard free-response step. Example 2 works it in full.

Euler's method: stepping through the field (BC only)

BC only

Euler's method is Topic 7.5 and appears on the BC exam only (FUN-7.C.4). AB students can stop after the slope field sections above.

A slope field shows the shape of solutions; Euler's method puts a number on one of them. It approximates the value of a particular solution at a target xx by taking short straight steps along the slope field. Start at the initial condition, follow the current slope for a small step of width hh, land on a new point, read the new slope there, and repeat until you reach the target.

yn+1=yn+hf(xn,yn),xn+1=xn+hy_{n+1} = y_n + h \cdot f(x_n, y_n), \qquad x_{n+1} = x_n + h

Organize the work in a table. Each row records the current point, the slope f(xn,yn)f(x_n, y_n) there, the step change Δy=hf(xn,yn)\Delta y = h \cdot f(x_n, y_n), and the resulting next value of yy. The table below runs Euler's method for dydx=x+y\frac{dy}{dx} = x + y with y(0)=1y(0) = 1 and h=0.5h = 0.5, which is worked step by step in Example 3.

Step nnxnx_nyny_nSlope xn+ynx_n + y_nΔy=hslope\Delta y = h \cdot \text{slope}yn+1y_{n+1}
00110.51.5
10.51.5212.5

A smaller step size hh means more rows and less error. Because every step follows a straight tangent line, the estimate drifts to one side of the true curve in a predictable way: when the solution is concave up, the tangent steps sit below it and Euler underestimates; when it is concave down, the steps sit above and Euler overestimates. Decide which case you are in from the sign of d2ydx2\frac{d^2y}{dx^2}, never by guessing.

Common mistakes

  • Solving the differential equation when the problem only asks for a sketch. A slope field needs evaluation, not integration.
  • Drawing curved marks. Every field segment is straight; only the solution curve you sketch through them is allowed to bend.
  • In Euler's method, forgetting to multiply the slope by hh. The step change is always Δy=hf(xn,yn)\Delta y = h \cdot f(x_n, y_n), not just f(xn,yn)f(x_n, y_n).
  • Reusing the starting slope for every step. Recompute f(xn,yn)f(x_n, y_n) at each new point before taking the next step.
  • Guessing whether the estimate is an overestimate or underestimate. Read it off the concavity of the solution instead.

Worked examples

Worked example

Sketching the slope field for dy/dx = x - y

Compute the slopes of dydx=xy\frac{dy}{dx} = x - y at the nine grid points with x=1,0,1x = -1, 0, 1 and y=1,0,1y = -1, 0, 1, then describe the resulting slope field.

  1. The slope rule is f(x,y)=xyf(x, y) = x - y. At each grid point, subtract the yy-coordinate from the xx-coordinate to get the slope of the segment drawn there.
  2. Bottom row, y=1y = -1: at (1,1)(-1, -1) the slope is 1(1)=0-1 - (-1) = 0; at (0,1)(0, -1) it is 0(1)=10 - (-1) = 1; at (1,1)(1, -1) it is 1(1)=21 - (-1) = 2.
  3. Middle row, y=0y = 0: at (1,0)(-1, 0) the slope is 10=1-1 - 0 = -1; at (0,0)(0, 0) it is 00; at (1,0)(1, 0) it is 11.
  4. Top row, y=1y = 1: at (1,1)(-1, 1) the slope is 11=2-1 - 1 = -2; at (0,1)(0, 1) it is 01=10 - 1 = -1; at (1,1)(1, 1) it is 11=01 - 1 = 0.
  5. Draw a short segment at each point with that slope: flat where the slope is 00, tilted up to the right where it is positive, down where it is negative, and steeper as the magnitude grows toward ±2\pm 2.
  6. Notice the flat segments at (1,1)(-1, -1), (0,0)(0, 0), and (1,1)(1, 1). They all lie on the line y=xy = x, which is the zero-slope isocline found by setting xy=0x - y = 0. Along that line every solution curve momentarily levels off.

The slope at each point equals xyx - y, ranging from 2-2 at the top left to 22 at the bottom right, with horizontal segments all along the line y=xy = x.

Worked example

Concavity of a solution from the equation

For the same equation dydx=xy\frac{dy}{dx} = x - y, the particular solution passes through (0,2)(0, 2). Is that solution increasing or decreasing there, is it concave up or concave down, and where are its tangent lines horizontal?

  1. Increasing versus decreasing is set by dydx\frac{dy}{dx}. At (0,2)(0, 2): dydx=02=2\frac{dy}{dx} = 0 - 2 = -2. The slope is negative, so the solution is decreasing at that point.
  2. Concavity comes from d2ydx2\frac{d^2y}{dx^2}. Differentiate both sides of dydx=xy\frac{dy}{dx} = x - y with respect to xx, treating yy as a function of xx, so that yy differentiates to dydx\frac{dy}{dx}: this gives d2ydx2=1dydx\frac{d^2y}{dx^2} = 1 - \frac{dy}{dx}.
  3. Substitute the original equation dydx=xy\frac{dy}{dx} = x - y to write the second derivative in terms of xx and yy: d2ydx2=1(xy)=1x+y\frac{d^2y}{dx^2} = 1 - (x - y) = 1 - x + y.
  4. Evaluate at (0,2)(0, 2): d2ydx2=10+2=3\frac{d^2y}{dx^2} = 1 - 0 + 2 = 3. This is positive, so the solution is concave up at (0,2)(0, 2): it is decreasing while bending back upward.
  5. Horizontal tangents occur where dydx=0\frac{dy}{dx} = 0, that is where xy=0x - y = 0, or y=xy = x. The solution through (0,2)(0, 2) has a horizontal tangent at the moment it reaches the line y=xy = x, exactly the isocline from Example 1.

At (0,2)(0, 2) the solution is decreasing (slope 2-2) and concave up (second derivative 33); its tangent line is horizontal wherever the solution crosses the line y=xy = x.

Worked example

Euler's method table (BC only)

Use Euler's method with step size h=0.5h = 0.5 to approximate y(1)y(1) for dydx=x+y\frac{dy}{dx} = x + y with the initial condition y(0)=1y(0) = 1.

  1. Set up the recursion yn+1=yn+hf(xn,yn)y_{n+1} = y_n + h \cdot f(x_n, y_n) with f(x,y)=x+yf(x, y) = x + y and h=0.5h = 0.5. Reaching x=1x = 1 from x=0x = 0 in steps of 0.50.5 takes two steps.
  2. Step 1 from (0,1)(0, 1). The slope is f(0,1)=0+1=1f(0, 1) = 0 + 1 = 1. The change is Δy=hslope=0.51=0.5\Delta y = h \cdot \text{slope} = 0.5 \cdot 1 = 0.5. So y1=1+0.5=1.5y_1 = 1 + 0.5 = 1.5 at x1=0.5x_1 = 0.5.
  3. Step 2 from (0.5,1.5)(0.5, 1.5). Recompute the slope at the new point: f(0.5,1.5)=0.5+1.5=2f(0.5, 1.5) = 0.5 + 1.5 = 2. The change is Δy=0.52=1\Delta y = 0.5 \cdot 2 = 1. So y2=1.5+1=2.5y_2 = 1.5 + 1 = 2.5 at x2=1x_2 = 1.
  4. The two steps give y(1)2.5y(1) \approx 2.5, matching the table in the Euler's method section. As a check, the exact solution is y=2exx1y = 2e^x - x - 1, so y(1)=2e23.44y(1) = 2e - 2 \approx 3.44. Euler undershoots because this solution is concave up: d2ydx2=dydx+1=x+y+1>0\frac{d^2y}{dx^2} = \frac{dy}{dx} + 1 = x + y + 1 > 0 along the path, so the straight tangent steps ride below the true curve.

y(1)2.5y(1) \approx 2.5. Because the solution is concave up, this is an underestimate of the true value 2e23.442e - 2 \approx 3.44.

Frequently asked questions

Is Euler's method on the AP Calculus AB exam?

No. Euler's method is Topic 7.5 and is tested on the BC exam only. Slope fields (Topics 7.3 and 7.4) are on both AB and BC.

Does Euler's method overestimate or underestimate?

It depends on concavity. When the solution curve is concave up, the tangent steps stay below it and Euler underestimates; when it is concave down, Euler overestimates. Check the sign of d2ydx2\frac{d^2y}{dx^2} to decide rather than guessing.

Do I have to solve the differential equation to sketch its slope field?

No, and that is the whole point. You only evaluate dydx=f(x,y)\frac{dy}{dx} = f(x, y) at each grid point and draw a segment with that slope. Slope fields work even when the equation cannot be solved by hand.

What is the difference between a slope field and Euler's method?

A slope field is a qualitative picture of every solution at once; Euler's method is a numerical procedure that estimates one solution's value at a specific xx. The field shows shape, Euler produces a number.