Math Explainer.

Vertex form: shifting, completing the square, optimising

Ages 14–16GCSE (A11b, A18b)

What you will learn

You can shift, stretch and turn over the parabola y=x2y = x^2. The vertex form, written y=a(x−h)2+ky = a(x - h)^2 + k with a≠0a \neq 0, shows directly where the vertex then lies. You learn to read it and write equations in this form.

Think first: does the vertex of y=(x+4)2y = (x + 4)^2 lie to the left or to the right of the origin? Then check: set hh so that this bracket appears, and kk to 00.

A shifted and stretched parabola compared with y = x²A coordinate grid with x from −6 to 6 and y from −8 to 8. The parabola y = x² is drawn dark and dashed, the graph of y = a(x − h)² + k in green. The green graph’s vertex is a green dot; dashed guide lines lead from it to the two axes, unless it lies on an axis itself. Three sliders set the factor a, the shift to the right h and the shift upwards k. Under them is the equation in three lines: the vertex form with letters, the vertex form with the numbers that are set, and the expanded form. At a = 0 the graph is a horizontal line without a vertex.
y=a(x−h)2+ky=(x−2)2−1=x2−4x+3\begin{aligned} y &= a(x - h)^2 + k \rule{0pt}{0.87em} \\ y &= (x - 2)^2 - 1 \rule{0pt}{0.87em} \\ &= \mathrlap{x^2 - 4x + 3}\hspace{8.35em} \rule{0pt}{0.87em} \end{aligned}

The parabola y = (x − 2)² − 1 opens upwards. Its vertex (2, −1) is the lowest point: the smallest value, −1, is reached at x = 2.

Reading off the vertex

The bracket in (x+4)2(x + 4)^2 is zero at x=−4x = -4: the vertex lies 44 units to the left of the origin.

In general, y=a(x−h)2+ky = a(x - h)^2 + k with a≠0a \neq 0 has the vertex S(h,k)S(h, k): hh shifts the parabola to the right, kk upwards; negative values shift it to the left and downwards. The factor aa makes it narrower or wider and turns it over when it is negative.

The parabola keeps its shape and moves as a whole: 22 to the right and 11 down, from y=x2y = x^2 to y=(x−2)2−1y = (x - 2)^2 - 1.

Self-check

Where is the vertex of the parabola y=(x+3)2−2y = (x + 3)^2 - 2?

Your answer
Show the solution

S(−3,−2)S(-3, -2). The bracket (x+3)(x + 3) is zero at x=−3x = -3, and there y=−2y = -2. Written in vertex form: y=(x−(−3))2+(−2)y = (x - (-3))^2 + (-2), so h=−3h = -3 and k=−2k = -2.

Example 1

Write y=x2+6x+5y = x^2 + 6x + 5 in vertex form and give the vertex.

  1. 01

    Halve the number in front of xx and square the half: this is the number that is missing for a perfect square.

    6÷2=3,32=96 \div 2 = 3, \quad 3^2 = 9
  2. 02

    Add the 99 and take it away again straight away, so the value stays the same. This is called completing the square.

    y=x2+6x+9−9+5y = x^2 + 6x + 9 - 9 + 5
  3. 03

    The first three terms form a perfect square. Write them as a squared bracket.

    y=(x+3)2−9+5y = (x + 3)^2 - 9 + 5
  4. 04

    Combine the two numbers.

    y=(x+3)2−4y = (x + 3)^2 - 4
Answer

The vertex form is y=(x+3)2−4y = (x + 3)^2 - 4, and the vertex is S(−3,−4)S(-3, -4). Check by expanding: (x+3)2−4=x2+6x+9−4=x2+6x+5(x + 3)^2 - 4 = x^2 + 6x + 9 - 4 = x^2 + 6x + 5.

x2+6xx^2 + 6x is a square with two equal rectangles. Only the small corner square, 3×3=93 \times 3 = 9, makes the shape a complete square with the side x+3x + 3.

Largest and smallest value

A square is never negative, so (x−h)2(x - h)^2 is smallest at x=hx = h, where it is zero. For positive aa this makes kk the smallest value of the function, the minimum; for negative aa it makes kk the largest, the maximum.

Example 2

A rectangle has a perimeter of 20 cm20\,\text{cm}. How long must its sides be for its area to be as large as possible?

  1. 01

    Call one side xx and work in centimetres. Two sides that meet at a corner add up to half the perimeter, which is 1010: the other side is 10−x10 - x.

    A=x(10−x)=−x2+10xA = x(10 - x) = -x^2 + 10x
  2. 02

    Take out the factor −1-1, so that x2x^2 stands in the bracket without a minus sign.

    A=−(x2−10x)A = -(x^2 - 10x)
  3. 03

    Complete the square in the bracket: half of 1010 is 55, and 52=255^2 = 25.

    A=−(x2−10x+25−25)=−((x−5)2−25)A = -(x^2 - 10x + 25 - 25) = -\big((x - 5)^2 - 25\big)
  4. 04

    Remove the outer bracket.

    A=−(x−5)2+25A = -(x - 5)^2 + 25
  5. 05

    Read off the vertex. Because a=−1a = -1 is negative, it is the highest point.

    S(5,25)S(5, 25)
Answer

The area is largest for x=5x = 5: both sides are 5 cm5\,\text{cm} long, and the rectangle is a square with an area of 25 cm225\,\text{cm}^2. Check: with sides of 4 cm4\,\text{cm} and 6 cm6\,\text{cm} the area is only 24 cm224\,\text{cm}^2.

Self-check

What is the smallest value of the function y=(x−4)2+7y = (x - 4)^2 + 7?

Show the solution

(x−4)2(x - 4)^2 is never negative and equals zero at x=4x = 4. Then y=0+7=7y = 0 + 7 = 7: the smallest value is 77, and the vertex is S(4,7)S(4, 7).

Self-check

For which xx is y=−(x−2)2+9y = -(x - 2)^2 + 9 largest?

Show the solution

For x=2x = 2: then the bracket is zero and y=9y = 9. For every other xx something positive is subtracted, and yy is less than 99.

For teachers: a lesson plan (45 min)
  1. 5 min

    Starter

    First ask without the simulation: does the vertex of y=(x+4)2y = (x + 4)^2 lie to the left or to the right of the origin? The class votes. Then open the simulation with ‘Full screen’: someone sets hh so that this bracket appears, and kk to 00.

  2. 10 min

    Reading off the vertex

    The figure with the two arrows: what would the equation of the green parabola be if the arrows pointed 11 to the left and 44 up? Then the first self-check. Finally the class predicts whether the parabola gets narrower or wider with ‘Factor a’ at 0.50.5, and someone checks it in the simulation.

  3. 10 min

    Completing the square

    Reveal Example 1 step by step together. Then the figure with the square made of four parts: what would it look like for x2+8xx^2 + 8x, and which number would be missing in the corner there? Discuss the ‘Watch out’ box.

  4. 15 min

    Optimising and practice

    Read the section ‘Largest and smallest value’ together. Let pupils try Example 2 on their own first, then reveal it and compare. The two calculation questions, alone or in pairs.

  5. 5 min

    Plenary

    Read the ‘Remember’ box together. Ask: why does a parabola that opens upwards have no largest value?

Got an exercise on paper?

Take a photo of it and Math Explainer turns it into an explainer video with every step of the solution.

Upload a photo