AP Calculus BC Unit 7 Notes: Solving Differential Equations (Separable, Exponential, Logistic)
Separation of Variables: General and Particular Solutions
A differential equation is an equation that relates a function to one or more of its derivatives. In AP Calculus, you most often see first-order differential equations, where the derivative looks like or . Solving a differential equation means finding a function (or family of functions) whose derivative behavior matches the equation.
A powerful and commonly testable technique is separation of variables. You use it when the differential equation can be rearranged so that all the -terms are on one side and all the -terms are on the other side. Once separated, you integrate both sides to “undo” the derivatives.
What “separable” means (and why it matters)
A first-order differential equation is separable if it can be written (or rearranged) in the form
where is a function of only and is a function of only. This matters because it lets you treat the derivative as a fraction (with care) and move factors around:
and then
At that point, each side involves only one variable, so you can integrate both sides.
Conceptually, separation of variables works because you’re rewriting the statement “the rate of change of depends on both and ” into a form where changes in can be matched to changes in through integrals.
General solution vs. particular solution
When you integrate, you introduce an arbitrary constant. That’s because many different functions can have the same derivative “pattern” except for a vertical shift or scaling.
- A general solution is a whole family of solutions that includes an arbitrary constant (often ).
- A particular solution is the single solution you get after using an initial condition, like , to determine that constant.
In AP questions, you’re often expected to find the general solution first, then apply an initial condition to produce the particular solution.
The standard separation procedure (mechanism)
Suppose you’re given a separable differential equation.
- Rewrite the equation so that you clearly see which parts depend on and which depend on .
- Separate: move all expressions (including ) to one side and all expressions (including ) to the other.
- Integrate both sides.
- Combine constants into a single constant .
- Solve for if possible (sometimes an implicit solution is acceptable or even expected).
- Apply the initial condition (if given) to find the particular solution.
A common point of confusion: you’ll sometimes see an implicit step where is treated like a fraction. This is justified here because the separation comes from algebraic manipulation consistent with the chain rule, but you still need to separate correctly before integrating.
Important notation (so you don’t get tripped up)
In calculus, the derivative can be written in different ways. These are equivalent when depends on :
| Meaning | Common notation | Another common notation |
|---|---|---|
| derivative of with respect to | ||
| derivative of with respect to |
On the AP exam, and Leibniz notation are common in differential equations because they make separation more visually natural.
Example 1: Solving a separable differential equation (general solution)
Solve
Step 1: Separate variables. Put all terms with and all terms with .
Step 2: Integrate both sides.
Step 3: Solve for .
Multiply by and absorb the sign into the constant (renaming constants is allowed):
Invert:
This is a general solution because it contains an arbitrary constant .
What can go wrong here: forgetting that (the negative sign is easy to miss), or incorrectly integrating .
Example 2: Particular solution using an initial condition
Solve the initial value problem
with .
Separate:
Integrate:
A key detail: , not without absolute value.
Exponentiate to solve for :
Rewrite as a positive constant :
This implies
where can be any nonzero real constant (positive or negative), which accounts for the absolute value.
Apply the initial condition :
So the particular solution is
What can go wrong here: dropping the absolute value too early and accidentally excluding negative solutions, or mishandling exponent rules when solving for .
A subtle but important point: equilibrium (constant) solutions
Sometimes you divide by an expression involving to separate variables. If that expression can be zero, you may accidentally lose solutions.
For example, if
and you divide by , you are assuming and . But and are actually valid constant (equilibrium) solutions because they make everywhere.
A good habit: before dividing by something involving , quickly ask, “Could that be zero? If so, does it create a constant solution?”
Exam Focus
- Typical question patterns:
- “Solve the differential equation” followed by “use to find the particular solution.”
- “Find as a function of ” and then evaluate at a new input.
- “Show that the solution can be written as …” (often expecting separation, integration, and algebraic rearrangement).
- Common mistakes:
- Forgetting the constant of integration or failing to use the initial condition to determine it.
- Incorrect integration, especially and negative exponents.
- Dividing by a factor like and losing an equilibrium solution (not always tested, but it’s a classic trap).
Exponential Models with Differential Equations
An exponential growth/decay model is based on the idea that the rate of change of a quantity is proportional to the amount present. This is one of the most important modeling ideas in calculus because it turns a real-world statement about “rate” into a differential equation you can solve.
The core idea: “proportional to the amount present”
If is a quantity depending on time , “the rate of change is proportional to the amount present” translates to
Here:
- is the amount at time .
- is a constant of proportionality.
- means growth.
- means decay.
- Units: has units of “per unit time” (for example, per year).
This differential equation is separable, so you can solve it with the method from the previous section.
Solving the exponential differential equation
Start with
Separate variables:
Integrate:
Exponentiate:
Rewrite as a positive constant :
So
where can be any nonzero real constant. In most applied settings, represents a positive amount, so you usually take .
Why initial conditions matter in models
In modeling problems, you rarely want the whole family . You want the specific model that matches the initial amount:
If , then
so
This gives a clear interpretation: is the starting amount, and controls how quickly it grows or decays.
Doubling time and half-life (how they connect)
Even when a problem doesn’t explicitly ask for , you may be given a doubling time (growth) or half-life (decay). These come from solving for the time when the amount is multiplied by a factor.
If :
- Doubling time satisfies , so
- Half-life satisfies , so
For decay, , which makes positive as expected.
Example 1: Find an exponential model from data
A population follows . You are told and . Find .
From the general solution,
Use :
So
Use :
Take natural log:
Therefore,
It’s common (and often cleaner) to rewrite using exponent properties:
Since for ,
Both forms are equivalent. AP problems usually accept either, as long as it’s correct.
Example 2: Interpreting the constant
Suppose a substance decays according to . If (per day), then
The negative sign tells you the amount decreases, and the magnitude controls how quickly. A common mistake is to write just because you associate exponentials with growth—always check the sign of .
Exam Focus
- Typical question patterns:
- Given with one or two data points, find or find .
- Given a half-life or doubling time, write an exponential function and use it to predict a future value.
- Interpret the meaning of in context (growth rate vs. decay rate, units).
- Common mistakes:
- Forgetting that the solution is (not unless ).
- Using base-10 logs instead of natural logs when solving for .
- Losing the sign: decay requires , and that affects algebra and interpretation.
Logistic Models with Differential Equations
Exponential models assume “more present means proportionally faster growth,” forever. That’s often unrealistic—populations run out of resources, infections slow as fewer susceptible people remain, and growth levels off. The logistic model modifies exponential growth by building in a limiting value called a carrying capacity.
The key idea: growth slows as you approach a maximum
A standard logistic differential equation is
where:
- is the population (or quantity).
- is a growth constant.
- is the carrying capacity, the long-term maximum sustainable value.
The factor is the “slowdown” term:
- If is small compared to , then is near 0, so is near 1, and the equation behaves almost like exponential growth .
- If is close to , then is near 0, so growth slows dramatically.
- If , then becomes negative, making , so the model pushes the population back down toward .
This built-in feedback is why logistic growth tends to level off.
Equilibrium solutions and what they mean
Set :
This happens when:
or
which gives
So the logistic model has two equilibrium (constant) solutions: and .
In many contexts, is an unstable equilibrium (tiny positive populations grow away from 0), while is stable (solutions approach it). You don’t usually need formal stability analysis in AP Calculus, but you should be able to interpret that is the long-term limiting value.
Solving the logistic differential equation (separation of variables)
Because it’s separable, you can solve it analytically.
Start with
Rewrite the right-hand side in a form that’s easier to separate:
Separate variables:
To integrate the left side, you use partial fractions:
So
Integrate term-by-term (and be careful: because the derivative of is ):
Multiply both sides by :
Combine logs:
Exponentiate:
Let and absorb sign into a new constant (in typical population contexts so the fraction is positive anyway):
Solve for :
A common equivalent form divides numerator and denominator by :
where . This form is often easiest for applying an initial condition.
Applying an initial condition in the logistic model
If , use
Solve for :
So the particular solution can be written as
This is a great form to remember because it directly shows how sets the curve.
Shape facts you’re expected to understand (not just the formula)
The logistic model has a characteristic S-shape when :
- Early on, growth is almost exponential.
- Growth speeds up until a point, then slows.
- The population approaches asymptotically.
A particularly important, testable idea: the growth rate is maximized when . You can see this without heavy calculus by noticing is a parabola in with its maximum at the midpoint.
That midpoint is also the inflection point of the logistic solution curve (where concavity changes), which sometimes appears in interpretation questions.
Example 1: Logistic model with an initial condition
A population follows
and . Write .
Here and , so
Use :
So
Common pitfall: mixing up where the negative sign goes. The standard approach with leads to in the denominator form; if you instead keep , your constant will change form, but the final model should still behave correctly (increasing toward when ).
Example 2: When does the population reach a certain size?
Using
find when .
Set up the equation:
Invert both sides:
Multiply by 1000:
Take natural log:
This is a typical AP-style “solve for time” step after building the model.
What goes wrong most often in logistic algebra
Logistic solutions are algebra-heavy, so many errors are not calculus errors—they’re equation-solving errors.
Common issues include:
- Losing parentheses when solving for (for example, distributing incorrectly when you have ).
- Sign mistakes in the logarithm step, especially with .
- Forgetting that equilibrium solutions and exist even though separation divides by .
Exam Focus
- Typical question patterns:
- Given a logistic differential equation, solve for using an initial condition.
- Interpret parameters: identify the carrying capacity and explain what it means in context.
- Solve for the time when hits a threshold, or find when the growth rate is greatest (often at ).
- Common mistakes:
- Treating logistic growth as exponential and predicting it grows without bound.
- Dropping equilibrium solutions by dividing by or without noting or .
- Incorrect partial fraction setup or missing the negative sign in .