Limits of functions


The limit of a function is the value that the fuction approaches as the input approaches some value. Let's consider a function f:RRf : \R\to\R and let x0Rx_0\in\R, the function will have a specific value at x0x_0, f(x0)f(x_0), but we will be interested in the values that ff takes close to x0x_0. In the next animation, which do you think the limit of the function ff is as xx tends to x0x_0?.



That definition of limit was a bit vague. Let's see the real mathematical definition.

Definition

Let ff be a function defined in all points inside some open interval (a,b)(a,b) that contains x0x_0, except perhaps in x0x_0. We say that the limit of ff as xx0x\to x_0 (xx tends to x0x_0) is LL if for every ε>0\varepsilon>0 there exists δ>0\delta>0 (depending on ε\varepsilon) such that if 0<xx0<δ0<|x-x_0|<\delta, then f(x)L<ε|f(x)-L|<\varepsilon. When this happens we writelimxx0f(x)=L.\lim_{x\to x_0} f(x) = L.


Test the definition in the next animation! We will calculate the limit of f(x)=x1f(x) = x-1 as xx\to33. By moving the value of ε\varepsilon>0>0, δ\delta will be determined so that the conditions in the definition above are satisfied.



So what's all the fuss about? This seems trivial! Well, note that if the function had another definition at x0x_0, the limit would still be the same!


Limits don't "see" the value of the function at the point. It may not even be defined at x0x_0!

Proving a limit by definition


Now it's time we work on a limit by definition. Let's prove that thelimit of the following functionf(x)=x2+3,f(x) = x^2+3,when x1x\to1, is 44. Looking at the plot, this seems true, but we have to prove it!



The definition says that for any ε>0\varepsilon>0 we need to find δ>0\delta>0 such that some condition is satisfied. For each ε\varepsilon we'll get a different δ\delta, so the idea will be to consider a generic ε\varepsilon and see if we can define δ\delta in terms of that ε\varepsilon. That way, whenever we take a specific ε\varepsilon, we can find δ\delta immedaitely. Let's start!


Let ε\varepsilon>0>0 (this is the way of defining an arbitrary ε\varepsilon). We want to find δ\delta>0>0 such that if 0<x0<|x-11<|<δ\delta, then f(x)|f(x)-LL<|<ε\varepsilon. We will start by trying to make 0<x0<|x-11| appear from the equation f(x)|f(x)-LL<|<ε\varepsilon, so that then we can choose δ\delta so that everything works. This won't be the proof, this is just the informal calculations, once we finish with them, we'll write the formal proof.


Replacing the values of ff and LL givesf(x)L=x2+34=x21=x1x+1.|f(x) - L| = |x^2 + 3 - 4| = |x^2 - 1| = |x-1||x+1|.We have x|x-11|, which is exactly what we wanted. But we cannot yet replace it to make it smaller than δ\delta, because there is still dependence on xx in the term x+1|x+1|. So we first need to get rid of it by bounding it from above. The idea is to take δ\delta small, we can take it smaller than 1.1. Then if x|x-11<|<δ\delta<1<1, we have 1<x1<1-1<x-1<1, so 1<x+1<31<x+1<3. Great! Let's use this in the previous equation.f(x)L=x1x+1<3x1<3δ.|f(x) - L| = |x-1||x+1| < 3|x-1| < 3\delta.We want to have f(x)|f(x)-LL<|<ε\varepsilon Then it suffices to take 33δ\delta<<ε\varepsilon, that is δ\delta<<ε\varepsilon/3./3. Recall that we also needed δ\delta<1,< 1, so we'll have to take the smaller of these two values.


This doesn't look like a formal proof! The actual proof is much shorter, once we know what δ\delta to take.

Writing the proof

Let ε\varepsilon, choose δ\delta<min{1, < \min\{ 1,  ε~ \varepsilon/3}./3 \}. Then if x|x-11<|<δ\deltaf(x)L=x1x+1<3x1<3δ<ε.|f(x) - L| = |x-1||x+1| < 3|x-1| < 3\delta < \varepsilon.As we wanted to prove.


Properties of limits

I'm sure that, like me, you probably don't want to calculate limits by definition (like we just did) for the rest of your life. Luckily limits satisfy a list of properties that make them easier to handle! Let's learn them. From now on ff and gg are two functions and cc is a constant.


  • Multiplication by constants: limxx0[\lim\limits_{x\to x_0}\big[cc\cdotff](x)=\big](x)=cc\cdotlimxx0\lim\limits_{x\to x_0} ff(x)(x)


  • Sum of functions: limxx0(\lim\limits_{x\to x_0}\big(ff++gg)(x)=\big)(x)=limxx0\lim\limits_{x\to x_0} ff(x)+(x) +limxx0\lim\limits_{x\to x_0} gg(x)(x)


  • Product of functions: limxx0(\lim\limits_{x\to x_0}\big(ff\cdotgg)(x)=\big)(x)=(limxx0\big(\lim\limits_{x\to x_0} ff(x))(x)\big)(limxx0\big(\lim\limits_{x\to x_0} gg(x))(x)\big)


  • Division of functions: If limxx0\lim\limits_{x\to x_0} gg(x)0(x)\neq0, thenlimxx0(\lim\limits_{x\to x_0}\big(ff//gg)(x)=\big)(x)=(limxx0\big(\lim\limits_{x\to x_0} ff(x))/(x)\big)/(limxx0\big(\lim\limits_{x\to x_0} gg(x))(x)\big)