Euler Hall — free maths guides

Rewrite a quadratic polynomial by completing the square

Rewrite a quadratic polynomial in the form a(x - h)2 + k. The idea in plain words, a worked example, and a check with the answers shown — part of the free Algebra I guides.

A square has a lowest value, so the rest is decoration

(x−3)2(x - 3)^{2} is never negative. Its smallest value is00, and that happens atx=3x = 3. Everything else about the expression is that fact plus arithmetic.

Soy=(x−3)2+5y = (x - 3)^{2} + 5 has its smallest value55 atx=3x = 3, and the vertex — the turning point of the parabola — is(3,5)(3, 5).

The general shape is vertex form:

y=a(x−h)2+k,vertex (h,k).y = a(x - h)^{2} + k, \qquad \text{vertex } (h, k).

Readhh from the bracket with its sign flipped, andkk straight off the end. A negativeaa turns the parabola upside down, so the vertex becomes the highest point.

Why completing the square produces this

Vertex form is what completing the square leaves behind when there is no equation to solve.

Takey=x2−6x+4y = x^{2} - 6x + 4. Completing the square: half of−6-6 is−3-3, whose square is99, so y=(x2−6x+9)+4−9=(x−3)2−5.y = (x^{2} - 6x + 9) + 4 - 9 = (x - 3)^{2} - 5.

The−9-9 appears because99 was added and must be taken back — the expression's value cannot change. That is the difference between this and solving: an equation can have a number added to both sides, but an expression can only have a number added and subtracted.

So the vertex is(3,−5)(3, -5): the smallestyy is−5-5, atx=3x = 3. The axis of symmetry is the vertical linex=3x = 3, because the square is the same on both sides of it.

Worked example with a leading coefficient other than one

Writey=2x2−12x+11y = 2x^{2} - 12x + 11 in vertex form and state the vertex.

Step 1. Take the leading coefficient out of the first two terms.y=2(x2−6x)+11y = 2(x^{2} - 6x) + 11.

Step 2. Complete the square inside the bracket. Half of−6-6 is−3-3, whose square is99:y=2(x2−6x+9)+11−18y = 2(x^{2} - 6x + 9) + 11 - 18.

Step 3. Notice the subtraction. The99 inside is multiplied by the22 outside, so it adds1818 to the value; subtracting1818 takes it back.

Step 4. Write the square and simplify.y=2(x−3)2−7y = 2(x - 3)^{2} - 7.

Step 5. Read the vertex.(3,−7)(3, -7), a minimum becausea=2>0a = 2 > 0.

Step 6. Check. Atx=3x = 3 the original gives18−36+11=−718 - 36 + 11 = -7. Atx=4x = 4 it gives32−48+11=−532 - 48 + 11 = -5, which is higher, as a minimum requires.

By the end you can
  • Rewrite a quadratic polynomial in the form a(x - h)^2 + k
  • Read the vertex and the axis of symmetry off vertex form
  • Handle a leading coefficient other than one
  • Decide whether the vertex is a maximum or a minimum
Check yourself

(a) Writey=x2−10x+21y = x^{2} - 10x + 21 in vertex form and state the vertex.

(b) What is the vertex ofy=−(x−2)2+9y = -(x - 2)^{2} + 9, and is it a maximum or a minimum?

(c) Find the vertex ofy=x2+6xy = x^{2} + 6x without writing the full vertex form.

Answers

(a)y=(x−5)2−4y = (x - 5)^{2} - 4, so the vertex is(5,−4)(5, -4).

(b)(2,9)(2, 9), and becausea=−1<0a = -1 < 0 it is a maximum.

(c)h=−b2a=−3h = -\frac{b}{2a} = -3, andyy at−3-3 is9−18=−99 - 18 = -9, so the vertex is(−3,−9)(-3, -9).

Work out where to start — free, no accountAnswer six real questions — free, no account