Skip to main content

Section 2.3 Solving Quadratic Equations by Factoring

We have learned how to factor trinomials like \(x^2+5x+6\) into \((x+2)(x+3)\text{.}\) This skill can be used to solve quadratic equations like \(x^2+5x+6=0\text{.}\)

Subsection 2.3.1 Quadratic Equations

Definition 2.3.1. Quadratic Equation.

A quadratic equation is is an equation in the form
\begin{equation*} ax^2+bx+c=0 \end{equation*}
with \(a\neq0\text{.}\) We also consider equations such as \(x^2=x+3\) and \(5x^2+3= (x+1)^2 + (x + 1)(x-3)\) to be quadratic equations, because we can expand multiplication, add or subtract terms from both sides, and combine like terms to get these into the form \(ax^2+bx+c=0\text{.}\) The form \(ax^2+bx+c=0\) is called the standard form of a quadratic equation.
Quadratic equations arise in many science and engineering settings. One source of quadratic equations is the physics of a falling object.
Nita launches a tennis ball from a rooftop \(80\) feet above the ground. They fire it directly upward at a speed of \(64\) feet per second and measure the time it takes for the ball to hit the ground below. We can model the height of the tennis ball, \(h\text{,}\) in feet, with a quadratic function:
\begin{equation*} h(t) = -16t^2 + 64t + 80\text{,} \end{equation*}
where \(t\) represents the time in seconds after the launch.
A drawing of a tall building and a tennis ball being launched upward; the path of the ball is an arc that goes upward and then downward to the ground
Figure 2.3.2. A Diagram of the Ball Thrown from the Roof
The \(80\) in the formula is of course the initial height of the ball. The \(64\) in the formula is the object’s initial speed, but notice that when you throw a ball straight up, its speed will start to change over time. This is where the β€œquadratic” term \(-16t^2\) comes into play. The strength of gravity on Earth is reflected by that number \(-16\text{.}\) It is negative because gravity is always pulling the ball down.
Using the model we can predict when the ball will hit the ground. The ground has a height of \(0\text{,}\) so we are interested in the time \(t\) when \(h(t)=0\text{.}\) We have the equation
\begin{equation*} -16t^2 + 64t + 80=0 \end{equation*}
Solving this quadratic equation for \(t\) will tell us when the ball will hit the ground.
The key strategy for solving a linear equation is to separate the variable terms from the constant terms on either side of the equal sign. We need a different strategy for solving a quadratic equation. Fortunately, we already have learned about factoring, which is one strategy that will help us now.
We look for a greatest common factor first, and find \(-16\text{.}\) After factoring that out, we are left with a monic quadratic trinomial that we can fullt factor:
\begin{align*} -16t^2+64t+80\amp=0\\ -16(t^2-4t-5)\amp=0\\ -16(t+1)(t-5)\amp=0 \end{align*}
To finish solving the equation, we need to understand an important feature of numbers.
One way to understand this property is to think about the equation \(a\cdot b=0\text{.}\) Maybe \(b=0\text{,}\) because that would certainly cause the equation to be true. But suppose that \(b\neq0\text{.}\) Then it is safe to divide both sides by \(b\text{,}\) and the resulting equation says that \(a=0\text{.}\) So no matter what, either \(a=0\) or \(b=0\text{.}\)
Or consider these numerical examples:
\begin{align*} 4\cdot7\amp=28\amp4\cdot0\amp=0\amp4\cdot7\cdot3\amp=84\\ 0\cdot7\amp=0\amp-4\cdot0\amp=0\amp4\cdot0\cdot3\amp=0 \end{align*}
Whenever none of the factors are \(0\text{,}\) the result is not \(0\text{.}\) The only way to get a product of \(0\) is when one of the factors is \(0\text{.}\)
Our factored equation is
\begin{equation*} -16(t+1)(t-5)=0 \end{equation*}
with three factors. The first factor is the number \(-16\text{.}\) The second and third factors, \(t+1\) and \(t-5\text{,}\) are algebra expressions. Since the product of the three factors is equal to \(0\text{,}\) one of those factors must be zero.
Obviously, the number \(-16\) is not \(0\text{.}\) So either \(t+1\) or \(t-5\) must be responsible for it all equalling \(0\text{.}\) This gives us two small linear equations to solve:
\begin{align*} t+1\amp=0\amp\amp\text{or}\amp t-5\amp=0\\ t+1\subtractright{1}\amp=0\subtractright{1}\amp\amp\text{or}\amp t-5\addright{5}\amp=0\addright{5}\\ t\amp=-1\amp\amp\text{or}\amp t\amp=5 \end{align*}
We have found two solutions, \(-1\) and \(5\text{.}\) A quadratic expression will have at most two linear factors, not including any constants, so it can have up to two solutions.
Let’s check each of our two solutions \(-1\) and \(5\text{:}\)
\begin{align*} -16t^2+64t+80\amp=0\amp\amp\amp-16t^2+64t+80\amp=0\\ -16(\substitute{-1})^2+64(\substitute{-1})+80\amp\wonder{=}0\amp\amp\amp-16(\substitute{5})^2+64(\substitute{5})+80\amp\wonder{=}0\\ -16(1)-64+80\amp\wonder{=}0\amp\amp\amp-16(25)+320+80\amp\wonder{=}0\\ -16-64+80\amp\wonder{=}0\amp\amp\amp-400+320+80\amp\wonder{=}0\\ 0\amp\confirm{=}0\amp\amp\amp0\amp\confirm{=}0 \end{align*}
We have verified our solutions. While there are two solutions to the algebra equation, the solution \(-1\) is not relevant to this physics setting. It is a negative time which would tell us something about the ball’s height before it was launched. Howeer the solution \(5\) makes sense. According to the model, the tennis ball will hit the ground \(5\) seconds after it is launched.
The important takeaway is that we used factoring to solve a quadratic equation.

Subsection 2.3.2 Solving Quadratic Equations by Factoring

Example 2.3.5.

Solve \(x^2-5x-14=0\) by factoring.
Explanation.
\begin{align*} x^2-5x-14\amp=0\\ (x-7)(x+2)\amp=0 \end{align*}
\begin{align*} x-7\amp=0\amp\amp\text{or}\amp x+2\amp=0\\ x-7\addright{7}\amp=0\addright{7}\amp\amp\text{or}\amp x+2\subtractright{2}\amp=0\subtractright{2}\\ x\amp=7\amp\amp\text{or}\amp x\amp=-2 \end{align*}
The solutions are \(-2\) and \(7\text{,}\) so the solution set is \(\{-2, 7\}\text{.}\)

Example 2.3.6.

Solve \(x^2-5x-14=0\) by using graphing technology.
Explanation.
We have already solved this in ExampleΒ 5, and now we can explore the significance of the solutions graphically. Will \(-2\) and \(7\) have any special meaning on the graph?
To solve this equation graphically, we first make a graph of \(y=x^2-5x-14\) and of \(y=0\text{.}\) Both of these graphs are shown in FigureΒ 7 in an appropriate window.
Figure 2.3.7. A graph of \(y=x^2-5x-14\) and \(y=0\text{.}\)
From the graph provided we can see that the solutions (the \(x\)-values where the graphs intersect) are \(-2\) and \(7\text{.}\)
Sometimes a quadratic equation will have only one solution.

Example 2.3.8. A Quadratic Equation with Only One Solution.

If \(f(x)=x^2-10x+25\text{,}\) use factoring to solve the equation \(f(x)=0\text{.}\)
Explanation.
\begin{align*} x^2-10x+25\amp=0\\ (x-5)(x-5)\amp=0\\ (x-5)^2\amp=0\\ x-5\amp=0\\ x-5\addright{5}\amp=0\addright{5}\\ x\amp=5 \end{align*}
The solution is \(5\text{,}\) so the solution set is written as \(\{5\}\text{.}\)
While we are examining this problem, let’s compare the algebraic solution to a graphical solution.
To solve this equation graphically, we first make a graph of \(y=x^2-10x+25\) and of \(y=0\text{.}\) Both of these graphs are shown in FigureΒ 9 in an appropriate window.
Figure 2.3.9. A graph of \(y=x^2-10x+25\) and \(y=0\text{.}\)
From the graph provided, we can see that the reason that the equation \(x^2-10x+25=0\) has only one solution is that the parabola \(y=x^2-10x+25\) touches the line \(y=0\) only once. So again, the solution is \(5\text{.}\)

Example 2.3.10. Factor Out a Common Factor.

Solve \(5x^2+55x+120=0\) by factoring.
Explanation.
Note that the terms are all divisible by \(5\text{,}\) so we can factor that out to start.
\begin{align*} 5x^2+55x+120\amp=0\\ 5(x^2+11x+24)\amp=0\\ 5(x+8)(x+3)\amp=0 \end{align*}
\begin{align*} x+8\amp=0\amp\amp\text{or}\amp x+3\amp=0\\ x\amp=-8\amp\amp\text{or}\amp x\amp=-3 \end{align*}
The solution set is \(\{-8, -3\}\text{.}\)
So far the equations in our examples have been written in standard form, \(ax^2+bx+c=0\text{.}\) If an equation does not start out in standard form, we must rearrange it in order to use the Zero Product Property. It’s important to get to the point where \(0\) is the only thing on one side of the equation.

Example 2.3.11. Writing in Standard Form.

If \(g\) is defined by \(g(x)=x^2-10x\text{,}\) solve the equation \(g(x)=24\text{.}\)
Explanation.
We need to solve \(x^2-10x=24\text{.}\) But there is no counterpart to the Zero Product Property for the number \(24\text{.}\) We have to move that term to the other side first.
\begin{align*} x^2-10x\amp=24\\ x^2-10x\subtractright{24}\amp=24\subtractright{24}\\ x^2-10x-24\amp=0\\ (x-12)(x+2)\amp=0 \end{align*}
\begin{align*} x-12\amp=0\amp\amp\text{or}\amp x+2\amp=0\\ x\amp=12\amp\amp\text{or}\amp x\amp=-2 \end{align*}
The solution set is \(\{-2, 12\}\text{.}\)

Example 2.3.12. Writing in Standard Form.

Solve \((x+4)(x-3)=18\) by factoring.
Explanation.
We must expand the left side and then subtract \(18\) from both sides.
\begin{align*} (x+4)(x-3)\amp=18\\ x^2+x-12\amp=18\\ x^2+x-12\subtractright{18}\amp=18\subtractright{18}\\ x^2+x-30\amp=0\\ (x+6)(x-5)\amp=0 \end{align*}
\begin{align*} x+6\amp=0\amp\amp\text{or}\amp x-5\amp=0\\ x\amp=-6\amp\amp\text{or}\amp x\amp=5 \end{align*}
The solution set is \(\{-6, 5\}\text{.}\)

Example 2.3.13. A Quadratic Equation with No Constant Term.

Solve \(2x^2=5x\) by factoring.
Explanation.
It may be tempting to divide both sides of the equation by \(x\text{.}\) But \(x\) is a variable, and for all we know, maybe \(x=0\text{.}\) So it is not safe to divide by \(x\text{.}\) As a general rule, avoid dividing an equation by a variable. Instead, we will use algebra to arrange the equation into standard form.
\begin{align*} 2x^2\amp=5x\\ 2x^2\subtractright{5x}\amp=5x\subtractright{5x}\\ 2x^2-5x\amp=0 \end{align*}
We can factor out \(x\text{.}\)
\begin{align*} x(2x-5)\amp=0 \end{align*}
\begin{align*} x\amp=0\amp\amp\text{or}\amp 2x-5\amp=0\\ x\amp=0\amp\amp\text{or}\amp 2x\amp=5\\ x\amp=0\amp\amp\text{or}\amp x\amp=\frac{5}{2} \end{align*}
The solution set is \(\left\{0, \frac{5}{2}\right\}\text{.}\) In general, if a quadratic equation does not have a constant term, then \(0\) will be one of the solutions.
While we are examining this problem, let’s compare the algebraic solution to a graphical solution.
To solve this equation graphically, we first make a graph of \(y=2x^2\) and of \(y=5x\text{.}\) Both of these graphs are shown in FigureΒ 14 in an appropriate window.
Figure 2.3.14. A graph of \(y=2x^2\) and \(y=5x\text{.}\)
From the graph provided, we can see that the equation \(2x^2=5x\) has two solutions because the graph of \(y=2x^2\) crosses the graph of \(y=5x\) twice. Those solutions, the \(x\)-values where the graphs cross, appear to be \(0\) and \(\frac{5}{2}=2.5\text{.}\)

Example 2.3.15. Recognizing a Special Pattern.

Solve \(x^2=9\) by factoring.
Explanation.
We can rearrange the equation into standard form and use factoring. In this case, we find that we have a difference of squares.
\begin{align*} x^2\amp=9\\ x^2-9\amp=0\\ (x+3)(x-3)\amp=0 \end{align*}
\begin{align*} x+3\amp=0\amp\amp\text{or}\amp x-3\amp=0\\ x\amp=-3\amp\amp\text{or}\amp x\amp=3 \end{align*}
The solution set is \(\{-3, 3\}\text{.}\)

Example 2.3.16. Solving an Equation with a Higher Degree.

Solve \(2x^3-10x^2-28x=0\) by factoring.
Explanation.
Although this equation is not quadratic, the left side still factors, so we can solve it by factoring.
\begin{align*} 2x^3-10x^2-28x\amp=0\\ 2x(x^2-5x-14)\amp=0\\ 2x(x-7)(x+2)\amp=0 \end{align*}
\begin{align*} 2x\amp=0\amp\amp\text{or}\amp x-7\amp=0\amp\text{or}\amp\amp x+2\amp=0\\ x\amp=0\amp\amp\text{or}\amp x\amp=7\amp\text{or}\amp\amp x\amp=-2 \end{align*}
The solution set is \(\{-2, 0, 7\}\text{.}\)

Subsection 2.3.3 Horizontal Intercepts

When given a quadratic function formula, solving for when that function’s output is zero allows us to locate the horizontal intercepts.

Example 2.3.17.

Let \(f\) be the function defined by \(f(x) = x^2 - 7x + 6\text{.}\) What are the roots of this function? Where are its horizontal intercepts?
Roots are inputs that lead to \(0\) as output. So this is asking us to solve:
\begin{align*} f(x) \amp= 0\\ x^2 - 7x + 6 \amp=0 \end{align*}
And we can solve this using factoring.
\begin{align*} (x - 1)(x - 6) \amp= 0\\ x-1\amp=0\amp\amp\text{or}\amp x-6\amp=0\\ x\amp=1\amp\amp\text{or}\amp x\amp=6 \end{align*}
There are two roots: \(1\) and \(6\text{.}\)
For this function’s graph, the horizontal intercepts are at \((1,0)\) and \((6,0)\text{.}\)
Having found horizontal intercepts for a quadratic function, we can take things further and flesh out more of its graph.

Example 2.3.18.

Continuing with the function \(f\) where \(f(x) = x^2 - 7x + 6\text{,}\) where is the vertical intercept? Where is the vertex? Can we sketch the graph of \(f\text{?}\)
We learned in SectionΒ 2 that the vertical intercept is at \((0,f(0))\text{,}\) which in this case is \((0,6)\text{.}\)
Since the roots are \(1\) and \(6\text{,}\) it tells us that \(h\) (the first coordinate of the vertex) is at their average: \(h=\frac{1+6}{2}=3.5\text{.}\) And then we can find \(k\) using \(f\)’s formula: \(k=f(3.5)= 3.5^2 - 7(3.5) + 6=-6.25\text{.}\) So the vertex is at \((3.5,-6.25)\text{.}\)
We have a lot of information we can use now to sketch the graph of \(f\text{.}\)
Figure 2.3.19. Skeleton for the graph of \(f\text{.}\)
Figure 2.3.20. A graph of \(y=f(x)\) where \(f(x)=x^2 - 7x + 6\text{.}\)
Note that we also sketched in the initial slope \(-7\) that we could see from the formula.

Subsection 2.3.4 Applications

Example 2.3.21. Kicking it on Mars.

Filip lives on Mars with his children, Henrik and Karina. One afternoon, the children wanted to kick a soccer ball outside in the relatively lighter Martian gravity. Karina stood at point \(K\) and kicked the ball over her dad standing at point \(F\) to Henrik standing at point \(H\text{.}\) The height of the ball from the ground, \(h\) in feet, is a function of how far left or right the ball is from Filip. It has the formula \(h(x) = -0.01\left(x^2-70x-1800\right)\text{,}\) where \(x\) is how far to the right from Filip the ball is. Note that positions to the left of Filip have a negative value for \(x\text{.}\)
  1. Find out how high the ball was above the ground when it passed over Filip’s head.
  2. Find the distance from Karina to Henrik.
a coordinate plane with a dot for Karina, Filip and Henrik; There is an arc from Karina to Henrik that goes over Filip
Figure 2.3.22. A Soccer Kick on Mars
Explanation.
  1. At the moment the ball passes over Filip, \(x=0\text{.}\) So \(h(0)\) should tell us the answer. We find:
    \begin{align*} h(0)\amp=-0.01\left(0^2-70(0)-1800\right)\\ \amp=-0.01(-1800)\\ \amp=18 \end{align*}
    It seems that the soccer ball was \(18\) feet above the ground when it passed over Filip.
  2. The distance from Karina to Henrik is the distance from point \(K\) to point \(H\) in the diagram. These are the horizontal intercepts of the graph of the function. They happen where the output of the function is \(0\text{.}\) So we want to solve \(h(x)=0\text{,}\) or rather:
    \begin{equation*} -0.01\left(x^2-70x-1800\right)=0 \end{equation*}
    Note that we can divide each side by \(-0.01\) to simplify.
    \begin{align*} x^2-70x-1800\amp=0\\ (x-90)(x+20)\amp=0 \end{align*}
    So, either:
    \begin{align*} x-90\amp=0\amp\text{or}\amp\amp x+20\amp=0\\ x\amp=90\amp\text{or}\amp\amp x\amp=-20 \end{align*}
    Since the \(x\)-values are how far right or left the points are from Filip, Karina is standing \(20\) feet to the left of Filip and Henrik is standing \(90\) feet to the right of Filip. Therefore the children are \(110\) feet apart.
It is interesting to note that if this same kick took place on Earth, with the same initial force at the same angle, the ball would have traveled less than \(30\) feet from Karina before landing!
The previous coordinate plane with a scale added so that Filip is standing at the origin; the scale on the x-axis is 20 feet and the scale on the y-axis is 10 feet; there is an arc for the soccer ball on Earth that would travel 30 feet; the arc for the ball kicked on the moon would travel 110 feet
Figure 2.3.23. A Soccer Kick on Mars and the Same Kick on Earth

Example 2.3.24. An Area Application.

Rajesh has a hot tub and he wants to build a deck around it. The hot tub is 7 ft by 5 ft and it is covered by a roof that is 99 ft2. How wide can he make the deck so that it will be covered by the roof?
Explanation.
We will define \(x\) to represent the width of the deck (in feet). Here is a diagram to help us understand the scenario.
A diagram with a 7x5 rectangle for the hot tub; there is a larger rectangle around the hot tub for the deck, which extends x feet on each side of the hot tub
Figure 2.3.25. Diagram for the Deck
The overall length is \(7+2x\) feet, because Rajesh is adding \(x\) feet on each side. Similarly, the overall width is \(5+2x\) feet.
The formula for the area of a rectangle is \(\text{area}=\text{length}\cdot\text{width}\text{.}\) Since the total area of the roof is 99 ft2, we can write and solve the equation:
\begin{align*} (7+2x)(5+2x)=99\\ 4x^2+24x+35=99\\ 4x^2+24x+35\subtractright{99}\amp=99\subtractright{99}\\ 4x^2+24x-64\amp=0\\ 4(x^2+6x-16)\amp=0\\ 4(x+8)(x-2)\amp=0 \end{align*}
\begin{align*} x+8\amp=0\amp\amp\text{or}\amp x-2\amp=0\\ x\amp=-8\amp\amp\text{or}\amp x\amp=2 \end{align*}
Since a length cannot be negative, we take \(x=2\) as the only applicable solution. Rajesh should make the deck 2 ft wide on each side to fit under the roof.

Reading Questions 2.3.5 Reading Questions

1.

If you use factoring to solve a polynomial equation, what number should be the only thing on one side of the equation?

2.

When you are trying to solve a quadratic equation where the leading coefficient is not \(1\text{,}\) and you want to use factoring, and you have moved all terms to one side so that the other side is \(0\text{,}\) what should you look for before trying anything else?

Exercises 2.3.6 Exercises

Skills Practice

Exercise Group.

Solve the equation by factoring.
1.
\({4\mathopen{}\left(x+7\right)\mathopen{}\left(x-5\right)} = {0}\)
2.
\({6\mathopen{}\left(x-5\right)\mathopen{}\left(x+8\right)} = {0}\)
3.
\({\left(9x+8\right)\mathopen{}\left(4x-3\right)} = {0}\)
4.
\({\left(x+9\right)\mathopen{}\left(x+3\right)} = {0}\)
41.
\({\left(x+1\right)\mathopen{}\left(x+12\right)} = {-28}\)
42.
\({\left(x-5\right)\mathopen{}\left(x+4\right)} = {22}\)
43.
\({\left(x-3\right)\mathopen{}\left(4x+17\right)} = {3x^{2}-45}\)
44.
\({\left(x+3\right)\mathopen{}\left(5x-12\right)} = {4x^{2}-18}\)
45.
\({x\mathopen{}\left(x+9\right)} = {6\mathopen{}\left(x+9\right)}\)
46.
\({x\mathopen{}\left(x+5\right)} = {4\mathopen{}\left(2x+1\right)}\)
47.
\({\left(x-8\right)\mathopen{}\left(x^{2}+2x-35\right)} = {0}\)
48.
\({\left(x+5\right)\mathopen{}\left(x^{2}-12x+35\right)} = {0}\)
51.
\({\left(x^{2}+2x-3\right)\mathopen{}\left(x^{2}+x-30\right)} = {0}\)
52.
\({\left(x^{2}-x-72\right)\mathopen{}\left(x^{2}+6x+8\right)} = {0}\)

Exercise Group.

Find the quadratic function’s horizontal and vertical intercepts. Find the vertex. Use these points to sketch a graph the function.

Applications

Exercise Group.

For a falling object on Earth, with height measured in feet and time measured in seconds, the curvature coefficient of its height function is (roughly) \(-16\text{.}\)
59.
An object on Earth is shot straight up from a height of \(144\) feet with an initial speed of \(144\) feet per second. How long will it take for the object to land?
60.
An object on Earth is shot straight up from a height of \(192\) feet with an initial speed of \(192\) feet per second. How long will it take for the object to land?

Exercise Group.

For a falling object on Earth, with height measured in meters and time measured in seconds, the curvature coefficient of its height function is (roughly) \(-5\text{.}\)
61.
An object on Earth is shot straight up from a height of \(100\) meters with an initial speed of \(100\) meters per second. How long will it take for the object to land?
62.
An object on Earth is shot straight up from a height of \(360\) meters with an initial speed of \(360\) meters per second. How long will it take for the object to land?

Exercise Group.

For a falling object on Mars, with height measured in feet and time measured in seconds, the curvature coefficient of its height function is (roughly) \(-6\text{.}\)
63.
An object on Mars is shot straight up from a height of \(336\) feet with an initial speed of \(336\) feet per second. How long will it take for the object to land?
64.
An object on Mars is shot straight up from a height of \(216\) feet with an initial speed of \(216\) feet per second. How long will it take for the object to land?

Exercise Group.

For a falling object on the Moon, with height measured in meters and time measured in seconds, the curvature coefficient of its height function is (roughly) \(-0.8\text{.}\)
65.
An object on Mars is shot straight up from a height of \(88\) meters with an initial speed of \(88\) meters per second. How long will it take for the object to land?
66.
An object on Mars is shot straight up from a height of \(61.6\) meters with an initial speed of \(61.6\) meters per second. How long will it take for the object to land?

67.

A car was driving with a steady speed of \(30\) feet per second. Right when it passed a certain mile marker, the driver pushed the accelerator and the car accelerated with a curvature coefficient of \(5\) feet per second per second. How much time will it take for the car to travel \(80\) feet?

68.

A car was driving with a steady speed of \(38\) feet per second. Right when it passed a certain mile marker, the driver pushed the accelerator and the car accelerated with a curvature coefficient of \(2\) feet per second per second. How much time will it take for the car to travel \(184\) feet?

Challenge

69.

Give an example of a cubic equation that has three solutions: one solution is \(x = 3\text{,}\) the second solution is \(x= -6\text{,}\) and the third solution is \(x = \frac{2}{3}\text{.}\) Write your equation in standard form.

70.

Solve for \(x\) in the equation \(8x^{30}-2x^{28} = 0 \text{.}\)