HINT 18Q: Differentiating p with respect to x and rearranging shows that dp/dx = apq. Then, differentiate again.