How can you find of real roots for $P(x) = x^4 - 4x^3 + 4x^2 - 10$?
Using the Descartes' rule of signs:
The polynomial $P(x) = x^4 - 4x^3 + 4x^2 - 10$ has three sign changes between the first, second, third and fourth terms (the sequence of pairs of successive signs is +, −, +, -), therefore it has exactly three positive roots.
The polynomial $P(-x) = x^4 + 4x^3 + 4x^2 - 10$ has one sign change between the third and fourth terms (the sequence of pairs of successive signs is +++, -), therefore it has exactly one negative root.
Finally, summing up, the polynomial $P(x) = x^4 + 4x^3 + 4x^2 - 10$ has four real roots.
However, the actual answer is two real roots. How can you find this answer and what is wrong with my implementation of the Descartes' rule of signs?
The number of positive roots is only known to be either the number of sign changes, or less than that by an even number. Same for negative roots after changing sign on $x.$