MATLAB: Hello, I want to derive from a function such as (f=f0+R*f1​+R^2*f2+R^​3*f3) so that the answer is as follows: (f’=f0’+R*​f1’+R^2*f2​’+R^3*f3′)

diff()function

The values of the functions f are not given in x and we want to calculate the derivative parametric

Best Answer

syms f(x) f0(x) f1(x) f2(x) f3(x) R
fun=diff(f,x)==diff(f0,x)+R*diff(f1,x)+R^2*diff(f2,x)+R^3*diff(f3,x)