Sort expression after differentiation

The equations I work with in this problem contain exponentials. For this reason, after differentiation, they appear again almost without changes, except for additional constants and other factors. I was wondering if it is possible to collect these exhibitors back into the name of the expression in which they are located. Here is an example:

Given this definition of function

f:= x -> A*exp(B/x) 

After differentiation, it would turn out

 A*exp(B/x)*(-B/x^2) 

And it would be great if I could somehow convert it into

 f(x)*(-B/x^2) 

Is this possible with MuPad or any other CAS package?

+6
source share
1 answer

MAPLE makes it easy to use the generic algsubs substitution algsubs

 > f:= x -> A*exp(B/x) > g := diff(f(x), x) > algsubs(A*exp(B/x) = F, g) 

For more complex expressions try collect

0
source

All Articles