FreeMathCamp
Course Articles

Free Math Camp

A free course in the maths you need before calculus. Short lessons, interactive visuals, practice that adapts to you, and a record of progress on your account.

freemathcamp.app

Made by Adam Richard Turner

hello@adamrichardturner.dev

Course

  • Foundations
  • Articles
  • Start free
  • Sign in

Legal

  • Privacy
  • Terms
  • Do not sell or share

Copyright © Adam Richard Turner. All rights reserved.

  1. Articles
  2. /
  3. Polynomials & Quadratics
Polynomials & Quadratics

Completing the Square and Vertex Form of a Quadratic

Completing the square as a picture of an actual square, the step-by-step method, how vertex form reveals the turning point and the range, and how it solves any quadratic equation.

3 min read Supports 4 lessons
In short

Completing the square rewrites x2+bx+cx^2 + bx + cx2+bx+c as (x+b2)2+k(x + \frac{b}{2})^2 + k(x+2b​)2+k. The result, vertex form a(x−h)2+ka(x - h)^2 + ka(x−h)2+k, shows the parabola's turning point (h,k)(h, k)(h,k) directly.

The graph of any quadratic is a parabola, and every parabola is the basic y=x2y = x^2y=x2 shifted and stretched. Vertex form makes those shifts visible:

Vertex form
y=a(x−h)2+ky = a(x - h)^2 + ky=a(x−h)2+k

The vertex (turning point) is (h,k)(h, k)(h,k), and the axis of symmetry is the line x=hx = hx=h.

Completing the square is the algebra that turns x2+bx+cx^2 + bx + cx2+bx+c into this form.

Why it is called completing the square

Picture x2+6xx^2 + 6xx2+6x as shapes: an xxx by xxx square plus a 666 by xxx strip. Cut the strip in half and attach one half to each side of the square. You almost have a bigger square, (x+3)(x + 3)(x+3) on each side, but a 3×33 \times 33×3 corner is missing. Add that corner, and subtract it again to stay honest.

x2+6x=(x+3)2−9x^2 + 6x = (x + 3)^2 - 9x2+6x=(x+3)2−9

The 999 is the missing corner: (62)2\left(\frac{6}{2}\right)^2(26​)2.

Completing the square
x2+bx+c=(x+b2)2−(b2)2+cx^2 + bx + c = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2 + cx2+bx+c=(x+2b​)2−(2b​)2+c

Step by step

  1. x2−6x+5x^2 - 6x + 5x2−6x+5

    Halve the coefficient of xxx: half of −6-6−6 is −3-3−3.

1/4
Watch out

(x−3)2−4(x - 3)^2 - 4(x−3)2−4 has its vertex at (3,−4)(3, -4)(3,−4), not (−3,−4)(-3, -4)(−3,−4). The bracket (x−h)(x - h)(x−h) shifts right by hhh.

What vertex form tells you

Since (x−3)2(x - 3)^2(x−3)2 is never negative, (x−3)2−4(x - 3)^2 - 4(x−3)2−4 is never less than −4-4−4. So the minimum value is −4-4−4, reached at x=3x = 3x=3, and the range is y≥−4y \ge -4y≥−4. If aaa is negative the parabola opens downwards and kkk is a maximum instead.

Solving equations

Worked example

Solve x2−6x+5=0x^2 - 6x + 5 = 0x2−6x+5=0 by completing the square.

  1. 1

    Complete the square.

    (x−3)2−4=0(x - 3)^2 - 4 = 0(x−3)2−4=0

When a is not 1

Factor aaa out of the x2x^2x2 and xxx terms first, complete the square inside the bracket, then multiply back out.

2x2+8x+1=2(x2+4x)+1=2[(x+2)2−4]+1=2(x+2)2−72x^2 + 8x + 1 = 2(x^2 + 4x) + 1 = 2\big[(x + 2)^2 - 4\big] + 1 = 2(x + 2)^2 - 72x2+8x+1=2(x2+4x)+1=2[(x+2)2−4]+1=2(x+2)2−7
Key idea

Completing the square on ax2+bx+c=0ax^2 + bx + c = 0ax2+bx+c=0 in general is exactly how the quadratic formula is derived. It is also how you find the centre and radius of a circle from its equation.

Common questions

How do you find the vertex by completing the square?

Rewrite the quadratic as a(x−h)2+ka(x - h)^2 + ka(x−h)2+k. The vertex is (h,k)(h, k)(h,k). For example (x−3)2−4(x - 3)^2 - 4(x−3)2−4 has vertex (3,−4)(3, -4)(3,−4).

Why do you halve b when completing the square?

Because (x+b2)2=x2+bx+b24(x + \frac{b}{2})^2 = x^2 + bx + \frac{b^2}{4}(x+2b​)2=x2+bx+4b2​. Halving bbb gives the bracket whose expansion produces the right xxx term.

Practise completing the square

The Completing the Square & Vertex Form lesson has worked examples and unlimited practice that adapts to you.

Open the lesson

On this page

  1. Why it is called completing the square
  2. Step by step
  3. What vertex form tells you
  4. Solving equations
  5. When a is not 1
  6. Common questions
Lessons on this
  • Completing the Square & Vertex FormPolynomials, Quadratics & Rational Functions
  • The Quadratic FormulaPolynomials, Quadratics & Rational Functions
  • Equations of CirclesGeometry
  • Transforming GraphsFunctions
Related reading7
Ideas this article builds on or leads to.
  • Polynomials & Quadratics
    The Quadratic Formula and the Discriminant Explained

    The quadratic formula solves any equation ax2+bx+c=0ax^2 + bx + c = 0ax2+bx+c=0: x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}x=2a−b±b2−4ac​​. The discriminant b2−4acb^2 - 4acb2−4ac tells you how many real solutions there are.

  • Graphs & Functions
    Transformations of Graphs: Shifts, Stretches and Reflections

    A transformation moves or reshapes a graph. In y=a f(x−h)+ky = a\,f(x - h) + ky=af(x−h)+k, hhh shifts it right, kkk shifts it up, ∣a∣|a|∣a∣ stretches it vertically, and a negative aaa reflects it in the xxx-axis.

  • Polynomials & Quadratics
    How to Factorise Quadratics: Sum-Product Method and Difference of Two Squares

    Factorising a quadratic rewrites it as a product of brackets: x2+7x+12=(x+3)(x+4)x^2 + 7x + 12 = (x + 3)(x + 4)x2+7x+12=(x+3)(x+4). For x2+bx+cx^2 + bx + cx2+bx+c, look for two numbers that add to bbb and multiply to ccc.

  • Geometry
    Distance and Midpoint Formulas and the Equation of a Circle

    The distance formula d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}d=(x2​−x1​)2+(y2​−y1​)2​ is Pythagoras on a grid. The midpoint averages the coordinates. A circle with centre (h,k)(h, k)(h,k) and radius rrr has equation (x−h)2+(y−k)2=r2(x - h)^2 + (y - k)^2 = r^2(x−h)2+(y−k)2=r2.

  • Powers & Roots
    Square Roots and Surds: Simplifying Radicals Step by Step

    The square root n\sqrt{n}n​ is the non-negative number that squares to nnn: 49=7\sqrt{49} = 749​=7. A root that cannot be written as a whole number or fraction, like 2\sqrt{2}2​, is called a surd (or radical).

  • Number & Arithmetic
    Factors and Multiples: What Is the Difference?

    A factor of a number divides it exactly, with no remainder. A multiple of a number is that number times a whole number. So 444 is a factor of 121212, and 121212 is a multiple of 444.

  • Geometry
    Circles and Pi: Circumference and Area of a Circle

    For every circle, the circumference divided by the diameter is the same number, pi (π≈3.14159\pi \approx 3.14159π≈3.14159). So the circumference is C=2πrC = 2\pi rC=2πr and the area is A=πr2A = \pi r^2A=πr2.