Optimization notes (Calculus)

Find the biggest or smallest value with derivatives.

The big question

📦 max

How do we find the biggest box from a sheet? Set the derivative to zero!

Learn it, step by step

1. Build the function

A farmer has 40 meters of fence for a rectangle. Width x, length 20 minus x.

Area A equals x times 20 minus x, which is 20x minus x squared.

20 − x
A = 20x − x²

Build the function. 20 − x. A = 20x − x²

2. Find where the derivative is zero

A prime equals 20 minus 2x. Set it to zero: x equals 10.

The best rectangle is a 10 by 10 square, with area 100.

A′ = 20 − 2x = 0
x = 10
A = 100 m²

Find where the derivative is zero. A′ = 20 − 2x = 0. x = 10. A = 100 m²

3. Check it is a maximum

The second derivative is negative 2, so the graph is cupped down: a maximum.

Check it is a maximum

Watch out: Check the endpoints too

On a closed interval, the biggest value might be at an endpoint.

Wrong: only critical points. Right: critical points + endpoints.

Your turn

Find the x that maximizes 12x minus 3x squared.

12x − 3x²

Answer: x = 2. 12 minus 6x equals 0, so x equals 2!

Remember

Write the quantity as a function, set its derivative to zero, and check.

f′ = 0 → check

Watch the Optimization lesson and practice · Printable worksheet