Step 1 :
The polynomial $ x^{4}+2x^{3}-7x^{2}+2x-8 $ can be factorized by using the rational root test. To apply this test first we need to find
at least one rational zero.
Polynomial roots calculator can be used to find rational zero.
In this case one rational zero is $ x = 2 $.
This means that we can divide polynomial $ x^{4}+2x^{3}-7x^{2}+2x-8 $ by $ x-2 $ (the factor theorem)
After division we have: (you can use Synthetic Division Calculator for the step-by-step explanation on how to divide polynomials. )
$$ \frac{ x^{4}+2x^{3}-7x^{2}+2x-8 }{ x-2 } = x^{3}+4x^{2}+x+4 $$that is:
$$ x^{4}+2x^{3}-7x^{2}+2x-8 = ( x-2 )( x^{3}+4x^{2}+x+4 ) $$Step 2 :
To factor $ x^{3}+4x^{2}+x+4 $ we can use factoring by grouping:
Group $ \color{blue}{ x^{3} }$ with $ \color{blue}{ 4x^{2} }$ and $ \color{red}{ x }$ with $ \color{red}{ 4 }$ then factor each group.
$$ \begin{aligned} x^{3}+4x^{2}+x+4 = ( \color{blue}{ x^{3}+4x^{2} } ) + ( \color{red}{ x+4 }) &= \\ &= \color{blue}{ x^{2}( x+4 )} + \color{red}{ 1( x+4 ) } = \\ &= (x^{2}+1)(x+4) \end{aligned} $$