Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

subs: for function and its derivative


if you have an expression like


and would like replace y by x^2,

I would normally call


But this only substitutes the y in the second term, but not the function y in the derivative. So, in order to do that I do


This works and I can live with this, but I was wondering if there is a "short cut" to replace the function y in the second term as well as the function y in the derivative at the same time?

I am looking for something similar to


in Mathematica.