Is factoring just random trial and error?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
pivoxa15
Messages
2,250
Reaction score
1

Homework Statement


How does one know x^4+x^2+1=(x^2-x+1)(x^2+x+1)?

How does one get to that step?

I can find the roots of x but that doesn't seem to help. Is it be random trial and error?
 
Physics news on Phys.org
One knows that x^4+x^2+1=(x^2-x+1)(x^2+x+1) by multiplying out the right side! But I suspect that was not your question. Your question really is "how does one factor x^4+ x^2+ 1 if you do NOT know that factorization in advance?"

Notice that there are no ODD powers of x in the expression. Replace "x^2" by "y" so that you have the quadratic y^2+ y+ 1. Rewrite that as (y^2+ 2y+ 1)- y= (y+1)^2- y so that the first is a "perfect square". Think of it as the "difference of two squares" so that it can be factored as [itex][(y+1)- \sqrt{y}][(y+ 1)+ \sqrt{y}][/itex]. One wouldn't normally do that because of the [itex]\sqrt{y}[/itex] but since y= x^2, [itex]\sqrt{y}= x[/itex] and we have [(x^2+1)-x][(x^2+1)+x]= (x^2-x+1)(x^2+x+1).
 
Nice trick. I wonder how many of those tricks are there and which book contains most or all of them?