Rido12 said:
How do you factor $$y^4+y^2+1$$?
I know that if you regroup them like this:
$$y^4+2y^2+1-y^2$$, factoring becomes apparent:
$$(y^2 + 1 + y) (y^2 + 1 - y)$$
Is there any other way to factor this? It's just a pain to have to try out these "tricks" every time I try to factor something.
Unfortunately, no, factoring is what as known as a "hard problem", because it is often no easy task to determine if a factorization even exists. So a "bag of tricks" is one's best friend.
Here, we catch a lucky break, the coefficients of $y^4 + y^2 + 1$ are all integers, which means that if it DOES factor, the coefficients of the factors will ALSO be integers. It is not hard to see we have no linear factors, since no integer choice for $y$ will make the polynomial 0.
So if we have any factors at all, they are quadratic factors, and we have two choices:
$y^4 + y^2 + 1 = (y^2 + ay - 1)(y^2 + by - 1)$, or:
$y^4 + y^2 + 1 = (y^2 + ay + 1)(y^2 + by + 1)$
Let's look at the first one. We have:
$(y^2 + ay - 1)(y^2 + by - 1) = y^4 + (a+b)y^3 + (ab - 2)y^2 - (a+b)y + 1$
Comparing this to $y^4 + y^2 + 1$, we see we must have:
$a+b = 0$
$ab = 3$
Thus $ab = -a^2 = 3$, which is impossible for an integer.
So we turn to the second one:
$(y^2 + ay + 1)(y^2 + by + 1) = y^4 + (a+b)y^3 + (ab + 2)y^2 + (a+b)y + 1$, which tells us:
$a+b = 0$
$ab = -1$
This, in turn, leads to $ab = -a^2 = -1$, so $a^2 = 1$, which has the solutions $a = \pm 1$. If we take $a = 1$, we get $b = -1$, and vice-versa, so both choices lead to the same factorization:
$y^4 + y^2 + 1 = (y^2 + y + 1)(y^2 - y + 1)$.
Sometimes, an analysis like this is all one can do, and the resulting system of equations can be challenging to solve (they are typically non-linear). This becomes increasingly true of polynomials of higher degree (like more than 6), which are quite difficult to factor.
Of course your "trick" is quicker than what I did. That's why such "short-cuts" continue to be useful.