Skip to content
Family Table Math
Auto

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.

If you haven’t seen it yet, f(x)f(x) just means “the yy-value when the input is xx”: writing f(x)=ax2+bx+cf(x) = ax^2 + bx + c is the same as y=ax2+bx+cy = ax^2 + bx + c. (You’ll meet function notation properly in Grade 11 — see function notation.)

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?

In the built-in Desmos calculator, type the quadratic (like y = -2x^2 + 12x - 10) and click the parabola. The grey dot at the top or bottom is the vertex, labelled as a maximum or minimum, here (3,8)(3, 8). If you can’t see it, zoom out or use zoom-fit (word problems often have large values). Then read the right coordinate: the yy-value is the max or min, and the xx-value is where or when it happens. See using Desmos on the SAT.

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.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.

H1. (Foundations) For f(x)=−3(x+1)2+12f(x)=-3(x+1)^2+12, state the maximum or minimum value and the input where it occurs. Explain why these are different answers.

H2. (Foundations) Find the axis of symmetry and maximum of g(x)=−2(x+3)(x−7)g(x)=-2(x+3)(x-7) by using its zeros. Check the vertex output directly.

H3. (Core) Find the minimum of 2x2+4x+72x^2+4x+7 by completing the square. Explain why averaging real zeros is unavailable here even though a minimum still exists.

H4. (Core) Find the maximum of −3x2+18x−8-3x^2+18x-8 using x=−b/(2a)x=-b/(2a), then confirm with vertex form. Give both coordinates of the vertex.

H5. (Core) A ball’s height is h(t)=−4.9t2+19.6t+1.2h(t)=-4.9t^2+19.6t+1.2 metres, from release until it lands, with tt in seconds. Find when its maximum occurs and the maximum height. Check that the proposed time is after release and before landing.

H6. (Core) A club has 9696 m of fencing for all four sides of a rectangular garden. Find the dimensions giving the greatest area. Define a variable, state its physically meaningful domain, write the quadratic area model, and verify the perimeter of your answer.

H7. (Challenge) A theatre sells 147147 tickets at $18 each. Its model predicts five fewer sales for each $2 price increase. Only whole $2 increases are allowed, and at least one ticket must be sold.

  • (a) Write revenue in terms of the number nn of increases and give its allowed integer values.
  • (b) Find the continuous vertex, then determine the best allowed price and revenue by comparing the relevant integers.
  • (c) Explain why rounding a continuous optimal price arbitrarily is not sufficient.

H8. (Challenge) Let f(x)=−x2+8x−3f(x)=-x^2+8x-3.

  • (a) Find its unrestricted maximum.
  • (b) Find both the greatest and least outputs for 0≤x≤20\le x\le2.
  • (c) If instead 2<x<42\lt x\lt4, does the function attain a greatest output? Give its range in set notation and explain the role of the open endpoints.

H9. (Challenge) Find every real aa for which f(x)=ax2+12x+7f(x)=ax^2+12x+7 has maximum value 1919 over all real inputs. Explain why a=0a=0 and a>0a\gt0 cannot work. Find the input giving the maximum for your answer and verify it by completing the square.

H10. (Challenge) A rectangular enclosure uses a building wall as one side, so the other three sides use 9090 m of fencing. Only 2424 m of wall is available for the side against the building. Find the dimensions giving the largest area, using all the fencing. Explain why the usual unconstrained vertex must be rejected and justify your optimum over the whole allowed domain.