Skip to main content
Mathematics LibreTexts

7.2: Factoring trinomials of the form x² + bx + c

  • Page ID
    45067
  • \( \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}}\)

    Factoring with three terms, or trinomials, is the most important technique, especially in further algebra. Since factoring is a product of factors, we first look at multiplying to develop the process of factoring trinomials.

    Factoring Trinomials of the Form \(x^2+bx+c\)

    If we multiply \((x + p)(x + q)\), we would get

    \[\begin{array}{c}x^2+px+qx+pq \\ x^2+(p+q)x+pq\end{array}\nonumber\]

    Notice the two factors of the last coefficient must add up to be the middle coefficient, i.e.,

    \[p\cdot q=c\text{ and }p+q=b\nonumber\]

    Hence, if we can find two numbers whose sum is \(b\) and that multiply to \(c\), then we can split the middle term and factor by grouping.

    Steps for factoring trinomials of the form \(x^2+bx+c\)

    Step 1. Find two numbers, \(p\) and \(q\), whose sum is \(b\) and product is \(c\).

    Step 2. Rewrite the expression so that the middle term is split into two terms, \(p\) and \(q\).

    Step 3. Factor by grouping.

    Step 4. Verify the factored form by finding the product.

    Example 7.2.1

    Factor: \(x^2+9x+18\)

    Solution

    First we identify \(b = 9\) and \(c = 18\). We ask ourselves,“ What two numbers multiply to \(18\) that add up to \(9\)?”

    Step 1. Find two numbers whose sum is \(9\) and product is \(18\):

    Table 7.2.1
    \(p\) and \(q\) Product Sum
    \(2,9\) \(18\) \(11\)
    \(3,6\) \(18\) \(9\)
    \(1,18\) \(18\) \(19\)

    We can see from the table that \(3\) and \(6\) are the two numbers whose product is \(18\) and sum is \(9\). We use these two numbers in Step 2.

    Step 2. Rewrite the expression so that the middle term is split into two terms, \(3x\) and \(6x\): \[\begin{array}{c}x^2+9x+18 \\ x^2\color{blue}{\underset{\text{sum is }9x}{\underbrace{+3x+6x}}}\color{black}{}+18\end{array}\nonumber\]

    Step 3. Factor by grouping. \[\begin{array}{rl}x^2+6x+3x+18&\text{Group the first two terms and the last two terms} \\ (x^2+3x)+(6x+18)&\text{Factor }x\text{ from the first group and }6 \\ &\text{from the second group} \\ x(x+3)+6(x+3)&\text{Factor the GCF }(x+3) \\ (x+3)(x+6)&\text{Factored form}\end{array}\nonumber\]

    Step 4. Verify the factored form by finding the product: \[\begin{array}{rl}(x+3)(x+6)&\text{FOIL} \\ x^2+6x+3x+18&\text{Combine like terms} \\ x^2+9x+18&\checkmark\text{ Original expression}\end{array}\nonumber\]

    Thus, the factored form is \((x+3)(x+6)\).

    Example 7.2.2

    Factor: \(x^2 − 4x + 3\)

    Solution

    First we identify \(b = −4\) and \(c = 3\). We ask ourselves,“ What two numbers multiply to \(3\) that add up to \(−4\)?”

    Step 1. Find two numbers whose sum is \(−4\) and product is \(3\):

    Table 7.2.2
    \(p\) and \(q\) Product Sum
    \(1,3\) \(3\) \(4\)
    \(-1,-3\) \(3\) \(-4\)

    We can see from the table that \(−1\) and \(−3\) are the two numbers whose product is \(3\) and sum is \(−4\). We use these two numbers in Step 2.

    Step 2. Rewrite the expression so that the middle term is split into two terms, \(−1x\) and \(−3x\): \[\begin{array}{c}x^2-4x+3 \\ x^2\color{blue}{\underset{\text{sum is }-4x}{\underbrace{-1x-3x}}}\color{black}{}+3\end{array}\nonumber\]

    Step 3. Factor by grouping. \[\begin{array}{rl}x^2-1x-3x+3&\text{Group the first two terms and the last two terms} \\ (x^2-1x)+(-3x+3)&\text{Factor }x\text{ from the first group and }-3 \\ &\text{from the second group} \\ x(x-1)-3(x-1)&\text{Factor the GCF }(x-1) \\ (x-1)(x-3)&\text{Factored form}\end{array}\nonumber\]

    Step 4. Verify the factored form by finding the product: \[\begin{array}{rl}(x-1)(x-3)&\text{FOIL} \\ x^2-1x-3x+3&\text{Combine like terms} \\ x^2-4x+3&\checkmark\text{ Original expression}\end{array}\nonumber\]

    Thus, the factored form is \((x-1)(x+3)\).

    Example 7.2.3

    Factor: \(x^2 − 8x − 20\)

    Solution

    First we identify \(b = −8\) and \(c = −20\). We ask ourselves,“ What two numbers multiply to \(−20\) that add up to \(−8\)?”

    Step 1. Find two numbers whose sum is \(−8\) and product is \(−20\):

    Table 7.2.3
    \(p\) and \(q\) Product Sum
    \(-4,5\) \(-20\) \(1\)
    \(4,-5\) \(-10\) \(-1\)
    \(-2,10\) \(-20\) \(8\)
    \(2,-10\) \(-20\) \(-8\)
    \(1,-20\) \(-20\) \(-19\)
    \(-1,20\) \(-20\) \(19\)

    We can see from the table that \(2\) and \(−10\) are the two numbers whose product is \(−20\) and sum is \(−8\). We use these two numbers in Step 2.

    Step 2. Rewrite the expression so that the middle term is split into two terms, \(2x\) and \(−10x\): \[\begin{array}{c}x^2-8x-20 \\ x^2\color{blue}{\underset{\text{sum is }-8x}{\underbrace{+2x-10x}}}\color{black}{}-20\end{array}\nonumber\]

    Step 3. Factor by grouping. \[\begin{array}{rl}x^2+2x-10x-20&\text{Group the first two terms and the last two terms} \\ (x^2+2x)+(-10x-20)&\text{Factor }x\text{ from the first group and }-10 \\ &\text{from the second group} \\ x(x+2)-10(x+2)&\text{Factor the GCF }(x+2) \\ (x+2)(x-10)&\text{Factored form}\end{array}\nonumber\]

    Step 4. Verify the factored form by finding the product: \[\begin{array}{rl}(x+2)(x-10)&\text{FOIL} \\ x^2+2x-10x-20&\text{Combine like terms} \\ x^2-8x-20&\checkmark\text{ Original expression}\end{array}\nonumber\]

    Thus, the factored form is \((x+2)(x+10)\).

    Example 7.2.4

    Factor: \(a^2-9ab+14b^2\)

    Solution

    First we identify \(b = −9\) and \(c = 14\). We ask ourselves,“ What two numbers multiply to \(14\) that add up to \(−9\)?”

    Step 1. Find two numbers whose sum is \(−9\) and product is \(14\):

    Table 7.2.4
    \(p\) and \(q\) Product Sum
    \(2,7\) \(14\) \(9\)
    \(-2,-7\) \(14\) \(-9\)
    \(-1,-14\) \(14\) \(-15\)
    \(1,14\) \(14\) \(15\)

    We can see from the table that \(−2\) and \(−7\) are the two numbers whose product is \(14\) and sum is \(−9\). We use these two numbers in Step 2.

    Step 2. Rewrite the expression so that the middle term is split into two terms, \(−2ab\) and \(−7ab\): \[\begin{array}{c}a^2-9ab+14b^2 \\ a^2\color{blue}{\underset{\text{sum is }-9ab}{\underbrace{-2ab-7ab}}}\color{black}{}+14b^2\end{array}\nonumber\]

    Step 3. Factor by grouping. \[\begin{array}{rl}a^2-2ab-7ab+14b^2&\text{Group the first two terms and the last two terms} \\ (a^2-2ab)+(-7ab+14b^2)&\text{Factor }a\text{ from the first group and }-7b \\ &\text{from the second group} \\ a(a-2b)-7b(a-2b)&\text{Factor the GCF }(a-2b) \\ (a-2b)(a-7b)&\text{Factored form}\end{array}\nonumber\]

    Step 4. Verify the factored form by finding the product: \[\begin{array}{rl}(a-2b)(a-7b)&\text{FOIL} \\ a^2-2ab-7ab+14b^2&\text{Combine like terms} \\ a^2-9ab+14b^2&\checkmark\text{ Original expression}\end{array}\nonumber\]

    Thus, the factored form is \((a-2b)(a-7b)\).

    Note

    There is a shortcut for factoring expressions of the type \(x^2 +bx+c\). Once we identify the two numbers, \(p\) and \(q\), whose product is \(c\) and sum is \(b\), we can see these two numbers are the numbers in the factored form, i.e., \((x + p)(x + q)\). We can use this shortcut only when the coefficient of \(x^2\) is \(1\). (We discuss when the coefficient is a number other than \(1\) in the next section.)

    Example 7.2.5

    Factor: \(x^2-7x-18\)

    Solution

    First we identify \(b = −7\) and \(c = −18\). We ask ourselves,“ What two numbers multiply to \(−18\) that add up to \(−7\)?”

    Table 7.2.5
    \(p\) and \(q\) Product Sum
    \(-2,9\) \(-18\) \(7\)
    \(2,-9\) \(-18\) \(-7\)
    \(-1,18\) \(-18\) \(17\)
    \(1,-18\) \(-18\) \(-17\)

    We can see from the table that \(2\) and \(−9\) are the two numbers whose product is \(−18\) and sum is \(−7\). We use these two numbers to rewrite the expression in factored form:

    \[\begin{array}{c}x^2-7x-18 \\ (x\color{blue}{+2}\color{black}{})(x\color{blue}{-9}\color{black}{})\end{array}\nonumber\]

    We can always verify the factored form by multiplying and obtaining the original expression.

    Example 7.2.6

    Factor: \(m^2-mn-30n^2\)

    Solution

    First we identify \(b = −1\) and \(c = −30\). We ask ourselves,“ What two numbers multiply to \(−30\) that add up to \(−1\)?”

    Table 7.2.6
    \(p\) and \(q\) Product Sum
    \(-2,15\) \(-30\) \(13\)
    \(2,-15\) \(-30\) \(-13\)
    \(5,-6\) \(-30\) \(-1\)
    \(-5,6\) \(-30\) \(1\)
    \(1,-30\) \(-30\) \(-29\)
    \(-1,30\) \(-30\) \(29\)

    We can see from the table that \(5\) and \(−6\) are the two numbers whose product is \(−30\) and sum is \(−1\). We use these two numbers to rewrite the expression in factored form:

    \[\begin{array}{c}m^2-mn-30n^2 \\ (m\color{blue}{+5n}\color{black}{})(m\color{blue}{-6n}\color{black}{})\end{array}\nonumber\]

    We can always verify the factored form by multiplying and obtaining the original expression.

    Example 7.2.7

    Factor: \(x^2+2x+6\)

    Solution

    First we identify \(b = 2\) and \(c = 6\). We ask ourselves,“ What two numbers multiply to \(6\) that add up to \(2\)?”

    Table 7.2.7
    \(p\) and \(q\) Product Sum
    \(2,3\) \(6\) \(5\)
    \(-2,-3\) \(6\) \(-5\)
    \(1,6\) \(6\) \(7\)
    \(-1,-6\) \(6\) \(-7\)

    We can see from the table that there aren’t any factors of \(6\) whose sum is \(2\). We only obtain sums with \(5\) and \(7\)’s. In this case, we call this trinomial not factorable, or better yet, the trinomial is prime.

    Note

    If a trinomial (or polynomial) is not factorable, then we say we the trinomial is prime.

    Factoring Trinomials of the Form \(x^2+bx+c\) with a Greatest Common Factor

    Factoring the GCF is always the first step in factoring expressions. If all terms have a common factor, we, first, factor the GCF and then factor as usual.

    Example 7.2.8

    Factor: \(3x^2-24x+45\)

    Solution

    Notice all three terms have a common factor of \(3\). We factor a \(3\) first, then factor as usual.

    \[\begin{array}{rl}3x^2-24x+45&\text{Factor the GCF} \\ \color{blue}{3}\color{black}{}(x^2-8x+15)\end{array}\nonumber\]

    Next, we only concentrate on the expression in the parenthesis. What two numbers multiply to \(15\) that add up to \(−8\)?

    Table 7.2.8
    \(p\) and \(q\) Product Sum
    \(3,5\) \(15\) \(8\)
    \(-3,-5\) \(15\) \(-8\)

    We can see from the table that \(−3\) and \(−5\) are the two numbers whose product is \(15\) and sum is \(−8\). We use these two numbers to rewrite the expression in factored form:

    \[\begin{array}{c}3x^2-24x+4 \\ 3(x\color{blue}{-3}\color{black}{})(x\color{blue}{-5}\color{black}{})\end{array}\nonumber\]

    We can always verify the factored form by multiplying and obtaining the original expression.

    Note

    Students tend to forget to write the GCF in the final answer. Be sure to always include the GCF in the final factored form.

    Also, to factor completely, it is required the GCF is factored out of the expression. If not, then the expression is not factored completely.

    Note

    The first person to use letters for unknown values was Francois Vieta in 1591 in France. He used vowels to represent variables for solving, just as codes used letters to represent an unknown message.

    Factoring Trinomials of the Form \(x^2+bx+c\) Homework

    Factor completely.

    Exercise 7.2.1

    \(p^2+17p+72\)

    Exercise 7.2.2

    \(n^2-9n+8\)

    Exercise 7.2.3

    \(x^2-9x-10\)

    Exercise 7.2.4

    \(b^2+12b+32\)

    Exercise 7.2.5

    \(x^2+3x-70\)

    Exercise 7.2.6

    \(n^2-8n+15\)

    Exercise 7.2.7

    \(p^2+15p+54\)

    Exercise 7.2.8

    \(n^2-15n+56\)

    Exercise 7.2.9

    \(u^2-8uv+15v^2\)

    Exercise 7.2.10

    \(m^2+2mn-8n^2\)

    Exercise 7.2.11

    \(x^2-11xy+18y^2\)

    Exercise 7.2.12

    \(x^2+xy-12y^2\)

    Exercise 7.2.13

    \(x^2+4xy-12y^2\)

    Exercise 7.2.14

    \(5a^2+60a+100\)

    Exercise 7.2.15

    \(6a^2+24a-192\)

    Exercise 7.2.16

    \(6x^2+18xy+12y^2\)

    Exercise 7.2.17

    \(6x^2+96xy+378y^2\)

    Exercise 7.2.18

    \(x^2+x-72\)

    Exercise 7.2.19

    \(x^2+x-30\)

    Exercise 7.2.20

    \(x^2+13x+40\)

    Exercise 7.2.21

    \(b^2-17b+70\)

    Exercise 7.2.22

    \(x^2+3x-18\)

    Exercise 7.2.23

    \(a^2-6a-27\)

    Exercise 7.2.24

    \(p^2+7p-30\)

    Exercise 7.2.25

    \(m^2-15mn+50n^2\)

    Exercise 7.2.26

    \(m^2-3mn-40n^2\)

    Exercise 7.2.27

    \(x^2+10xy+16y^2\)

    Exercise 7.2.28

    \(u^2-9uv+14v^2\)

    Exercise 7.2.29

    \(x^2+14xy+45y^2\)

    Exercise 7.2.30

    \(4x^2+52x+168\)

    Exercise 7.2.31

    \(5n^2-45n+40\)

    Exercise 7.2.32

    \(5v^2+20v-25\)

    Exercise 7.2.33

    \(5m^2+30mn-90n^2\)

    Exercise 7.2.34

    \(6m^2-36mn-162n^2\)


    This page titled 7.2: Factoring trinomials of the form x² + bx + c is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Darlene Diaz (ASCCC Open Educational Resources Initiative) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.