1

When I have a complicated expression that depends on some variable, say, $f$, the following usually works ok:

Expression ./ { f-> x^2 } 

But if $f$ is a function f[x,y], and Expression has not only terms like f[x,y] but also D[ f[x,y], x] (in markup they show up as f^{(1,0)}[x,y]), the above substitution would leave the derivatives unaffected

Is there a smarter way to do expression replacement that does the expected behavior with derivatives of the replaced expression?

lurscher
  • 743
  • 3
  • 13

0 Answers0