Perhaps you should start by writing out the extra step
[math]\dfrac{\partial f}{\partial p} = \dfrac{ \partial f}{ \partial x} \cdot \dfrac{ \partial x}{ \partial p} + \dfrac{ \partial f}{ \partial y} \cdot \dfrac{ \partial y}{ \partial p}[/math]
Now use [math]x = pq^2[/math] and [math]y = p + \dfrac{1}{q}[/math] to find your [math]\dfrac{ \partial x}{ \partial p}[/math] and [math]\dfrac{ \partial y}{ \partial p}[/math]. (Or note the comparison between the two lines.)
For the second partials Is this a problem with the concept or is it a problem with the calculation? Otherwise do the same thing as in part 1. I would hate to have to write [math]\dfrac{ \partial f}{ \partial p \partial q} = \dfrac{ \partial \left ( \dfrac{ \partial f}{ \partial p} \right ) }{ \partial q}[/math] too many times, but you can simply write it out term by term. Yes, it's ugly, but normally in any school work you would know f(p, q) anyway.
-Dan