I have to show that $$\lim_{n\to\infty }\left(1+\frac{x}{n}\right)^n=e^x$$ for all $x\in\mathbb R$ using the fact that $$e=\lim_{n\to\infty }\left(1+\frac{1}{n}\right)^n.$$
I already showed that for all $q\in\mathbb Q$, $$\lim_{n\to\infty }\left(1+\frac{q}{n}\right)^n=e^q,$$ but I have problem to show the relation for $x\in\mathbb R$. My idea is to take a sequence of rational $(x_n)$ that converge to $x\in\mathbb R\backslash \mathbb Q$ (which exist), and thus
$$\lim_{n\to\infty }\left(1+\frac{x_m}{n}\right)^n=e^{x_m}\implies \lim_{m\to\infty }\lim_{n\to\infty }\left(1+\frac{x_m}{n}\right)^n=\lim_{m\to\infty }e^{x_m},$$ but now, how can I justify that $$\lim_{m\to\infty }\lim_{n\to\infty }\left(1+\frac{x_m}{n}\right)^n=\lim_{n\to\infty }\lim_{m\to\infty }\left(1+\frac{x_m}{n}\right)^n$$ and $$\lim_{m\to\infty }e^{x_m}=e^{\lim_{m\to\infty }x_m}.$$
(I can't use continuity since I'm not supposed to know that $f:x\mapsto e^x$ is continuous).
First, we form a sequence $x_m$ for which $x_m\le x$ for all $m$, and $x_m\to x$.
Then, for any given $\epsilon>0$, there exists a number $M$ such that for all $m>M$, $0\le x-x_m <\epsilon$.
Next, we write
$$\begin{align} 0\le \left|\left(1+\frac{x}{n}\right)^n-\left(1+\frac{x_m}{n}\right)^n\right|&=\left(1+\frac{x_m}{n}\right)^n\left(\frac{\left(1+\frac{x}{n}\right)^n}{\left(1+\frac{x_m}{n}\right)^n}-1\right)\\\\ &=\left(1+\frac{x_m}{n}\right)^n\left(\frac{1}{\left(1-\frac{x-x_m}{n+x}\right)^n}-1\right) \tag 1\\\\ &\le\left(1+\frac{x_m}{n}\right)^n\left(\frac{1}{\left(1-\frac{n(x-x_m)}{n+x}\right)}-1\right) \tag 2\\\\ &=\left(1+\frac{x_m}{n}\right)^n\left(\frac{n}{n(1-(x-x_m))+x}\right)(x-x_m) \tag 3 \end{align}$$
where in going from $(1)$ to $(2)$, we used Bernoulli's Inequality.
Now, with $m>M$ held fixed, but $M$ chosen so large that $x-x_m<1$, we take $n\to \infty$ in $(3)$. Then, we have for all $\epsilon>0$ there is an $M$ so that
$$\left|\left(1+\frac{x}{n}\right)^n-\left(1+\frac{x_m}{n}\right)^n\right|\le e^{x_m}\frac{(x-x_m)}{1-(x-x_m)}<\left(\frac{e^{x_m}}{1-(x-x_m)}\right)\,\epsilon$$
and we are done!