rate of change can be viewed as slope geometrically. now certainly you want the instantaneous rate of change of x with respect to p.
ie known as the derivative of x with respect to p.
so let's find the slope. remember that the p is shown respect here so it is our variable.
im not sure how far into calc you are but i'll do it the long way
now we take the derivative
inst. rate of change