Skip to content
Family Table Math

Maximum and Minimum of a Quadratic

The vertex of a parabola is its highest or lowest point. That makes quadratics perfect for optimization: finding the greatest height, the largest area, or the most revenue. This page shows two ways to find the vertex and how to use it in word problems.

For f(x)=ax2+bx+cf(x) = ax^2 + bx + c:

  • a>0a \gt 0: the parabola opens up, so the vertex is a minimum.
  • a<0a \lt 0: it opens down, so the vertex is a maximum.

The yy-coordinate of the vertex is the max or min value. The xx-coordinate tells you where (or when) it happens.

Completing the square gives vertex form a(x−h)2+ka(x - h)^2 + k, with vertex (h,k)(h, k). This always works.

A parabola is symmetric about its axis of symmetry, the vertical line through the vertex. So the vertex is exactly halfway between the zeros:

xvertex=r+s2x_{\text{vertex}} = \frac{r + s}{2}

Then substitute that xx into the function to get the max or min value. This method is quick when the quadratic factors, but it needs the function to have zeros.

A parabola opening down with zeros at 1 and 5 and its maximum at (3, 8), halfway between the zeros 2 4 6 −2 2 4 6 8 (1, 0) (5, 0) (3, 8) x = 3 y = −2x² + 12x − 10
The vertex sits on the axis of symmetry, halfway between the zeros.

A shortcut that comes from completing the square: the vertex is at x=−b2ax = -\dfrac{b}{2a}.

  1. Write the quadratic (if it isn’t given), with clear units.
  2. Find the vertex.
  3. Answer the question asked, in context: is it asking for the max value, or when it happens?

Find the maximum value of f(x)=−2x2+12x−10f(x) = -2x^2 + 12x - 10.

Solution. Factor to find the zeros:

f(x)=−2(x2−6x+5)=−2(x−1)(x−5)f(x) = -2(x^2 - 6x + 5) = -2(x - 1)(x - 5)

The zeros are 11 and 55, so the vertex is at x=1+52=3x = \dfrac{1 + 5}{2} = 3.

f(3)=−2(9)+36−10=8f(3) = -2(9) + 36 - 10 = 8

Since a<0a \lt 0, the maximum value is 88, at x=3x = 3.

Find the minimum value of g(x)=x2−4x+7g(x) = x^2 - 4x + 7.

Solution. The discriminant is (−4)2−4(1)(7)=−12(-4)^2 - 4(1)(7) = -12, so there are no zeros to average. Complete the square instead:

g(x)=x2−4x+4−4+7=(x−2)2+3g(x) = x^2 - 4x + 4 - 4 + 7 = (x - 2)^2 + 3

The minimum value is 33, at x=2x = 2.

A ball is kicked from a height of 22 m. Its height in metres after tt seconds is h(t)=−5t2+30t+2h(t) = -5t^2 + 30t + 2. Find the maximum height and when it happens.

Solution. Use t=−b2at = -\dfrac{b}{2a}:

t=−302(−5)=3t = -\frac{30}{2(-5)} = 3 h(3)=−5(9)+30(3)+2=−45+90+2=47h(3) = -5(9) + 30(3) + 2 = -45 + 90 + 2 = 47

The ball reaches a maximum height of 4747 m after 33 seconds.

A bike shop rents 120120 bikes a day at $20 each. For every $1 increase in price, 44 fewer bikes are rented. What price gives the most revenue?

Solution. Let nn be the number of $1 increases. Then the price is 20+n20 + n dollars and the number rented is 120−4n120 - 4n:

R(n)=(20+n)(120−4n)R(n) = (20 + n)(120 - 4n)

This is already in factored form. The zeros are n=−20n = -20 (from 20+n=020 + n = 0) and n=30n = 30 (from 120−4n=0120 - 4n = 0). The maximum is halfway between:

n=−20+302=5n = \frac{-20 + 30}{2} = 5

So the best price is $25 (that’s 20+520 + 5), with 120−4(5)=100120 - 4(5) = 100 bikes rented. The revenue is 25×100=250025 \times 100 = 2500, or $2500.

Giving xx when the question asks for the value. In Example 3, “the maximum height” is 4747 m, not 33.

Averaging zeros that don’t exist. If the discriminant is negative, there are no zeros. Complete the square or use x=−b2ax = -\tfrac{b}{2a}.

Getting the sign of −b2a-\tfrac{b}{2a} wrong. For h(t)=−5t2+30t+2h(t) = -5t^2 + 30t + 2, −302(−5)=3-\tfrac{30}{2(-5)} = 3, which is positive.

Mixing up maximum and minimum. Check the sign of aa: negative means a maximum.

Ignoring the context. In Example 4, the answer is a price ($25), not the value of nn.

1. (Warm-up) Does f(x)=3(x−4)2+1f(x) = 3(x - 4)^2 + 1 have a maximum or a minimum? What is it, and where does it happen?

Solution

a=3>0a = 3 \gt 0, so a minimum. The minimum value is 11, at x=4x = 4.

2. (Warm-up) A parabola has zeros at −2-2 and 66. What is the equation of its axis of symmetry?

Solution

x=−2+62=2x = \dfrac{-2 + 6}{2} = 2, so the axis is x=2x = 2.

3. (Warm-up) Find the maximum value of f(x)=−(x−1)(x−7)f(x) = -(x - 1)(x - 7).

Solution

The zeros are 11 and 77, so the vertex is at x=4x = 4:

f(4)=−(3)(−3)=9f(4) = -(3)(-3) = 9

The maximum value is 99.

4. (Core) Find the minimum value of f(x)=2x2−8x+3f(x) = 2x^2 - 8x + 3.

Solution

x=−−82(2)=2x = -\dfrac{-8}{2(2)} = 2, and f(2)=8−16+3=−5f(2) = 8 - 16 + 3 = -5.

The minimum value is −5-5, at x=2x = 2.

5. (Core) Find the maximum value of f(x)=−x2+6x−2f(x) = -x^2 + 6x - 2 by completing the square.

Solutionf(x)=−(x2−6x)−2=−(x2−6x+9−9)−2=−(x−3)2+9−2=−(x−3)2+7\begin{aligned} f(x) &= -(x^2 - 6x) - 2 \\ &= -(x^2 - 6x + 9 - 9) - 2 \\ &= -(x - 3)^2 + 9 - 2 \\ &= -(x - 3)^2 + 7 \end{aligned}

The maximum value is 77, at x=3x = 3.

6. (Core) A farmer has 6060 m of fencing to make a rectangular pen against a long barn wall, so only three sides need fencing. What dimensions give the largest area?

Solution

Let ww be the width of each side touching the wall. The side opposite the wall is 60−2w60 - 2w.

A(w)=w(60−2w)A(w) = w(60 - 2w)

The zeros are w=0w = 0 and w=30w = 30, so the maximum is at w=15w = 15.

The pen should be 1515 m by 3030 m (the 3030 m side opposite the wall), for an area of 450450 m².

7. (Core) A ball’s height in metres after tt seconds is h(t)=−4.9t2+24.5t+1h(t) = -4.9t^2 + 24.5t + 1. Find its maximum height, to one decimal place, and when it happens.

Solutiont=−24.52(−4.9)=2.5t = -\frac{24.5}{2(-4.9)} = 2.5h(2.5)=−4.9(6.25)+24.5(2.5)+1=−30.625+61.25+1=31.625h(2.5) = -4.9(6.25) + 24.5(2.5) + 1 = -30.625 + 61.25 + 1 = 31.625

The maximum height is about 31.631.6 m, after 2.52.5 seconds.

8. (Challenge) Two numbers add up to 2020. What is the largest possible value of their product?

Solution

If one number is xx, the other is 20−x20 - x, and the product is P(x)=x(20−x)P(x) = x(20 - x).

The zeros are 00 and 2020, so the maximum is at x=10x = 10: P(10)=10×10=100P(10) = 10 \times 10 = 100.

9. (Challenge) A theatre sells 300300 tickets at $15 each. Each $1 increase in price means 1212 fewer tickets sold. What price maximizes revenue, and what is the maximum revenue?

Solution

With nn increases of $1, R(n)=(15+n)(300−12n)R(n) = (15 + n)(300 - 12n).

The zeros are n=−15n = -15 and n=25n = 25, so the maximum is at n=−15+252=5n = \dfrac{-15 + 25}{2} = 5.

The best price is $20, with 300−12(5)=240300 - 12(5) = 240 tickets sold. The maximum revenue is 20×240=480020 \times 240 = 4800, or $4800.