| Enduring Understanding | Learning Objective | Essential Knowledge |
|---|---|---|
FUN-7 | FUN-7.A |
|
Differential Equations
AP Calculus BC · Topic 7
8:26
Modeling with Differential Equations
Normally you are handed a function and asked for its slope. A differential equation turns that around. You are handed a rule for the slope at every point, and…
English narration · English + 中文 subtitles burned in
7.1
Modeling Situations with Differential Equations
Syllabus
Source: College Board AP Course and Exam Description
A nurse sets up a drip. Medicine flows into the blood at a steady rate, and the body removes it at a rate that grows with the amount already there. Nobody can write a formula for the amount $M(t)$ straight away, but everyone can say how fast it changes. That sentence is a differential equation; this unit teaches you to write one, read its picture, approximate it and solve it.
A differential equation 微分方程 relates a function to its derivatives 导数. Many real situations are described by a rate: “the population grows at a rate proportional to its size” becomes $\dfrac{dP}{dt}=kP$, where $k$ is a constant. Setting up the equation from a verbal description – identifying what changes and what it is proportional 成正比 to – is the first skill.
Worked example: from words to an equation. Read "is proportional to" as "equals a constant $k$ times", and "is inversely proportional to" as "equals $k$ divided by".
| sentence | differential equation |
|---|---|
| The temperature $T$ of a drink changes at a rate proportional to the difference between $T$ and the room temperature $20^{\circ}$C. | $\dfrac{dT}{dt}=k(T-20)$ |
| The depth $h$ of water in a tank decreases at a rate proportional to $\sqrt h$. | $\dfrac{dh}{dt}=-k\sqrt h$, with $k>0$ |
| A rumour spreads at a rate proportional to the product of the number $N$ who have heard it and the number $1000-N$ who have not. | $\dfrac{dN}{dt}=kN(1000-N)$ |
The word "decreases" gives the minus sign. The last equation is logistic (see the end of this unit).
A rate equation's slope field
The equation $\tfrac{dy}{dt}=ky$ says the rate is proportional to $y$ — its slope field shows the growth it models.
| English |
|---|
| differential equation/ˌdɪfəˈrenʃl ɪˈkweɪʒn/ |
| derivative/dɪˈrɪvətɪv/ |
| proportional/prəˈpɔːʃənl/ |
7.2
Verifying Solutions for Differential Equations
Syllabus
| Enduring Understanding | Learning Objective | Essential Knowledge |
|---|---|---|
FUN-7 | FUN-7.B |
|
Source: College Board AP Course and Exam Description
A solution 解 is a function that satisfies the equation. To verify 验证 a proposed solution, differentiate it and substitute into the equation, checking that both sides agree. A general solution 通解 contains a constant $C$; a particular solution 特解 fixes $C$ from a condition.
Worked example: an unknown linear solution. For what values of $m$ and $b$ is the line $y=mx+b$ a solution of $\dfrac{dy}{dx}=2x-y$?
Substitute: the left side is $m$; the right side is $2x-(mx+b)=(2-m)x-b$. For $m=(2-m)x-b$ to hold for every $x$, the $x$-terms must match ($0=2-m$, so $m=2$) and the constants must match ($m=-b$, so $b=-2$). The solution is $y=2x-2$. Check: $\dfrac{dy}{dx}=2$ and $2x-(2x-2)=2$.
Common mistake. Checking a single point. A solution must make the equation true at every $x$ in its domain.
Solutions of dy/dx = ky
Each exponential $y=Ce^{kx}$ threads the slope field — verifying one just confirms its derivative matches $ky$.
| English |
|---|
| solution/səˈluːʃn/ |
| verify/ˈverɪfaɪ/ |
| general solution/ˈdʒenərəl səˈluːʃn/ |
| particular solution/pəˈtɪkjʊlə səˈluːʃn/ |
7.3
Sketching Slope Fields
Syllabus
| Enduring Understanding | Learning Objective | Essential Knowledge |
|---|---|---|
FUN-7 | FUN-7.C |
|
Source: College Board AP Course and Exam Description
A slope field 斜率场 draws a short line segment at many points, each with the slope $\dfrac{dy}{dx}$ the equation gives there. It pictures the family of solution curves without solving. To sketch one, evaluate the right-hand side at each grid point and draw a segment of that slope.
Worked example. For $\dfrac{dy}{dx}=x-y$, substitute each point into $x-y$:
| point $(x,y)$ | $(0,0)$ | $(1,0)$ | $(0,1)$ | $(1,1)$ | $(2,1)$ | $(-1,1)$ |
|---|---|---|---|---|---|---|
| slope $x-y$ | $0$ | $1$ | $-1$ | $0$ | $1$ | $-2$ |
Every point on the line $y=x$ has slope $0$ (flat segments), and every point on $y=x-1$ has slope $1$.

Read a differential equation as a slope field
A slope field draws the slope $dy/dx$ at each point. A solution curve threads through, always tangent to the little segments — you can sketch it by following the flow.
| English |
|---|
| slope field/sləʊp fiːld/ |
7.4
Reasoning Using Slope Fields
Syllabus
| Enduring Understanding | Learning Objective | Essential Knowledge |
|---|---|---|
FUN-7 | FUN-7.C |
|
Source: College Board AP Course and Exam Description
A solution curve 解曲线 follows the segments like a boat following a current. From a slope field you can sketch the particular solution through a given point, describe long-run behavior, and locate where solutions level off (slopes near zero) – reasoning about solutions purely from the picture.

Reading the field above. The right-hand side depends only on $M$, so every horizontal row of segments is identical. On the line $M=40$ the slope is $0$ at every $t$, so that line is itself a solution: an equilibrium solution 平衡解. Below it solutions rise; above it they fall; none crosses the line.
Exam skill: "Explain why this could not be the slope field." Find one point where the picture disagrees with the equation. For $\dfrac{dH}{dt}=-\dfrac{1}{15}(H-20)$, every segment with $H>20$ must have negative slope; a field showing positive slopes above $H=20$, or slopes that change along a horizontal row, cannot be it. Name the point and both slopes.
Concavity from the equation. Differentiate the equation itself: $\dfrac{d^2M}{dt^2}=-\dfrac14\dfrac{dM}{dt}=-\dfrac1{16}(40-M)$. This is negative for $M<40$, so the solution through $(0,5)$ is concave down.
Thread a curve through the field
A solution curve stays tangent to every dash it passes — drag the start point and watch it follow the field.
| English |
|---|
| solution curve/səˈluːʃn kɜːv/ |
| equilibrium solution |
7.5
Approximating Solutions Using Euler's Method
Syllabus
| Enduring Understanding | Learning Objective | Essential Knowledge |
|---|---|---|
FUN-7 | FUN-7.C |
|
Source: College Board AP Course and Exam Description
Euler's method 欧拉方法 approximates a solution numerically by stepping along the slope field. Starting from a known point, take a small step $\Delta x$ and update:
Exam skill: be able to carry out two or three Euler steps by hand from a table, and know that Euler's method underestimates 低估 or overestimates 高估 depending on the solution's concavity.
Worked example. Approximate $y(1)$ for $\dfrac{dy}{dx}=x+y$, $y(0)=1$, with step $\Delta x=0.5$. Step 1: slope at $(0,1)$ is $0+1=1$, so $y(0.5)\approx 1+1(0.5)=1.5$. Step 2: slope at $(0.5,1.5)$ is $0.5+1.5=2$, so $y(1)\approx 1.5+2(0.5)=2.5$.
Common mistakes. Forgetting to multiply the slope by $\Delta x$, and working out each slope from the original point instead of the point you have just reached: step 2 uses $(0.5,\,1.5)$.
Over or under? Differentiate the equation: $\dfrac{d^2y}{dx^2}=1+\dfrac{dy}{dx}=1+x+y$, which is positive near these points. The solution is concave up, so each tangent step lies below the curve and $2.5$ is an underestimate. (The exact solution is $y=2e^x-x-1$, so $y(1)=2e-2\approx 3.44$.)

Stepping along the slope field
Euler's method takes short straight steps along the slope field — smaller steps hug the true curve better.
| English |
|---|
| Euler's method/ˈɔɪləz ˈmeθəd/ |
| approximation/əˌprɒksɪˈmeɪʃn/ |
| underestimate/ˌʌndəˈrestɪmət/ |
| overestimate/ˌəʊvəˈrestɪmət/ |
7.6
Finding General Solutions Using Separation of Variables
Syllabus
| Enduring Understanding | Learning Objective | Essential Knowledge |
|---|---|---|
FUN-7 | FUN-7.D |
|
Source: College Board AP Course and Exam Description

In separation of variables 分离变量法, a separable 可分离 differential equation is written with all the $y$'s on one side and all the $x$'s on the other, then integrated (where the divided factor is nonzero):
Worked example. Solve $\dfrac{dy}{dx}=xy$ with $y(0)=2$. Separating, $\int\frac{dy}{y}=\int x\,dx$ gives $\ln|y|=\frac{x^2}{2}+C$, so $y=Ae^{x^2/2}$. The condition $y(0)=2$ gives $A=2$, so $y=2e^{x^2/2}$.
Common mistakes. Adding the constant at the end: $y=e^{x^2/2}+C$ is wrong, because the constant enters when you integrate and becomes the multiplier $A=e^{C}$. Trying to separate an equation such as $\dfrac{dy}{dx}=x+y$: a sum cannot be written as $g(x)\,h(y)$.
Worked example (integration by parts inside). Find the particular solution of $\dfrac{dy}{dx}=y\,(x\ln x)$ with $f(1)=4$.
(By parts with $u=\ln x$, $dv=x\,dx$.) At $(1,4)$: $\ln4=0-\tfrac14+C$, so $C=\ln4+\tfrac14$. Since $y>0$,
Worked example (a critical point from the equation). $\dfrac{dH}{dt}=\dfrac12(H-1)\cos\!\left(\dfrac t2\right)$ with $H(0)=4$. Separate: $\displaystyle\int\frac{dH}{H-1}=\int\frac12\cos\!\left(\frac t2\right)dt$, so $\ln|H-1|=\sin\!\left(\dfrac t2\right)+C$. At $t=0$: $\ln3=C$, and
For $0<t<5$, $H>1$, so $\dfrac{dH}{dt}=0$ only when $\cos\!\left(\tfrac t2\right)=0$, at $t=\pi$. The factor $\cos\!\left(\tfrac t2\right)$ changes from positive to negative there, so $\dfrac{dH}{dt}$ does too: $H$ has a relative maximum at $t=\pi$. You can answer this from the differential equation alone, without the solution.
The general solution is a family
Solving $\tfrac{dy}{dx}=ay$ gives $y=Ce^{ax}$ — one curve per constant, all fitting the same field.
| English |
|---|
| separation of variables/ˌsepəˈreɪʃn ɒv ˈveərɪəblz/ |
| separable/ˈsepərəbl/ |
| constant solution |
7.7
Finding Particular Solutions Using Initial Conditions
Syllabus
| Enduring Understanding | Learning Objective | Essential Knowledge |
|---|---|---|
FUN-7 | FUN-7.E |
|
Source: College Board AP Course and Exam Description
An initial condition 初始条件 (a known point, e.g. $y(0)=5$) pins down the constant $C$. Solve for the general solution, substitute the condition to find $C$, then write the particular solution. Watch the domain 定义域 – a particular solution is valid only on the interval containing the initial point.
Worked example. Solve $\dfrac{dy}{dx}=\dfrac{x}{y}$ with $y(0)=-3$. Separating gives $\dfrac{y^2}{2}=\dfrac{x^2}{2}+C$. Substitute the initial point now: $\tfrac92=C$, so $y^2=x^2+9$. The initial value is negative, so take the negative root:
The positive root fails $y(0)=-3$; choosing the sign from the initial condition is a scored step.
Worked example (domain). $\dfrac{dy}{dx}=xy^2$ with $y(1)=1$: $-\dfrac1y=\dfrac{x^2}{2}+C$ gives $C=-\tfrac32$, so $y=\dfrac{2}{3-x^2}$. The formula breaks at $x=\pm\sqrt3$; the solution lives on the interval that contains $x=1$, so its domain is $-\sqrt3<x<\sqrt3$.

The initial point picks one curve
The general solution is a whole family; the initial condition $y(x_0)=y_0$ selects the single curve through that point.
| English |
|---|
| initial condition/ɪˈnɪʃl kənˈdɪʃn/ |
| domain/dəˈmeɪn/ |
7.8
Exponential Models with Differential Equations
Syllabus
| Enduring Understanding | Learning Objective | Essential Knowledge |
|---|---|---|
FUN-7 | FUN-7.F |
|
FUN-7.G |
|
Source: College Board AP Course and Exam Description
The equation $\dfrac{dy}{dt}=ky$ says the rate of change is proportional to the amount – giving exponential growth or decay 指数增长或衰减. Separating variables yields

Worked example: Newton's law of cooling. Coffee at $90^{\circ}$C cools in a room at $20^{\circ}$C by $\dfrac{dT}{dt}=-k\,(T-20)$, with $t$ in minutes. After $5$ minutes it is $70^{\circ}$C. When does it reach $40^{\circ}$C?
The difference $T-20$ decays exponentially from $90-20=70$, so
From $T(5)=70$: $50=70e^{-5k}$, so $k=\dfrac{\ln(7/5)}{5}\approx 0.0673$. For $T=40$: $20=70e^{-kt}$, so $t=\dfrac{\ln 3.5}{k}\approx 18.6$ minutes. Writing $T=90e^{-kt}$ (cooling towards $0^{\circ}$C) is the common error.
Worked example: limited growth. The amount of medicine $M$, in milligrams, satisfies $\dfrac{dM}{dt}=\tfrac14(40-M)$, $t$ in hours, $M(0)=5$.
(a) Separate: $-\ln|40-M|=\dfrac t4+C$, and $C=-\ln35$. Since $M<40$, $M=40-35e^{-t/4}$.
(b) $\displaystyle\lim_{t\to\infty}M(t)=40$: over a long time the amount of medicine in the blood approaches $40$ milligrams. Give the units and the context.
(c) The tangent line at $t=0$ has slope $M'(0)=8.75$, so $M(2)\approx5+8.75(2)=22.5$ mg. Since $\dfrac{d^2M}{dt^2}<0$ (from the slope-field section), the curve is concave down and lies below its tangents: $22.5$ is an overestimate. (Exact: $M(2)\approx18.8$ mg.)
An exponential growth/decay model
y = a·e^(bx) + c
The equation $dy/dt=ky$ has exponential solutions: quantity changes at a rate proportional to itself, giving unbounded growth ($k>0$) or decay to zero ($k<0$).
| English |
|---|
| exponential growth or decay/ˌekspəˈnenʃl ɡrəʊθ ɔː dɪˈkeɪ/ |
| radioactive decay/ˌreɪdɪəʊˈæktɪv dɪˈkeɪ/ |
| continuously compounded interest |
7.9
Logistic Models with Differential Equations
Syllabus
| Enduring Understanding | Learning Objective | Essential Knowledge |
|---|---|---|
FUN-7 | FUN-7.H |
|
Source: College Board AP Course and Exam Description
Real growth is limited by resources, so the logistic model 逻辑斯蒂模型 adds a carrying capacity 环境容纳量 $L$:
Worked example. For $\dfrac{dP}{dt}=0.05\,P\!\left(1-\dfrac{P}{2000}\right)$, the carrying capacity is $L=2000$ (the population levels off there), and growth is fastest when $P=\dfrac{L}{2}=1000$ – both read straight off the equation, no solving needed.
Common mistakes. Saying growth is fastest when $P=L$: at $P=L$ the growth rate is $0$. Giving a time when the question asks for the population at which growth is fastest ($P=1000$).
Why $\tfrac L2$? Write $\dfrac{dP}{dt}=kP-\dfrac kLP^2$. Differentiate with respect to $t$: $\dfrac{d^2P}{dt^2}=\left(k-\dfrac{2k}{L}P\right)\dfrac{dP}{dt}$. For $0<P<L$, $\dfrac{dP}{dt}>0$, so $\dfrac{d^2P}{dt^2}$ changes sign where $k-\dfrac{2k}{L}P=0$, at $P=\dfrac L2$. That is where the growth rate is largest.
Worked example (reading the logistic form). $\dfrac{dP}{dt}=\dfrac{P(600-P)}{300}$ with $P(0)=800$. Rewrite: $\dfrac{dP}{dt}=2P\left(1-\dfrac{P}{600}\right)$, so $k=2$ and $L=600$. Because $P(0)>600$, $\dfrac{dP}{dt}<0$: the population decreases towards $600$, and $\displaystyle\lim_{t\to\infty}P(t)=600$. It never passes through $\tfrac L2=300$, so it has no point of fastest growth.

The S-shaped logistic curve
y = a·tanh(bx) + d (S-shape)
A logistic curve rises fast near the middle and flattens toward the carrying capacity $L$ — steepest at $P=L/2$.
| English |
|---|
| logistic model/ləˈdʒɪstɪk ˈmɒdl/ |
| carrying capacity/ˈkæriɪŋ kəˈpæsɪti/ |
7.9
Exam tips
- Solve a separable equation by getting all $y$ on one side and all $x$ on the other, then integrating both sides (add $+C$ once).
- Use the initial condition to find $C$ (a particular solution).
- Sketch or read a slope field: the little segments show $\tfrac{dy}{dx}$ at each point, and a solution curve follows them.
- Recognise exponential models $\tfrac{dy}{dt}=ky\Rightarrow y=Ce^{kt}$ (growth/decay).
- A differential equation gives the slope — you must integrate to recover the function.
- Logistic $\tfrac{dP}{dt}=kP\left(1-\tfrac PL\right)$: the limit is $L$ (for $P(0)>0$) and growth is fastest at $P=\tfrac L2$.
Practice.
- Verify that $y=3e^{2x}-1$ is a solution of $\dfrac{dy}{dx}=2y+2$.
- For $\dfrac{dy}{dx}=y-x$, use Euler's method with two steps of size $0.5$ from $y(0)=2$ to estimate $y(1)$.
- Find the particular solution of $\dfrac{dy}{dx}=\dfrac{x^2}{y}$ with $y(0)=-2$.
- $\dfrac{dA}{dt}=\dfrac{12-A}{3}$, $A(0)=0$, with $A$ in grams and $t$ in minutes. Find $A(t)$ and interpret $\displaystyle\lim_{t\to\infty}A(t)$.
- A population satisfies $\dfrac{dP}{dt}=0.4P-0.0002P^2$ with $P(0)=300$. Find $\displaystyle\lim_{t\to\infty}P(t)$ and the population when it grows fastest.
- $\dfrac{dy}{dt}=0.5(y-10)$ with $y(0)=4$. Find $\dfrac{d^2y}{dt^2}$ in terms of $y$, use the tangent line at $t=0$ to estimate $y(1)$, and decide whether the estimate is too big or too small.
Answers.
- $\dfrac{dy}{dx}=6e^{2x}$ and $2y+2=6e^{2x}$; the sides agree for all $x$.
- Slope at $(0,2)$ is $2$, so $y(0.5)\approx2+0.5(2)=3$. Slope at $(0.5,3)$ is $2.5$, so $y(1)\approx3+0.5(2.5)=4.25$.
- $\dfrac{y^2}{2}=\dfrac{x^3}{3}+2$, and $y(0)<0$, so $y=-\sqrt{\dfrac{2x^3}{3}+4}$ for $x>-\sqrt[3]{6}$.
- $A=12-12e^{-t/3}$; the limit is $12$: over a long time the amount approaches $12$ grams.
- $0.4P\left(1-\dfrac{P}{2000}\right)$: $L=2000$, so the limit is $2000$; fastest growth at $P=1000$.
- $\dfrac{d^2y}{dt^2}=0.25(y-10)$. $y'(0)=-3$, so $y(1)\approx1$. For $y<10$ the solution is concave down, so the estimate is too big (exact $10-6e^{0.5}\approx0.11$).
Interactive lessons on this topic
Work through it step by step, with instant-check exercises.
- Modeling Situations with Differential Equations
- Verifying Solutions for Differential Equations
- Sketching Slope Fields
- Reasoning Using Slope Fields
- Approximating Solutions Using Euler's Method
- Finding General Solutions Using Separation of Variables
- Finding Particular Solutions Using Initial Conditions and Separation of Variables
- Exponential Models with Differential Equations
- Logistic Models with Differential Equations