sorry I'm late to the party, but couldn't resist piping into this calculus lesson:
Calculating limits
If a function f has a limit L as x-->a, that means the values of f(x) for x different from a are getting near L when x gets near a. It is often very hard to determine this L just by looking at those values f(x) for x ≠ a, because you don’t know just how close x has to be to a before f(x) gets close enough to L for you to guess what L is, and it may be impossible to do.There are certain functions however for which we already know their limits at every a, namely for certain functions f, when x gets close to a, then f(x) gets close to f(a). For such a function f, to find the limit of f(x) as x-->a, we can just evaluate f(a). As a special case, we might try to think of functions f such that f(x) gets small when x gets small. Since multiplying small numbers together gives a small result, x^2, x^3, x^4,... are examples of functions that give a small result when x gets small. Similarly, (x-a)^n gets small when x gets close to a.By writing x^n as (x-a+a)^n and expanding, we see that every term gets small as x-->a except the constant term a^n, and hence we can conclude also that x^n gets close to a^n as x-->a. Using the fact that sums of small numbers are also small, we can conclude that all functions f formed by adding together constant multiples of powers of x are easy to find limits for as x-->a, just by evaluating f(a). Thus all polynomials are easy to find limits for this way. Also square roots, and higher roots, of small numbers are small, and we can thus extend our class of good functions to include roots, at least where defined.Now to deal with examples like yours, we need one further principle, or one further example, we need to understand the limit of the quotient f(x) = (x-a)/(x-a). This is the one example where we cannot evaluate it at x=a, and yet there is no difficulty at all in finding the limit directly from the definition. Namely if we look at points x ≠ a, the value
of f(x) is always 1, no matter how close x is to a, as long as x≠a. So the number that f(x) is getting close to as x-->a can only be 1. If you had a definition of limit you would be able to prove this is the limit, but I hope it seems believable.Now we can deal with examples like yours. Since the product of small numbers is small, it follows that the limit of a product of functions f.g equals the product of their limits (if those exist). So we are ready to evaluate the limit of a function f, by trying to rewrite f as a product of two functions whose limits we know. For example we might try to write f(x) = p(x).{(x-a)/(x-a)}, where p is made up of polynomials and root functions.Since the limit of (x-a)/(x-a) is 1, it would follow that the limit of f(x) is equal to the limit of the function p(x), as x-->a, and we know this is just p(a), the value of p at a.Now doing this is fairly easy because of a basic principle called the “factor theorem” or “root/factor” theorem. Namely whenever g is a polynomial such that g(a) = 0, i.e. such that a is a root, it follows that (x-a) is a factor of g, i.e. if g(a) = 0, then g(x) = h(x).(x-a), where h is another polynomial. Something similar is also possible even when g also involves root functions or even more complicated functions. The basic principle is that whenever a function equals zero at a, it is usually possible to factor out an (x-a). But it can be harder to find the other factor when the function is more complicated than a polynomial. For square roots it is not hard and is called in your example “rationalizing the denominator”.Hence if we have a quotient f(x) = g1(x)/g2(x) where g1 and g2 are composed of polynomials and root functions with g1(a) = g2(a) = 0, then we can often factor (x-a) out of both of them, getting g1 = h1.(x-a), and g2 = h2.(x-a). Then we have rewritten f(x) = {h1(x)/h2(x)}.{(x-a)/(x-a)}. Thus the limit of f at a equals the limit of h1/h2 at a.Now if h1/h2 is composed of polynomials and root functions, or if merely h1 and h2 are such functions separately, and if h2(a) ≠ 0, then again the limit of h1/h2 at a, is merely the value h1(a)/h2(a).The principle at work here was summed up more succinctly by someone above, as saying merely this:
From the definition of limit, it follows that whenever two function are equal for all x≠a, then those two functions must have the same limit as x-->a. Hence to evaluate a limit of a given function as x-->a, we try to find another function that equals it at least for x≠a, and such that the other function is easier to find the limit for. Such easy functions are those whose limits equal their values, and are called “continuous” functions. In particular, all polynomials and all root functions are continuous where defined. Moreover a quotient of two continuous functions is continuous where the bottom is not zero. Thus the basic trick for finding the limit of f as x-->a, is to find a continuous function g that equals f when x≠a. Then the limit equals g(a).Note also that understanding limits is the same as understanding continuous functions, since f is continuous at a if and only if f is defined at a and the value f(a) equals the limit of f(x) as x-->a. Moreover, assume the limit of f(x) exists as x-->a, and equals L. Then even if f is not originally defined at a, if we extend the domain of f by defining f(a) to equal this limit L, the new extended f becomes continuous at a. This has been mentioned several times above as well.