# Factoring polynomials

**URL:** https://boards.straightdope.com/t/factoring-polynomials/718345
**Category:** Factual Questions
**Created:** [April 23, 2015, 8:25am UTC](https://boards.straightdope.com/t/factoring-polynomials/718345 "2015-04-23T08:25:50Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![cjackson](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@cjackson](https://boards.straightdope.com/u/cjackson)
#### Post date: [April 23, 2015, 8:25am UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/1 "2015-04-23T08:25:50Z")

</div>

I’m in desperate need of help with factoring. Basically, how do you do it?

Below is an example of what I’m up against.

54c^2d^5e^3; 81d^3e^2

It wants me to find the greatest common factor.

[http://www.rempub.com/80-activities-to-make-basic-algebra-easier](http://www.rempub.com/80-activities-to-make-basic-algebra-easier)

That is the book I’m working out of.

---

<div class="post-metadata">

### Author: ![naita](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/naita/32/5862_2.png) [@naita](https://boards.straightdope.com/u/naita)
#### Post date: [April 23, 2015, 8:55am UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/2 "2015-04-23T08:55:48Z")

</div>

> [@cjackson](#):
>
> I’m in desperate need of help with factoring. Basically, how do you do it?
> 
> Below is an example of what I’m up against.
> 
> 54c^2d^5e^3; 81d^3e^2
> 
> It wants me to find the greatest common factor.
> 
> [http://www.rempub.com/80-activities-to-make-basic-algebra-easier](http://www.rempub.com/80-activities-to-make-basic-algebra-easier)
> 
> That is the book I’m working out of.

I wouldn’t use the term polynomials for those expressions, but what you do is factor them to the simplest factors and see which of those they have in common.

54c^2d^5e^3 = 2_3_3_3_c_c_d_d_d_d_d_e_e\*e

81d^3e^2 = 3_3_3_3_d_d_d_e_e

I wouldn’t normaly expand the exponentials, but I don’t know where you’re struggling.

For any of these factors see if the other number has a corresponding factor and keep only those. 3_3_3_d_d_d_e\*e = 3^3 d^3 e^2

And that’s the greatest common factor.

The reason is that there’s just one unique way to factor a number into primes (and unknowns in this case).

---

<div class="post-metadata">

### Author: ![Wendell\_Wagner](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@Wendell\_Wagner](https://boards.straightdope.com/u/Wendell_Wagner)
#### Post date: [April 23, 2015, 1:21pm UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/3 "2015-04-23T13:21:42Z")

</div>

Suppose you’re told to find the greatest common factor of 3,696,694,848 and 88,058,880.

Now, you start dividing by small primes and discover that 3,696,694,848 happens to equal (2^6) times (3^7) times (7^4) times (11^1) and 88,058,880 equals (2^10) times (3^3) times (5^1) times (7^2) times (13^1).

Each of those numbers is divisible by 2^6. Each is divisible by 3^3. Each is divisible by 7^2. (2^6) times (2^3) times (7^2) equals 84,672. That’s the greatest common factor.

You do the same thing in your problem, except that you can use variables for factors in addition to primes. Each of the two terms is divisible by 3^3, d^3, and e^2. So the greatest common factor is (3^3) times (d^3) times (e^2).

I would say the two things that they asked you to find the greatest common factor of are terms rather than polynomials. Yeah, they are also polynomials, but they are polynomials with just one term. Calling them polynomials made us think that this problem was about factoring polynomials, and that’s a more complicated problem.

---

<div class="post-metadata">

### Author: ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)
#### Post date: [April 23, 2015, 1:31pm UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/4 "2015-04-23T13:31:54Z")

</div>

> [@cjackson](#):
>
> I’m in desperate need of help with factoring. Basically, how do you do it?
> 
> Below is an example of what I’m up against.
> 
> 54c^2d^5e^3; 81d^3e^2
> 
> It wants me to find the greatest common factor.
> 
> [http://www.rempub.com/80-activities-to-make-basic-algebra-easier](http://www.rempub.com/80-activities-to-make-basic-algebra-easier)
> 
> That is the book I’m working out of.

Let us assume that we understand c,d,e as independent variables, so you are in the ring of polynomials in 3 variables. This has unique prime factorization, but the primes are very complicated. The three variables are prime, but so are such expressions as c + d, 2c + e, etc. And integer primes are also prime here. However, any divisor of a monomial is monomial (because you cannot multiply a non-monomial by anything and get a monomial). Now suppose you were asked to find the gcd (greatest common divisor) of (54_5^2)_(7^5)_(11^3) and (81_7^3)_(11^2). This is actually 2_3^3_5^2_7^5_11^3 and 3^4_7^3_11^2, which is obviously 3^3_7^3\*11^2. Similarly, the answer to your question is 27d^3c^2. The point is that primes are primes and c,d,e act just like 5,7,11.

It helps to insert \* in the numerical example, but true exponential notation would help more.

The proof that polynomial rings have unique prime factorization is well less than obvious and was one of David Hilbert’s early successes.

---

<div class="post-metadata">

### Author: ![Isilder](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@Isilder](https://boards.straightdope.com/u/Isilder)
#### Post date: [April 23, 2015, 1:56pm UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/5 "2015-04-23T13:56:15Z")

</div>

> [@cjackson](#):
>
> I’m in desperate need of help with factoring. Basically, how do you do it?
> 
> Below is an example of what I’m up against.
> 
> 54c^2d^5e^3; 81d^3e^2
> 
> It wants me to find the greatest common factor.
> 
> [http://www.rempub.com/80-activities-to-make-basic-algebra-easier](http://www.rempub.com/80-activities-to-make-basic-algebra-easier)
> 
> That is the book I’m working out of.

You left us to assume that c,d,e are all equal to or greater than 1,

Also they aren’t factors of 54 or 81 …

the common factor can be divided from both sides.

Factors of 54, 6 \* 9, well thats 2_3_3\*3

Factors of 81, 9 \* 9 = 3_3_3\*3

So you can take the 3_3_3\*3 out, of both expressions leaving 2 on the left ,3 on the right .  
Can’t divide any c’s from the right hand side, so the c^2 stays at the left.  
divide d^3 from both sides  
divide e^2 from both sides.

So the common factor is 27d^3e^2,  
Well, if d and e were equal, or they were 2 or 3, or multiples of 2 or 3, then there could be a larger common factor, so we have to assume that d and e do not have such similarities.

---

<div class="post-metadata">

### Author: ![cjackson](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@cjackson](https://boards.straightdope.com/u/cjackson)
#### Post date: [April 23, 2015, 2:37pm UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/6 "2015-04-23T14:37:38Z")

</div>

How do I factor monomials, binomials, trinomials and quadratic equations?

Here are some more examples from the book.

24x^3y^2-20x^2y^2+16xy^2

x^2+5x+6

3y^2+8y+4

---

<div class="post-metadata">

### Author: ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)
#### Post date: [April 23, 2015, 3:12pm UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/7 "2015-04-23T15:12:37Z")

</div>

That’s a big question. I suggest you check out some websites that explain factoring. Here are some suggestions, that start with the basics:

[Factoring in Algebra (at mathsisfun.com)](http://www.mathsisfun.com/algebra/factoring.html)

[Simple polynomial factoring](http://www.purplemath.com/modules/simpfact.htm) and [Factoring quadratics](http://www.purplemath.com/modules/factquad.htm) (at [purplemath.com](http://purplemath.com))

[Factoring Polynomials (at coolmath.com)](http://www.coolmath.com/algebra/04-factoring)

Or try some instructional videos from someplace like [Khan Academy](https://www.khanacademy.org/)

---

<div class="post-metadata">

### Author: ![GESancMan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/gesancman/32/2923_2.png) [@GESancMan](https://boards.straightdope.com/u/GESancMan)
#### Post date: [April 23, 2015, 3:13pm UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/8 "2015-04-23T15:13:39Z")

</div>

For the GCF of numbers, there is a second method I teach my students, in addition to the prime factorization method. It’s rather haphazard, but my students seem to grasp it easily.

Let’s say we want the GCF of 36 and 96. The largest _possibility_ is the smallest of the numbers, 36. But 36 doesn’t divide into 96 (without a remainder), so 36 isn’t the GCF.

The next biggest possibility is 36/2=18. But 18 doesn’t divide into 96 either, so no dice.

The next biggest possibility is 36/3=12. 12 **does** divide into 96. Found it! The GCF of 36 and 96 is 12.

I wouldn’t suggest trying this on huge numbers like in **Wendell’s** example, but for smallish numbers this method can be easily done in your head.

---

<div class="post-metadata">

### Author: ![ftg](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ftg/32/2801_2.png) [@ftg](https://boards.straightdope.com/u/ftg)
#### Post date: [April 23, 2015, 5:19pm UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/9 "2015-04-23T17:19:06Z")

</div>

Hold on one very big second…

Factoring and finding greatest common divisors are _not_ the same problem. There is _no_ need to factor in order to find common divisors.

For integers, there’s good old [Euclid’s Algorithm](http://en.wikipedia.org/wiki/Euclidean_algorithm). Very simple and efficient. So good, it’s the standard beginner’s algorithm for 2300 years. (And if you’re not teaching Euclid’s algorithm, _you’re doing it wrong_.)

For single variable polynomials, it easily extends to GCF of polynomials using synthetic division. But, with multi-variate polynomials, there’s some more stuff going on. Start [here](http://en.wikipedia.org/wiki/Polynomial_greatest_common_divisor).

Do _not_ think of or try to factor. That is a horrible, slow, frequently impossible task.

---

<div class="post-metadata">

### Author: ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)
#### Post date: [April 23, 2015, 6:00pm UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/10 "2015-04-23T18:00:03Z")

</div>

**ftg** , if you’re addressing the OP, **cjackson** specifically asked about factoring: that’s what he needs to know how to do. See his later post (#6) for clarification of this.

In some cases (such as the first example given in that post) factoring a polynomial involves finding the greatest common factor/divisor of its terms. But, as long as the numbers involved are fairly small (as they are in that example), I think it’s easier to find the GCF by inspection rather than by any systematic algorithm.

---

<div class="post-metadata">

### Author: ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)
#### Post date: [April 23, 2015, 8:09pm UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/11 "2015-04-23T20:09:40Z")

</div>

Factoring trinomials:

When I was about 40, a community college math teacher showed me a method for factoring trinomials that I had never seen before, which certainly wasn’t what I ever saw in any algebra text or class. It’s called the AC method. Has anyone else here ever seen this?

Take this example, from OP in Post #6:  
3y[sup]2[/sup] + 8y + 4  
First, we note that it’s _much_ easier to read if you use real superscripts for exponents, and add some white space. 😉

To start, multiply the _a_ and _c_ numbers: 3 \* 4 = 12 (This is where the name AC method comes from.)

Next, factor that completely:  
1 | 12  
2 | 6  
3 | 4

Next, scan down that list of factor pairs, hoping to find a pair whose _sum_ is the middle term:  
1 | 12  
**2 | 6** \<— !!!  
3 | 4

Found one! (If no such pair, then the trinomial doesn’t factor.)

Next re-write the original trinomial, splitting the middle term, using the two coefficients thus found:  
3y[sup]2[/sup] + **6y + 2y** + 4

Finally, factor this by grouping. (Remember factoring by grouping?)  
3y[sup]2[/sup] + **6y + 2y** + 4 =  
(3y[sup]2[/sup] + 6y) + (2y + 4) =  
3y(y + 2) + 2(y + 2) =  
(3y + 2)(y + 2)

Okay, that looks like a lot of steps. But it’s less work than the way we were traditionally taught (which involves factoring the _a_ and _c_ numbers separately, and trying all combinations of those until you get the middle term right). This method has less trial-and-error to it.

---

<div class="post-metadata">

### Author: ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)
#### Post date: [April 23, 2015, 11:43pm UTC](https://boards.straightdope.com/t/factoring-polynomials/718345/12 "2015-04-23T23:43:58Z")

</div>

> [@cjackson](#):
>
> How do I factor monomials, binomials, trinomials and quadratic equations?
> 
> Here are some more examples from the book.
> 
> 24x^3y^2-20x^2y^2+16xy^2
> 
> x^2+5x+6
> 
> 3y^2+8y+4

For the second and third, the quadratic formula is your friend and I will leave you to learn and use it. The first is actually 4xy^2(6x^2 - 5x + 4) and again the quadratic formula gives the (complex) factors of the quadratic.

The thing to recall is that there is a close connection between factors of a polynomial and its roots. There are (rather complicated) formulas for finding roots of polynomials of degrees 3 and 4, but there are not, nor can there be, formulas for any higher degree.
