Let's take: $f(x)=e^{2x+1}$
We can find the Taylor-expansion centered around $-\frac{1}{2}$ in two ways:
1) Use the definition: $f(x)=f(a)+\frac{f'(a)(x-a)}{1!}+\frac{f''(a)(x-a)^2}{2!}+\frac{f^{(3)}(a)(x-a)^3}{3!}...$ for a=$-\frac{1}{2}$
2) Expand $e^u$ around $u=0$ which gives: $e^u=1+u+\frac{u^2}{2!}+\frac{u^3}{3!}$ and then substituting $u=2x+1$
Both ways yield the same solution around $x=-\frac{1}{2}$, namely: $$f(x)=1+\frac{(2x+1)}{1!}+\frac{(2x+1)^2}{2!}+\frac{(2x+1)^3}{3!}+...$$
Question: Why do both methods yield the same result? It "feels" to me as if in the second method we are disregarding the chainrule? I am trying to understand why "under the hood" both methods amount to the same result.
Basically the question boils down to the question of why the substitution is allowed. I think this answer has something to do with it: https://math.stackexchange.com/a/1855698/245761