Question: taylors series of composite functions

the taylor series of a function

g(x) = f(x + a * f(x)) around a point x = x0 is given as (hoping i am correct)

g(x) = f(x0) + f'(x0) * (x+a*f(x) -x0) + f''(x0)/2 * (x+a*f(x)-x0) + .... ------------(********)

but using the command

taylor(f(x+a*f(x)),x=x0,4)

gievs

f(x0+a*f(x0)) + f'(x0+a*f(x0)) * ....

 something which is different ...

how to get (***********)

 

 

Please Wait...