After the up tick in hits from my last post, WordPress asked if I’d post something to decrease the load on their servers and so I bring to you the fourth installment of my widely panned series on mathematical shortcuts. Today’s topic: Factoring.

# Tricks of the Trade

(with Professor Glesser)

Quick: what do the following polynomials have in common?

If you said, in less than 10 seconds, that 1 is a root to all of them, you can probably stop reading now! I did it in less than 3 seconds, so I should stop reading, but given that I’m writing this, that would be problematic.

The trick isn’t really a trick. It is just plain obvious once you see it. If you plug into any of the polynomials, you are left with 0, so it is a root. But, if that is what you do, then you won’t see the trick. When you plug 1 in, the parts simply vanish and you are left adding up the coefficients. For example, if you notice that 5 – 6 + 1 = 0, then you know immediately that 1 is a root. In fact, that is how I came up with all the examples: I made up all but the last coefficient psuedo-randomly and then made the last coefficient the opposite of the sum of the other coefficients!

**Is that it?**

No, there’s more. Already, we know that has as a root, but we can also immediately find the other root. How? Let’s factor. Since 1 is a root, we know that is a divisor of and so . Equating coefficients, we get and . In other words, the other root is . Hmmm, that wasn’t so immediate; that took effort. Fine, lets start over with an arbitrary quadratic such that (implying that 1 is a root). We can factor and, equating coefficients, we get and . Ah, hah! So under our assumptions, the roots are 1 and .

If we go back to our second example from the beginning, we can now immediately see that the roots are 1 and .

**Pretty good. That it?**

No way. If you start with a cubic whose coefficients sum to 0, then we can factor it as before:

from which we get and (that last one takes more work than the others). This isn’t quite as nice as before (not even close, actually), but if you’re into obscure formulas, this might be your cup of tea. Let me give another example of a cubic, though, that is a little more fun.

Consider . At this point, your root detector should be screaming like my two-year old when he spots a caterpillar on the ground. But, if you quickly compute , you also get 0. Meaning that is a double root (i.e., divides ). It also means that the third root is !

**I know, I know: there’s more.**

That’s right, Diane. Part of the reason this trick will work so often in math class is that textbook writers are lazy. Why make up problems with realistic roots when you can make them all have the same roots? Anecdotally, the three most common roots of polynomials in textbooks are . Checking for 0 as a root is pretty straightforward and I’ve just shown you how to find as a root; how about ? It is only slightly more complicated.

Let’s start with our general quadratic again: . If we substitute in for , every even power of will simply vanish, while the odd powers of will negate the sign of the coefficient. That is, you get . If this equals , then is a root. For example, knowing that implies that is a root of . As before, we can factor: and so and . Thus, the other root is . This tells us that the other root of is .

As before, there is no reason to stop at quadratics. For a general cubic , you simply check whether .

Put together, you now have a really good way to spot check whether the three most common (textbook) roots occur in a given polynomial.

**Phew, we’re done.**

Not quite. I have one last bit for the interested. My high school algebra teacher taught us the rational root test (do they still teach this in school?) which says that the rational roots of a polynomial of degree (rational here means an integer divided by a non-zero integer and the degree of a polynomial is the highest power of in the polynomial) of the form (where I don’t care at all about the terms in the middle) are all of the form where divides and divides . In the special case where , then there are only two possible rational roots: and . So, if given

we can immediately see by adding the coefficients that is not a root and by negating the odd power coefficients and adding that is not a root and so, by the rational root test, this quintic polynomial is irreducible (i.e., it can’t be factored¹).

For another cool factoring trick that I don’t use (because I only just learned it), but think I might try teaching is David Cox’s Bottom’s Up! method.

¹This means “can’t be factored over the rationals” which means that you can’t factor so that the coefficients of the factors are rational numbers. The polynomial can be factored as , but are irrational numbers.

The Bottoms Up method looks pretty cool!

Comment by Allen Glesser — June 12, 2010 @ 10:09 am |

the “rational roots test” is indeed still out there

in the textbooks and pre-calculus courses.

very inappropriately in the case i know best.

i wrote about it here:

http://vlorbik.wordpress.com/2009/02/09/section-55-a-manifesto/

.

and *wish* it were widely panned.

widely ignored though like almost

all my stuff. i got a nice comment

from one of my then-students though.

sigh.

Comment by vlorbik — June 17, 2010 @ 5:00 am |

Very nice article

Comment by Duc Mai — July 1, 2010 @ 11:56 am |

Thanks, Duc. I bet you can’t guess who gave me the idea 😉

Comment by Adam Glesser — July 4, 2010 @ 8:06 pm |