I am trying to prove to myself why can substitution be used while using taylor expansion. for example: the taylor expansion of $e^{(x-3)^2}$ around $a=3$ and order of $6$ can be done by first evaluating $e^x$ and than plugging in $(x-3)^2$ getting $P_{6}(x)=1+(x-3)^2+\frac{(x-3)^4}{4}+\frac{(x-3)^6}{6}$
We know that $f(x)=P_{n}(x)+R_{n}(x)$ when $lim_{x\to a} \frac{R_n{x}}{(x-a)^n}=0$
So we first use taylor expansion around $a=0$ and of order $k=3$
So we in general we have $f(x)=P_{k}(x)+R_{k}(x)$ now we plug in $(x-3)^2$ and get $f(x)=P_{k*m}(x)+R_{k*m}(x)$ where $m=2$
Because we overall got a polynomial in the form of $f(x)=P_{n}(x)+R_{n}(x)$ the used substitution can be made? is that a valid proof?