- Foundation
- About 22 min
- 5 practice questions
Optimisation problems: maximum and minimum in real situations
Turn a word problem into a function of one variable, find its maximum or minimum with derivatives, and check the answer makes sense, for numbers, boxes, cans, distances and profit.
If something looks wrong, please tell us.
By the end of this lesson you can
- Express the quantity to be optimised as a function of a single variable using the given condition.
- Find the critical point and confirm it gives a maximum or minimum.
- Answer the actual question asked, with units and a sensible domain.
Companies want the largest profit, packaging designers the least material, engineers the strongest beam. Each of these is a maximum or minimum problem, and the tests of the previous lessons solve them once the situation is written as a function of one variable.
Solving an optimisation problem
- Draw and name Sketch the situation; name the variables.
- Write the target quantity The quantity to be maximised or minimised.
- Use the condition Eliminate variables until the target depends on one variable; note its allowed domain.
- Differentiate and solve f′ = 0 Find the critical points in the domain.
- Confirm max or min Second derivative test, or compare values at end points.
- Answer the question Give the requested quantity with units.
Worked examples
Worked example 1 (numbers). Two positive numbers have sum 12. Find them if x²y is to be as large as possible. Working: y = 12 − x, so P(x) = x²(12 − x) = 12x² − x³, with 0 < x < 12. P′(x) = 24x − 3x² = 3x(8 − x) = 0 at x = 8 (x = 0 is excluded). P″(x) = 24 − 6x, and P″(8) = −24 < 0, so this is a maximum. x = 8, y = 4, and the largest value of x²y is 64 × 4 = 256.
Worked example 2 (open box). Equal squares of side x cm are cut from the corners of a square sheet of side 18 cm and the sides folded up to make an open box. Find x for maximum volume. Working: the base is (18 − 2x) by (18 − 2x) and the height is x, so V = x(18 − 2x)² = 4x³ − 72x² + 324x, with 0 < x < 9. V′ = 12x² − 144x + 324 = 12(x − 3)(x − 9) = 0 gives x = 3 (x = 9 is excluded). V″ = 24x − 144, and V″(3) = −72 < 0: a maximum. Cut 3 cm squares; the greatest volume is 3 × 12 × 12 = 432 cm³.
Worked example 3 (rectangle). Among rectangles with perimeter 40 m, which has the largest area? Working: if the sides are x and y, 2(x + y) = 40, so y = 20 − x and A = x(20 − x) = 20x − x², 0 < x < 20. A′ = 20 − 2x = 0 at x = 10; A″ = −2 < 0. So x = y = 10: the square of side 10 m, with area 100 m².
Worked example 4 (closed can). A closed cylindrical can must hold 128π cm³. Find the radius that uses the least metal (surface area). Working: πr²h = 128π gives h = 128/r². S = 2πr² + 2πrh = 2πr² + 256π/r, r > 0. S′ = 4πr − 256π/r² = 0 gives r³ = 64, so r = 4 cm and h = 128/16 = 8 cm. S″ = 4π + 512π/r³ > 0, so this is a minimum. r = 4 cm, h = 8 cm (height equals diameter), and S = 32π + 64π = 96π cm².
Worked example 5 (shortest distance). Find the points of the parabola y² = 4x nearest to the point (5, 0). Working: for a point (x, y) on the curve, D² = (x − 5)² + y² = (x − 5)² + 4x = x² − 6x + 25, with x ≥ 0. Minimising D² is the same as minimising D. d/dx (D²) = 2x − 6 = 0 at x = 3, and the second derivative 2 > 0 gives a minimum. Then y² = 12, y = ±2√3. Nearest points (3, ±2√3); shortest distance √(9 − 18 + 25) = √16 = 4 units.
Worked example 6 (made-up profit). A small firm's monthly profit, in thousands of rupees, from selling x hundred items is P(x) = −0.5x² + 40x − 300. Working: P′(x) = −x + 40 = 0 at x = 40; P″ = −1 < 0. Maximum profit P(40) = −800 + 1600 − 300 = 500 thousand rupees, at x = 40 hundred items. (The function is invented for practice; real profit depends on real data.)
| Problem | Function of one variable | Critical point | Answer |
|---|---|---|---|
| Sum 12, maximise x²y | 12x² − x³ | x = 8 | 8 and 4; value 256 |
| Open box from 18 cm sheet | x(18 − 2x)² | x = 3 | 432 cm³ |
| Perimeter 40 m, max area | 20x − x² | x = 10 | Square, 100 m² |
| Can of volume 128π cm³ | 2πr² + 256π/r | r = 4 | h = 8 cm, 96π cm² |
| Nearest point to (5, 0) on y² = 4x | x² − 6x + 25 | x = 3 | Distance 4 |
Write the target as a function of one variable, solve f′ = 0 inside the allowed domain, confirm with f″ (or end-point values), then answer in the units of the question.
Key takeaways: most of the work is setting up the function correctly: use the given condition to reduce to one variable and note its domain. Then differentiate, solve, confirm the nature of the critical point, and answer exactly what was asked. Minimising a distance is easier through its square.
Check your understanding
-
1. Two positive numbers have product 64. What is the least possible value of their sum?
- 32
- 16
- 65
- 20
Show answer
Answer: B. y = 64/x, S = x + 64/x. S′ = 1 − 64/x² = 0 at x = 8 (positive), and S″ = 128/x³ > 0, a minimum. Then y = 8 and S = 16.
-
2. A rectangle has area 36 cm². What is its least possible perimeter?
- 24 cm
- 36 cm
- 26 cm
- 40 cm
Show answer
Answer: A. y = 36/x and P = 2(x + 36/x). P′ = 2(1 − 36/x²) = 0 at x = 6, and P″ > 0. So the 6 cm square gives the least perimeter, 24 cm.
-
3. Squares of side x are cut from the corners of a 12 cm by 12 cm sheet to make an open box. Which x gives the largest volume?
- 1 cm
- 3 cm
- 4 cm
- 2 cm
Show answer
Answer: D. V = x(12 − 2x)² = 4x³ − 48x² + 144x. V′ = 12x² − 96x + 144 = 12(x − 2)(x − 6) = 0 gives x = 2 (x = 6 makes the base zero). V″ = 24x − 96 < 0 at x = 2, a maximum; V = 2 × 8 × 8 = 128 cm³.
-
4. What is the maximum value of f(x) = x e^(−x) for x > 0?
- 1/e
- e
- 1
- 0
Show answer
Answer: A. f′(x) = e^(−x) − x e^(−x) = e^(−x)(1 − x) = 0 at x = 1. f′ > 0 for x < 1 and < 0 for x > 1, so x = 1 gives the maximum f(1) = 1/e.
-
5. Assertion (A): Of all closed cylindrical cans with a fixed volume, the one using the least metal has height equal to its diameter.
Reason (R): For a can of volume 128π cm³, the least surface area occurs at r = 4 cm, h = 8 cm.- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true but R is false
- A is false but R is true
Show answer
Answer: B. A is a true general result (minimising 2πr² + 2V/r gives h = 2r for any volume V). R is also true, but a single numerical case does not prove or explain the general statement in A.
Sign in to keep track of the lessons you finish.