Forcing Prime Notation
I want sage to implicitly differentiate a function for me, say
d/dx f(x)^2 = 2f(x)* f'(x).
I can do this by entering:
var('x')
f=function('f', x)
(f^2).diff(x)
This returns
2 f(x) D[0] (f) (x)
which is correct, but hard for me to read. Can I make sage return:
2 f(x) f'(x)
Thanks.