# Does completing the square always work for quadratic equations?

Created by Anna Szczepanek, PhD
Reviewed by Rijk de Wet
Last updated: Feb 02, 2023

Completing the square is a method to solve quadratic equations that always works! We will explain the logic behind this method and we'll show you an example of how it works. Also, we discuss the advantages of this method over the quadratic formula and vice versa.

If you're not yet familiar with the method in question, make sure to check our completing the square calculator.

## What is completing the square and when do you use it?

Completing the square is an algebraic technique that lets you solve quadratic equations (or equivalently, factor quadratic trinomials). With this method, you apply basic algebraic operations to transform your problem so that there's a perfect square trinomial on the left side of the equation and a constant term on the right side. To discover more about the former, go to our perfect square trinomial calculator.

Formally, for the equation $x^2 +bx + c = 0$ we perform the following transformations:

1. Add $\frac{b^2}{4} - c$ to both sides:

$x^2 + bx + c + (\frac{b^2}{4} - c) = \frac{b^2}{4} - c$
$\therefore x^2 + bx + \frac{b^2}{4} = \frac{b^2}{4} - c$

2. Use the short multiplication formula in reverse to transform the left side:

$x^2 + bx + \frac{b^2}{4} = (x^2 + \frac{b}{2})^2$
$\therefore (x^2 + \frac{b}{2})^2 = \frac{b^2}{4} - c$

3. Look at $\frac{b^2}{4} - c$ on the right side.

• If it's positive, we take the square root of both sides. The equation then has two solutions.
• If it's equal to zero, we immediately know that the solution is $x = -\frac{b}{2}$.
• If it's negative, then our equation has no real solutions and only complex solutions.

The method of completing the square will work for every quadratic equation you can imagine. Above, we assumed that the coefficient for $x^2$ is equal to $1$. If your equation starts with $ax^2$ and $a$ is not $1$ (for example, if you need to solve $2x^2+3x-7=0$), then divide both sides of the equation by $a$ (in this example it's $2$). If done correctly, the left side will now start with $x^2$, and you can then apply the steps we've discussed above.

## Does completing the square always work?

Yes, you can solve any quadratic equation by completing the square, even if the equation has no real solutions! However, in some cases, quite a bit of computation will be required. Here's an example of an equation without real roots solved by completing the square:

"Solve $x^2-4x+13 = 0$."

1. Subtract $9$ from both sides:

$x^2-4x+13-9 = -9$
$x^2-4x+4 = -9$

2. Recognize the perfect square on the left-hand side:

$(x-2)^2 = -9 = (3i)^2$

3. Take the square root:

$x-2 = \sqrt{-9} = \pm 3i$

$x = 2 \pm 3i$

## Why does completing the square work?

The method of solving quadratic equations by completing the square always works because of the short multiplications formula:

$(x+b)^2 = x^2+bx+b^2$

Consequently, for every quadratic expression of the form $x^2+bx+c$ you can add (or subtract) a constant term on both sides of the equation so that we obtain the perfect square trinomial $(x+b)^2$.

## What is the benefit of completing the square?

It is certainly a good idea to learn the completing the square method. First, it is much more intuitive than simply plugging the coefficients into the quadratic formula calculator. It gives you a feeling of understanding what happens to your equation and why a particular number is a solution. In fact, it's almost impossible to forget how this method works once you've seen it in action!

Also, the method of completing the square can be used to derive the quadratic formula, should you ever forget it — and it's easy to forget a formula that you simply learned by heart and never fully understood.

Finally, if you ever face integration problems, you'll be thankful you've mastered completing the square, because it pops up repeatedly there.

The advantage of using the quadratic formula method for solving quadratic equations is that it usually requires fewer steps and takes less time than completing the square.

Moreover, it can be easily implemented if you need to solve quadratic equations inside a computer program.

Anna Szczepanek, PhD
We will solve the quadratic equation
ax2 + bx + c = 0
a
b
c
People also viewed…

### Alien civilization

The alien civilization calculator explores the existence of extraterrestrial civilizations by comparing two models: the Drake equation and the Astrobiological Copernican Limits👽

### Factorial

Use our factorial calculator to calculate the factorial of any positive number.

### Social Media Time Alternatives

Check what you could have accomplished if you get out of your social media bubble.

### Truncated cone

Omni's truncated cone calculator can solve every imaginable problem related to truncated cones. 