How to solve a quadratic by completing the square

Completing the square transforms a standard quadratic equation ax2+bx+c=0ax^2 + bx + c = 0 into the form a(xh)2+k=0a(x-h)^2 + k = 0, allowing direct solution by taking square roots. This method applies to all quadratic equations, including those with complex, irrational, or rational roots.

The setup

Ensure the equation is in the standard form ax2+bx+c=0ax^2 + bx + c = 0. Divide the entire equation by the leading coefficient aa so that the coefficient of the x2x^2 term is exactly 11. Move the constant term to the right side of the equality.

The steps

  1. Identify the new linear coefficient bb in the equation x2+bx=cx^2 + bx = c.
  2. Compute the value of (b/2)2(b/2)^2.
  3. Add this computed value to both sides of the equation.
  4. Factor the left side as the perfect square (x+b/2)2(x + b/2)^2.
  5. Take the square root of both sides, applying the ±\pm sign to the right side.
  6. Isolate xx to find the roots.

Checking the result

Substitute both solutions back into the original unsimplified equation ax2+bx+c=0ax^2 + bx + c = 0. Both values must satisfy the equality. If they do not, check for arithmetic errors in factoring or evaluating the square root.

Common errors

Forgetting to divide by aa before calculating (b/2)2(b/2)^2. Neglecting the ±\pm symbol when taking the square root, which incorrectly drops one of the two solutions. Adding the squared term to only the left side of the equation, violating algebraic equality.

Worked example

Solve 2x28x10=02x^2 - 8x - 10 = 0 by completing the square.

2x28x10=02x^2 - 8x - 10 = 0 Divide by the leading coefficient 2: x24x5=0x^2 - 4x - 5 = 0 Move the constant to the right side: x24x=5x^2 - 4x = 5 Find (b/2)2(b/2)^2 where b=4b = -4: (4/2)2=(2)2=4(-4/2)^2 = (-2)^2 = 4 Add 4 to both sides: x24x+4=5+4x^2 - 4x + 4 = 5 + 4 x24x+4=9x^2 - 4x + 4 = 9 Factor the left side as a perfect square: (x2)2=9(x - 2)^2 = 9 Take the square root of both sides: x2=±3x - 2 = \pm 3 Solve for xx: x=2±3x = 2 \pm 3 Calculate the two roots: x1=2+3=5x_1 = 2 + 3 = 5 x2=23=1x_2 = 2 - 3 = -1

FAQ

Run your own problem

References: OpenStax College Algebra, Section 2.5: Quadratic Equations · Khan Academy Unit: Quadratic Equations & Functions · Stewart Precalculus, Chapter 1: Fundamentals

See also