I have the expression D[f[x, y], x], and I want to substitute f[x,y] with x*y, I tried the following:
D[f[x, y], x]
f[x,y]
x*y
D[f[x, y], x] /. {f[x,