*Factoring polynomial* is an action in which polynomial is represented as a product of simpler polynomials that cannot be further factored.

Fundamental theorem of algebra says that every polynomial of degree can be represented as product of linear polynomials, but polynomials in that factorization can have complex coefficients. If we want to deal only with real numbers best we can do is represent polynomial in form of

where

In this lesson we will sometimes use complex numbers so it would be great if you are familiar with them but it is not necessary. If you are not familiar with complex numbers you can just skip those parts or learn about them in lesson Complex numbers.

**Remark 1 **Some of the factors or in the representation above can appear multiple times. (See definition of multiplicity in lesson Fundamental theorem of algebra)

In other words, maximum factorization using only real numbers can contain quadratic polynomials as factors.

To understand this better let’s look at next example.

**Example 1 **Factor polynomial

This is the best we can do if we don’t want to use complex numbers. To factor it further we find roots of , , and factor it as and then factor to .

As we saw in previous example, there are polynomials, such as , that cannot be further factored using just real numbers, but can be further factored when using complex numbers.

For factorization of polynomials you should be familiar with some basic, but very useful formulas which you can find in lesson Determining polynomials, basic math operations, the most important rules for multiplying in section Multiplication.

So how do we factor polynomials? There is no universal rule here, but there are some tricks that can help you.

First thing you should do is see if there is something common to all terms of your expression and if there is, extract it. For example, in polynomial is common to all terms so we can extract it: .

**Example 2** Factor polynomial .

is common to both terms so we extract it:

How do you check if your factorization is correct? Simply multiply those factors and you should get expression you started with:

**Example 3** Factor polynomial

First we extract from every term:

Now we factor . To do that first we write as :

Next step is to group terms in a way that allows us to extract more:

and then we extract from the first term and from second term:

Now we extract common term and we are done:

So, .

Useful thing to know is how to factor quadratic polynomial if we know its roots.

If and are roots of quadratic polynomial then it can be factored as .

**Remark 2** Note that leading coefficient (one that is multiplying ) in polynomial above is . If it isn’t, that is you extract to get and then find roots and of polynomial and write it as . Then you can write as

**Example 4** Factor polynomial .

Using formula for roots of quadratic polynomial we obtain roots of :

Now we write as . You can easily check that .

**Example 5** Factor polynomial

First we extract , . Then we find roots and of polynomial and write it as . Now we can write as . Again, you can easily check that .

You can learn more about quadratic polynomials in lesson Quadratic equations.

**Example 6 **Factor polynomial .

where in last equality we used fact that and are roots of and are roots of .

Sometimes it can be pretty hard to see how to group terms of polynomial to allow extraction, but you can help yourself with using Bézout’s theorem: you guess some root of given polynomial then divide polynomial with . That way you will have to deal with polynomial with lesser degree and maybe it will be simpler. About division of polynomials you can learn in lesson Determining polynomials, basic math operations, the most important rules for multiplying in section Division.

In example above we see that is root of given polynomial (because ) so we divide it with linear polynomial :

So can be written as and we just have to factor :

To easier guess roots of polynomials you can use Integer solutions of a polynomial function theorem, The Rational Root Theorem and The Irrational Root Theorem.

**Example 7 **Factor polynomial .

By Integer solutions of a polynomial function theorem if has integer roots they are divisors of 6, so potential candidates for roots are and .

so 1 is not root.

so -1 is not root.

so 2 is not root.

so -2 is root.

Now we divide with and write it as

Lets check if is root of :

so is root.

By Irrational Root Theorem then follows that is also root of . But then by Bézout’s theorem and both divide so their product also divides and we calculate

Finally, we write as

Polynomials we were factoring so far were polynomials in one variable. We can similarly factor polynomials with more variables.

**Example 8 **Factor polynomial .

We see that factor is common to all terms so we extract it:

**Example 9** Factor polynomial

First we need to appropriately group terms to allow extraction:

From first term we can extract and for second term we can use formula for square of sum to write it as :

Using formula for square of sum again in the first term and then extracting common factor we obtain:

**Example 10** Factor polynomial

where we used formula for difference of squares in third equality to write as .

As we mentioned before, there is no general algorithm for factoring polynomials. Every polynomial is new problem and often there is more than one way to final factorization. We have showed you here some tricks that could help you but the best way to learn how to factor is practice. With practice you will get some intuition on how to group terms and what trick can help you with particular polynomial.