This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 5.13 · HL only
Limits and l'Hôpital's rule
When a limit comes out as 00 or ∞∞, which tells you nothing, how do you find the value it is really heading for?
What you will learn
HL Understand why 0 ÷ 0 and ∞ ÷ ∞ are indeterminate while other results of substitution are not
HL Know l'Hôpital's rule, including when it may be used again and when it says nothing
HL Understand how Maclaurin series turn a limit into reading off the lowest power of x
HL Know that sin θ / θ tends to 1 in radians, and how limits at infinity give horizontal asymptotes
You must be able to
HL Calculate a limit with l'Hôpital's rule, checking the form before each round and stopping when it is settled
HL Find a limit using a Maclaurin series from the formula booklet, including finding a constant that makes it finite
HL Find limits as x tends to infinity and state horizontal asymptotes
HL Rewrite a product, a difference or a sequence as a single quotient before finding its limit
HL Find the limit of an improper integral by integrating first and then letting the upper limit tend to infinity
HL Find the value that makes a function continuous at a point from a limit
In the exam. Paper 1 (no calculator): "find limx→0…", usually 4 to 7 marks, often needing l'Hôpital's rule twice (a trigonometric or exponential top with the chain rule inside), or a Maclaurin series from the formula booklet; sometimes as the last part of a longer question after a series has been found. Paper 2: fewer, of the same kinds, with a GDC to check the value. Paper 3 carries as many of these questions as Paper 1: the limit is the step that settles an improper integral (limb→∞ of a definite integral) or the long-run behaviour of a model.
1Why 00 tells you nothing
Each of these gives 00 at x=0. The three answers all differ.
x→0limx5x=x→0lim5=5x→0limxx3=x→0limx2=0x→0limx4x2=x→0limx21=∞grows without bound: no finite limit
Top and bottom both head for zero, but at different rates, and the rate decides the answer. That is why 00 is an indeterminate form: the form alone does not fix the limit.
The same is true of ∞∞. As x→∞, x7x→7, xx3→∞ and x3x→0.
Other results are not indeterminate:
Substituting gives
What it means
a number over a non-zero number
that value is the limit; you are finished
a non-zero number over 0
the function grows without bound near a: no finite limit
0 over a non-zero number
the limit is 0
00 or ∞∞
indeterminate: use l'Hôpital's rule or a series
The most famous indeterminate limit is the guide's. Figure 1 draws y=xsinx. The function has no value at x=0, but the graph heads steadily for 1 from both sides.
Figure 1 · y = sin x ÷ x heads for 1 as x → 0
x
0.5
0.1
0.01
xsinx
0.958851
0.998334
0.999983
limθ→0θsinθ=1, with θ in radians.
In degrees the limit is 180π instead. One reason calculus uses radians.
One-sided limits (x→a+ from above, x→a− from below) also work with the rule below.
2L'Hôpital's rule
L'Hôpital's rule. Let f and g be differentiable near a, with g′(x)=0 there. If f(x)→0 and g(x)→0 as x→a, or if f(x) and g(x) both →±∞, then limx→ag(x)f(x)=limx→ag′(x)f′(x), provided the right-hand limit exists (or is ±∞). The same holds with a replaced by ∞.
Differentiate the top and the bottom separately. This is not the quotient rule.
Why it works
Figure 2 takes f(x)=x3−8 and g(x)=x2−4, which are both zero at x=2.
Close to x=2, each curve is almost its tangent line (SL 5.1). The tangent to f has gradient f′(2)=12. The tangent to g has gradient g′(2)=4. So near 2
Warning: the derivative of sinx was itself worked out using this limit. So this is a quick route to the value, not an independent proof. Use it when a question says "use l'Hôpital's rule", never to prove the derivative of sinx.
3Using the rule more than once
If one application gives 00 again, apply it again. Keep going until substitution gives a definite answer. Before each application, check the form.
Worked example 3. Paper 1. Find limx→0x21−cosx.
substitute x=0:01−1=00=x→0lim2xsinx=x→0lim2cosx=21l’Hoˆpital once; substitute: still 00l’Hoˆpital twice; substitute: 21, a number
Figure 3 draws all three stages on one set of axes. They are three different functions, but near x=0 they all head for 21. That is the rule's promise: each new quotient has the same limit as the one before.
Figure 3 · Each stage of l'Hôpital's rule has the same limit
The trap: applying the rule when the form is not indeterminate. Take limx→0x2+3xe2x−1.
So the horizontal asymptote is y=25. For a rational function, the SL 2.8 method is as quick and gives the same answer: divide top and bottom by the highest power of x. L'Hôpital earns its place when a logarithm or exponential is mixed in.
A horizontal asymptote is a limit at either end, so a question may ask about x→∞ and x→−∞.
When the function is a continuous function of a quotient, take the limit inside. If x2+53x2+1→3 as x→±∞, then y=lnx2+53x2+1→ln3. So y=ln3 is the horizontal asymptote at both ends.
Which grows faster? L'Hôpital settles the races between the three families of function you know.
x→∞limexx3→limex3x2→limex6x→limex6=0three rounds, ∞∞ each timex→∞limxlnx→lim2x1x1=limx2=0
Each round lowers the power of x by one but leaves ex as it was. So ex always wins, whatever the power. The logarithm loses to any positive power of x. As x→∞:
lnx grows more slowly than any positive power xn, and xn grows more slowly than ex.
Figure 4 shows what that means for y=x3e−x, which is exx3. The power wins at first, and the graph climbs to a maximum at x=3, where y=27e−3≈1.34. Then the exponential takes over and the graph falls to its horizontal asymptote, y=0.
For limx→∞ex−2e−x3ex+e−x, one round gives ex+2e−x3ex−e−x, and a second gives back the original.
Use algebra instead: divide top and bottom by the dominant term ex.
ex−2e−x3ex+e−x=1−2e−2x3+e−2x→1−03+0=3e−2x→0 as x→∞
With any ∞∞, first ask whether the dominant term can simply be divided out. Dominant terms decide limits only as x→±∞. Near a finite point they tell you nothing.
5Other shapes: products, differences, sequences and integrals
The guide's forms are 00 and ∞∞. Rewrite other forms as one of these. The skill is seeing the quotient hiding in the expression.
A product such as 0×∞: move one factor into the denominator as its reciprocal. Choose the factor whose derivative is simpler.
Worked example 6. Find limx→0+xlnx.
xlnx=x−1/2lnx∞−∞ as x→0+; the sign of the infinity does not matter to the rule→x→0+lim−21x−3/2x1=x→0+lim(−2x)=0
Put lnx on the top, not x over lnx1. The second choice makes the derivative worse.
A difference such as ∞−∞: combine into one fraction.
Worked example 7. Find limx→0(ex−11−sinx1).
ex−11−sinx1=(ex−1)sinxsinx−ex+1∞−∞ became 00→x→0limexsinx+(ex−1)cosxcosx−exproduct rule on the bottom; still 00→x→0lim2excosx+sinx−sinx−ex=2−1=−21
A sequence limit as n→∞ with an ∞×0 shape: put x=n1. Then n→∞ becomes x→0+, and the product becomes a quotient.
Worked example 8. Find limn→∞n(e2/n−1).
n(e2/n−1)=xe2x−1(x=n1)x→0+limxe2x−1=x→0+lim12e2x=200, then l’Hoˆpital with the chain rule
An improper integral is a limit in disguise. It is where Paper 3 uses this unit most. Integrate first, then take the limit of the answer.
Worked example 9. Paper 3 style. Find limb→∞∫1bx2lnxdx.
∫1bx2lnxdx=[−xlnx+1]1b=1−blnb+1by parts, or check by differentiatingb→∞limblnb+1→b→∞lim11/b=0∞∞, then l’Hoˆpitalso the limit is 1−0=1
Name the form and show why blnb+1→0. Do not just state it.
The long-run behaviour of a model is the other Paper 3 use. An earlier part sets the model up, and a later one asks what happens as t→∞.
Worked example 10. Paper 3 style. The concentration of a medicine in a patient's blood, t hours after a dose, is modelled by C(t)=12te−0.5t mg per litre (invented model).
(a) Show that C′(t)=6(2−t)e−0.5t, and hence find the greatest concentration.
(b) Find limt→∞C(t), and interpret it.
(c) Show that limt→∞ate−kt=0 for all constants a and k>0.
(a)C′(t)=12e−0.5t+12t(−0.5e−0.5t)=(12−6t)e−0.5t=6(2−t)e−0.5tproduct ruleC′(t)=0⇒t=2,C(2)=24e−1≈8.83 mg per litreC′ changes from + to − at t=2: a maximum(b)t→∞lime0.5t12t=t→∞lim0.5e0.5t12=0∞∞l’Hoˆpital(c)t→∞limektat=t→∞limkekta=0∞∞ for a=0 (for a=0 it is 0 already); k>0 makes ekt→∞
In context, (b) says the medicine clears from the blood in the long run: the t-axis is a horizontal asymptote of the graph of C. Part (c) is the Paper 3 habit of generalizing a result seen in a particular case.
6Limits from Maclaurin series
The guide allows a second method: replace each function by the start of its Maclaurin series. The formula booklet gives:
Figure 5 shows why this works for sinx. Near 0, sinx is almost exactly x. x−6x3 is closer still, and stays close for longer.
The error in using x is roughly 6x3. That tiny difference is exactly what the limit below measures.
Figure 5 · Near 0, sin x is almost a polynomial
Worked example 11. Paper 1. Find limx→0x3x−sinx.
x−sinx=x−(x−6x3+120x5−…)=6x3−120x5+…x3x−sinx=61−120x2+…divide every term by x3→61 as x→0
By l'Hôpital this needs three rounds: 3x21−cosx, then 6xsinx, then 6cosx→61. Same answer, more steps.
Worked example 12. Find limx→0x4cos2x−1+2x2.
cos2x=1−2(2x)2+24(2x)4−…=1−2x2+32x4−…replace x by 2x in the booklet seriescos2x−1+2x2=32x4−…⇒32−…→32
L'Hôpital would need four rounds, each with a chain-rule factor. If the rule would be needed three or more times, the series is almost always quicker.
Worked example 13. Paper 1, "hence" style.
(a) Write down the Maclaurin series of e2x up to the term in x3.
(b) Hence find the value of a for which limx→0x2e2x−1−ax is finite, and find the limit.
(a)e2x=1+2x+2!(2x)2+3!(2x)3+…=1+2x+2x2+34x3+…replace x by 2x in the booklet series(b)e2x−1−ax=(2−a)x+2x2+34x3+…use the series from (a), as "hence" requires÷x2:x2−a+2+34x+…the x2−a term grows without bound unless a=2so a=2then the limit is 2
Why a constant is forced
If the bottom →0 and the limit is finite, the top must →0 as well.
A non-zero number over something heading for 0 grows without bound.
It is also the quickest way to test continuity. Take the function that equals x21−cos4x when x=0 and b when x=0. It is continuous only if b equals the limit, 8 (two rounds, or the series).
7Choosing the method
Figure 6 is the decision in one picture.
Figure 6 · How to attack any limit of f(x) ÷ g(x)
Practice questions
28 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.