Given a quartic
$ax^4+bx^3+cx^2+dx+e,$
we propose a factorization
$(\alpha x^2+\gamma x+\epsilon)(\alpha' x^2+\gamma' x+\epsilon')$
where $(\alpha)(\alpha')=a$ and $(\epsilon)(\epsilon')=e$. Then matching the cubic terms and the linear terms respectively give
$\alpha\gamma'+\alpha'\gamma=b\tag{1}$
$\epsilon\gamma'+\epsilon'\gamma=d\tag{2}$
If the determinant $\alpha\epsilon'-\alpha'\epsilon$ is nonzero, this sysyem has a unique solution for $\gamma$ and $\gamma'$, and the proposed factorization is checked by seeing if the quadratic terms catch the coefficient $c$ of $x^2$:
$\alpha\epsilon'+\gamma\gamma'+\alpha'\epsilon\overset{must}{=}c\tag{3}$
If the determinant is zero, then there is no solution unless either of the following equivalent conditions hold:
$b\epsilon=d\alpha,b\epsilon'=d\alpha'\tag{4}$
When this equality is satisfied, either (1) or (2) may be combined with (3) to generate a quadratic equation for $\gamma$, with either root suitable for factorization. Once a root for $\gamma$ is chosen, it is substituted back into (1) or (2) and the equation is solved for the corresponding value of $\gamma'$. The two possible choices differ at most by orderibg of the factors and constant multiplying factors.
Note that in the second case $\gamma$ and $\gamma'$, being derived from solving a quadratic equation, may be irrational or even a pair of complex conjugates. If so, and if the quartic has no rational roots, then the quartic is ireeducible over tbe rationals; but the roots of the quadratic factors are still relatively easy to obtain (versus using the full general solution method).
Example 1: $x^4-3x-2$
If this quartic with no rational roots is reducible, then it will factor as one of the following:
$x^4-3x-2=(x^2+\gamma x+1)(x^2+\gamma' x-2)$
$x^4-3x-2=(x^2+\gamma x-1)(x^2+\gamma' x+2)$
With the first trial, Eqs. (1) and (2) give a unique solution
$\gamma=1,\gamma'=-1.$
But checking this against (3) gives
$(x^2+x+1)(x^2-x-2)=x^4\color{red}{-2x^2}-3x-2,$
so the factorization fails. Trying the second candidate above we find that
$\gamma=-1,\gamma'=1$
$(x^2-x-1)(x^2+x+2)=x^4\color{blue}{+0x^2}-3x-2,$
and so this factorization holds. We get $(1\pm\sqrt5)/2$ as real zeroes and $(-1\pm i\sqrt7)/2$ as a complex conjugate pair.
Example 2: $x^4+x^3+x^2-x+1$
Here we have the two candidates
$x^4+x^3+x^2-x+1=(x^2+\gamma x+1)(x^2+\gamma' x+1)$
$x^4+x^3+x^2-x+1=(x^2+\gamma x-1)(x^2+\gamma' x-1)$
With the first candidate Eqs (1) and (2) become
$\gamma+\gamma'=1, \gamma+\gamma'=-1$
and these are clearly contradictory. The determinant of the coefficient is zero and Eq. (4) fails with $b\epsilon=1,d\alpha=-1$. But with the second candidate we have
$\gamma+\gamma'=1, -\gamma-\gamma'=-1$
with $b\epsilon=d\alpha=-1$, and so the nonunique case holds. We find that when either linear equation is combined with (3) the following quadratic equation for $\gamma$ results:
$\gamma^2-\gamma+3=0\implies\gamma=(1\pm i\sqrt{11})/2.$
From these we obtain the factorization
$x^4+x^3+x^2-x+1=\left(x^2+\dfrac{1+i\sqrt{11}}2x-1\right)\left(x^2+\dfrac{1-i\sqrt{11}}2x-1\right)$
and the zeroes
$x=\frac14[(-1\pm_1\sqrt{2\sqrt5+3})\pm_2i(-\sqrt{11}\pm_1\sqrt{2\sqrt5-3})]$
(Identical subscripts on the $\pm$ signs indicate signs that are to be chosen identically.)