Factor.
Both values, 8 and –2, are solutions to the original equation.
Factor.
Factor.
Factor.
First, simplify by putting all terms on one side and combining like terms.
Now, factor.
Many quadratic equations cannot be solved by factoring. This is generally true when the roots, or answers, are not rational numbers. A second method of solving quadratic equations involves the use of the following formula:
a, b, and c are taken from the quadratic equation written in its general form of
ax ^{2} + bx + c = 0
where a is the numeral that goes in front of x ^{2}, b is the numeral that goes in front of x, and c is the numeral with no variable next to it (a.k.a., “the constant”).
When using the quadratic formula, you should be aware of three possibilities. These three possibilities are distinguished by a part of the formula called the discriminant. The discriminant is the value under the radical sign, b ^{2} – 4 ac. A quadratic equation with real numbers as coefficients can have the following:

Two different real roots if the discriminant b ^{2} – 4 ac is a positive number.

One real root if the discriminant b ^{2} – 4 ac is equal to 0.

No real root if the discriminant b ^{2} – 4 ac is a negative number.
Example 6
Solve for x: x ^{2} – 5 x = –6.
Setting all terms equal to 0,
x ^{2} – 5 x + 6 = 0
Then substitute 1 (which is understood to be in front of the x ^{2}), –5, and 6 for a, b, and c, respectively, in the quadratic formula and simplify.
Because the discriminant b ^{2} – 4 ac is positive, you get two different real roots.
Example
produces rational roots. In Example
, the quadratic formula is used to solve an equation whose roots are not rational.
Example 7
Solve for y: y ^{2} = –2y + 2.
Setting all terms equal to 0,
y ^{2} + 2 y – 2 = 0
Then substitute 1, 2, and –2 for a, b, and c, respectively, in the quadratic formula and simplify.
Note that the two roots are irrational.
Example 8
Solve for x: x ^{2} + 2 x + 1 = 0.
Substituting in the quadratic formula,
Since the discriminant b ^{2} – 4 ac is 0, the equation has one root.
The quadratic formula can also be used to solve quadratic equations whose roots are imaginary numbers, that is, they have no solution in the real number system.
Example 9
Solve for x: x( x + 2) + 2 = 0, or x ^{2} + 2 x + 2 = 0.
Substituting in the quadratic formula,
Since the discriminant b ^{2} – 4 ac is negative, this equation has no solution in the real number system.
But if you were to express the solution using imaginary numbers, the solutions would be .
Completing the square
A third method of solving quadratic equations that works with both real and imaginary roots is called completing the square.

Put the equation into the form ax ^{2} + bx = – c.

Make sure that a = 1 (if a ≠ 1, multiply through the equation by before proceeding).

Using the value of b from this new equation, add to both sides of the equation to form a perfect square on the left side of the equation.

Find the square root of both sides of the equation.

Solve the resulting equation.
Example 10
Solve for x: x ^{2} – 6 x + 5 = 0.
Arrange in the form of
Because a = 1, add , or 9, to both sides to complete the square.
Take the square root of both sides.
x – 3 = ±2
Solve.
Example 11
Solve for y: y ^{2}+ 2 y – 4 = 0.
Arrange in the form of
Because a = 1, add , or 1, to both sides to complete the square.
Take the square root of both sides.
Solve.
Example 12
Solve for x: 2 x ^{2} + 3 x + 2 = 0.
Arrange in the form of
Because a ≠ 1, multiply through the equation by .
Add or to both sides.
Take the square root of both sides.
There is no solution in the real number system. It may interest you to know that the completing the square process for solving quadratic equations was used on the equation ax ^{2} + bx + c = 0 to derive the quadratic formula.