While looking through an example in Carothers' Real Analysis, I came across the following:
$$e^x=\lim_{n\to\infty}\left(1+\frac{x}{n}\right)^n$$
and of course I noticed that it looks similar to $e=\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^n$, so since I didn't see how to get the first expression right away, I tried to prove it.
Since $e=\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^n$, if I take the $x^{\text{th}}$ power on both sides I would get $$e^x=\left(\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^n\right)^x$$
I'm not sure how to simplify this further. My attempt:
Assuming $\left(\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^n\right)^x=\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^{nx}$,
(Fairly certain this assumption is incorrect though..)
I then make the change of variable $k=nx$. Also note that $k=nx\implies n=\frac{k}{x}$
Substituting these in, I get that
$$\lim_{k\to\infty}\left(1+\dfrac{1}{\frac{k}{x}}\right)^k=\lim_{k\to\infty}\left(1+\frac{x}{k}\right)^k$$
Hence $$e^x=\lim_{k\to\infty}\left(1+\frac{x}{k}\right)^k$$
My question can essentially be summarized as follows:
Is this valid: $$\left(\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^n\right)^x=\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^{nx}$$
If not, how would you go about trying to prove the initial statement?