Lite / Engineering Complex Systems / Week 5
Stationary points: the top of the hill
At the very best design, a small change in either direction makes things slightly worse. In calculus, that has a name: the derivative is zero.
Why should I care?
Least material, most power, lowest cost, fastest time: optimisation is what engineers are paid for. For problems with one design variable and a smooth objective, calculus finds the optimum exactly, and gives a number to check any numerical search against.
- Find stationary points by solving f′(x) = 0.
- Classify them as maxima or minima with the second derivative or a sign check.
- Remember to compare endpoints on a closed interval.
Predict
You have 40 m of fence for three sides of a pen against a wall. Which side length x (the two sides touching the wall) gives the biggest area?
- x = 5 m
- x = 10 m
- x = 13.3 m (all sides equal)
- x = 20 m
Guess first, then reveal
A(x) = x(40 − 2x) = 40x − 2x². A′(x) = 40 − 4x = 0 at x = 10 m, with the wall side 20 m and area 200 m². Equal sides (13.3 m) give only 177.8 m².
Discover
Choose 'Biggest pen against a wall'. Slide x and watch the sign of dA/dx in the readout: it tells you which way to move. Find the top by following the sign, then reveal the optimum. Change L and predict where the new optimum is before you look.
What the interactive shows (text version)
In the optimiser's pen mode, area A(x) = x(L − 2x) is a downward parabola. The readout gives dA/dx = L − 4x: positive for small x, negative for large x, zero at x = L/4, where the area is L²/8 (200 m² for L = 40 m).
Understand
Stationary points
Where f′(x) = 0 the tangent is horizontal: a stationary point. It may be a local maximum, a local minimum or a stationary inflection (like x³ at 0, flat but still rising). Solve f′ = 0 to find the candidates.
Classifying
Second-derivative test: f″ < 0 means a maximum (concave down), f″ > 0 a minimum, f″ = 0 inconclusive. Sign test: if f′ changes from + to − the point is a maximum; − to +, a minimum. The sign test always works.
Endpoints and domains
On a closed interval, the best value may sit at an end, not at a stationary point. A pump limited to 0 ≤ q ≤ 10 L/s whose stationary point is at 15 L/s has its best allowed design at q = 10. Always list candidates: stationary points inside the domain plus both endpoints.
Explain it another way
Intuitive
Walk along the cost curve: if each step downhill makes it lower, keep going. When the ground is flat under your feet, you are at the bottom (or the top, or a ledge: check).
Technical
Necessary condition for an interior optimum of a differentiable f: f′(x) = 0. Sufficient: f′(x) = 0 and f″(x*) ≠ 0 with the right sign.
Mathematical
Near x, f(x) ≈ f(x) + ½f″(x)(x − x)². This is why optima are 'flat': a small design error δ costs only about ½f″δ², second order.
Applied
Because optima are flat, engineers can round an optimal radius or gain to a convenient value with little penalty, but must not round across the edge of a constraint.
Derivation: The optimum of a quadratic cost
Many design costs are well modelled near their optimum by a quadratic C(q) = a·q² − b·q + c with a > 0 (for example, wear rising with the square of flow rate while faster pumping saves time).
Differentiate: C′(q) = 2a·q − b.
Set C′(q) = 0: q* = b/(2a).
Second derivative: C″(q) = 2a > 0, so the curve is concave up and q* is a minimum.
Minimum cost: C(q*) = c − b²/(4a). The same steps give the vertex of any parabola.
Worked example 1
Classify the stationary points of f(x) = x³ − 3x.
f′ = 3x² − 3 = 0 at x = ±1. f″ = 6x: at x = −1, f″ = −6 < 0, a maximum (f = 2); at x = 1, f″ = 6 > 0, a minimum (f = −2).
Common mix-ups
f′ = 0 always means a maximum or minimum.
✓ It can be a stationary inflection, like x³ at 0. Classify every candidate.The optimum is always where the derivative is zero.
✓ With constraints or a limited domain, it can be at an endpoint.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
A rectangular solar panel frame has a fixed perimeter of 4 m. Show that the area is greatest for a square. Then add a constraint that the height may not exceed 0.8 m: what is the best design now, and why is it not at f′ = 0?
Reflect
Why is an optimum 'flat', and why is that good news for manufacturing tolerances?
Write your answer on paper or in your own notes. Lite never stores what you write.
Go further
- OpenStax Calculus Volume 1 (free, open textbook)
A complete first-year calculus text with worked examples and exercises, free to read online.