I'm having trouble understanding the squeeze theorem, or why, given $f(x)\leq g(x)\leq h(x)$, if the limit of $f(x)$ is $L$ and the limit of $h(x)$ is $L$, the limit of $g(x)$ will also be $L$.
I concede that if $f(x)=L$ and $h(x)=L$, then $g(x)$ must also have to be $L$. But having a limit doesn't necessarily mean that $f(x)$ and $h(x)$ will be equal to $L$, it just means it approaches $L$. So then $g(x)$ doesn't have to be $L$ then! So why is the squeeze theorem true?
Can someone please try to explain this to me simply? Thanks.
The idea is that since $f(x)$ and $h(x)$ both tend to $L$ we can make the differences $f(x)-L$ and $h(x)-L$ as small as we want, then for any $\epsilon >0$
$$f(x)\le g(x)\le h(x) \iff f(x)-L\le g(x)-L\le h(x)-L\iff|g(x)-L|<\epsilon$$
and therefore according to the definition of limit $g(x) \to L$.