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)
2 f(x) D (f) (x)
which is correct, but hard for me to read. Can I make sage return:
2 f(x) f'(x)