📘 CodingMarble Learn

Optimisation: Finding the Best Value with Quadratics

Optimisation means finding the best value: the biggest area, the largest profit or the smallest cost. We write the quantity as a quadratic function, then the vertex of its parabola gives the best value. For y = ax² + bx + c the vertex is at x = −b/(2a); if a < 0 it is a maximum, if a > 0 it is a minimum.

🎬 Step-by-step story

  1. A farmer has 20 m of fence. She wants a rectangle that holds the most land.
  2. Make the field thin: it holds little. If the width is x, the length is 10 − x.
  3. Work out the area for each width. The points on the graph make a parabola: A = x(10 − x).
  4. The top of the parabola is the vertex. At x = 5 m the area is 25 m². That is the best: a square.
  5. Shops use the same idea. Profit P = −q² + 20q − 36 is biggest at the vertex, q = 10.
  6. Your turn: move the slider and find the best value yourself.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why is a square the best rectangle?

Area x(10 − x) is largest when both sides are equal, x = 5. Moving the slider either way makes one side shorter and the area drops.

Why does the graph go down again?

A very wide field must be very short, because the fence is fixed. Area falls on both sides.

How do I know if it is a maximum or minimum?

Look at a. Negative a: the curve is a hill, the vertex is a maximum. Positive a: a valley, a minimum.

Why can’t profit keep going up if I sell more?

To sell more, the price must fall. After a point each extra sale earns less, so profit turns down.

What if the vertex is not allowed?

Then test the end points of the allowed range. Try the slider at 0.5 and 9.5.

What is optimisation?

Optimisation means finding the best answer. Best can mean the maximum (largest) or the minimum (smallest).

When the quantity is a quadratic function, its graph is a parabola. A parabola has one turning point, the vertex. The vertex is the best value.

Modelling a situation with a quadratic function

To model means to write the problem as a formula.

  1. Choose a letter (say x) for the thing you can change.
  2. Write the other lengths or amounts using x.
  3. Write the quantity you want to make best as a function of x.
  4. Write the allowed values of x (the domain). A length cannot be negative.

Example: fence 20 m, width x, so length = 10 − x and area A(x) = x(10 − x) = −x² + 10x, with 0 < x < 10.

Finding the best value from the vertex

For f(x) = ax² + bx + c:

You can also complete the square: f(x) = a(x − p)² + q. The vertex is (p, q).

When the vertex is outside the domain

If the vertex x is not allowed, the best value is at an end of the domain. Always check the ends.

Optimisation in economics: maximum profit

Businesses use optimisation every day.

When price goes up, fewer items sell. So revenue often becomes a quadratic with a < 0. The vertex gives the price or amount that earns the maximum profit.

In higher classes you will find the same point with calculus: the slope (derivative) is zero at the top.

Try it: the string rectangle

Take a 40 cm piece of string and tie the ends. Make rectangles on squared paper with widths 4, 8, 10, 12 and 16 cm. Count the squares inside each. Which one holds the most? Now predict with the vertex formula, then check with the slider in the 3D.

Key formulas and definitions

Worked examples

1. Find the maximum of f(x) = −x² + 6x + 1.

a = −1, b = 6. x = −6/(2 × −1) = 3. f(3) = −9 + 18 + 1 = 10. Since a < 0, the maximum is 10 at x = 3.

2. Find the minimum of g(x) = 2x² − 8x + 5.

x = 8/(2 × 2) = 2. g(2) = 8 − 16 + 5 = −3. Since a > 0, the minimum is −3 at x = 2.

3. 20 m of fence makes a rectangle. Find the largest area.

Width x, length 10 − x. A = −x² + 10x. Vertex x = 5. A = 5 × 5 = 25 m². The best shape is a 5 m × 5 m square.

4. A wall forms one side of a rectangular pen. 40 m of fence makes the other three sides. Find the largest area.

Let the two sides touching the wall be x. The side opposite the wall is 40 − 2x. A = x(40 − 2x) = −2x² + 40x. x = −40/(−4) = 10. A = 10 × 20 = 200 m².

5. Profit P(q) = −q² + 20q − 36 (thousand rupees) where q is hundreds of items. Find the best q and the maximum profit.

q = −20/(−2) = 10, so 1000 items. P(10) = −100 + 200 − 36 = 64 thousand rupees.

6. Tickets cost €10 and 300 people come. Each €1 rise loses 20 people. Find the price for maximum revenue.

Let n = number of €1 rises. Price = 10 + n, people = 300 − 20n. R = (10 + n)(300 − 20n) = −20n² + 100n + 3000. n = −100/(−40) = 2.5. Price = €12.50, people = 250, R = €3125.

Common mistakes

Practice quiz

1. The vertex of y = ax² + bx + c is at x =
2. If a < 0, the vertex is a
3. For a fixed perimeter, the rectangle with the largest area is a
4. Maximum of y = −x² + 4x is
5. Profit equals

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is optimisation in maths?

Finding the largest or smallest value of a quantity, like the most area or the least cost.

How do you find the maximum value of a quadratic?

If a < 0, find x = −b/(2a) and put it into the function. That value is the maximum.

Is optimisation done with calculus?

For quadratics the vertex formula is enough. For other functions you set the derivative equal to zero.

Where this is taught

PolandLiceum ogólnokształcące, klasa IVOptimisation and calculus
South Korea고등학교 2학년Differentiation and the economy
China九年级(初三)Ch.30 Lines and circles

Learn first

Learn next

Related lessons

All Maths lessons