Unit 7: Differential Equations
Differential equations as rules of change (and how to check solutions)
A differential equation is an equation that relates an unknown function to one or more of its derivatives. In AP Calculus BC, you almost always see first-order differential equations, where the highest derivative is the first derivative. This connects naturally to earlier ideas like related rates: when variables aren’t constant, you often model how one quantity changes with respect to another using a derivative.
A typical first-order differential equation looks like this:
This is different from an ordinary “solve for ” algebra problem. You are not given directly—you are given information about how changes, and your job is to recover a function that matches that change.
Why calculus cares: differential equations model change
Many real situations are naturally described by rates.
- A population changes at a rate depending on the current population.
- A tank’s volume changes at a rate depending on inflow and outflow.
- A quantity decays at a rate proportional to how much is present.
Calculus is the language of change, so differential equations are how you turn “change descriptions” into actual functions.
Solutions, general solutions, and particular solutions
A solution to a differential equation is a function that makes the equation true for all relevant inputs.
For example, if
then
is a family of solutions (for any constant ). You can verify by differentiating:
That family is the general solution because it contains infinitely many functions.
To pick out one specific function, you need an initial condition, such as . A differential equation together with an initial condition is an initial value problem (IVP).
With :
so and the particular solution is
Implicit solutions are still solutions
Not every solution is easily written in the form “ explicit formula.” Often you end up with an implicit solution, such as
That is still a valid solution because it correctly describes the relationship between and .
Checking a proposed solution
A very common skill is: given a differential equation and a candidate function, decide whether it is a solution.
Method: compute the derivative from the candidate, then substitute into the differential equation and see if both sides match.
Example 1: verify a solution
Claim: solves
Differentiate:
Compute :
They match, so it is a solution.
Example 2: use an initial condition
Solve the IVP:
From the general solution , plug in :
So and
Common meaning of notation in this unit
In AP problems, the independent variable might be or . The dependent variable might be , (population), or (quantity). The derivative might be written several ways.
| Meaning | Common notations |
|---|---|
| derivative of with respect to | , |
| derivative of with respect to | |
| differential equation in “rate form” |
Exam Focus
- Typical question patterns:
- “Show that is a solution to .”
- “Find the particular solution given .”
- “Interpret in context (what do variables and the rate mean?).”
- Common mistakes:
- Treating the differential equation like an algebraic equation and trying to “solve for ” without using calculus.
- Forgetting the constant of integration (or losing it when manipulating logarithms).
- Plugging the initial condition into the differential equation instead of into the solved solution form.
Slope fields (direction fields) and qualitative behavior
A slope field (also called a direction field) is a visual way to understand solutions to a first-order differential equation without solving it algebraically.
Suppose you have
At any point , the differential equation tells you the slope of the solution curve passing through that point: the slope is . A slope field is made by drawing a small line segment at many points, each with slope .
Constructing a slope field
To construct a slope field, you repeatedly plug in the coordinates of a point (its -value, its -value, or both) into the right-hand side of the differential equation and draw a short segment with that slope.
For example, for
the slope only depends on , so along any vertical line (same ), all segments have the same slope. In particular, at the slope is , so every point with gets a segment with slope .
Sketching a solution curve on a slope field
The AP exam may ask you to sketch a solution curve through a given initial point. You do this by “flowing” with the short slope segments: the solution curve should be tangent to the field everywhere.
Because this is drawn by hand, it does not have to be perfect. The key is that your curve should not cross the tiny segments abruptly or head in a direction that contradicts the indicated slope.
Why slope fields matter
Slope fields are useful because not every differential equation is easy to solve with algebraic methods. Even when you can solve, a slope field helps you understand behavior such as increasing vs decreasing, leveling off, approaching an equilibrium, and sensitivity to initial conditions.
How to read patterns in a slope field
When you look at a slope field, focus on:
- where slopes are positive (solution curves rise) vs negative (solution curves fall),
- where slopes are near zero (solution curves flatten),
- whether slopes depend mainly on , mainly on , or on both.
If depends only on , then the slope is the same along vertical lines (same ).
If depends only on , then the slope is the same along horizontal lines (same ).
Isoclines (lines of constant slope)
An isocline is a curve where the slope value is constant.
For example, if
then “slope equals ” means
so the isocline for slope is
Along that line, the segments are horizontal.
Equilibrium (constant) solutions
An equilibrium solution is a constant solution such that
whenever .
In many AP contexts, the differential equation is autonomous:
Equilibria occur where . If you start exactly at an equilibrium value, you stay there.
Stability idea (qualitative)
Even without formal stability theory, you can reason:
- if solutions nearby move toward the equilibrium, it’s stable (attracting),
- if solutions nearby move away, it’s unstable (repelling).
You infer this from the sign of just above and just below the equilibrium level.
Example 1: reading behavior from an autonomous DE
Consider
Equilibria occur when
So and are equilibrium solutions.
Analyze the sign:
- If , then so solutions increase.
- If , then so solutions decrease.
- If , then so solutions decrease further.
So solutions between and rise toward , and solutions above fall toward , suggesting is stable. Near , small positive increases away from , so is unstable.
Example 2: matching a slope field to a differential equation
If a slope field shows that slopes are identical along horizontal lines, then likely depends only on . If it shows identical slopes along vertical lines, it likely depends only on . This pattern recognition is often enough to eliminate wrong answer choices on multiple-choice questions.
Exam Focus
- Typical question patterns:
- “Sketch the solution curve through on the given slope field.”
- “Identify equilibrium solutions and describe long-term behavior.”
- “Which differential equation could produce this slope field?”
- Common mistakes:
- Drawing a solution curve that crosses slope segments instead of following their direction.
- Missing that equilibria occur where slope is zero (horizontal segments across a line or curve).
- Confusing dependence on vs dependence on when interpreting repeated patterns.
- Drawing a solution curve with sudden, unnatural direction changes instead of smoothly following the local tangent directions.
Euler’s method (numerical solution of an IVP)
Many differential equations cannot be solved neatly with algebra. Even when they can, numerical methods are essential in applications. Euler’s method is the main numerical method in AP Calculus BC.
Suppose you have an IVP:
Euler’s method approximates the solution by stepping forward in small increments of , using the differential equation to estimate how much changes.
The key idea: “tangent line stepping”
At the point , the differential equation gives the slope:
For a small step in , a tangent line approximation gives:
So the update rules are:
Why step size matters
Euler’s method is not exact; it accumulates error.
- Smaller usually gives better accuracy.
- Larger can drift significantly away from the true solution.
On AP problems, you’re usually told what step size to use, and you must follow it carefully.
Organizing work: tables
Most Euler’s method work is easiest in a table with columns for , , and .
Example 1: one-step Euler approximation
Approximate for
using step size .
Start: , .
Compute slope:
Update:
So .
Example 2: multiple steps
Approximate for the same IVP with .
We have .
Compute the next slope:
Update:
So .
Interpreting Euler’s method graphically
If you plot the points Euler generates and connect them with line segments, you get a piecewise linear approximation to the true solution curve. This also connects to slope fields: at each step, Euler uses the slope at the left endpoint .
Typical AP-style details that matter
- Rounding: If instructed to round to three decimals each step, do so consistently.
- Step direction: You can step forward (positive ) or backward (negative ).
- Units in context: Interpret as the approximate quantity after steps.
Exam Focus
- Typical question patterns:
- “Use Euler’s method with step size to approximate at a given value.”
- “Use a slope field plus Euler steps to compare approximations.”
- “Compare two Euler approximations (different step sizes) and reason which is more accurate.”
- Common mistakes:
- Using instead of .
- Forgetting to update each step, especially when the problem is written in terms of .
- Arithmetic drift: one small arithmetic error early ruins all later values.
Separable differential equations (solving by separating variables)
The most important algebraic solving technique in this unit is separation of variables. A differential equation is separable if you can rewrite it so that all terms are on one side and all (or ) terms are on the other.
A common separable form is:
When the equation is separable, you can often “solve for the original function” by taking antiderivatives of both sides after separating. This is the core idea behind many AP differential equation problems.
A helpful checklist: SIPPY
A memory trick for separable/IVP problems is SIPPY:
- S: Separate (get and on different sides)
- I: Integrate (take antiderivatives)
- P: Plus C (include the constant of integration)
- P: Plug in your initial condition
- Y: Y equals (solve for explicitly if the problem asks)
Why separation works
The derivative describes how small changes relate. When the equation factors into an -part and a -part, you can separate the relationship so that integrating both sides accumulates total change.
The standard process (with meaning)
- Start with
- Rewrite as
- Treat the notation as indicating multiplication by :
- Integrate both sides:
- Add a constant (one constant is enough):
- Use the initial condition to solve for .
After integrating, you might have an implicit equation in and . That is fine unless the problem explicitly asks you to solve for .
Example 1: basic separable DE
Solve:
Separate:
Integrate:
So
Exponentiate and absorb constants:
Example 2: separable IVP with an implicit step
Solve:
Separate:
Integrate:
So
Use :
So
A perfectly acceptable particular solution is the implicit form:
Example 3: SIPPY in action (separate, integrate, plus C, plug in, solve for y)
Solve the IVP:
Separate:
Integrate:
So
Plug in and :
Thus
Multiply by 2:
Solve for and use the initial condition to choose the correct branch. Since is positive, the particular solution is
Constant solutions can be lost if you divide by a variable
If you divide by a variable expression (like ), you might accidentally discard the case where that expression is zero.
Example: with
dividing by assumes , but is also a solution. In this particular example, the family still includes when , but it’s a good habit to quickly check for constant solutions.
When separation is not possible
If you cannot algebraically isolate all terms with and all terms with , separation won’t work. In this unit, you are not expected to use more advanced methods (like integrating factors).
Exam Focus
- Typical question patterns:
- “Solve the differential equation by separation of variables and apply the initial condition.”
- “Find an implicit solution and use it to compute at a specific .”
- “Determine whether a differential equation is separable and explain.”
- Common mistakes:
- Forgetting the constant of integration or mishandling it when combining logs and exponentials.
- Separating incorrectly (especially with expressions like in denominators).
- Solving for using the wrong point (mixing up and ).
Exponential growth and decay as differential equations
A key modeling idea is: the rate is proportional to the amount present. In differential equation form:
Here is the quantity at time , and is a constant.
- If , you get growth.
- If , you get decay.
Why this model is everywhere
This model appears whenever each “unit” of the quantity contributes equally to change, such as population growth with unlimited resources (simplified), radioactive decay, and continuously compounded interest.
Solving the model (separation)
Separate and integrate:
So
If , then
Doubling time and half-life
If , the **doubling time** satisfies :
If , the **half-life** satisfies :
Because and are both negative, is positive.
Example 1: find k from information
A population follows and . If , find .
Using :
Example 2: interpret units
If is measured in years, then has units of “per year.” The exponent must be unitless.
Exam Focus
- Typical question patterns:
- “Write a differential equation for exponential growth or decay and solve for .”
- “Given two data points, find and then predict another value.”
- “Find doubling time or half-life from or from a solved model.”
- Common mistakes:
- Sign errors: decay means .
- Solving for but forgetting the logarithm step (or taking a log incorrectly).
- Confusing doubling time formulas when is negative.
Logistic differential equations: modeling with a carrying capacity
Exponential growth assumes unlimited resources, but many real populations slow down as they approach a limit. The logistic model is:
where is the intrinsic growth rate and is the carrying capacity.
What the factors mean
The structure matters:
- causes growth to scale with population.
- reduces growth as approaches .
If , then . If , the factor becomes negative and the population decreases back toward .
Equilibrium solutions and long-term behavior
Set the right-hand side to zero:
Equilibria:
For positive initial population, solutions tend to approach over time.
The logistic curve shape and maximum growth
The rate
is a downward-opening quadratic in , so it is maximized at
Logistic growth is fastest at half the carrying capacity.
Example 1: interpret a logistic differential equation
Suppose a fish population satisfies
Then fish. When is small, growth is approximately exponential with rate about . If , then . If , then and the population declines.
Example 2: compute the rate at a given population
With the same model, if :
So
Common misconception: K is not a hard ceiling at every moment
The population can exceed depending on the initial condition. What is true is that when , the rate becomes negative, pushing the solution back down toward .
Exam Focus
- Typical question patterns:
- “Identify the carrying capacity and equilibria from a logistic differential equation.”
- “Determine whether is increasing or decreasing for given population values.”
- “Find when growth is fastest (often by identifying ).”
- Common mistakes:
- Misreading the carrying capacity: in , is in the denominator inside the parentheses.
- Forgetting that is also an equilibrium solution.
- Assuming the solution reaches in finite time; in the continuous model, it approaches asymptotically.
Solving the logistic differential equation (separation and partial fractions)
You may be asked to solve a logistic differential equation explicitly, especially with an initial condition. The strategy is still separation of variables, but integration requires partial fractions.
Start with
Step 1: rewrite to a separable form
Rewrite
So
Separate:
Step 2: partial fraction decomposition
Decompose:
Solve:
Setting gives . Setting gives . Therefore,
Step 3: integrate both sides
Substitute and simplify:
Integrate carefully; the second term introduces a negative sign under substitution:
Combine logs:
Exponentiate and absorb sign into the constant:
Solve for :
A common equivalent form is
Step 4: apply an initial condition
If , then
So
and the particular solution can be written as
Example: solve a logistic IVP
Solve:
Here , , and .
So
Solving for time when a population reaches a value
Given
and a target , solve:
Isolate the exponential:
Then take logs:
A common algebra trap: sign mistakes in the log step
Because logistic solutions involve , it’s easy to lose a negative sign when taking logs. A strong habit is to isolate the exponential completely first, then take the natural log, then solve for .
Exam Focus
- Typical question patterns:
- “Solve the logistic differential equation and express in terms of , , and .”
- “Given a logistic model, find when the population reaches a specified value.”
- “Use the explicit solution to determine a limit as (long-term population).”
- Common mistakes:
- Incorrect partial fractions for or forgetting the negative sign from integrating .
- Losing track of constants when switching between and .
- Solving for but leaving an expression that does not simplify to a standard logistic form, then misapplying the initial condition.