\(8a^4-2a^2-4a+2\)
\(=2\cdot\left(4a^4-a^2-2a+1\right)\)
\(=2\cdot\left(2a-1\right)\cdot\left(2a^3+a^2-1\right)\)
\(8a^4-2a^2-4a+2\)
\(=2\left(4a^4-a^2-2a+1\right)\)
\(=2\left(4a^4-2a^3+2a^3-a^2-2a+1\right)\)
\(=2\left(2a-1\right)\left(2a^3+a^2-1\right)\)