TITLE: Solve $x^4+3x^3+6x+4=0$... easier way?
QUESTION [33 upvotes]: So I was playing around with solving polynomials last night and realized that I had no idea how to solve a polynomial with no rational roots, such as $$x^4+3x^3+6x+4=0$$
Using the rational roots test, the possible roots are $\pm1, \pm2, \pm4$, but none of these work.
Because there were no rational linear factors, I had to assume that  the quartic separated into two quadratic equations yielding either imaginary or irrational "pairs" of roots.  My initial attempt was to "solve for the coefficients of these factors".
I assumed that $x^4+3x^3+6x+4=0$ factored into something that looked like this
$$\left(x^2+ax+b\right)\left(x^2+cx+d\right)=0$$
because the coefficient of the first term is one.  Expanding this out I got
$$x^4+ax^3+cx^3+bx^2+acx^2+dx^2+adx+bcx+bd=0$$
$$x^4+\left(a+c\right)x^3+\left(b+ac+d\right)x^2+\left(ad+bc\right)x+bd=0$$
Equating the coefficients of both equations
$$a+c = 3$$
$$b+ac+d = 0$$
$$ad+bc = 6$$
$$bd = 4$$
I found these relationships between the various coefficients.   Solving this system using the two middle equations:
$$\begin{cases} b+a\left(3-a\right)+\frac4b=0 \\ a\frac4b+b\left(3-a\right)=6 \end{cases}$$
From the first equation: $$a = \frac{3\pm\sqrt{9+4b+\frac{16}{b}}}{2}$$
Substituting this into the second equation:
$$\frac{3\pm\sqrt{9+4b+\frac{16}{b}}}{2}\cdot\frac4b+b\cdot\left(3-\frac{3\pm\sqrt{9+4b+\frac{16}{b}}}{2}\right)=6$$
$$3\left(b-2\right)^2 = \left(b^2-4\right)\cdot\pm\sqrt{9+4b+\frac{16}b}$$
$$0 = \left(b-2\right)^2\cdot\left(\left(b+2\right)^2\left(9+4b+\frac{16}b\right)-9\left(b-2\right)^2\right)$$
So $b = 2$ because everything after $\left(b-2\right)^2$ did not really matter in this case.  From there it was easy to get that $d = 2$, $a = -1$ and $c = 4$.  This meant that
$$x^4+3x^3+6x+4=0 \to \left(x^2-x+2\right)\left(x^2+4x+2\right)=0$$
$$x = \frac12\pm\frac{\sqrt7}{2}i,\space x = -2\pm\sqrt2$$
These answers worked!  I was pretty happy at the end that I had solved the equation which had taken a lot of work, but my question was if there was a better way to solve this?

REPLY [4 votes]: In general any quartic equation can be solved. If the polynomial happens to be the product of two irreducible polynomials over $\mathbb Z$, the following method allows to find the coefficients easily. Reducing the coefficients mod $2$, one has $$f(x):=x^4+3x^3+6x+4=x^4+x^3=x^2(x^2+x).$$ Lifting back to ${\mathbb Z}$-coefficients, one may assume that $$f(x)=(x^2+2ax\pm 2)(x^2+bx\pm 2),$$ where $a,b\in {\mathbb Z}$ and $b$ is odd. By comparison of coefficients, one has $$2a+b=3,2ab\pm 4=0,\pm 4a\pm 2b=6,$$ which shows immediately that one needs to take the ‘plus’ sign from $\pm$. From the first two equations, by eliminating $a$, one has $b=4$ or $b=-1$, so $b=-1$ since it is odd. It follows that $a=2,b=-1$ and $$f(x)=(x^2+4x+2)(x^2-x+2).$$