AP® CALCULUS AB & BC · UNIT 7

Modeling Situations with Differential Equations

Turn verbal rate statements into mathematical models. Define variables, check signs and units, and distinguish a quantity from its rate of change.

Topic 7.1 study notes8 worked examples · 8 practice questionsUpdated 11 November 2026
Calculus notebook with limit and integral symbols, a compass and pencil on an olive and cream study desk

1. Translate a rate relationship into an equation

A differential equation relates an unknown function to one or more of its derivatives. It describes how a quantity changes. Topic 7.1 asks you to translate verbal information into a differential equation; solving the equation is a separate task.

AP Calculus AB and BC · Topic 7.1. The course framework identifies learning objective FUN-7.A, essential knowledge FUN-7.A.1 and skill 2.C: connecting a verbal description with a derivative expression.

A common first-order form is

dydt=f(t,y).

Here t is the independent variable and y(t) is the changing quantity. An equation such as dydx=3x2 is also a differential equation even though the undifferentiated quantity does not appear on the right.

The derivative dQdt is an instantaneous rate; ΔQΔt is an average rate over an interval. A quantity and its rate have different units.

2. Words, signs and common model families

Translate the rate statement, with its assumptions
WordsModelInterpretation
“Increases at a constant rate”dQdt=cc>0; the rate does not depend on the current quantity.
“Grows at a rate proportional to its amount”dQdt=kQFor a positive amount, take k>0.
“Decays at a rate proportional to its amount”dQdt=−kQUse k>0 in this sign convention.
“Changes toward a target value”dQdt=k(L−Q)For k>0, the sign depends on the gap from L.
“Accumulation equals input minus output”dQdt=rin−routBoth rates must measure the same quantity per unit time.

“Proportional to” requires a constant multiplier. A single starting amount does not determine that constant. For proportional and target-gap models, k has reciprocal-time units. For example, if time is in minutes, its units are min−1.

Cooling and heating: choose one consistent sign convention

dTdt=−k(T−Ts),k>0

This is equivalent to k(Ts−T) on the right with the same positive constant. Above the ambient temperature Ts, the object cools; below it, the model predicts warming. Writing c(T−Ts) instead is valid with c=−k<0. Do not use the same stated sign for both constants.

Common model families

The signed form dydt=cy permits c>0 for proportional growth and c<0 for proportional decay of a positive amount. Its familiar solution y(t)=y0ect assumes y(0)=y0; solving it belongs later in Unit 7. The target-gap model dydt=k(L−y), with k>0, can describe approach toward a limiting value under appropriate assumptions.

BC preview · Preserve the logistic model

Logistic modeling is developed in Topic 7.9, a BC-only topic. One common form is

dPdt=kP(1−PM),k>0,M>0.

Here M is the carrying-capacity equilibrium, and k has reciprocal-time units. For 0<P<M, the rate is positive; at P=M, it is zero; for P>M, it is negative. Carrying capacity is not a hard upper bound on every possible initial value.

3. Functions, initial values and terminology

Vocabulary for functions, rates and initial values
TermMeaning
Independent variableThe input, often time t, including its units.
Dependent variableThe changing quantity, such as population P(t), amount S(t) or temperature T(t).
SolutionA differentiable function that satisfies the equation on an interval.
General solutionA family of solutions, often written with an arbitrary constant C.
Particular solutionA specified member of the family; numerical constants may remain, but no arbitrary constant is left.
Initial conditionA value such as y(t0)=y0, stated at a particular input.
Initial value problemA differential equation together with an initial condition.
OrderThe highest derivative appearing in the equation.

For example, y=x2+C is a family satisfying dydx=2x. With y(0)=3, the member y=x2+3 satisfies both the equation and the initial value. Checking a function is developed in Topic 7.2; an initial condition supplies a value, rather than a rate.

Background on order: the equation d2ydx2+y=0 is second order. More general notation can be written as

F(x,y,dydx,d2ydx2,…)=0.

The main modeling work in this AP topic concerns first-order equations. Higher-order notation is background, not an added requirement to solve these equations here.

4. A five-step modeling process

  1. Define the variables. State the independent variable, the quantity being modeled, and their units.
  2. Identify the requested rate. Decide whether the story concerns an amount, a temperature, a position or a velocity. Choose the corresponding derivative.
  3. Translate the relationship. Distinguish a constant rate, proportionality, a target difference, and a net input-output balance.
  4. Determine signs and constants. Check a physically meaningful state. Use any measured rate to determine a coefficient; do not invent a measurement.
  5. Add the initial condition and assumptions. State any given starting amount, mixing assumption, fixed environment or valid time interval. Check that both sides have matching units.

A complete modeling answer can consist of a differential equation, its initial condition and an explanation. Only calculate a solution function when the question also asks for one.

5. Eight colorful worked examples

Example 1 · Translate proportional population growth

A bacteria population grows at a rate proportional to its current size and initially contains 1000 bacteria. Write the model, taking t in hours.

1 · Define the population and its rate

Let P(t) be the population in bacteria. Its rate has units bacteriah. “Proportional to its size” means that the rate is a constant times P.

2 · Include the initial value and sign

dPdt=kP,P(0)=1000

Use k>0, with units h−1, while this growth assumption is appropriate. The starting population alone does not determine k.

Example 2 · Model cooling with a consistent sign

Coffee initially at 90∘C is placed in a room held at 20∘C. Its temperature changes at a rate proportional to its difference from room temperature. Set up the model with t in minutes.

1 · Use the temperature gap

Let T(t) be the coffee temperature in degrees Celsius. Above room temperature, the gap T−20 is positive but the rate must be negative.

2 · Write the equation and initial condition

dTdt=−k(T−20)
T(0)=90,k>0

The coefficient has units min−1. A constant room temperature and a single effective coffee temperature are model assumptions. An equivalent signed-constant form is c(T−20) with c<0.

Example 3 · Balance salt entering and leaving a well-mixed tank

A tank contains 100 gallons of well-mixed brine and initially 20 pounds of salt. Pure water enters at 5 gallons per minute, and mixture leaves at the same volume rate. Model the salt amount S(t), with t in minutes.

1 · Check volume and concentration

Equal volume inflow and outflow keep the liquid volume at 100 gallons. The salt concentration is S(t)100 pounds per gallon. Pure-water inflow contributes no salt.

2 · Compute the salt outflow rate

rout=S100·5=S20

Concentration times volume flow gives pounds of salt per minute. The well-mixed assumption makes the outlet concentration equal to the tank concentration.

3 · Subtract output from input

dSdt=0−S20=−S20
S(0)=20

For a positive salt amount, the rate is negative. At S=8, the instantaneous rate is −25 pounds per minute. The volume flow of 5 gallons per minute is not itself a salt-mass rate.

Example 4 · Distinguish constant net inflow from proportional growth

A water tank initially contains 200 liters. Water enters at 12 liters per minute and leaves at 8 liters per minute. Write a model for its volume V(t).

1 · Balance rates of the same quantity

dVdt=12−8=4

Each term has units Lmin. The net rate is constant; it does not depend on the volume already present.

2 · Add the starting volume and domain assumption

V(0)=200

The model applies while the stated flows are maintained and the tank is neither empty nor full. The derivative is 4; the initial volume is 200. These are different pieces of information.

Example 5 · Determine a proportionality constant from a measured rate

A population grows proportionally to its size. When P=1000 bacteria, its instantaneous rate is 50 bacteria per hour. Determine the model and the rate when P=2000.

1 · Use the measured rate to find the constant

50=k(1000)
k=501000=120

The units of k are h−1. A measured amount and its simultaneous rate supply information that an initial amount alone does not.

2 · Write the model and evaluate a new state

dPdt=P20
dPdt|P=2000=100

The new rate is 100 bacteria per hour. If the observed state is the starting time, append P(0)=1000.

Compare · Constant addition is a different assumption

The model dPdt=50 also has rate 50 when P=1000, but it keeps that rate at P=2000. One shared observation does not make the two models equivalent.

Example 6 · Use a cooling measurement to calibrate the model

For the coffee in Example 2, the initial instantaneous rate is −14 degrees Celsius per minute. Determine k and predict the rate at T=55∘C.

1 · Substitute the initial temperature and its rate

−14=−k(90−20)
k=1470=15

The units are min−1. The coefficient k is positive; the cooling sign is already in the equation.

2 · Evaluate the rate at the specified temperature

dTdt=−T−205
dTdt|T=55=−7

At 55∘C, the temperature is decreasing at 7 degrees Celsius per minute. This is a rate prediction at a given state, not a calculation of when the coffee reaches that temperature.

Example 7 · Model a rate that changes with time

A tank initially holds 30 liters. At time t minutes, the inflow rate is 3t2+2 liters per minute and the outflow is 5 liters per minute. Model the volume W(t).

1 · Subtract the time-dependent rates

dWdt=(3t2+2)−5=3t2−3
W(0)=30

The numerical expression uses t in minutes. Dimensionally, the coefficient of t2 has units Lmin3, while the constant rate terms have units Lmin.

2 · Test the signs at useful times

At t=0, the volume decreases at 3 liters per minute. At t=1, the net rate is zero. At t=2, the net rate is 9 liters per minute. Water can be flowing in even while the total amount is decreasing.

Use the model only for t≥0 while the prescribed flows hold and the tank remains within its capacity.

Example 8 · Distinguish a model from a proposed solution · Topic 7.2 preview

The existing verification example asks whether y=3e2x satisfies dydx=2y. Check both sides without solving a new equation.

1 · Differentiate the proposed function

dydx=6e2x

2 · Evaluate the right side using the same function

2y=2(3e2x)=6e2x

The expressions agree for every real x, so this function is a solution. It also has y(0)=3, if that initial condition is specified.

The differential equation describes a rate relationship; the particular function supplies values as well. Verification continues in the next topic.

6. Read rate-versus-state graphs

These are rate-versus-state graphs. Their vertical coordinates are derivative values, not population or temperature values. The curves are plotted directly from the equations; no solution curve is being assumed.

Constant and proportional population rates

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0 1000 2000 P (bacteria) 0 50 100 R (bacteria h⁻¹) Proportional Constant
The solid line is R(P)=P20, and the dashed line is R(P)=50, in bacteria per hour. Both give 50 at P=1000. At P=2000, their rates are 100 and 50, respectively. Dots mark comparison states.

Temperature determines the signed rate

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0 20 55 90 100 T (°C) −15 −10 −5 0 5 R (°C min⁻¹)
The line gives R(T)=−T−205, in degrees Celsius per minute. Marked states are (20,0), (55,−7) and (90,−14). Below ambient temperature, the rate is positive; above it, negative. Window edges are viewing limits, not domain endpoints.

The axes use the labeled state and rate units with independent scales. Use the coordinates and units to interpret a slope or a rate; visual angle alone does not determine a physical rate.

7. Eight practice questions with complete solutions

Problem 1

Assume a positive population undergoes continuous proportional decay with an instantaneous relative rate of 5% per year. Model P(t) with t in years.

Show solution 1

Solution

dPdt=−0.05P

The coefficient has units yr−1, and no initial population was supplied. This preserves the original percentage-decay example with an explicit continuous-rate assumption. A percentage loss reported only over one full year does not by itself specify an instantaneous differential-equation model.

Problem 2

An object initially at 80∘F is placed in a freezer held at 0∘F. Its temperature changes proportionally to the difference from the freezer temperature. Write the model.

Show solution 2

Solution

dTdt=−k(T−0)=−kT
T(0)=80,k>0

Specify time units when using a numerical coefficient. The alternate form cT uses c<0, a different sign convention.

Problem 3

An account earns interest at a continuous annual rate of 4%. Write a model for the balance A(t), with t in years.

Show solution 3

Solution

dAdt=0.04A

The rate of interest accumulation is proportional to the balance; the coefficient has units yr−1. No initial balance was given.

Problem 4

The rate of change of velocity is proportional to velocity. Let t be seconds and v(t) be velocity in meters per second. Set up the equation.

Show solution 4

Solution

dvdt=kv

The derivative is acceleration, with units ms2, and k has units s−1. The wording alone does not specify the sign of k. If a model explicitly describes resistance opposing velocity, a positive resistance coefficient would instead appear with a minus sign.

Problem 5

A well-mixed tank has a constant volume of 60 liters. Solution containing 2 grams of salt per liter enters at 3 liters per minute; mixture leaves at 3 liters per minute. Initially there are 12 grams of salt. Model S(t).

Show solution 5

Solution

The salt input rate is 2·3=6 grams per minute. The output rate is S60·3=S20 grams per minute.

dSdt=6−S20
S(0)=12

The initial net rate is 275 grams per minute. Well-mixed output and equal volume flows are necessary assumptions.

Problem 6

A population increases proportionally at an instantaneous relative rate of 0.03 per year, while 40 individuals per year are removed. Initially the population is 2000. Write its model and initial net rate.

Show solution 6

Solution

dPdt=0.03P−40
P(0)=2000

The initial net rate is 0.03(2000)−40=20 individuals per year. This is proportional growth combined with a fixed removal rate, not pure proportional growth. Apply it only where the population model remains physically meaningful.

Problem 7

A quantity moves toward a target of 900 units at a rate proportional to the remaining gap. Initially Q=200, and the initial rate is 35 units per hour. Determine its model.

Show solution 7

Solution

35=k(900−200)
k=35700=120
dQdt=900−Q20
Q(0)=200

The coefficient has units h−1. At Q=900, the predicted rate is zero.

Problem 8

An amount Q(t) is measured in liters, and t is in minutes. The rate is said to be proportional to the amount, with k measured in min−1. Is dQdt=kQ2 the correct model?

Show solution 8

Solution

No. Proportionality to the amount gives

dQdt=kQ.

Its right side has units Lmin. With the stated units of k, the proposed quadratic right side would have units L2min, which do not match the derivative. A model proportional to the square would be a different verbal assumption and require different coefficient units.

8. Common mistakes and AP-style explanations

  1. Differentiate the intended quantity. Amount, concentration, volume and temperature require different definitions. A flow of liquid is not automatically a flow of dissolved salt.
  2. Keep value and rate separate. The condition P(0)=1000 supplies a population, not a rate. A derivative needs amount-per-time units.
  3. Include the proportionality constant. Check whether the wording means proportional to the amount, its square, or a difference. One initial value alone does not calibrate a rate constant.
  4. State the sign convention. With a positive cooling coefficient, write the minus sign for a positive temperature gap. Test a state above and below the ambient temperature.
  5. Use a net balance. Input and output must refer to the same quantity and units before subtracting them.
  6. State assumptions and restrictions. Examples include well-mixed contents, constant surroundings, no overflow, nonnegative amounts and a time interval over which the stated relationship is reasonable.
  7. Write the given initial condition. Do not invent starting data. If verifying a proposed function, check the equation and any supplied initial condition separately.
  8. Answer the modeling question asked. A correct setup does not require a closed-form solution unless that is requested. A successful fit or a plausible curve alone does not prove that a real-world model will hold indefinitely.

A clear AP-style response defines the variables, gives the equation and initial condition, and explains the proportionality, sign or input-output relationship. Units and a test state make that explanation checkable.

9. Questions about differential-equation models

What is the difference between a differential equation and its solution?

The equation states a relationship involving derivatives. A solution is a function satisfying that relationship on an interval. A constant function can also be a solution when the equation permits zero rate.

Do I need to solve the equation in Topic 7.1?

This topic focuses on translating verbal information into a derivative model. Solving, verifying functions and interpreting slope fields are developed in later topics. Follow the particular task rather than solving automatically.

How do I choose a growth or decay sign?

Define the quantity and examine the stated relationship. For a positive amount, proportional growth has a positive rate and proportional decay a negative rate. A target-gap model can change sign depending on whether the amount is below or above the target.

Why can two cooling formulas use different signs for the constant?

The form −k(T−Ts) uses k>0. The form c(T−Ts) uses c<0. They agree when c=−k; using the same sign for both constants would change the prediction.

Does an initial value determine the rate constant?

Usually not by itself. A starting amount and a simultaneous measured rate can determine a proportionality coefficient, as shown in Examples 5 and 6. Otherwise leave an unspecified coefficient in the model.

Why does mixing matter in a tank model?

Well-mixed contents let the outlet concentration equal total solute amount divided by tank volume. Multiply concentration by the volume outflow rate to obtain the solute output rate. If the volume changes, use that changing volume in the concentration.

Is logistic growth required as core Topic 7.1 content?

Topic 7.1 is shared AB and BC modeling content. The preserved logistic model is labeled as a BC preview for Topic 7.9. Its carrying capacity is an equilibrium of the model, not a universal bound on every initial condition.

10. Continue through Unit 7

Continue to Topic 7.2: verifying solutions, then Topic 7.3: sketching slope fields. Topic 7.8: exponential models develops proportional growth and decay, while Topic 7.9: logistic models is BC only.