example of computing limits using Taylor expansion


Problem.

Evaluate

limx-(x+x2+23x).

In beginners’ courses in calculus, one is usually told to rationalize the above expression by multiplying by (x-x2+23x)/(x-x2+23x). This approach is somewhat dissatisfying, because it depends on a specific algebraic trick that works only for square roots — for example, it would have been more difficult or impossible to rationalize, if instead, we had a cube root or even a transcendental function — and this trick does not appeal to our intuition that x2+23x should be approximately |x| for large |x|. Fortunately, there is another approach that exploits the analytic properties of the functions involved.

L’Hôpital’s Rule (http://planetmath.org/LHpitalsRule) is one analytic approach, but in many cases, using Taylor expansionMathworldPlanetmath is even easier and straightforward. Essentially, Taylor expansion approximates complicated functions by polynomialsPlanetmathPlanetmath, whose limits are easy to evaluate. We illustrate the method below.

First rewrite

limx-(x+x2+23x)=limx+(x2-23x-x),

so that we do not have to worry about the pesky negatives any more. Then, with the help of the binomial formulaMathworldPlanetmath:

(1+y)1/2=1+12y+o(y),as y0,

(“o” is Landau notationPlanetmathPlanetmath) we obtain:

x2-23x-x =x(1-23x-1)
=x(1-1223x+o(23x)-1),as x (so y=-23x0)
=-232+xo(23x)
=-232+o(1).

Therefore

limx-(x+x2+23x)=limx(x2-23x-x)=-232.
Problem.

Evaluate

limx0(1ln(1+x)-1tanx).

This example is admittedly artificial; it was made to be annoying to solve using L’Hôpital’s Rule alone, but much simpler if one knows how to use the Taylor expansions:

ln(1+x) =x-12x2+o(x2), as x0, and
tanx =x+o(x2), as x0.

So we compute:

1ln(1+x)-1tanx=tanx-ln(1+x)ln(1+x)tanx =(x+o(x2))-(x-12x2+o(x2))ln(1+x)tanx
=12x2+o(x2)(x+o(x))(x+o(x))
=12+o(1)(1+o(1))(1+o(1))

Therefore,

limx0(1ln(1+x)-1tanx)=12.

The reader might reasonably ask how did we know the right number of terms to use in the Taylor expansions. The answer is to guess. This is not as problematic as it sounds. First, there is no harm in using more terms than necessary in the expansion (only that there is more writing). And if we used too few terms, we would know when we later encounter indeterminate forms such as o(1)/x (as x0) in our derivations. If that happens, it is not hard to go back and add the needed terms.

Notice that all the essential information to evaluate the limit is contained in the first few derivatives of the functions involved at particular points — in the above example, only at x=0. This information can be obtained by manipulating series, unlike L’Hôpital’s Rule which necessitates computing the derivative functions at all points. So even monstrous expressions like this one is tractable with Taylor expansion:

limx0(1ln(1+tan(sinx))-1esin(tanx)-1).

On the other hand, there definitely are situations where L’Hôpital’s Rule works but Taylor expansion does not: for instance,

limx0+xlnx=limx0+x1/lnx,

because 1/lnx cannot be expanded in a Taylor series about x=0.

Problem.

Here is a problem involving a different sort of limit: does the following series converge?

n=1arctan(n-1)

Our intuition suggests that it does not, because arctan(n-1) should be approximately n-1, and nn-1 diverges. However, the standard comparison testMathworldPlanetmath does not work because arctanxx (for x0) has the inequalityMathworldPlanetmath in the wrong direction. But with Taylor expansion the solution is a snap. By expanding

arctanx=x+O(x3),as x0.

and summing both sides, we get

n=1arctan(n-1)=n=1n-1+n=1O(n-3).

As nO(n-3) converges (being dominated by Cnn-3 for some constant C), narctan(n-1) must diverge (to ).

(Of course, this problem could be solved by using the integral testMathworldPlanetmath, but who really wants to integrate arctan(1/x)𝑑x?)

Title example of computing limits using Taylor expansion
Canonical name ExampleOfComputingLimitsUsingTaylorExpansion
Date of creation 2013-03-22 15:39:48
Last modified on 2013-03-22 15:39:48
Owner stevecheng (10074)
Last modified by stevecheng (10074)
Numerical id 15
Author stevecheng (10074)
Entry type Example
Classification msc 26A06