# Optimisation problems · Year 12

> Optimisation problems, Year 12: Optimising with numbers and more. Explanation, worked examples and free practice for the national curriculum in England.

In Optimisation problems (Year 12) you practise 4 skills: Optimising with numbers · Optimising on graphs · Optimising profit and cost · Optimising on a closed interval.

Solve an optimisation problem in five steps: choose a variable, write the quantity you want to make largest or smallest as a function of it, state the interval, differentiate and set the derivative to zero, and check the ends of the interval too. The answer is the quantity the question asks about, which is not always the variable.

For example: a rectangle with a perimeter of 20. If one side is x, the other side is ten minus x, and the area is x times ten minus x. The derivative is ten minus twice x, which is zero at x equals five. To the left of five the derivative is positive and to the right negative, so it is a maximum: the largest area is 25.

**Tip:** Write in words what you want to make largest or smallest before you write a function.

## What you learn

### Optimising with numbers

- Example: Two positive numbers add up to 14 . What is the largest possible product of the two?
- Answer: 49
- Solution: One number is x , and the other is 14 − x . The product: f(x) = x(14 − x) = −x² + 14x The domain: 0 < x < 14 f′(x) = −2x + 14 = 0 x = 7 For x < 7 the derivative is positive, and for x > 7 it is negative. This is a maximum point. The largest product is f(7) = 7 × 7 = 49

### Optimising on graphs

- Example: Which point on the line y = x + 6 is closest to the origin?
- Answer: (−3, 3)
- Solution: The distance is smallest where its square is smallest, so look for the minimum of the distance squared: f(x) = x² + (x + 6)² = 2x² + 12x + 36 The domain: any number. f′(x) = 4x + 12 = 0 x = −3 For x < −3 the derivative is negative, and for x > −3 it is positive. This is a minimum point. y = 3 . The point is (−3, 3)

### Optimising profit and cost

- Example: The profit of a factory from making and selling x items is P(x) = −x² + 40x − 30 . How many items give the largest profit?
- Answer: 20
- Solution: The domain: x > 0 P′(x) = −2x + 40 = 0 x = 20 For x < 20 the derivative is positive, and for x > 20 it is negative. This is a maximum point. The largest profit comes from making 20 items.

### Optimising on a closed interval

- Example: Find the largest value of the function f(x) = −x² + 2x + 4 on the interval −5 ≤ x ≤ −3 .
- Answer: −11
- Solution: f′(x) = −2x + 2 = 0 x = 1 . This point is outside the interval, so the function only rises or only falls on it, and the largest value is at an end: f(−5) = −31 f(−3) = −11 . The largest value is −11 .

The exercises are made by rules and the answers are worked out in code. The topic follows selected AS and A level mathematics practice in England (the GCE subject content).

[Practise on the site](https://kixplo.com/uk/en/) · [All Year 12 topics](https://kixplo.com/uk/en/maths/year-12/)
