4.1.31 · D4Calculus I — Limits & Derivatives

Exercises — Optimization — constrained, unconstrained, real-world problems

2,419 words11 min readBack to topic

Before we start, three words we will lean on, defined in plain language:


Level 1 — Recognition

L1.1 — Spot the critical points

State every critical point of .

Recall Solution

What we do: find where the slope is zero. Why: critical points are the only candidates for extrema. Set : or . The slope is a polynomial, so it never "fails to exist" — those two are the complete list. Answer: critical points at and .

L1.2 — Which point is a maximum?

For the same , use the second-derivative test to classify and .

Recall Solution

What we do: compute and read its sign at each critical point. Why: the sign of says cup (min) or cap (max), straight from the Taylor argument .

  • At : → cap-shaped → local maximum.
  • At : → cup-shaped → local minimum. Answer: is the local max, is the local min.

Level 2 — Application

L2.1 — Global extrema on a closed interval

Find the absolute maximum and minimum of on .

Recall Solution

What we do: apply the Closed Interval Method — compare at every interior critical point and both endpoints. Why: on a closed interval the global extreme can hide at an endpoint even if the slope there is not zero.

  • Critical points of are ; only lies in .
  • Evaluate the candidates: Answer: absolute maximum at (an endpoint!); absolute minimum at .

L2.2 — A single-variable word problem

A farmer has m of fence to build a rectangular pen against a straight river (the river side needs no fence). What dimensions maximise the enclosed area?

The figure below sets up the picture we must translate into symbols: the river runs along the top (no fence there), the two red sides of length run away from the river, and the single lavender side of length runs along it. Study which sides are fenced before reading the solution — the whole model hinges on "only three sides cost fence."

Figure — Optimization — constrained, unconstrained, real-world problems
Recall Solution

Draw & name (D, U): as in the figure, let = each of the two red sides perpendicular to the river, = the lavender side parallel to it. Area . Constrain to one variable (C): only three sides are fenced (the river side, dashed in the figure, is free), so . Why the domain? is a real length; keeps . Kill the derivative (K): Discriminate (D): → cap → maximum. ✓ Check endpoints (C): , , . Answer: m, m, giving maximum area .


Level 3 — Analysis

L3.1 — Closest point on a curve (choose )

Find the point on the parabola closest to the point .

The figure below shows the trap and the answer together: the butter-yellow point sits directly under the coral target and looks nearest, but the two mint points on the parabola's flanks are genuinely closer. Compare the dashed distance lines — the slanted ones are shorter than the straight-down one. The algebra below will explain why.

Figure — Optimization — constrained, unconstrained, real-world problems
Recall Solution

What we do & why: we minimise the squared distance instead of the distance . Since only ever increases, whatever makes smallest makes smallest too — and squaring kills the ugly square root. Expand: . Kill the derivative: Roots: or . Discriminate: .

  • At : → a local max of squared distance (the butter point in the figure). Reject.
  • At : → minima (the mint points). Global check on an unbounded domain: here ranges over all of , which has no endpoints — so we must rule out any escape to smaller values far away. As , the leading term dominates, so . The squared distance therefore grows without bound in both directions and cannot beat the interior minima. Since the two symmetric minima give equal, finite values and everything else is larger, they are the global minima. Compute the minimum distance-squared: . With , . Answer: two closest points , each at distance .

Level 4 — Synthesis

L4.1 — Cylinder of minimum material (two variables, one constraint)

A closed cylindrical can must hold a fixed volume . Find the radius and height that minimise the total surface area (top + bottom + side).

Recall Solution

Name & model (U): surface area of a closed cylinder is Constrain to one variable (C): the volume constraint gives . Substitute: Kill the derivative (K): Discriminate (D): for all → cup → minimum. ✓ (No endpoints to worry about since and both send .) Height: . Using we get . Answer: , . Beautifully, the optimal can has height equal to its diameter ().


Level 5 — Mastery

L5.1 — Lagrange + AM–GM cross-check

Maximise subject to with . Then confirm the answer with the AM–GM inequality.

Recall Solution

Route 1 — Lagrange multipliers. We want the largest while stuck on the plane . Geometrically the optimum is where points perpendicular to the constraint surface, i.e. parallel to : Here and , so From (and ) we get . From (and ) we get . So . The constraint forces , giving

Route 2 — AM–GM check. The Arithmetic Mean–Geometric Mean inequality says, for positive numbers, Here the left side is fixed: . So , with equality exactly when . Same answer, no calculus. ✓

Why two routes agree: Lagrange found the critical point of a smooth function; AM–GM proved it is the global maximum. Together they show is not just a candidate — it is the true maximum.


Recall Feynman recap: what was every level really testing?
  • L1 — can you spot the flat spots and tell a hill from a dip?
  • L2 — can you turn a story into a single-variable area (or cost) function and crank the recipe (watch the endpoints)?
  • L3 — can you choose a smarter target () and refuse to trust the obvious point?
  • L4 — can you use the constraint to collapse two variables into one?
  • L5 — can you solve the same thing two ways and prove it's really the extreme?

Connections

Concept Map

The exercises form a staircase — each level reuses the previous skill and adds one new demand, all guided by the master recipe:

feeds

feeds

feeds

feeds

guides all

guides all

L1 Recognition: find and classify critical points

L2 Application: word problem to one variable

L3 Analysis: choose D squared target

L4 Synthesis: use constraint to reduce variables

L5 Mastery: Lagrange plus AM-GM

Master recipe DUCK-DC