I wonder if someone could help here. I have the following situation:

I have the equation:

g(z) = z - f(z,p,q) = 0

also z is a function of p and q

I have already solved this for fixed p and q using Newton-Raphson and hence I have already calculated partial df/dz

Now I need to calculate partial derivatives dz/dp and dz/dq.

I can't work out how to do this.