Here's another approach where I give Derivative
a definition so that rules are not needed (it happens automatically). I'll use Michael's starting point:
eqn = x == f[z[x, y], y]
x == f[z[x, y], y]
and differentiate with respect to x
:
deqn = D[eqn, x];
deqn //InputForm
1 == Derivative[1, 0][f][z[x, y], y]*Derivative[1, 0][z][x, y]
Solving for Derivative[1, 0][z][x, y]
(which is $\left. \frac{\partial z}{\partial x} \right|_y$ in your notation):
Derivative[1, 0][z][x, y] == 1 / Derivative[1, 0][f][z[x, y], y]
Let's turn this into a definition for Derivative
:
Derivative[1, 0][z][x_, y_] = 1 / Derivative[1, 0][f][z[x, y], y];
Derivative[n_Integer?Positive, 0][z][x_, y_] := D[Derivative[1, 0][z][x, y], {x, n-1}]
Your first result can be obtained with:
Derivative[2, 0][z][x, y] //TeXForm
$-\frac{f^{(2,0)}(z(x,y),y)}{f^{(1,0)}(z(x,y),y)^3}$
or:
D[z[x, y], {x, 2}] //TeXForm
$-\frac{f^{(2,0)}(z(x,y),y)}{f^{(1,0)}(z(x,y),y)^3}$
Here's a table showing agreement with Michael's results:
Grid[
Table[
{Derivative[n, 0][Inactive@z][x, y], Derivative[n, 0][z][x, y]},
{n, 4}
],
Dividers -> All
] //TeXForm
$\begin{array}{|c|c|}
\hline
z^{(1,0)}(x,y) & \frac{1}{f^{(1,0)}(z(x,y),y)} \\
\hline
z^{(2,0)}(x,y) & -\frac{f^{(2,0)}(z(x,y),y)}{f^{(1,0)}(z(x,y),y)^3} \\
\hline
z^{(3,0)}(x,y) & \frac{3
f^{(2,0)}(z(x,y),y)^2}{f^{(1,0)}(z(x,y),y)^5}-\frac{f^{(3,0)}(z(x,y),y)}{f^{(1,0)}(z(x,y),y
)^4} \\
\hline
z^{(4,0)}(x,y) & -\frac{15 f^{(2,0)}(z(x,y),y)^3}{f^{(1,0)}(z(x,y),y)^7}+\frac{10
f^{(3,0)}(z(x,y),y)
f^{(2,0)}(z(x,y),y)}{f^{(1,0)}(z(x,y),y)^6}-\frac{f^{(4,0)}(z(x,y),y)}{f^{(1,0)}(z(x,y),y)^
5} \\
\hline
\end{array}$