Skip to main content
Mathematics LibreTexts

12.3.1: Solve Quadratic Equations by Factoring

  • Page ID
    69583
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Learning Objectives
    • Solve equations in factored form by using the Principle of Zero Products.
    • Solve quadratic equations by factoring and then using the Principle of Zero Products.
    • Solve application problems involving quadratic equations.

    Introduction

    When a polynomial is set equal to a value (whether an integer or another polynomial), the result is an equation. An equation that can be written in the form \(\ a x^{2}+b x+c=0\) is called a quadratic equation. You can solve a quadratic equation using the rules of algebra, applying factoring techniques where necessary, and by using the Principle of Zero Products.

    The Principle of Zero Products

    The Principle of Zero Products states that if the product of two numbers is 0, then at least one of the factors is 0. (This is not really new.)

    Principle of Zero Products

    If \(\ a b=0\), then either \(\ a=0\) or \(\ b=0\), or both \(\ a\) and \(\ b\) are 0.

    This property may seem fairly obvious, but it has big implications for solving quadratic equations. If you have a factored polynomial that is equal to 0, you know that at least one of the factors or both factors equal 0.

    You can use this method to solve quadratic equations. Let’s start with one that is already factored.

    Example

    Solve \(\ (x+4)(x-3)=0\) for \(\ x\).

    Solution

    \(\ (x+4)(x-3)=0\) Applying the Principle of Zero Products, you know that if the product is 0, then one or both of the factors has to be 0.
    \(\ \begin{array}{ccc}
    x+4=0 & \text { or } & x-3=0 \\
    x+4-4=0-4 && x-3+3=0+3 \\
    x=-4 & \text { or }& \quad x=3
    \end{array}\)

    Set each factor equal to 0.

    Solve each equation.

    \(\ x=-4 \text { OR } x=3\)

    You can check these solutions by substituting each one at a time into the original equation, \(\ (x+4)(x-3)=0\). You can also try another number to see what happens.

    \(\ \begin{array}{l}
    \textbf { Checking } x=-4\\
    (x+4)(x-3)=0\\
    (-4+4)(-4-3)=0\\
    (0)(-7)=0\\
    0=0
    \end{array}\)

    \(\ \begin{array}{l}
    \textbf { Checking } x=3\\
    (x+4)(x-3)=0\\
    (3+4)(3-3)=0\\
    (7)(0)=0\\
    0=0
    \end{array}\)

    \(\ \begin{array}{l}
    \textbf { Trying } x=5\\
    (x+4)(x-3)=0\\
    (5+4)(5-2)=0\\
    (9)(3)=0\\
    27 \neq 0
    \end{array}\)

    The two values that we found via factoring, \(\ x=-4\) and \(\ x=3\), lead to true statements: \(\ 0=0\). So, the solutions are correct. But \(\ x=5\), the value not found by factoring, creates an untrue statement: 27 does not equal 0!

    Exercise

    Solve for \(\ x\).

    \(\ (x-5)(2 x+7)=0\)

    1. \(\ x=5 \text { or } \frac{-7}{2}\)
    2. \(\ x=5 \text { or }-7\)
    3. \(\ x=0 \text { or } \frac{-7}{2}\)
    4. \(\ x=0\)
    Answer
    1. Correct. To find the roots of this equation, apply the Principle of Zero Products and set each factor, \(\ (x-5)\) and \(\ (2 x+7)\), equal to 0. \(\ x-5=0\), so \(\ x=5\); you also find that \(\ 2 x+7=0\), so \(\ 2 x=-7\), and \(\ x=\frac{-7}{2}\). Both answers, \(\ x=5\) and \(\ \frac{-7}{2}\), are solutions.
    2. Incorrect. While \(\ x=5\) does make the equation true, the Principle of Zero Products states if \(\ (x-5)(2 x+7)=0\), then either \(\ x-5=0\) or \(\ 2 x+7=0\). This happens when \(\ x=5\) or \(\ \frac{-7}{2}\).
    3. Incorrect. While \(\ x=\frac{-7}{2}\) does make the equation true, the Principle of Zero Products states if \(\ (x-5)(2 x+7)=0\), then either \(\ x-5=0\) or \(\ 2 x+7=0\). This happens when \(\ x=5\) or \(\ \frac{-7}{2}\).
    4. Incorrect. A value of \(\ x=0\) does not make the equation true: \(\ (0-5)[2(0)+7]=(-5)(7)=-35\), not 0. The Principle of Zero Products states if \(\ (x-5)(2 x+7)=0\), then either \(\ x-5=0\) or \(\ 2 x+7=0\). This happens when \(\ x=5\) or \(\ \frac{-7}{2}\).

    Solving Quadratics

    Let’s try solving an equation that looks a bit different: \(\ 5 a^{2}+15 a=0\).

    Example

    Solve for \(\ a\): \(\ 5 a^{2}+15 a=0\).

    Solution

    \(\ 5 a^{2}+15 a=0\) Begin by factoring the left side of the equation.
    \(\ 5 a(a+3)=0\) Factor out \(\ 5 a\), which is a common factor of \(\ 5 a^{2}\) and \(\ 15 a\).
    \(\ 5 a=0 \quad\text { or } \quad a+3=0\) Set each factor equal to zero.

    \(\ \begin{array}{cc}
    \frac{5 a}{5}=\frac{0}{5} &\text { or } & a+3-3=0-3 \\
    a=0 && a=-3
    \end{array}\)

    Solve each equation.

    \(\ a=0 \quad\text { OR } \quad a=-3\)

    To check your answers, you can substitute both values directly into the original equation and see if you get a true sentence for each.

    \(\ \begin{array}{l}
    \textbf {Checking } a=0\\
    5 a^{2}+15 a=0\\
    5(0)^{2}+15(0)=0\\
    5(0)+0=0\\
    0+0=0\\
    0=0
    \end{array}\)

    \(\ \begin{array}{l}
    \textbf {Checking } a=-3\\
    5 a^{2}+15 a=0\\
    5(-3)^{2}+(15)(-3)=0\\
    5(9)-45=0\\
    45-45=0\\
    0=0
    \end{array}\)

    Both solutions check.

    You can use the Principle of Zero Products to solve quadratic equations in the form \(\ a x^{2}+b x+c=0\). First, factor the expression and set each factor equal to 0.

    Example

    Solve for \(\ r\): \(\ r^{2}-5 r+6=0\).

    Solution

    \(\ r^{2}-3 r+-2 r+6=0\) Rewrite \(\ -5 r\) as \(\ -3 r-2 r\), as \(\ (-3)(-2)=6\), and \(\ -3+-2=-5\).
    \(\ \left(r^{2}-3 r\right)+(-2 r+6)=0\) Group pairs.
    \(\ r(r-3)-2(r-3)=0\) Factor out \(\ r\) from the first pair and factor out -2 from the second pair.
    \(\ (r-3)(r-2)=0\) Factor out \(\ (r-3)\).
    \(\ r-3=0 \text { or } r-2=0\) Use the Principle of Zero Products and set each of the factors equal to 0.
    \(\ r=3 \text { or } r=2\) Solve each equation.
    \(\ r=3 \text { or } r=2\) The roots of the original equation are 3 or 2.

    Note in the example above, if the common factor of 2 had been factored out, the resulting factor would be \(\ (-r+3)\), which is the negative of \(\ (r-3)\). So factoring out -2 will result in the common factor of \(\ (r-3)\). If we had gotten \(\ (-r+3)\) as a factor, then when setting that factor equal to zero and solving for \(\ r\) we would have gotten:

    \(\ (-r+3)=0\) Principle of Zero Products
    \(\ (-1)(-r+3)=(-1) 0\) Multiplying both sides by -1.
    \(\ r-3=0\) Multiplying.
    \(\ r=3\) Adding 3 to both sides.

    More work, but the same result as before, \(\ r=3\) or \(\ r=2\).

    Exercise

    Solve for \(\ h\).

    \(\ h(2 h+5)=0\)

    1. \(\ h=0\)
    2. \(\ h=2 \text { or } 5\)
    3. \(\ h=0 \text { or } \frac{5}{2}\)
    4. \(\ h=0 \text { or }-\frac{5}{2}\)
    Answer
    1. Incorrect. While \(\ h=0\) does make the equation true (since the first factor is \(\ h\)), there is another solution when \(\ 2 h+5=0\). The correct answer is \(\ h=0\) or \(\ -\frac{5}{2}\).
    2. Incorrect. The Principle of Zero Products says if \(\ h(2 h+5)=0\) then either \(\ h=0\) or \(\ 2 h+5=0\). This happens when \(\ h=0\) or \(\ -\frac{5}{2}\).
    3. Incorrect. While \(\ h=0\) does make the equation true (since the first factor is \(\ h\)), the second factor is 0 when \(\ h=-\frac{5}{2}\), not \(\ \frac{5}{2}\). The correct answer is \(\ h=0\) or \(\ -\frac{5}{2}\).
    4. Correct. To find the roots of this equation, apply the Principle of Zero Products and set each factor, \(\ h\) and \(\ (2 h+5)\), equal to 0. Then solve those equations for \(\ h\). Both answers are possible solutions.

    Applying Quadratic Equations

    There are many applications for quadratic equations. When you use the Principle of Zero Products to solve a quadratic equation, you need to make sure that the equation is equal to zero. For example, \(\ 12 x^{2}+11 x+2=7\) must first be changed to \(\ 12 x^{2}+11 x+-5=0\) by subtracting 7 from both sides.

    Example

    The area of a rectangular garden is 30 square feet. If the length is 7 feet longer than the width, find the dimensions.

    Solution

    \(\ A=l \cdot w\) The formula for the area of a rectangle is \(\ A=l \cdot w\).
    \(\ 30=(w+7)(w)\) \(\ \begin{array}{l}
    \text { width }=w \\
    \text { length }=w+7 \\
    \text { area }=30
    \end{array}\)
    \(\ 30=w^{2}+7 w\) Multiply.
    \(\ w^{2}+7 w-30=0\) Subtract 30 from both sides to set the equation equal to 0.
    \(\ w^{2}+10 w-3 w-30=0\) Find two numbers whose product is -30 and whose sum is 7, and write the middle term as \(\ 10 w-3 w\).
    \(\ w(w+10)-3(w+10)=0\) Factor \(\ w\) out of the first pair and -3 out of the second pair.
    \(\ (w-3)(w+10)=0\) Factor out \(\ w+10\).
    \(\ \begin{aligned}
    w-3 =0 &\quad \text { or }\quad w+10=0 \\
    w =3 &\quad\text { or }\quad w=-10
    \end{aligned}\)
    Use the Zero Product Property to solve for \(\ w\).

    The width = 3 feet

    The length is 3 + 7 = 10 feet

    The solution \(\ w=-10\) does not work for this application, as the width cannot be a negative number, so we discard the -10.

    Therefore, the width is 3 feet.

    Substitute \(\ w=3\) into the expression \(\ w+7\) to find the length: \(\ 3+7=10\).

    The width of the garden is 3 feet and the length is 10 feet.

    The example below shows another quadratic equation where neither side is originally equal to zero. (Note that the factoring sequence has been shortened.)

    Example

    Solve \(\ 5 b^{2}+4=-12 b\) for \(\ b\).

    Solution

    \(\ 5 b^{2}+4+12 b=-12 b+12 b\) The original equation has \(\ -12 b\) on the right. To make this side equal to 0, add \(\ 12b\) to both sides.
    \(\ 5 b^{2}+12 b+4=0\) Combine like terms.
    \(\ 5 b^{2}+10 b+2 b+4=0\) Rewrite \(\ 12b\) as \(\ 10 b+2 b\).
    \(\ 5 b(b+2)+2(b+2)=0\) Factor out \(\ 5b\) from the first pair and 2 from the second pair.
    \(\ (5 b+2)(b+2)=0\) Factor out \(\ b+2\).
    \(\ 5 b+2=0 \text { or } b+2=0\) Apply the Zero Product Property.
    \(\ b=-\frac{2}{5} \text { or } b=-2\) Solve each equation.

    \(\ b=-\frac{2}{5} \text { or } b=-2\)

    If you factor out a constant, the constant will never equal 0. So it can essentially be ignored when solving. See the following example.

    Example

    A small toy rocket is launched from a 4-foot pedestal. The height (\(\ h\), in feet) of the rocket \(\ t\) seconds after taking off is given by the formula \(\ h=-2 t^{2}+7 t+4\). How long will it take the rocket to hit the ground?

    Solution

    \(\ h=-2 t^{2}+7 t+4\)

    \(\ 0=-2 t^{2}+7 t+4\)

    The rocket will be on the ground when the height is 0. So, substitute 0 for \(\ h\) in the formula.
    \(\ 0=-2 t^{2}+8 t-t+4\) Factor the trinomial by grouping.
    \(\ \begin{array}{r}
    0=-2 t(t-4)-1(t-4) \\
    0=(-2 t-1)(t-4) \\
    0=-1(2 t+1)(t-4)
    \end{array}\)
    Factor.
    \(\ 2 t+1=0 \text { or } t-4=0\) Use the Zero Product Property. There is no need to set the constant factor -1 to zero, because -1 will never equal zero.
    \(\ t=-\frac{1}{2} \text { or } t=4\) Solve each equation.
    \(\ t=4\) Interpret the answer. Since \(\ t\) represents time, it cannot be a negative number; only \(\ t=4\) makes sense in this context.

    The rocket will hit the ground 4 seconds after being launched.

    Exercise

    Solve for \(\ m\): \(\ 2 m^{2}+10 m=48\).

    1. \(\ m=-8 \text { or } 3\)
    2. \(\ m=-3 \text { or } 8\)
    3. \(\ m=0 \text { or }-5\)
    4. \(\ m=0 \text { or } 5\)
    Answer
    1. Correct. The original equation has 48 on the right. To make this side equal to 0, subtract 48 from both sides: \(\ 2 m^{2}+10 m-48=0\). Then factor out the common factor of 2, \(\ 2\left(m^{2}+5 m-24\right)=0\). Then set the trinomial to 0 and solve for \(\ m\). You find that \(\ 2(m+8)(m-3)=0\), so \(\ m=-8\) or 3.
    2. Incorrect. You probably either factored the quadratic incorrectly or you solved the individual equations incorrectly. The correct answer is \(\ m=-8\) or 3.
    3. Incorrect. You probably factored \(\ 2 m^{2}+10 m\) as \(\ 2 m(m+5)\) and then set the factors equal to 0. However, the original equation is not equal to 0, it’s equal to 48. To use the Zero Product Property, one side must be 0. The correct answer is \(\ m=-8\) or 3.
    4. Incorrect. You probably factored \(\ 2 m^{2}+10 m\) as \(\ 2 m(m+5)\) and then set the factors equal to 0, as well as making a sign mistake when solving \(\ m+5=0\). However, the original equation is not equal to 0, it’s equal to 48. The correct answer is \(\ m=-8\) or 3.

    Summary

    You can find the solutions, or roots, of quadratic equations by setting one side equal to zero, factoring the polynomial, and then applying the Zero Product Property. The Principle of Zero Products states that if \(\ a b=0\), then either \(\ a=0\) or \(\ b=0\), or both \(\ a\) and \(\ b\) are 0. Once the polynomial is factored, set each factor equal to zero and solve them separately. The answers will be the set of solutions for the original equation.

    Not all solutions are appropriate for some applications. In many real-world situations, negative solutions are not appropriate and must be discarded.


    This page titled 12.3.1: Solve Quadratic Equations by Factoring is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by The NROC Project via source content that was edited to the style and standards of the LibreTexts platform.