Skip to content
Tactiverge

School/□ Systems Engineer/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

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

2.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?

Guess first. Being wrong here is how the surprise works.

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

Loading the interactive…

Can't use the interactive? Read a description instead

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

4.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1 · a fresh version every time

A rectangular pen is built against a long wall with 24 m of fencing for the other three sides. If each side touching the wall is x m long, the area is A(x) = x(24 − 2x). Which x gives the largest area, in metres?

m

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

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

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

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

6.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2

f(x) = −2x² + 8x + 1. What is its maximum value?

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?

Practice 5 · a fresh version every time

A rectangular pen is built against a long wall with 40 m of fencing for the other three sides. If each side touching the wall is x m long, the area is A(x) = x(40 − 2x). Which x gives the largest area, in metres?

m

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

8.Reflect

9.Go further

Concepts: Optimisation and gradient descent · Derivatives and rates of change