Theorem: Prove or disprove the following:
If $\lim_{n\to\infty}a_n=L$ and the function is continuous at $L$, then $\lim_{n\to\infty}f(a_n)=f(L)$.
I'm trying to study for my upcoming exam and I'm struggling to prove the above theorem. I believe you need to use the $\epsilon$-$\delta$ proof method to prove it, but I cannot find a way to do it. I'm not very comfortable with those kinds of proofs just yet. A proof with explanation or some guidance would be greatly appreciated.
Let $\epsilon > 0$,
As $f$ is continuous at $L$, there exist $\delta$ such that $|x-L|< \delta \Rightarrow |f(x)-f(L)| < \epsilon$
As $a_n \to L$, there exist a rank $n_0$ such that $\forall n > n_0, |a_n-L| < \delta$
1+2 gives you that there exist a rank $n_0$ such that $\forall n > n_0, |f(a_n)-f(L)| < \epsilon$
And you have the convergence