Differentiating, dydx=15x2+2px+12.
At the stationary point where x=2, dydx=0:
15(4)+4p+12=072+4p=04p=−72p=−18∎
∫02(5x3−18x2+12x+q)dx=12[5x44−6x3+6x2+qx]02=125(2)44−6(2)3+6(2)2+q(2)−(5(0)44−6(0)3+6(0)2+q(0))=12−4+2q=122q=16q=8∎