FRQ Type 8: Differential Equations

Practice these in the app

A differential equation gives the slope of a function at every point without giving the function. A free-response question on one asks two kinds of things: what the equation says as it stands, and what its solution is. It was a question of its own on 12 of the 17 AP Calculus BC exams released for 2010 through 2025, never with a calculator. (The 17 are one exam for each year except 2020, plus the Form B exams of 2010 and 2011.)
The part asks forQuestions (of 12)
A particular solution by separation of variables9
The second derivative (concavity, an over- or underestimate, an extremum, a Taylor coefficient)8
Euler's method5
A tangent-line approximation3
A slope field, drawn or read3
A limit by L'Hospital's Rule3
A relative extremum or critical point of a solution3
A Taylor polynomial2

Slopes and the slope field

Take the equation dydx=2y−x\frac{dy}{dx} = 2y - x. At any point, the slope of the solution through that point is found by substitution: 22 at (0,1)(0, 1), −1-1 at (1,0)(1, 0), and 00 at (4,2)(4, 2). A slope field draws a short segment with that slope at each point of a grid.
The slope field of dy/dx = 2y − x. The segments are flat along the line y = x/2. The amber line, y = x/2 + 1/4, is where the second derivative is 0, and the dark curve is the solution through (0, −1).
When a question asks for the segments at given points, each one is drawn with the computed slope, and steeper slopes have to look steeper. When it asks for a solution curve through a point, the curve passes through the point, follows the segments, and runs to the edges of the field, as the dark curve does.
A part may give a function and ask whether it solves the equation, or ask for the constants that make it one. Substitute it into both sides. For dydx=y−x2\frac{dy}{dx} = y - x^2, the function y=x2+2x+2y = x^2 + 2x + 2 has dydx=2x+2\frac{dy}{dx} = 2x + 2, and y−x2=2x+2y - x^2 = 2x + 2 as well, so it is a solution. With unknown constants, the two sides are matched term by term.

The second derivative

Differentiating the equation with respect to xx gives the second derivative. Every yy is a function of xx, so its derivative is dydx\frac{dy}{dx}, and the equation replaces that:
d2ydx2=2 dydx−1=2(2y−x)−1=4y−2x−1.\frac{d^2y}{dx^2} = 2\,\frac{dy}{dx} - 1 = 2(2y - x) - 1 = 4y - 2x - 1.
The answer is in terms of xx and yy only. Its sign gives the concavity of a solution at a point, or over a region where the sign is clear. Here 4y−2x−1=4(y−x2−14)4y - 2x - 1 = 4\left(y - \frac{x}{2} - \frac{1}{4}\right), which is positive above the amber line and negative below it. So every solution curve is concave up above that line and concave down below it, as the dark curve is.
The two derivatives together classify a point. For the solution through (4,2)(4, 2), dydx=0\frac{dy}{dx} = 0, and d2ydx2=8−8−1=−1<0\frac{d^2y}{dx^2} = 8 - 8 - 1 = -1 < 0, so that solution has a relative maximum at x=4x = 4. For the solution through (0,1)(0, 1), dydx=2≠0\frac{dy}{dx} = 2 \ne 0, so it has neither a maximum nor a minimum there. The first step is always to check whether the slope is 0.
When the equation isn't linear in yy, the chain rule shows. For dydx=6xy\frac{dy}{dx} = 6x\sqrt{y}, the product rule and then the chain rule give
d2ydx2=6y+6x⋅12y⋅dydx=6y+18x2.\frac{d^2y}{dx^2} = 6\sqrt{y} + 6x\cdot\frac{1}{2\sqrt{y}}\cdot\frac{dy}{dx} = 6\sqrt{y} + 18x^2.
The product rule and the factor dydx\frac{dy}{dx} are scored separately.

Approximating a solution

Now let y=f(x)y = f(x) be the solution of
dydx=x(y+2)withf(0)=1,\frac{dy}{dx} = x(y + 2) \qquad\text{with}\qquad f(0) = 1,
and suppose it is known that f(x)>−2f(x) > -2 for all xx. The equation gives f′(0)=0(1+2)=0f'(0) = 0(1 + 2) = 0. By the product rule,
d2ydx2=(y+2)+x dydx=(y+2)(1+x2),\frac{d^2y}{dx^2} = (y + 2) + x\,\frac{dy}{dx} = (y + 2)\left(1 + x^2\right),
so f′′(0)=3f''(0) = 3, and with f′(0)=0f'(0) = 0 the solution has a relative minimum at x=0x = 0. The sign of f′f' says more. Since f(x)+2>0f(x) + 2 > 0, the derivative f′(x)=x(f(x)+2)f'(x) = x\big(f(x) + 2\big) has the sign of xx: negative for x<0x < 0 and positive for x>0x > 0. The only solution of f′(x)=0f'(x) = 0 is x=0x = 0, and f′f' changes from negative to positive there, so ff has its absolute minimum at x=0x = 0. Three approximations come from these values.
The tangent line at x=0x = 0 is y=1+0(x−0)=1y = 1 + 0(x - 0) = 1, so f(0.5)≈1f(0.5) \approx 1. Since f(x)>−2f(x) > -2, the second derivative is positive for 0≤x≤0.50 \le x \le 0.5. The solution is concave up there and lies above its tangent line, so the approximation is an underestimate. The reason has to cover the whole interval from 0 to 0.5. The sign at one point isn't enough.
To approximate f(1)f(1) with two steps of equal size, Δx=12\Delta x = \frac{1}{2}:
f ⁣(12)≈1+(0)(12)=1,f(1)≈1+(12(1+2))(12)=1+34=74.\begin{aligned} f\!\left(\tfrac{1}{2}\right) &\approx 1 + (0)\left(\tfrac{1}{2}\right) = 1, \\[4pt] f(1) &\approx 1 + \Big(\tfrac{1}{2}(1 + 2)\Big)\left(\tfrac{1}{2}\right) = 1 + \tfrac{3}{4} = \tfrac{7}{4}. \end{aligned}
The second slope is computed at the new point (12,1)\left(\frac{1}{2}, 1\right). Reusing the starting slope is the usual slip.
The second-degree Taylor polynomial for ff about x=0x = 0 uses the same two values:
T2(x)=f(0)+f′(0)x+f′′(0)2!x2=1+32x2.T_2(x) = f(0) + f'(0)x + \frac{f''(0)}{2!}x^2 = 1 + \tfrac{3}{2}x^2.
A limit can use them too. For the first equation, let gg be the solution with g(0)=1g(0) = 1, so g′(0)=2g'(0) = 2. In lim⁡x→0g(x)−1x2+4x\displaystyle\lim_{x \to 0} \frac{g(x) - 1}{x^2 + 4x} the numerator and the denominator both approach 0, and by L'Hospital's Rule the limit is lim⁡x→0g′(x)2x+4=24=12\displaystyle\lim_{x \to 0} \frac{g'(x)}{2x + 4} = \frac{2}{4} = \frac{1}{2}. For ff, the limit lim⁡x→0f(x)−1x2\displaystyle\lim_{x \to 0} \frac{f(x) - 1}{x^2} needs the rule twice, because f′(0)=0f'(0) = 0 leaves f′(x)2x\frac{f'(x)}{2x} in the form 00\frac{0}{0} again. The second application gives lim⁡x→0f′′(x)2=32\displaystyle\lim_{x \to 0} \frac{f''(x)}{2} = \frac{3}{2}.

Separation of variables

For dydx=x(y+2)\frac{dy}{dx} = x(y + 2) with f(0)=1f(0) = 1:
∫1y+2 dy=∫x dxln⁡∣y+2∣=12x2+Cln⁡∣1+2∣=0+C,so C=ln⁡3∣y+2∣=ex2/2+ln⁡3=3ex2/2y=−2+3ex2/2.\begin{aligned} \int \frac{1}{y + 2}\,dy &= \int x\,dx \\[4pt] \ln|y + 2| &= \tfrac{1}{2}x^2 + C \\[4pt] \ln|1 + 2| &= 0 + C, \quad\text{so } C = \ln 3 \\[4pt] |y + 2| &= e^{x^2/2 + \ln 3} = 3e^{x^2/2} \\[4pt] y &= -2 + 3e^{x^2/2}. \end{aligned}
The last step drops the absolute value by choosing the sign that fits the initial condition: y+2y + 2 is positive at x=0x = 0. The answer is written as yy equals a formula. When the formula is defined on only part of the line, the solution holds on the interval that contains the initial point, and a scoring guideline may state that interval. Here f(1)=−2+3e≈2.946f(1) = -2 + 3\sqrt{e} \approx 2.946, well above Euler's estimate of 1.751.75. Each Euler step follows a tangent line, and here the curve bends up away from it, so the estimate is low.
Euler's two steps (blue) against the solution y = −2 + 3e^(x²/2). The first step follows the flat tangent line at (0, 1); the second starts at (1/2, 1) with slope 3/2 and ends at 7/4. The solution is concave up, bending above each step, and reaches about 2.946 at x = 1.
Not every separation ends in a logarithm. For dydx=6xy\frac{dy}{dx} = 6x\sqrt{y} with y(0)=4y(0) = 4, the yy-side is a power (and from ∫y−2 dy\int y^{-2}\,dy it would be −1y-\frac{1}{y}):
∫y−1/2 dy=∫6x dx2y=3x2+C,and 24=C gives C=4y=(3x2+42)2.\begin{aligned} \int y^{-1/2}\,dy &= \int 6x\,dx \\[4pt] 2\sqrt{y} &= 3x^2 + C, \quad\text{and } 2\sqrt{4} = C \text{ gives } C = 4 \\[4pt] y &= \left(\frac{3x^2 + 4}{2}\right)^2. \end{aligned}
A part of this kind can end by asking for one value, as 2017's did. Here y(2)=82=64y(2) = 8^2 = 64.
The four or five points of a separation part have followed one ladder since 2010: the separation, the antiderivatives, the constant of integration with the initial condition, and the solution. A response with no separation earns nothing. A response with no constant of integration earns at most two or three of the points. The constant has to appear before the initial condition is used.

An equation in context

Six of the 12 questions set the equation in a context, and in four of them the rate is proportional to the gap between a quantity and a fixed level. Suppose a battery's charge QQ, in percent, satisfies
dQdt=13(90−Q),Q(0)=30,\frac{dQ}{dt} = \tfrac{1}{3}(90 - Q), \qquad Q(0) = 30,
with tt in hours and Q<90Q < 90.
The equation compares rates without being solved. The battery charges faster at 60 percent than at 75 percent, because 13(90−60)=10\frac{1}{3}(90 - 60) = 10 is greater than 13(90−75)=5\frac{1}{3}(90 - 75) = 5.
The tangent line at t=0t = 0 has slope 13(90−30)=20\frac{1}{3}(90 - 30) = 20, so Q(1)≈30+20(1)=50Q(1) \approx 30 + 20(1) = 50. Differentiating the equation with respect to tt,
d2Qdt2=−13 dQdt=−19(90−Q).\frac{d^2Q}{dt^2} = -\tfrac{1}{3}\,\frac{dQ}{dt} = -\tfrac{1}{9}(90 - Q).
Since Q<90Q < 90, this is negative for all tt. The graph of QQ is concave down, the tangent line lies above it, and 50 is an overestimate. The given fact Q<90Q < 90 makes the sign hold on the whole interval.
Separating the variables,
∫190−Q dQ=∫13 dt−ln⁡∣90−Q∣=13t+C−ln⁡60=C90−Q=60e−t/3Q=90−60e−t/3.\begin{aligned} \int \frac{1}{90 - Q}\,dQ &= \int \tfrac{1}{3}\,dt \\[4pt] -\ln|90 - Q| &= \tfrac{1}{3}t + C \\[4pt] -\ln 60 &= C \\[4pt] 90 - Q &= 60e^{-t/3} \\[4pt] Q &= 90 - 60e^{-t/3}. \end{aligned}
The minus sign in front of the logarithm comes from the −Q-Q in the denominator and is the usual place to slip. The solution gives Q(1)≈47.008Q(1) \approx 47.008, below the tangent-line estimate, as the concavity said.
The charge Q(t) = 90 − 60e^(−t/3) rises toward 90 percent (dashed) and is concave down. The tangent line at t = 0 lies above it, so its estimate at t = 1, 50, is larger than Q(1) ≈ 47.008.

Logistic equations

A logistic equation, such as dPdt=0.3P(1−P800)\frac{dP}{dt} = 0.3P\left(1 - \frac{P}{800}\right), is in the course and is tested in the multiple-choice section. It was not on any of these 17 free-response sections. The facts to read from it, for 0<P(0)<8000 < P(0) < 800, are the limiting value, 800 here, and the value at which PP grows fastest, half of that, 400, which a solution reaches only if P(0)≤400P(0) \le 400.

Scoring notes

  • In a separation part, show the separation, both antiderivatives, the + C+\,C, and the step where the initial condition gives CC. No separation earns 0. No constant caps the part at 2 or 3 points.
  • End with yy equal to a formula. An implicit equation doesn't earn the last point. Absolute values on the logarithm aren't required for the points.
  • For d2ydx2\frac{d^2y}{dx^2}, differentiate with the product and chain rules, and substitute the equation for dydx\frac{dy}{dx} when the answer is to be in terms of xx and yy.
  • For an over- or underestimate, give the sign of the second derivative on the whole interval, with the reason it holds, and then the conclusion.
  • In Euler's method, show both steps. A table is fine when its columns are labeled or its final answer is correct.
  • For a relative extremum, show the value of dydx\frac{dy}{dx} at the point first. If it isn't 0, the answer is "neither".
  • In a limit, the guidelines' solutions show that the numerator and denominator both approach 0 before each use of L'Hospital's Rule.
  • A sketched solution curve passes through the given point, follows the field, reaches the edges, and doesn't cross a horizontal line of flat segments, which is a constant solution.

Common traps

  • Integrating without separating the variables.
  • Leaving out the constant of integration.
  • Losing the minus sign in ∫1a−y dy=−ln⁡∣a−y∣\int \frac{1}{a - y}\,dy = -\ln|a - y|.
  • Differentiating dydx\frac{dy}{dx} as if yy were a constant.
  • Using the starting slope for both steps of Euler's method.
  • Justifying an over- or underestimate from the concavity at a single point.
  • Calling a point an extremum without checking that the slope there is 0.
  • Stopping at ln⁡∣y+2∣=12x2+ln⁡3\ln|y + 2| = \frac{1}{2}x^2 + \ln 3 and not solving for yy.

Released exam index

YearEquationKey features
2010 BC5dydx=1−y\frac{dy}{dx} = 1 - yEuler's method to the left, L'Hospital's Rule, separation
2011 BC5A landfill, rate proportional to a gapTangent line, second derivative with over or under, separation
2012 BC5A bird's weight, rate proportional to a gapFaster at which value, second derivative against a sketch, separation
2013 BC5dydx=y2(2x+2)\frac{dy}{dx} = y^2(2x + 2)L'Hospital's Rule, Euler's method, separation
2015 BC4dydx=2x−y\frac{dy}{dx} = 2x - ySlope field, second derivative and concavity, extremum or neither, a line solution
2016 BC4dydx=x2−12y\frac{dy}{dx} = x^2 - \frac{1}{2}ySecond derivative, extremum at a point, L'Hospital's Rule twice, Euler's method
2017 BC4A cooling potato, two modelsTangent line, over or under, separation with a fractional power
2019 BC4A draining barrelA volume rate with units, second derivative, separation
2021 BC5dydx=y (xln⁡x)\frac{dy}{dx} = y\,(x\ln x)Taylor polynomial, Euler's method, separation with integration by parts
2023 BC3Warming milk, rate proportional to a gapSolution curve on a slope field, tangent line, over or under, separation
2024 BC3Seawater depth, with a cosine factorSolution curve on a slope field, a critical point classified, separation
2025 BC5dydx=(3−x)y2\frac{dy}{dx} = (3 - x)y^2Second derivative, Taylor polynomial, Lagrange error bound (worked on the Series page), Euler's method