# Finding solutions to quadratic equations

 A parabolic shape in three dimensions--Sant Cugat's Wine Cooperative in Spain, designed by Cèsar Martinell i Brunet A paraboloa in two-dimensions--graph of $x^2-x-3$

Now, to the specifics on solving quadratic equations…

### The zero factor principle

When we have factors that when multiplied together give us an answer of zero, we know that at least one of our factors is zero.

A product is equal to zero when the first factor is zero, for example $(0)(6) = 0$.

And, a product is equal to zero when the second factor is zero, for example $(6)(0) = 0$.

Let's take a look at two factors--denoted by A and B--that when multiplied together result in an answer of zero. From the example above, we know that we get an answer of zero when A=0 (the first factor) and when B=0 (the second factor). Let's write this out using mathematical notation:

(A)(B) = 0

For A=0, (0)(B) = 0

For B=0, (A)(0) = 0

Therefore, the solutions--the values of A and B that give us an answer of zero--to the equation (A)(B) = 0 are:

A = 0 , B = 0

#### Solve for $x$ example 1:  $(x)(x-1) = 0$

Again, we have two factors $(x)$ and $(x-1)$ that are multiplied together to give an answer of zero. Just like the example above where we found A and B when (A)(B) = 0, we find the solutions to this problem by setting each factor equal to zero. The first factor is $x$ and the second factor is $x - 1$.

$(x)(x-1)=0$

The first factor is equal to zero when $x = 0$ and the second factor is zero when $x - 1 = 0$. So, to solve for $x$, we have

$x = 0, \quad x - 1 = 0$

The first factor is solved for $x$, $x = 0$. However, we need to solve the second factor for $x$ by adding $1$ to both sides of the equal sign:

\begin{align} x - 1 &= 0 \\ x - 1 + 1 &= 0 + 1 \\ x &= 1 \\ \end{align}

The following two values for x are solutions to the equation $(x)(x - 1) = 0$:

$x = 0, \quad x = 1$

We can check our answers by substituting the values into the original equation: $(x)(x - 1) = 0$.

• When $x = 0$,
\begin{align}(x)(x - 1) &= 0 \\ (0)(0 - 1) &= 0 \\ (0)(-1) &= 0\end{align}
• When $x = 1$,
\begin{align}(x)(x - 1) &= 0 \\ (1)(1 - 1) &= 0 \\ (1)(0) &= 0\end{align}

We get $0=0$ in both cases, so our solutions check out.

#### Solve for $x$ example 2:  $(x - 5)(x - 8) = 0$

Set each factor equal to zero: $(x - 5) = 0$ and $(x - 8) = 0$.

Solve for $x$ in the first factor:

\begin{align} x - 5 &= 0 \\ x - 5 + 5 &= 0 + 5 \qquad \text{add 5 to both sides of the equal sign} \\ x &= 5 \\ \end{align}

Solve for $x$ in the second factor:

\begin{align} x - 8 &= 0 \\ x - 8 + 8 &= 0 + 8 \qquad \text{add 8 to both sides of the equal sign} \\ x &= 8 \\ \end{align}

We have two solutions for x: $x = 5 \quad x = 8$.

• First evaluate $(x - 5) (x - 8) = 0$ when $x = 5$
\begin{align}(x-5)(x - 8) &= 0 \\ (5-5)(5 - 8) &= 0 \\ (0)(-3) &= 0\end{align}
• Then evaluate $(x - 5)(x - 8) = 0$ when $x = 8$
\begin{align}(x-5)(x - 8) &= 0 \\ (8-5)(8 - 8) &= 0 \\ (3)(0) &= 0\end{align}

Again, we get $0=0$ in both cases, so our solutions check out.

#### Solve for $x$ example 3:  $(x - 9)(3x - 12) = 0$

Set each factor equal to zero: $x - 9 = 0$ and $3x - 12 = 0$.

Solve for $x$ in the first factor:

\begin{align} x - 9 &= 0 \\ x - 9 + 9 &= 0 + 9 \qquad \text{add 9 to both sides of the equal sign} \\ x &= 9 \\ \end{align}

Solve for $x$ in the second factor:

\begin{align} 3x - 12 &= 0 \\ 3x - 12 + 12 &= 0 + 12 \qquad \text{add 12 to both sides of the equal sign} \\ 3x &= 12 \\ \frac{3x}{3} &= \frac{12}{3} \qquad \text{to isolate} \ x \ \text{on the left, divide both sides of the equal sign by 3} \\ x &= 4 \\ \end{align}

Our solutions to the equation $(x - 9)(3x - 12) = 0$ are $x = 9, \quad x = 4$.

### When a quadratic equation needs to be factored first

An equation in the form $ax^2 + bx + c = 0$ is called a quadratic equation.

To solve a quadratic equation, we need zero on one side of the equal sign and we need to write the $ax^2 + bx + c$ part of the equation in factored form. In this way, our equation will look similar to the examples above, and we can set each factor equal to zero and solve for the variable.

#### Solve for $x$ example 4:  $x^2 + 8x + 12$

This is a quadratic equation where $a=1$, $b=8$ and $c=12$. We know that in order to solve for $x$, we must rewrite the equation in factored form. The factors of the first term, $x^2$, are $x$ and $x$; the factors of the last term, $12$ that will result in a middle term of $8x$ are $6$ and $2$.

The factored form of $x^2 + 8x + 12$ is $(x + 6)( x+ 2) = 0$.

Now we can proceed as before. Set each factor equal to zero: $x + 6 = 0$ and $x + 2 = 0$.

Solve for $x$ in the first factor:

\begin{align} x + 6 &= 0 \\ x + 6 - 6 &= 0 - 6 \qquad \text{subtract 6 from both sides of the equal sign} \\ x &= -6 \\ \end{align}

Solve for $x$ in the second factor:

\begin{align} x + 2 &= 0 \\ x + 2 - 2 &= 0 - 2 \qquad \text{subtract 2 from both sides of the equal sign} \\ x &= -2 \\ \end{align}

Our solutions to the equation $x^2 + 8x + 12$ are $x = -6 \quad x = -2$.

#### Solve for $y$ example 5:  $2y^2 + 11y + 12 = 0$

In this quadratic equation, $a = 2$, $b = 11$, and $c = 12$. We need to factor the equation in order to solve for $y$. The factors of the first term, $2y^2$, are $2y$ and $y$. The factors of $12$, the last term, that will result in a middle term of $11y$ are $3$ and $4$.

The factored form of $2y^2 + 11y + 12$ is $(2y + 3)(y + 4) = 0$.

Set each factor equal to zero: $2y + 3 = 0$ and $y + 4 = 0$.

Solve for $y$ in the first factor:

\begin{align} 2y + 3 &= 0 \\ 2y + 3 - 3 &= 0 - 3 \qquad \text{subtract 3 from both sides of the equal sign} \\ \frac{2y}{2} &= \frac{-3}{2} \qquad \text{divide both sides of the equal sign by 2} \\ y &= \frac{-3}{2} \\ \end{align}

Solve for $y$ in the second factor:

\begin{align} y + 4 &= 0 \\ y + 4 - 4 &= 0 - 4 \qquad \text{subtract 4 from both sides of the equal sign} \\ y &= -4 \\ \end{align}

Our solutions to the equation $2y^2 + 11y + 12 = 0$ are $y = -\frac{3}{2} \quad y = -4$.

#### Solve for $y$ example 6:  $y^2 - 16 = 0$

For this equation, $a = 1$, $b = 0$, and $c = -16$.

Factor the equation as a difference of two squares: $(y + 4)(y - 4) = 0$.

Set each factor equal to zero: $y + 4 = 0$ and $y - 4 = 0$.

Solve for $y$ in the first factor:

\begin{align} y + 4 &= 0 \\ y + 4 - 4 &= 0 - 4 \qquad \text{subtract 4 from both sides of the equal sign} \\ y &= -4 \\ \end{align}

Solve for $y$ in the second factor:

\begin{align} y - 4 &= 0 \\ y - 4 + 4 &= 0 + 4 \qquad \text{add 4 to both sides of the equal sign} \\ y &= 4 \\ \end{align}

Our solutions to the equation $y^2 - 16 = 0$ are $y = -4 \quad y = 4$.

### Why do quadratic equations have two solutions?

A quadratic equation is an equation with a second-degree term, and no higher terms. A second-degree term is one which includes a variable with an exponent of $2$; in a quadratic equation of the form $ax^2 + bx + c$, the second degree term is $ax^2$. The degree of an equation is the degree of the equation's highest term and tells you how many solutions an equation has, so a quadratic equation has 2 solutions. Similarly, if the degree of an equation is three, there are three solutions to the equation. However, sometimes, as in the next example, we get only one solution because the solution is repeated.

#### Solve for $x$ example 7:  $x^2 +4x + 4 = 0$

For this equation, $a = 1$, $b = 4$, and $c = 4$.

The factors for this equation are: $(x + 2)(x + 2) = 0$.

Set each factor equal to zero: $x + 2 = 0$ and $x + 2 = 0$.

Solve for $x$ in the first factor:

\begin{align} x + 2 &= 0 \\ x + 2 - 2 &= 0 - 2 \qquad \text{subtract 2 from both sides of the equal sign} \\ x &= -2 \\ \end{align}

Solve for $x$ in the second factor:

\begin{align} x + 2 &= 0 \\ x + 2 - 2 &= 0 - 2 \qquad \text{subtract 2 from both sides of the equal sign} \\ x &= -2 \\ \end{align}

Because the two factors are the same, the solutions to the equation $x^2 +4x + 4 = 0$ are in fact only one solution: $x = -2$.