I understand the epsilon-delta definition of a limit but I do not understand how that relates to continuity
Definition:
Let $f:X \rightarrow \Bbb R$ be a real function, and suppose that $a \in X$ then f is continuous at a if, given any $\epsilon$ in $\Bbb R^+$, there exists $\delta \in \Bbb R^+$ such that $$\lvert f(x)-f(a)\rvert \lt \epsilon\ \text{whenever}\ x \in X \ \text{and}\ \lvert x-a\rvert \lt \epsilon$$
Would you be able to explain the intuition behind this definition? How does this show that a function is continuous?
Thanks!
The idea is that if you get very close to the point $a$, the values of $f$ will be very close to the values of $f(a)$.
So, if you prescribe a distance from $f(a)$ (the $\varepsilon$) then you can always find a distance (the $\delta)$ such that if $x$ is at distance less than $\delta$ from $a$, then $f(x)$ is at distance less than $\varepsilon$ from $f(a)$.