Well, I want to find the roots of the equation:
$$x^4+6x^3-9x^2-162x-243=0\tag1$$
And Wolfram Alpha tells me that I can factor this and get:
$$(x^2-3x-9)(x^2+9x+27)=0\tag2$$
Then it will be easy to solve... But my question is, how can I go from $(1)$ to $(2)$?
I would use a CASIO calculator:
Type in the equation $X^4+6X^3-9X^2-162X-243$. To type "$X$", you must press ALPHA, then the button that has $X$ above it. In my calculator, $X$ is located above the close bracket ")", "SHIFT" is located on the top left, "ALPHA" is right next to "SHIFT".
Press SHIFT, then CALC (SOLVE), then "$=$". When the first real result is out (for example, $X=-1.854101966$, press SHIFT and RCL (STO), then press $A$ to make a new variable $A=-1.854101966$.
Type in the equation $\dfrac{X^4+6X^3-9X^2-162X-243}{X-A}$, then SHIFT, CALC (SOLVE) in that order then press "$=$" two times. The calculator will automatically calculate another real root, this cannot be $A$ because that violates the defined condition. Press SHIFT, RCL (STO), $B$ in that order to get the second variable, in this case $B=4.854101966$. I have tried this and it takes quite a while, about over a minute to get the result.
Now use the calculator again to calculate the sum and product of two variables:
${\begin{cases}S=A+B=3\\P=AB=-9\end{cases}}$
Using the Vieta's formula, we know that $A$ and $B$ are two real roots of the equation $x^2-3x-9=0$, so when we write the first equation as a product of two quadratic equations, one of them should be $x^2-3x-9$.
$x^2+9x+27$ does not have real roots however, so the calculator will not give the roots of that equation. Instead, using a method to divide $x^4+6x^3-9x^2-162x-243$ by $x^2-3x-9$ to get $x^2+9x+27$.