Week 10 In-Depth — Why Differentiation Solves These Problems
//body
← Back to weekRead the cheatsheet first. This note explains why each technique works and walks through one substantial worked example per topic, with every step on the page.
1 — Why critical points are special
A continuous, smooth function can only hit a local maximum or minimum at:
- an interior point where the tangent line is horizontal (i.e. ), or
- an interior point where is not differentiable (a corner, cusp, or vertical tangent — i.e. undefined), or
- an endpoint of the interval (only relevant when the domain is bounded).
The first two cases together are what we call critical points. The job of “find the max/min” reduces to “find the critical points, then sort which is which.”
Why the second derivative test works
Near a critical point , Taylor’s theorem says
Because at a critical point, the linear term vanishes:
Now always, so:
- If , then for all small — is a min.
- If , then for all small — is a max.
- If , the quadratic term vanishes too, and the sign of is determined by higher-order terms — the test is inconclusive and you fall back to inspecting how behaves either side of .
That last bullet is why you must be honest when . It is not a saddle and it is not an inflection point by default — it is “I don’t know yet, look closer.”
Worked example with all the steps —
Differentiate:
Set to zero: . Three critical points.
Take :
Now classify each:
- : → local min at .
- : → local max at .
- : . Inconclusive. Check on either side: … wait, let me redo. Actually is always , and for . So near , on both sides. Same sign → neither. So is an inflection point, not a max or min.
The takeaway: when , slow down, write out the factored near , and check the sign change directly.
2 — Why optimization always reduces to one variable
Word problems give you two facts:
- A constraint linking your variables, such as , , or . This is a relationship with zero degrees of freedom given the constraint.
- An objective function of those variables (the thing to maximise or minimise: area, cost, length).
If you tried to apply to a function of two variables, you’d be working in multivariable calculus. The constraint saves you — solve it for one variable in terms of the other, substitute into the objective, and now you have a function of one variable. Single-variable calculus applies.
That is the entire reason the constraint exists in the problem statement. If you find yourself stuck staring at two variables, you haven’t substituted.
Worked example — the offshore well
An offshore well sits at , 6 km from the closest shore point . Oil is piped to shore point , 8 km from along the shoreline. Pipe runs straight from to a shore point between and (under water at \100,000PB$75,000P$ be?
Set up. Let = distance from to , so .
Distance under water: is 6 km offshore, is km along the shore from , so
Distance over land: from to is just .
Cost objective (in dollars, dropping the per-km units):
Differentiate:
Set to zero:
Square both sides:
Classify. Either confirm with at , or note C(0) = 100\,000 \cdot 6 + 75\,000 \cdot 8 = \1,200,000C(8) = 100,000 \sqrt{100} \approx $1,000,000$ — the interior critical point gives a lower value than both endpoints, so it’s the minimum.
Plug back in:
So pipe should hit the shore km from , at a total cost of \approx \996,862.70$.
Why this matters more than the answer
The recipe is always the same. Variables → constraint → objective → substitute → optimise → classify → answer with units. Once you’ve done it twice, every optimization problem is a fill-in-the-blank.
3 — Where the chain rule comes from in related rates
Two quantities and are linked: . Both depend on time.
You don’t get to write directly. You have to use the chain rule:
That’s literally what the chain rule says: varies with , varies with , so ‘s rate of change in time is the product.
For : . So
Notice that depends on the current value of , not just on . That’s why the question always tells you “at the instant when mm” — without an instant, you can’t compute a number.
The “differentiate, then substitute” rule
If you substitute before differentiating, you get — a constant. Constants differentiate to zero. So your final answer is , which is wrong.
Always:
- Write the symbolic relationship first.
- Differentiate symbolically with respect to .
- Then substitute the instantaneous values.
Worked example — the artery
A drug widens an artery. mm/month, constant. Find when mm.
Relationship: .
Differentiate w.r.t. :
Substitute the instant:
A nice consequence: because is constant, is linear in — and itself grows linearly in time. So the rate at which the area grows increases over time, even though the radius grows at a constant rate. That’s the geometric intuition: a bigger circle has more boundary, so each unit of radius adds more area.
4 — How these three connect
All three techniques use , but they use it for different reasons:
| Technique | What’s doing? |
|---|---|
| Critical points | is the condition for an interior extremum. |
| Optimization | Same — you build an objective, then critical-point it. Optimization is critical-point analysis dressed up in a real-world story. |
| Related rates | is used as a converter between rates of change. The chain rule’s middle term () is just for . |
So really, this whole week is one technique applied three ways. If you understand deeply, optimization is just substitution then critical-point analysis, and related rates is just chain rule then instant values.
5 — Exam-style sample, end-to-end
A 4 m wide rectangular tank with an open top is to be built. It must hold 36 m³. The base costs \10$5$/m². What dimensions minimise the cost?
Setup.
| Item | LaTeX model |
|---|---|
| Variables | Length , height , fixed width |
| Constraint | |
| Base area | |
| Side area | |
| Objective | Minimise total cost |
Sub in and :
Differentiate.
Critical point.
The positive root is the only physical solution.
Classify.
So the critical point is a minimum.
Plug back in.
Answer. The tank should be 3 m long, 4 m wide, 3 m tall, costing \330$.
That layout — Variables, Constraint, Objective, Substitute, Differentiate, Critical point, Classify, Answer — is the template for every optimisation question on the paper.
Where to look next
- The cheatsheet for fast revision + the quiz.
- The workshop PDFs (cited in frontmatter) for more practice problems.
- Whatever you add to this folder — Lecture Atlas picks up any new Markdown note automatically.