Determine parameters in a polynomial identity
For every real value of \(x\), the expressions below are equal
\[P(x)=-2x^3 + 7x^2 - 2x + 1\]
\[Q(x)=-2x^3 + px^2 - 2x - 5 + q\]
The required identity is \(P(x)=Q(x)\)
For a numerical check, evaluate the displayed expressions at \(x=0\)