TactivergeLite

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.

About 35 min · 3 goals · Checked by automated tests · Full interactive version

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.

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?

  1. x = 5 m
  2. x = 10 m
  3. x = 13.3 m (all sides equal)
  4. 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).

You can also open the interactive on the full site when you have a faster connection.

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
  1. 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).

  2. Differentiate: C′(q) = 2a·q − b.

  3. Set C′(q) = 0: q* = b/(2a).

  4. Second derivative: C″(q) = 2a > 0, so the curve is concave up and q* is a minimum.

  5. 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

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

m

Practice 3. At a stationary point f′(a) = 0 and f″(a) = 5. What is it?
Practice 4. A cost C(q) = 0.1q² − 3q + 50 has its stationary minimum at q = 15, but the pump can only run for 0 ≤ q ≤ 10. Where is the cheapest allowed setting?

m

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

← Rates from data: finite differences and noiseThe minimum-material can →