We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Guias de estudo > Boundless Algebra

Polynomial Division

Introduction to Factoring Polynomials

Factoring by grouping divides the terms in a polynomial into groups, which can be factored using the greatest common factor.

Learning Objectives

Describe what it means to factor a polynomial and why it is useful to do so

Key Takeaways

Key Points

  • Factorization or factoring is the decomposition of an object, for example an integer or a polynomial, into a product of other objects, or factors, which when multiplied together give the original.
  • Factoring by grouping is done by placing the terms in the polynomial into two or more groups, where each group can be factored separately. The results of these factorizations can sometimes be combined to make an even more simplified expression.

Key Terms

  • polynomial: an expression consisting of a sum of a finite number of terms, each term being the product of a constant coefficient and one or more variables raised to a non-negative integer power, such as [latex]a_n x^n + a_{n-1}x^{n-1} +... + a_0 x^0[/latex]. Importantly, because all exponents are positive, it is impossible to divide by x.
  • greatest common divisor: The greatest common divisor of a set is the largest positive integer or polynomial that divides each of the numbers in the set without remainder.
  • factorization: An expression listing items that, when multiplied together, will produce a desired quantity.
A polynomial consists of a sum of monomials. However, sometimes it will be more useful to write a polynomial as a product of other polynomials with smaller degree, for example to study its zeros. The process of rewriting a polynomial as a product is called factoring. 

Factoring and Expanding Polynomials

Factoring is the decomposition of an algebraic object, for example an integer or a polynomial, into a product of other objects, or factors, which when multiplied together give the original. As an example, the integer [latex]15[/latex] factors as [latex]3 \cdot 5[/latex], and the polynomial [latex]x^3 + 2x^2[/latex] factors as [latex]x^2(x+2)[/latex]. In all cases, a product of simpler objects than the original (smaller integers, or polynomials of smaller degree) is obtained. For example: [latex]\begin{align}3x^3-2x^2-3xy^2+2y^2 &= (3x-2)x^2 + (2-3x)y^2 \\ & = (3x-2)(x^2-y^2) \\ & = (3x-2)(x+y)(x-y) \end{align}[/latex] is a factorization of a polynomial of degree [latex]3[/latex] into [latex]3[/latex] polynomials of degree [latex]1[/latex]. The aim of factoring is to reduce objects to "basic building blocks", such as integers to prime numbers, or polynomials to irreducible polynomials. (These are polynomials which cannot be factored non-trivially.) The inverse procedure of polynomial factorization is expansion, which is just explicitly writing out the multiplication of two or more factors, for example: [latex](x^3-2x+5y)(2x^4-3) = 2x^7 - 4x^5 +10x^4y - 3x^3+ 6x-15y [/latex]

Example: Factoring by Grouping

One way to factor polynomials is factoring by grouping. This is done by grouping the terms in the polynomial into two or more groups in such a way that each group can be factored separately. The results of these factorizations can sometimes be combined to make an even more simplified expression. For example, to factor the polynomial [latex]4x^2+20x+3yx+15y[/latex], we can factor the terms with [latex]y[/latex] and those without [latex]y[/latex] separately: [latex-display](4x^2+20x)+(3yx+15y)[/latex-display] As both terms in the left expression are divisible by [latex]4x[/latex] and both terms in the right expression are divisible by [latex]3y[/latex] we can again rewrite this as: [latex-display]4x(x+5)+3y(x+5)[/latex-display] Both groups share the same factor [latex](x+5)[/latex], so the polynomial is factored as: [latex-display](x+5)(4x+3y)[/latex-display] Sometimes, when factoring a polynomial in two or more variables, this last step is not possible and we have to content ourselves with having two or more terms which are each factorized themselves: [latex]\begin{align} x^2 + 2x + y^2 - 2y + 2 & = (x^2 + 2x + 1) + (y^2 - 2y + 1) \\ & = (x+1)^2 + (y -1)^2. \end{align}[/latex]

Division and Factors

Polynomial long division functions similarly to long division, and if the division leaves no remainder, then the divisor is called a factor.

Learning Objectives

Use polynomial division to find additional factors of a polynomial

Key Takeaways

Key Points

  • Dividing one polynomial by another can be achieved by using long division. The rules for polynomial long division are the same as the rules learned for long division of integers.
  • The four steps of long division are divide, multiply, subtract, and bring down.
  • After completing polynomial long division, it is good to check the answers, either by plugging in a number or by multiplying the quotient times the divisor to get the dividend back.

Key Terms

  • quotient: The number resulting from the division of one number or expression by another.
  • divisor: An integer that divides another integer an integral number of times.
  • dividend: A number or expression that is to be divided by another.

Long Division with Integers

Suppose you are given positive integers [latex]D[/latex] and [latex]d[/latex]. We want to find integers [latex]q[/latex] and [latex]r[/latex] such that [latex]0 \leq r < d[/latex] and [latex]D = qd+r.[/latex] This we can do with long division, which we all learned to do in elementary school. To refresh our memory, we divide [latex]\frac{745}{13}[/latex] by hand. We write the numbers down like this: [latex]\underline{5 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ 13|745[/latex] As [latex]7[/latex] is smaller than [latex]13[/latex], we group the first two digits together and we see that: [latex]5\cdot 13 = 65 \leq 74 < 78 = 6\cdot 13 [/latex] So we write down a five as our first digit of [latex]q[/latex] and subtract [latex]65[/latex] from [latex]74:[/latex] [latex]\underline{ \ 5 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ \begin{align}13|&745 \\ -&65 \\ &\ \ 95 \end{align}[/latex] We now group the remaining two digits and see that [latex]7 \cdot 13 = 91 \leq 95 < 104 = 8 \cdot 13[/latex] So the second digit of [latex]q[/latex] is [latex]8[/latex] and we subtract [latex]91[/latex] from [latex]95[/latex] to obtain [latex]4[/latex]. As [latex]4[/latex] is smaller than [latex]13[/latex], we cannot repeat this procedure and we have found that [latex]q = 58, r = 4.[/latex] So [latex]745[/latex] contains [latex]58[/latex] copies of [latex]13[/latex], and another copy of [latex]4.[/latex] [latex]\underline{ \ 58 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ \begin{align}13|&745 \\ -&65 \\ &\ \ 95 \\ - & \ \ 91 \\ & \ \ \ \ 4 \end{align}[/latex]

Dividing Polynomials with Long Division

The beauty of long division is that the algorithm can be used not for integers only, but also for polynomials. Here we think about a larger polynomial as one with a higher degree. So given two polynomials [latex]D(x)[/latex] (the dividend) and [latex]d(x)[/latex] (the divisor), we are looking for two polynomials [latex]q(x)[/latex] (the quotient) and [latex]r(x)[/latex] (the [latex]remainder)[/latex] such that [latex]D(x) = d(x)q(x) + r(x)[/latex] and the degree of [latex]r(x)[/latex] is strictly smaller than the degree of [latex]d(x).[/latex] Conceptually, we want to see how many copies of [latex]d(x)[/latex] are contained in [latex]D(x)[/latex] (this is the quotient) and then how far [latex]D(x)[/latex] is away from being a multiple of [latex]d(x)[/latex] (this is the remainder ). For example, suppose we want to divide [latex]6x^3-8x^2+4x-2[/latex] by [latex]2x-4[/latex]: [latex]\underline{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ 2x-4|6x^3-8x^2+4x-2[/latex] We look at the highest degree terms and we see that [latex]6x^3=2x\cdot3x^2[/latex]. So we write down a [latex]3x^2[/latex], multiply the divisor with this result and subtract this from the dividend: [latex]\underline{\ \ \ \ \ \ \ 3x^2 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ 2x-4|6x^3-8x^2+4x-2 \\ \ \ \ \ \ - \ \ 6x^3 -12x^2 \\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 4x^2+4x-2[/latex] Again looking at the highest degree terms, we see that [latex]4x^2 = 2x\cdot2x[/latex], so we write down [latex]2x[/latex] as the second term in the quotient and proceed as before: [latex]\underline{\ \ \ \ \ \ \ 3x^2 +2x \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ 2x-4|6x^3-8x^2+4x-2 \\ \ \ \ \ \ - \ \ 6x^3 -12x^2 \\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 4x^2+4x-2 \\ \ \ \ \ \ - \ \ \ \ \ \ \ \ \ \ \ \ \ 4x^2 - 8x \\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 12x-2[/latex] As [latex]12x = 2x\cdot 6[/latex], our next term will be [latex]6:[/latex] [latex]\underline{\ \ \ \ \ \ \ 3x^2 +2x +6 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ 2x-4|6x^3-8x^2+4x-2 \\ \ \ \ \ \ - \ \ 6x^3 -12x^2 \\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 4x^2+4x-2 \\ \ \ \ \ \ - \ \ \ \ \ \ \ \ \ \ \ \ \ 4x^2 - 8x \\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 12x-2 \\ \ \ \ \ \ - \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 12x - 24 \\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 22[/latex] As multiplying any polynomial with the divisor [latex]2x-4[/latex] gets us a polynomial of degree greater than [latex]0[/latex], we cannot divide any further. We see that the quotient [latex]q(x)[/latex] [latex]3x^2+2x+6[/latex] and the remainder [latex]r(x)[/latex] is [latex]22[/latex], so [latex]6x^3-8x^2+4x-2 = (2x-4)(3x^2+2x+6) + 22[/latex].

Zero Remainders and Factors

If the remainder [latex]r(x)[/latex] equals [latex]0[/latex], we also say that there is no remainder and do not explicitly write out the [latex]0[/latex]. This means that [latex]D(x)=d(x)q(x)[/latex]: the dividend is a multiple of the divisor, or the divisor is said to [latex][/latex]divide the dividend. We say that the divisor is a factor of the dividend. (Of course, the quotient will also be a factor.)

[latex][/latex]Checking Your Results

If you have enough time to check your results, it is always wise to do so. The best way to do this is to explicitly work out the equation [latex]D(x) = d(x)q(x)+r(x)[/latex]. Another way is to check this equation for only one value of [latex]x[/latex].

The Remainder Theorem and Synthetic Division

Synthetic division is a technique for dividing a polynomial and finding the quotient and remainder.

Learning Objectives

Use synthetic division to divide a polynomial

Key Takeaways

Key Points

  • Synthetic division is most commonly applied when dividing by a monomial such as [latex]x-a[/latex].
  • The most useful aspects of synthetic division are that it allows one to calculate without writing variables and uses fewer calculations.

Key Terms

  • remainder: The amount left over after subtracting the divisor as many times as possible from the dividend without producing a negative result. If (dividend) and [latex]d[/latex] (divisor) are integers, then can always be expressed in the form [latex]n = dq + r[/latex], where [latex]q[/latex] (quotient) and [latex]r[/latex] (remainder) are also integers and [latex]0 \leq r \leq d[/latex].
  • polynomial: an expression consisting of a sum of a finite number of terms, each term being the product of a constant coefficient and one or more variables raised to a non-negative integer power, such as [latex]a_n x^n + a_{n-1}x^{n-1} +... + a_0 x^0[/latex]. Importantly, because all exponents are positive, it is impossible to divide by [latex]x[/latex].

The Remainder Theorem

In algebra, the polynomial remainder theorem or little Bézout's theorem, is an application of polynomial long division. It states that the remainder of a polynomial [latex]f(x)[/latex] divided by a linear divisor [latex](x-a)[/latex] is equal to [latex]f(a)[/latex]. For example, take the polynomial: [latex-display]f(x)=x^3-12x^2-42[/latex-display] Then divide it by [latex]x-3[/latex]. This gives the quotient [latex]x^2-9x-27[/latex] and the remainder [latex]-123[/latex]. Therefore, [latex]f(3)=-123[/latex]. We can check this by plugging [latex]3[/latex] into the equation, which yields: [latex]\begin{align} 3^3 - 12\cdot 3^2 - 42 &= 27-108-42 \\ &= -123 \end{align}[/latex] In particular, [latex]f(a)=0[/latex] if and only if [latex](x-a)[/latex] divides [latex]f(x).[/latex]

Synthetic division

To use the remainder theorem, one must first perform division, which is a bit of work. A shorthand way to perform long division is synthetic division. It uses less writing and fewer calculations. It also takes significantly less space than long division. Most importantly, the subtractions in long division are converted to additions by switching the signs at the very beginning, preventing sign errors. Synthetic division only works for polynomials divided by linear expressions with a leading coefficient equal to [latex]1.[/latex] Let's use synthetic division to solve the example above [latex]f(x)=x^3−12x^2−42 [/latex] divided by [latex]x-3[/latex]: We start by writing down the coefficients from the dividend and the negative second coefficient of the divisor. Note that we explicitly write out all zero terms! [latex]\ \ |1 \ -12 \ 0 \ -42 \\ 3 |\underline{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ \ \ | [/latex] Bring down the first coefficient and multiply it by the divisor. Place the resulting [latex]3[/latex] under the [latex]-12[/latex]. [latex]\ \ |1 \ -12 \ 0 \ -42 \\ 3 |\underline{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ \ \ |1[/latex] Then add the next column of coefficients, get the result and multiply that by the divisor to find the third coefficient [latex]-27[/latex]: [latex-display][/latex-display] [latex]\ \ |1 \ -12 \ 0 \ -42 \\ 3 |\underline{\ \ \ \ \ \ \ \ \ 3 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ \ \ |1 \ \ \ - 9[/latex] [latex]\ \ |1 \ -12 \ \ \ \ \ 0 \ -42 \\ 3 |\underline{\ \ \ \ \ \ \ \ \ 3 \ - 27 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ \ \ |1 \ \ \ -9 \ - 27[/latex] So the quotient must be the second degree polynomial [latex]x^2 - 9x - 27[/latex]. Now we can also see what the remainder is, just by repeating the procedure: [latex]\ \ |1 \ -12 \ \ \ \ \ 0 \ -42 \\ 3 |\underline{\ \ \ \ \ \ \ \ \ 3 \ - 27 \ -81 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \\ \ \ |1 \ \ \ - 9 \ - 27 \ \color{red}{-123}[/latex] In particular, the number we write on the left is a root of the upper polynomial if and only if the last number we obtain is [latex]0[/latex]. A special case of this is when the left number is [latex]1[/latex]: then the last number equals the sum of all coefficients! Thus [latex]1[/latex] is a zero of a polynomial if and only if its coefficients add to [latex]0.[/latex]

Other Leading Coefficients

When we divide by [latex]ax-b[/latex] and [latex]a \not = 1[/latex], we can divide by [latex](x-b/a)[/latex] and then divide the result by [latex]a[/latex]. This way we can still use synthetic division.

Finding Factors of Polynomials

Finding factors of polynomials is important, since it is always best to work with the simplest version of a polynomial.

Learning Objectives

Practice the different methods for finding the factors of a polynomial

Key Takeaways

Key Points

  • Factoring is a critical skill in simplifying functions and solving equations.
  • There are four types of factoring shown, which are 1) "pulling out" common factors, 2) factoring perfect squares, 3) the difference between two squares, and then 4) how to factor when the other three techniques are not applicable.
  • The first step should always be "pulling out" common factors. Even if this does not factor out the polynomial completely, this will make the rest of the process much easier.

Key Terms

  • common factor: A value, variable or combination of the two that is common to all terms of a polynomial.
  • factor: To express a mathematical quantity as a product of two or more like quantities.
When multiplying, things are put together. When factoring, things are pulled apart. Factoring is a critical skill in simplifying functions and solving equations. There are four basic types of factoring. In each case, it is beneficial to start by showing a multiplication problem, and then show how to use factoring to reverse the results of that multiplication.

"Pulling Out" Common Factors

This type of factoring is based on the distributive property, which states: [latex-display]2x(4x^2-7x+3)=8x^3-14x^2+6x[/latex-display] When factoring, this property is done in reverse. Therefore, starting with an expression such as the one above, it can be noted that every one of those terms is divisible by [latex]2[/latex]. Also, every one of those terms is divisible by [latex]x[/latex]. Henc, one can "factor out," or "pull out," [latex]2x[/latex]. [latex-display]8x^3-14x^2+6x=2x(? { } - ? { } + ? { } ).[/latex-display] We now divide each term with this common factor to fill in the blanks. For instance, [latex]8x^3[/latex]divided by [latex]2x[/latex] equals [latex]4x^2[/latex]. Doing this for each term, we obtain: [latex-display]8x^3-14x^2+6x=2x(4x^2-7x+3 ).[/latex-display] For many types of problems, it is easier to work with this factored form. As another example, consider [latex]6x+3[/latex]. The common factor is [latex]3[/latex]. When factoring [latex]3[/latex] from [latex]6x[/latex], [latex]2x[/latex] is left. When factoring [latex]3[/latex] out of [latex]3[/latex], [latex]1[/latex] remains: [latex]6x+3=3(2x+1)[/latex]. There are two key points to understand about this kind of factoring:
  1. This is the simplest kind of factoring. Whenever trying to factor a complicated expression, always begin by looking for common factors that can be pulled out.
  2. The factor must be common to all the terms. For instance, [latex]8x^3-14x^2+6x+7[/latex]8 has no common factor, since the last term, [latex]7[/latex], is not divisible by [latex]2[/latex] or [latex]x[/latex].

Perfect Squares

The second type of factoring is based on the "squaring" formulae: [latex-display](x+a)^2=x^2+2ax+a^2[/latex-display] [latex-display](x-a)^2=x^2-2ax+a^2[/latex-display] For instance, if the problem is [latex]x^2 + 6x + 9[/latex], then one may recognize the signature of the first formula: the middle term is three doubled, and the last term is three squared. Thus, this simplifies to [latex](x+3)^2[/latex]. Other examples are [latex-display]x^2+10x+25=(x+5)^2[/latex-display] [latex-display]x^2+2x+1=(x+1)^2[/latex-display] If the middle term is negative, then the second formula is: [latex-display]x^2-8x+16=(x-4)^2[/latex-display] [latex-display]x^2-14x=49=(x-7)^2[/latex-display] This type of factoring only works in this specific case: the middle number is something doubled, and the last number is that same value squared. Furthermore, although the middle term can be either positive or negative, the last term cannot be negative. This is because if a negative is squared, the answer is positive. To use this method of factoring, one must keep their eyes open to recognize the pattern. The best way to do this is practice.

Difference Between Two Squares

The third type of factoring is based on the third of the basic formulae: [latex-display](x+a)(x-a)=x^2-a^2[/latex-display] This formula can be run in reverse whenever subtracting two perfect squares. For instance, if there is [latex]x^2-25[/latex], it can be seen that both [latex]x^2[/latex] and [latex]25[/latex] are perfect squares. Therefore it factors as [latex](x+5)(x-5)[/latex]. Other examples include: [latex-display]x^2-64=(x+8)(x-8)[/latex-display] [latex-display]16y^2-49=(4y+7)(4y-7)[/latex-display] [latex-display]2x^2-18=2(x^2-9)=2(x+3)(x-3)[/latex-display] Note that, in the last example, the first step is done by pulling out a factor [latex]2[/latex], and there are two perfect squares left. This follows the rule: always begin by pulling out common factors before trying anything else. Note also that when we are working with real numbers, all positive numbers are squares. So [latex]x^2 - 3 = (x+\sqrt{3})(x-\sqrt{3})[/latex]. It often happens that we can use this method twice (or more): [latex]\begin{align} x^4-81 & = (x^2 + 9)(x^2-9) \\ & = (x^2 + 9)(x+3)(x-3). \end{align}[/latex] It is important to note that the sum of two squares cannot be factored. As in the case of factoring a perfect square, to use this method one has to keep their eyes open to notice the pattern.

Brute Force Factoring

This is the hardest way to factor a polynomial, but the one we need to use when the other ones do not suffice. In general, we can multiply any number of polynomials with any number of terms using the distributive property. To see how to use this for factoring, we again try to notice a pattern. For example, we have: [latex-display]x^2+3x+7x+21=(x+3)(x+7)[/latex-display] Since [latex]3+7 = 10[/latex] and [latex]3 \cdot 7 = 21[/latex]. In general: [latex-display]x^2 + (a+b)x + ab = (x+a) (x+b)[/latex-display] Or, of course: [latex-display]z^4 + (c-d)z^2 -cd = (z^2+c)(z^2-d)[/latex-display] which we can factor again by the previous method if [latex]-c[/latex] or [latex]d[/latex] are positive. Especially when we think [latex]a[/latex] and [latex]b[/latex] are integers, the best tactic to do this is checking for positive and negative factors of the last term, since there are only a limited number of them.

Licenses & Attributions

CC licensed content, Shared previously

CC licensed content, Specific attribution