📘 CodingMarble Learn

Maximum and Minimum of a Quadratic Function

A parabola has its highest or lowest point at the vertex. If a > 0 the vertex is a minimum; if a < 0 it is a maximum. When x is limited to a domain p ≤ x ≤ q, compare the values at the two ends and at the vertex (only if the vertex is inside). The biggest value is the maximum and the smallest is the minimum.

🎬 Step-by-step story

  1. Take y = x² − 4x + 1. The curve is a U. Its lowest point is the vertex (2, −3). So the minimum is −3. It has no maximum, the curve goes up forever.
  2. Flip the curve to y = −x² + 4x − 1. Now it is an upside-down U. The vertex (2, 3) is the top. So the maximum is 3, and there is no minimum.
  3. Now only allow x from 0 to 1 (the yellow band). The vertex is outside the band. The curve inside the band only goes down, so the ends decide: max 1 at x = 0, min −2 at x = 1.
  4. Allow x from 1 to 5. The vertex is inside, so it gives the minimum −3. For the maximum, compare the two ends: f(1) = −2 and f(5) = 6. The maximum is 6.
  5. A real problem: 20 m of rope makes a rectangle with sides x and 10 − x. Area = x(10 − x). The biggest area is at the vertex x = 5, which is a 5 × 5 square: 25 m².
  6. Free play: slide the two ends of the yellow band. For each band, compare the vertex and the two ends to find the maximum and minimum.

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

🤔 Common doubts, cleared

Why does a > 0 give a minimum and not a maximum?

Because the curve is a U. Its lowest point is the vertex, and it goes up on both sides without limit.

Why does y = x² − 4x + 1 have no maximum?

Make x very large and y becomes very large too. There is no top, so no maximum exists on all real numbers.

Why does an upside-down curve have a maximum?

When a is negative the curve opens downwards. Its vertex is the highest point and the curve falls on both sides.

Why do we check the ends when x is limited?

Inside the yellow band the vertex may not exist. The curve only goes up or down, so the biggest and smallest values sit at the ends.

If the vertex is inside, is it always the minimum?

Only for a U-shaped curve (a > 0). Then the vertex is the minimum and the maximum is at the end that is further from the vertex.

Why is the best rectangle a square?

The area x(10 − x) is largest at x = 5, and then both sides are 5. Watch the green rectangle fill up.

Maximum and minimum at the vertex

Write the function in vertex form: y = a(x − p)² + q. The vertex is (p, q). The square (x − p)² is never negative.

From standard form y = ax² + bx + c, the vertex is at x = −b ÷ 2a. Put this x back in the function to get the value.

Maximum and minimum on a limited domain

Often x is allowed only in an interval p ≤ x ≤ q (the domain). Then the answer can change, because the vertex may be outside it. Use this method:

  1. Find the vertex x-value, x = −b ÷ 2a.
  2. Check: is it between the two ends?
  3. Find f at both ends. Find f at the vertex only if it is inside.
  4. The largest of these values is the maximum. The smallest is the minimum.

If the vertex is outside, the curve only rises or only falls inside the domain, so the extreme values are at the ends. If the vertex is inside, it gives the minimum (a > 0) or the maximum (a < 0), and the other extreme is at an end.

Applied problems: area, profit and height

Steps to solve a word problem:

  1. Choose the unknown as x and note what values are allowed (for example 0 < x < 10 for a length).
  2. Write the quantity to be made largest or smallest as a quadratic in x.
  3. Find the vertex, and check it is in the allowed range.
  4. Answer in words with the unit.

Fence problem. A rope of length 20 m makes a rectangle with sides x and 10 − x. Area A = x(10 − x) = −x² + 10x. Vertex at x = 5, so A = 25 m². Among rectangles of the same perimeter, the square has the largest area.

Height problem. A ball is thrown so that h = 20t − 5t² (h in m, t in s). Vertex at t = 2 s, h = 20 m. This is the highest point.

Try it

Take a 20 cm piece of string. Make a rectangle with sides 1 and 9, then 3 and 7, then 5 and 5, and measure each area on grid paper. Write the areas in a row. You will see them rise and then fall, with the square on top. Now slide the 3D band and see which ends give the max and min.

Key formulas and definitions

Worked examples

1. Find the minimum of y = x² − 6x + 5.

Vertex x = −(−6)/(2·1) = 3. y = 9 − 18 + 5 = −4. Since a = 1 > 0, the minimum is −4 at x = 3.

2. Find the maximum of y = −2x² + 8x + 1.

Vertex x = −8/(2·(−2)) = 2. y = −8 + 16 + 1 = 9. Since a < 0, the maximum is 9 at x = 2.

3. Find the maximum and minimum of y = x² − 4x + 1 for 0 ≤ x ≤ 1.

Vertex x = 2 is outside [0, 1]. So compare ends: f(0) = 1, f(1) = 1 − 4 + 1 = −2. Maximum 1 at x = 0, minimum −2 at x = 1.

4. Find the maximum and minimum of y = x² − 4x + 1 for 1 ≤ x ≤ 5.

Vertex x = 2 is inside. f(2) = −3. Ends: f(1) = −2, f(5) = 25 − 20 + 1 = 6. Maximum 6 at x = 5, minimum −3 at x = 2.

5. Find the maximum and minimum of y = −x² + 2x for 2 ≤ x ≤ 4.

Vertex x = 1 is outside [2, 4]. f(2) = −4 + 4 = 0, f(4) = −16 + 8 = −8. Maximum 0 at x = 2, minimum −8 at x = 4.

6. A rectangle has perimeter 40 m. Find the largest possible area.

The two sides are x and 20 − x. A = x(20 − x) = −x² + 20x. The vertex is x = 10, so A = 100 m². The best rectangle is a 10 m by 10 m square.

7. A ball is thrown up, with height h = 20t − 5t² metres after t seconds. Find the highest point.

Vertex t = −20/(2·(−5)) = 2 s. h = 40 − 20 = 20 m. The ball reaches 20 m after 2 s.

Common mistakes

Practice quiz

1. The minimum of y = (x − 3)² + 2 is:
2. y = −x² + 6x has its maximum at x =
3. For y = x² on −3 ≤ x ≤ 2, the maximum is:
4. A parabola opens downwards. Its vertex is a:
5. A rectangle has perimeter 16 cm. The largest area is:

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

How do you find the maximum or minimum of a quadratic function?

Find the vertex using x = −b/2a, then put x back in the function. If a is positive the value is a minimum, if a is negative it is a maximum.

What changes when the domain is limited?

The vertex may fall outside the allowed x-values. Then you must compare the function values at the two ends of the domain, and also at the vertex if it is inside.

Is this topic in school exams?

Yes. It appears in upper-secondary maths (for example Japan, Grade 10 level, quadratic functions) and in Class 10 and 11 word problems about the largest area or the highest point.

Learn first

Learn next

Related lessons

All Maths lessons