answered 5 years ago
It seems that you want the following:
var('x') y = function('y')(x) f = function('f')(x,y) f.diff(x)
Output:
D[1](f)(x, y(x))*diff(y(x), x) + D[0](f)(x, y(x))