HI

i guess you know that you need to differentiate a given function and have its equals 0 to find its turning points .

then substitute -1 and 3 into the equation and you will get 2 equations . Then solve for p and q .'

For r , substitute p , q and one of the points this curve passes (in red) into the original equation (blue) .