\(P\left(-1\right)=\left(-1\right)^4+2.\left(-1\right)^2+1=4\\ P\left(1\right)=1^4+2.1^2+1=4\)
\(P\left(-1\right)=\left(-1\right)^4+2\cdot\left(-1\right)^2+1=4\)
\(P\left(1\right)=P\left(-1\right)=4\)
\(Q\left(2\right)=2^4+4\cdot2^3+2\cdot2^2-4\cdot2+1=49\)
\(Q\left(1\right)=1^4+4\cdot1^3+2\cdot1^2-4\cdot1+1=4\)