There are a few different, equivalent, ways of defining the limit of a real function. The first way taught is usually the epsilon-delta definition:
First we need to define a limit point. A limit point [tex]c[/tex] of a set [tex]A[/tex] is a point such that for any natural number n, the interval [tex](c-1\n,c+1\n)[/tex] contains something in [tex]A[/tex] other than c. So If A=[0,1]u{2} then any number in [0,1] is a limit point of A, but 2 is not (because (2-1/2,2+1/2)=(3/2,5/2) doesn't contain anything in A other than 2).
If you don't get limit points don't worry about it for now, it's a bit of a technical thing and you can forget about it for the second, but we need it to give a precise definition of the limit (otherwise funny things can happen).
Let [tex]x_0[/tex] be a limit point of the domain of the real function [tex]f[/tex]. Then [tex]\lim_{x \rightarrow x_0}f(x)=L[/tex] if and only if: for every [tex]\epsilon>0[/tex] there exists a [tex]\delta>0[/tex] such that if
[tex]\left|a-x_0\right|<\delta|[/tex] and [tex]x\neqx_0[/tex] then [tex]\left|f(a)-L\right|<\epsilon[/tex].
Sound straight forward? No not really.
Intuitively speaking the idea is that if we look really close to the point [tex]x_0[/tex] we get really close to the limit [tex]L[/tex]. Epsilon tells you how close you want the limit L to be to the function f(x) around the point x0. Delta tells you how close you need x to be to x0 so that f(x) is within epsilon of L.
Note that the actual behaviour of the function at x0 is irrelevant.
So a brief example: Show [tex]\lim_{x\rightarrow 2}x^2=4[/tex]
So let's say we've got some epsilon greater than zero. The question is then how close to 2 do we need to be for x^2 to be within epsilon of 4?
Well let us have a look at:
[tex]\left|f(a)-L\right|=\left|a^2-4\right|<\epsilon[/tex]
What do we need for this to be true? Let's factorise the equation:
[tex]\left|a-2\right|\left|a+2\right|<\epsilon[/tex]
So to get a quick idea, suppose [tex]\epsilon=1[/tex], then we want to find [tex]a[/tex] such that
[tex]\left|a-2\right|\left|a+2\right|<1[/tex]
Well what if a was within .1 of 2 (that is delta=.1)? So [tex]1.9\leq a\leq 2.1[/tex] Is that close enough?
Well if that's true [tex]3.9\leq\left|a+2\right|\leq4.2[/tex] and [tex]\left|a-2\right|\leq.1[/tex]
So putting it all together [tex]\left|a^2-4\right|\leq 4.2*0.1=.42 < 1[/tex]
So it IS good enough (and so any number smaller than .1 would be good enough too). But what if we wanted epsilon=0.1? Or epsilon=.00000095? Or epsilon=2*10^-54? We could keep guessing but it would get time consuming - we want a prescription that automatically produces a delta for a given epsilon.
So what to we need [tex]\delta[/tex] to be such that if [tex]\left|a-2\right|<\delta[/tex] then
[tex]\left|a-2\right|\left|a+2\right|=\delta\left|a+2\right|<\epsilon[/tex]?
We need to do something about that a+2 term. Let's say delta is less than 1, ideally we want to make it small, so we'll start here. Then
[tex]\left|a-2\right|<1[/tex] implies [tex].9\leq a \leq 1.1[/tex] so [tex]2.9\leq\left|a+2\right|\leq3.1[/tex].
Then if [tex]\delta\left|a+2\right|<\epsilon[/tex]
[tex]\delta<\frac{\epsilon}{\left|a+2\right|}\leq\frac{\epsilon}{2.9}[/tex]
So if [tex]\frac{\epsilon}<1[/tex] then [tex]\delta=\frac{\epsilon}{3}<\frac{\epsilon}{2.9}[/tex] ensures that [tex]\left|a^2-4\right|<\epsilon[/tex] providing [tex]\left|a-2\right|<\delta[/tex].
If [tex]\epsilon\geq1[/tex] then you can see that [tex]\delta=1[/tex] is good enough. So we take [tex]\delta=\min(\frac{\epsilon}{3},1)[/tex].
Finally just to check that it works, look at epsilon=1 again. Our prescription tells us delta=1/3 should work. Then [tex]\left|a-2|<1/3[/tex] and [tex]\left|a+2|<2+1\3=5/3[/tex] hence [tex]\left|a^2-4\right|<5/9<1[/tex], so it works in this case.
So if you tell me you want to be within epsilon of 4, I can tell you that if you're within delta of 2, then x^2 is within epsilon of 4.
Finally note that since we ignore the behaviour of the function at x0 if we had chosen, [tex]f(x)=x^2[/tex] for [tex]x\neq2[/tex] and [tex]f(2)=1000000[/tex] we'd get the same result.