If the expression $z^5-32$ can be factorised into linear and quadratic factors over real coefficients as $(z^5-32)=(z-2)(z^2-pz+4)(z^2-qz+4)$,then find the value of $p^2+2p.$
I used $a^5-b^5=(a-b)(a^4+a^3b+a^2b^2+ab^3+b^4)$ to get $z^5-2^5=(z-2)(z^4+2z^3+4z^2+8z+16)$
Then i compared $z^4+2z^3+4z^2+8z+16$ with $(z^2-pz+4)(z^2-qz+4)$
to get $p+q=-2$ and $p^2q^2=2$
$pq=\pm\sqrt2$
But when i solve the two equations $pq=\pm\sqrt2$ and $p+q=-2$,i get the value of $p$ and $q$ whch are non-manageable difficult to simplify.And i am not able to calculate the final desired result $p^2+2p$.
Is my approach not correct?What is the simple and elegant method to do this?Please help me.
Equating the coefficients of $z^2,$
$$4+pq+4=4\iff pq=-4$$
Equating the coefficients of $z^3,$
$$-2=p+q$$ So, $p,q$ are the roots of $$t^2+2t-4=0$$