LightMySky

Optimisation with Calculus

Turn a worded problem into one function of one variable, use a constraint to remove the second variable, then differentiate to find the best value and justify that it is a maximum or minimum.

No account needed. Progress saves in this browser.

What a learner can do afterwards

  • Use a fixed perimeter to write area as a function of one side, then maximise it
  • Minimise the surface area of an open box of fixed volume
  • Check that the stationary point found is the kind the question asked for

1 · Read

Last stop handed you a rule and asked for its stationary points. Real questions do not arrive as rules. The Ridgeway crew has a fixed length of fencing and an existing wall, and wants the practice strip to enclose as much ground as possible. Nobody has written down a function of x. Building that function is the whole job, and once it exists the calculus is the routine you already have. So the hard part comes first and the familiar part comes last.

Four steps, in this order. One: name the variables and write down the quantity you are trying to make biggest or smallest. Two: write the constraint, the second equation that links the variables and says what is fixed. Three: rearrange the constraint and substitute, so the quantity becomes a function of one variable only. That step is why the constraint is there at all. Four: differentiate, set the derivative to zero, solve, and use the second derivative to check you have the kind of point the question wanted.

what to optimisethe constraintdown to one variabledifferentiate and check
Three steps of setting up, one step of calculus. Most marks are lost in step three.
Try it together

The crew has 36 m of fencing for three sides, with the wall as the fourth. Call the two equal sides x and the far side y. The quantity to maximise is the area, A = xy. The constraint is the fencing: 2x + y = 36, so y = 36 - 2x. Substituting removes y: A = x(36 - 2x) = 36x - 2x². Now differentiate: dA/dx = 36 - 4x, which is zero at x = 9. Then y = 36 - 18 = 18, and the area is 9 times 18 = 162 m².

Try it together

Now a box with a square base of side x, no lid, and a fixed volume of 32 cm³. The height h is the second variable, and the constraint is x²h = 32, so h = 32/x². The quantity to minimise is the surface area: a base of x² plus four sides of xh each, so S = x² + 4xh. Substituting gives S = x² + 128/x. Rewrite that as x² + 128x⁻¹ before differentiating: dS/dx = 2x - 128x⁻², which is zero when 2x³ = 128, so x = 4 and h = 2.

x²h = 32h = 32/x²S = x² + 128/x
Make the second variable the subject, then substitute it out of the thing you want.

Two things finish the job. First, justify. For the fence, d²A/dx² = -4, which is negative, so x = 9 really is a maximum. For the box, d²S/dx² = 2 + 256/x³, which is 6 at x = 4, positive, so that is a minimum. A stationary point is not automatically the kind you wanted. Second, answer the question that was asked. If it asks for dimensions, give both, not just x. If it asks for an area, give the area, which for the box means S = 16 + 32 = 48 cm².

Finding x is the middle of the answer, never the end of it.

Optimisation is three parts setting up and one part calculus. Name what you are maximising or minimising, write the constraint that links the variables, then use the constraint to get down to a function of one variable. Only then differentiate, set the derivative to zero and solve. Finish with the second derivative, which confirms whether you have found a maximum or a minimum, and then answer the question that was actually asked, in the quantity it asked for.

2 · Watch

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Then practise

24 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Spotted a problem on this page? Tell us
Optimisation with Calculus · Mathematics, ages 17 to 18 · LightMySky