Unit 4

Contextual Applications of Differentiation

~3 weeks · October · 5–10%
Why it's here now

Unit 5 asked what derivatives say about graphs. This unit asks what they say about the world. The calculus is mostly the same; what's being taught is modeling — turning a situation into an equation you can differentiate. That translation is the actual skill, and it's the one that transfers.

L'Hôpital's rule also lands here in most courses, because it needs derivatives. Full treatment below.

Motion along a line

Position s(t) → velocity v = s′ → acceleration a = v′ = s″.

QuestionAnswer
Speed|v| — a magnitude, never negative
Moving right / leftv > 0 / v < 0
Changes directionwhere v changes sign, not merely where v = 0
At restv = 0
Speeding upv and a have the same sign
Slowing downv and a have opposite signs
Why "speeding up" isn't "a > 0"

Speed is |v|, so speeding up means |v| is growing. If the object is moving left (v < 0) and acceleration is also negative, it's being pushed further left — moving faster in the negative direction. |v| grows. So negative acceleration can mean speeding up.

The clean statement: acceleration in the same direction as motion adds speed; acceleration opposing motion removes it. Same-sign, speeding up. Opposite-sign, slowing down. This is asked on nearly every AP exam and missed constantly.

Worked — a full motion analysis

A particle has s(t) = t³ − 6t² + 9t for t ≥ 0. Describe its motion.

v = 3t² − 12t + 9 = 3(t−1)(t−3)factor for the sign chart
v = 0 at t = 1, 3candidate direction changes
t=0: v=+9 · t=2: 3(1)(−1)=−3 · t=4: 3(3)(1)=+9sign chart: + − +
moves right, then left after t=1, then right after t=3both are genuine sign changes, so both are direction reversals
a = 6t − 12 = 6(t−2)negative before t=2, positive after
on (1,2): v < 0, a < 0 → same signspeeding up, despite moving backward and decelerating in the everyday sense
on (2,3): v < 0, a > 0 → opposite signs → slowing down

Note the interval (1,2): moving left and speeding up. Everyday language calls negative acceleration "slowing down," and here it's the opposite. Trust the sign rule, not the vocabulary.

Ahead of the syllabus — flagged for later

Displacement vs. total distance needs integrals and belongs in Unit 6. For the record: displacement over [a,b] is ∫v dt, and total distance travelled is ∫|v| dt. They differ whenever the object reverses. Above, the particle ends up somewhere modest but has covered more ground than that, because it doubled back between t=1 and t=3.

Related rates

Two or more quantities linked by an equation, all changing in time. Differentiate the equation with respect to t; the chain rule attaches a rate to every variable.

Why this is the chain rule and nothing else

In implicit differentiation, y is secretly a function of x. In related rates, everything is secretly a function of t. Same rule, different hidden variable. The curriculum presents them as separate topics; telling her they're one thing is worth doing.

The procedure

  1. Sketch it. Label anything that varies with a letter; label fixed quantities with numbers.
  2. Write the relation among the variables — geometry, or a physical law.
  3. Eliminate any variable whose rate you don't know, usually via similar triangles. Do this before differentiating.
  4. Differentiate with respect to t.
  5. Now substitute the instantaneous values.
  6. Solve. Check the sign and the units.
Reminder — similar triangles

Triangles with the same angles have proportional sides. If a small triangle sits inside a larger one sharing an apex and a direction, then small-height/small-base = big-height/big-base.

Example: a cone of total height 10 with top radius 5 has r/h = 5/10 at every depth, so r = h/2 always. That one substitution is what makes the cone problem solvable.

5 10 r h The water cone is similar to the whole cone, so r/h = 5/10 at every depth.
Worked — the cone

Water fills a cone (top radius 5 m, height 10 m) at 3 m³/min. How fast is the depth rising when h = 4?

V = (1/3)πr²hvolume of a cone — two varying quantities, only one known rate
r = h/2similar triangles; eliminate r before differentiating
V = (1/3)π(h/2)²h = πh³/12now one variable only
dV/dt = (πh²/4)·dh/dtdifferentiate in t; chain rule puts dh/dt on the h³
3 = (π·16/4)·dh/dtnow substitute dV/dt = 3 and h = 4
dh/dt = 3/(4π) ≈ 0.239 m/minunits: m³/min ÷ m² = m/min ✓
Trap — substituting before differentiating

If you plug h = 4 into the volume formula first, you've turned a variable into a constant and its derivative into zero. The answer comes out wrong and looks perfectly clean — there's no error message. Numbers go in only after the differentiation is done. This single mistake accounts for most related-rates failures.

Worked — the ladder

A 13 ft ladder leans on a wall. The base slides away at 2 ft/s. How fast is the top falling when the base is 5 ft from the wall?

x² + y² = 169Pythagorean; 13 is fixed, so it's a number, while x and y vary
2x·(dx/dt) + 2y·(dy/dt) = 0differentiate in t; the constant 169 gives 0
at x = 5: y = √(169−25) = 12find the other side at this instant
2(5)(2) + 2(12)(dy/dt) = 0substitute now, after differentiating
dy/dt = −20/24 = −5/6 ft/snegative because the top is descending

The sign carries meaning and should not be discarded. Also note the equation 2x·ẋ + 2y·ẏ = 0 says the two rates always trade off — which is why the top accelerates dramatically as the base nears the wall's far reach.

Standard setups

SituationRelation to differentiate
Ladder on a wallx² + y² = L², L constant
Streetlight shadowSimilar triangles
Two vehicles, right anglesz² = x² + y²
Angle of elevationtan θ = y/x → sec²θ·(dθ/dt) = …
Inflating sphereV = (4/3)πr³ → dV/dt = 4πr²·(dr/dt)
Cone or trough fillingSimilar triangles first, then the volume formula
Expanding rippleA = πr² → dA/dt = 2πr·(dr/dt)

Sign convention: decreasing quantities get negative rates. Declare it at setup rather than patching the sign at the end.

A better example than a ladder, if she wants one

Textbook related-rates problems are contrived because the honest ones need multivariable calculus. One that isn't: cumulative arrival and departure curves at a transit platform.

Riders arrive at rate λ(t); the cumulative count A(t) is its integral. Departures D(t) are a second curve. The vertical gap A − D is the queue length; the horizontal gap is an individual rider's wait; the area between the curves is total passenger-delay. The related rate — how fast is the queue growing? — is just A′(t) − D′(t).

Everything in that picture is a calculus object with a physical meaning she can point at, which the ladder is not.

Check — rate vs amount

Differentiating V = (4/3)πr³ gives dV/dt = 4πr²·(dr/dt). Check the units before the arithmetic: cm² × cm/s = cm³/s, a volume per unit time ✓.

If your answer came out in cm²/s you differentiated the surface area formula by mistake — a substitution slip, not an arithmetic one, and the units are the only thing that catches it.

Linear approximation

L(x) = f(a) + f′(a)(x − a)

This is the tangent line at a, used as a stand-in for f near a. It's Unit 2's second definition of the derivative deployed as a tool.

Worked — estimating a root by hand

Estimate √4.1.

f(x) = √x, choose a = 4pick the nearest point where you know the answer exactly
f(4) = 2, f′(x) = 1/(2√x), f′(4) = 1/4
L(x) = 2 + ¼(x − 4)
L(4.1) = 2 + ¼(0.1) = 2.025
√4.1 ≈ 2.025  (true value 2.02485…)accurate to four decimals

Is it an over- or underestimate? f″ = −1/(4x3/2) < 0, so f is concave down, so the tangent lies above the curve — this is an overestimate. And 2.025 > 2.02485 ✓. This over/under question is asked routinely and answered entirely by the sign of f″.

Differential The notation dy = f′(x)·dx, treating dx as a small change in x and dy as the resulting approximate change in y. It's linear approximation written as an increment rather than as a line. Used mainly for error propagation: if you measure a sphere's radius to within ±0.1, how far off might your volume be? Answer: dV = 4πr²·dr.
Not on the AP exam

Newton’s method is not tested on the AP Calculus exams — College Board’s own sample BC syllabus lists it, alongside Simpson’s rule, trigonometric substitution, and volume by cylindrical shells, as material beyond the Course Description. It appears here anyway because it is three lines long, it is the clearest possible demonstration that linear approximation is a tool and not just a fact, and it is the direct ancestor of Euler’s method in Unit 7 and of essentially all numerical optimization.

Read it for the idea; don’t spend drill time on it.

Check — sign and size

The tangent to y = √x at x = 4 estimates √4.1 ≈ 2.025. Since √x is concave down, the tangent line sits above the curve — so the estimate has to come out slightly high. It does: the true value is 2.02485.

Knowing which side of the curve your tangent line is on turns linear approximation from a guess into a bound.

Newton's method

xn+1 = xn − f(xn)/f′(xn)
Why the formula looks like that

You want a root of f. You have a guess xn. Replace f by its tangent line there — the linear approximation again — and solve that for zero instead, since solving a line is easy.

The tangent is y = f(xn) + f′(xn)(x − xn). Set y = 0 and solve for x: x = xn − f(xn)/f′(xn). That's the formula, derived in one line. Then repeat from the new point.

Convergence is quadratic — the number of correct digits roughly doubles each step. That's why it's still the workhorse root-finder three and a half centuries later.

x₀ x₁ x₂ the root tangent at x₀
Slide down the tangent line to the x-axis, land at x₁, take the tangent there, repeat. Each step is a linear approximation. The convergence is dramatic when it works — and it can fail, spectacularly, if the tangent is nearly horizontal or the starting guess is poor.
Worked — computing √2 by hand

Solve x² − 2 = 0 starting from x₀ = 1.

f(x) = x² − 2, f′(x) = 2x
x₁ = 1 − (1−2)/2 = 1 + 0.5 = 1.5
x₂ = 1.5 − (2.25−2)/3 = 1.5 − 0.08333 = 1.416673 correct digits
x₃ = 1.41667 − (0.006945)/2.83334 = 1.4142166 correct digits
√2 = 1.4142136… — digits doubling each step

L'Hôpital's rule — the proper treatment

Previewed in Unit 1 — here's the full version

You saw the statement and several worked examples in the limits unit. Everything there still stands. What follows is the part that needed derivatives: why it works, and the ways it fails.

If lim f/g has the form 0/0 or ∞/∞, then lim f/g = lim f′/g′.
Why it works — now that linear approximation exists

Near a, each function is well approximated by its tangent line. If f(a) = g(a) = 0, both tangent lines pass through zero there, so near a:

f(x) ≈ f′(a)(x − a)   and   g(x) ≈ g′(a)(x − a)

The ratio is f′(a)(x−a) / g′(a)(x−a), and the (x−a) cancels, leaving f′(a)/g′(a).

L'Hôpital is cancelling the common factor again — the same move as factoring in Unit 1, executed with tangent lines instead of algebra. That's exactly why it requires the 0/0 condition: without it the tangent lines don't both pass through zero and there's no shared factor to cancel.

(The honest proof uses the Cauchy Mean Value Theorem, a two-function version of MVT, rather than this hand-wave. The intuition is right and the machinery is Unit 5's.)

The three failure modes

Failure 1 — applying it to a form that isn't indeterminate

limx→0 (x + 2)/(x + 1) is just 2/1 = 2. Apply L'Hôpital anyway and you get 1/1 = 1. Wrong, with no warning. Always check the form first.

Failure 2 — it cycles forever
limx→∞ x/√(x²+1) is ∞/∞, so the rule is legal
→ 1/[x/√(x²+1)] = √(x²+1)/xwhich is the reciprocal of the original
applying again returns the originalinfinite loop
Algebra instead: divide by x → 1/√(1+1/x²) → 1

Legal is not the same as useful. If two applications haven't simplified anything, stop and look for algebra.

Failure 3 — the derivative ratio has no limit, but the original does

limx→∞ (x + sin x)/x is 1 — divide by x and the sin x/x term dies. But L'Hôpital gives (1 + cos x)/1, which oscillates forever and has no limit. The rule says "if the limit of f′/g′ exists, then it equals the original." When it doesn't exist, the rule tells you nothing — it does not tell you the original fails to exist.

Worked — a repeated application

Find limx→0 (ex − 1 − x)/x².

substitute: (1 − 1 − 0)/0 = 0/0 ✓check the form before anything else
→ (ex − 1)/(2x)differentiate top and bottom separately
still 0/0 at x = 0re-check the form each time
→ ex/2apply again
= 1/2now substitutable

The answer ½ is the coefficient of x² in the Taylor series for ex. That's not a coincidence — Unit 10 will show that L'Hôpital and Taylor series are two views of the same fact.

Where linear approximation goes

Next stop — multivariable calculus. With several inputs, "slope" is meaningless but "best linear approximation" still works: the derivative becomes a gradient vector pointing in the direction of steepest increase, and then a Jacobian matrix when the output is also multidimensional.

Then — optimization and machine learning. Gradient descent is literally "compute the gradient, step downhill, repeat" — Newton's method's cousin, run in ten million dimensions. Backpropagation is the chain rule applied through a composed function with millions of layers. If she is at all interested in AI, this is the honest answer to "what is calculus for": the entire training procedure of a neural network is Unit 3's chain rule plus Unit 4's linear approximation, at scale.

Beyond BC · what a college course does here

The actual proof of L'Hôpital, via the Cauchy Mean Value Theorem — a two-function version of the MVT from Unit 5.

Cauchy MVT: for f, g continuous on [a,b] and differentiable on (a,b),
there is a c with  [f(b) − f(a)]·g′(c) = [g(b) − g(a)]·f′(c)

Setting g(x) = x recovers the ordinary MVT, so it's a genuine generalization. Now suppose f(a) = g(a) = 0. Cauchy MVT gives, for each x near a, some c between a and x with

f(x)/g(x) = [f(x) − f(a)]/[g(x) − g(a)] = f′(c)/g′(c)

As x → a, c is squeezed to a as well, so the left side approaches whatever f′/g′ approaches. That's L'Hôpital, properly. The tangent-line argument in the main text is the honest intuition; this is the machinery that makes it airtight — and it explains why the theorem needs the 0/0 hypothesis so specifically.

Beyond BC · the Russian approach to this unit

Error propagation as relative error — the differentials material done the way a physicist would.

If y = f(x) and x carries a small error dx, then dy ≈ f′(x)dx. But the useful quantity is usually the relative error dy/y:

dy/y = [f′(x)/f(x)]·dx = (d/dx[ln f])·dx

So relative error is governed by the derivative of the logarithm — which is exactly why logarithmic differentiation exists as a technique.

Worked: a sphere's radius is measured as 10 cm ± 1%. What's the relative error in the volume?

V = (4/3)πr³, so ln V = ln(4π/3) + 3 ln rtake logs first
dV/V = 3·(dr/r)differentiate
= 3 × 1% = 3%a cubed quantity triples the relative error

The general rule falls straight out: raising to a power multiplies relative error by that power; multiplying quantities adds their relative errors. Two facts that cover most of experimental science, both consequences of ln turning products into sums.

Formula sheet

Unit 4 — Contextual Applications

Motion

Related rates

Approximation

L’Hôpital

Practise Unit 4 → Fresh problems from this unit, with worked solutions.