Find the Values of m, p and q for which $\displaystyle 2x^2 - x -1$ is equivilent to $\displaystyle m(x+1)^2 + p(x+1) + q$.

I don't know how to show this. I have Tried to expand the Question but i could not come to anything rational.

In this type of question do i use the quadratic formula?

$\displaystyle

= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

$

If so then.

Line 1:

$\displaystyle \frac{-(-1) \pm \sqrt{-1^2 - 4*2*-1}}{2*-1}$ is equivilent to $\displaystyle \frac{-(px+p) \pm \sqrt{(px-p)^2 - 4*m(x+1)*q}}{2*m(x+1)^2}$

Line 2:

$\displaystyle \frac{+1 \pm \sqrt{1 + 8}}{-2}$ is equivilent to $\displaystyle \frac{-px-p \pm \sqrt{px^2 - 2p^2 x - 4mqx - 4mq}}{2mx^2 + 4mx + 2m}$

Line 3:

$\displaystyle \frac{+1 \pm 3}{-2}$ is equivilent to $\displaystyle \frac{-px-p \pm \sqrt{px^2 - 2p^2 x - 4mqx - 4mq}}{2mx^2 + 4mx + 2m}$

This is where i am stuck.

I know to find the values for m, p and q. I need to do simutanious equations. But i do not know where to apply it. I also think that using the Quadratic formula is also incorrect.

Any help is appreciated. An explanation is even better.

Thank you for any help.