For some analytic function $f(x)=\lim_{n\rightarrow\infty}\sum^n_{r=0}c_rx^r$, $$\lim_{x\rightarrow\infty}\frac{f(x)}{e^x}=\lim_{x\rightarrow\infty}\frac{\lim_{n\rightarrow\infty}\sum^n_{r=0}c_rx^r}{e^x}=\lim_{n\rightarrow\infty}\sum^n_{r=0}c_r\lim_{x\rightarrow\infty}\frac{x^r}{e^x}=\lim_{n\rightarrow\infty}\sum^n_{r=0}c_r(0)=\lim_{n\rightarrow\infty}0=0$$ But obviously this cannot be true? For say, $f(x)=e^x$ we would have $$\lim_{x\rightarrow\infty}\frac{e^x}{e^x}=1$$ and $$\lim_{x\rightarrow\infty}\frac{e^x}{e^x}=0$$ which would imply$$0=1$$
UPDATE: An answer has suggested that the two limits cannot be inverted. Is this true and why is this so? I would like a more complete explanation if this is the case. Also if this were the case, couldn't this modification to the question avoid that pitfall completely? $f(x)=\sum^\infty_{r=0}c_rx^r$, $$\lim_{x\rightarrow\infty}\frac{f(x)}{e^x}=\lim_{x\rightarrow\infty}\frac{\sum^\infty_{r=0}c_rx^r}{e^x}=\sum^\infty_{r=0}c_r\lim_{x\rightarrow\infty}\frac{x^r}{e^x}=\sum^\infty_{r=0}c_r(0)==0$$
Thanks in advance. Any other thoughts or comments welcome.