L'Hospital's Rule

Note : The following are all indeterminate forms : [Maple Math] , [Maple Math] , [Maple Math] , [Maple Math] , [Maple Math] , [Maple Math] , [Maple Math] .

Suppose f and g are functions such that f(a) = g(a) = 0 and that f' and g' are both continuous at x = a (recall: f' and g' continuous at a means that lim(f'(x)) = f'(a) and lim(g'(x)) = g'(a)). Consider the following:

Suppose f and g are continuous at a and that f(a) = g(a) = 0, so that [Maple Math] = more work. Then,

[Maple Math] = [Maple Math] -- why?

= [Maple Math] if [Maple Math]

[Maple Math] = [Maple Math] (why is there no more " if [Maple Math] ")

= [Maple Math] by the limit laws

= f'(a)/g'(a) by definition of the derivative

= lim(f'(x))/lim(g'(x)) since f' and g' are continuous at a.

= a special case of a Big Rule:

L'Hopital's Rule : If applying the limit laws to [Maple Math] produces the indeterminate form " [Maple Math] " or " [Maple Math] " then [Maple Math] = [Maple Math] . Also applies is a is replaced by [Maple Math] or [Maple Math] (i.e. rule applies also to "limits at infinity").

e.g. Evaluate the limits by two different methods (old & new):

1) [Maple Math] 2) [Maple Math]

> Limit((x^2-1)/(x-1),x=1)=limit((x^2-1)/(x-1),x=1);Limit((x^2-2*x+1)/(1-3*x+2*x^2),x=infinity)=limit((x^2-2*x+1)/(1-3*x+2*x^2),x=infinity);

[Maple Math]

[Maple Math]

e.g.'s

3) [Maple Math] 4) [Maple Math]

> Limit(sin(3*x)/sin(6*x),x=0)=limit(sin(3*x)/sin(6*x),x=0);

[Maple Math]

> Limit(sec(x)-tan(x),x=Pi/2,left)=limit(sec(x)-tan(x),x=Pi/2,left);

[Maple Math]

e.g.

Investigate the behaviour of f(x) = xln(x) around zero, determine the x-intercepts and any points where there is a horizontal tangent. Sketch.

> f:=x->x*ln(x);

[Maple Math]

Behaviour "close to" zero: (Note: Domain = (0, [Maple Math] ) so there is no behaviour to the left of zero)

> Limit(f(x),x=0,right)=limit(f(x),x=0,right);

[Maple Math]

=> Since f -> 0 as x -> 0 there is no vertical asymptote at zero

x-intercept:

> solve(f(x)=0);

[Maple Math]

=> Crosses the x-axis at x = 1

Horizontal tangents:

> fprime:=diff(f(x),x);x_coord:=solve(fprime=0);

[Maple Math]

[Maple Math]

> f(x_coord);

[Maple Math]

=> There is one horizontal tangent asnd it occurs at (1/e,-1/e).

> plot(x*ln(x),x=-1..3,y=-1..4,colour=black);

[Maple Plot]

Indeterminate Powers: " [Maple Math] " , " [Maple Math] " , " [Maple Math] "

If [Maple Math] produces one of the indeterminate powers above then let [Maple Math] and take the logarithm of both sides. This technique depends on the unproven fact that "the log of the limit is the limit of the log."

e.g. Find y = [Maple Math] .Note the limit has the indeterminate form [Maple Math] . Once you take the log of both sides and use the property of logs that [Maple Math] then you will obtain the indeterminate form " [Maple Math] " which can be put into the form [Maple Math] to which l'Hospital's Rule can be applied. Once you find the limit you must realize that you have the logarithm of the limit, not the limit itself . Find the domain of the above expression and evaluate the limit at 0. Determine whether there is a horizontal asymptote.

Domain: Recall that fractional powers are only defined for positive bases, so the domain consists of all x such that 1 - 2x > 0.

> solve(1-2*x>0);

[Maple Math]

> expr:=(1-2*x)^(1/x);

[Maple Math]

> Limit(expr,x=0,right)=limit(expr,x=0,right);

[Maple Math]

> Limit(expr,x=-infinity)=limit(expr,x=-infinity);

[Maple Math]

=> y = 1 is a horizontal asymptote .

> plot({expr,1},x=-4..1,y=0..1,colour=black);

[Maple Plot]

e.g.

Find [Maple Math] .

> expr:=x^(1/x);Limit(x^(1/x),x=infinity)=limit(x^(1/x),x=infinity);

[Maple Math]

[Maple Math]

> plot({expr,1},x=0..30,numpoints=2000,colour=black);

[Maple Plot]

e.g. Continuously compounding interest.

Recall: if $P is invested at an annual interest rate r , expressed as a decimal, and compounded n times per year then then balance, B , payable in t years will be [Maple Math] . If n is allowed to increase without bound then we have what is called continuously compounding interest.

1) Find a formula to calculate coninuously compounding interest and 2) find the balance due on $5,000.00 that is invested for 10 years at 8.5% per annum if interest is a) compounded quarterly b) compounded continuously.

Solution:

1) Use the formula for discreetly compounding interest and find the limit as n approaches infinity.

> B:=P*(1+r/n)^(n*t);

[Maple Math]

> Limit(B,n=infinity)=limit(B,n=infinity);

[Maple Math]

=> If $P is invested at a rate of r per annum and interest is compunded continuously then [Maple Math] .

2a) $5000 invested at 8.5% (so r = 0.085) for 10 years (so t = 10) and compunded quarterly (so n = 4):

> subs({P=5000,r=0.085,n=4,t=10},B);

[Maple Math]

=> $11,594.52 in 10 years.

2b) Same as a) except compounded continuously (so [Maple Math] ):

> 5000*exp(1)^(0.085*10);

[Maple Math]

> evalf(%);

[Maple Math]

=> $11,698.23 if compounding is continuously. Does it make sense that the second answer is larger?