You learn to solve indeterminate limits with derivatives and to show whether integrals that run to infinity or have singularities converge. This is the foundation of the integral test for series.
indeterminate formL'Hôpital's ruleimproper integralconvergedivergep-integraldirect comparison testlimit comparison test
The first week of Calculus II gives you two tools together. L’Hôpital’s rule solves indeterminate forms with derivatives. Improper integrals define, with limits, integrals whose limit is infinite or whose integrand blows up. The two are linked: when finding the value of an improper integral, an L’Hôpital limit almost always shows up at the end. The integral test in week 3 is also built directly on this topic.
The exam typically has 2-3 limits and 1-2 integrals of the “evaluate or show that it diverges” kind. Golden rules:
Plug in first. L’Hôpital is valid only for the forms 0/0 or ∞/∞.
Differentiate the numerator and denominator separately. Do not use the quotient rule.
Turn the other indeterminate forms (0⋅∞, ∞−∞, 1∞, 00, ∞0) into 0/0 or ∞/∞ first.
Improper integral = limit. You do not plug in infinity or the singular point directly; you write b and take a limit.
If there is a singularity inside the interval, split the integral at that point. If one of the pieces diverges, the whole thing diverges.
L’Hôpital’s rule
The rule. Let f and g be differentiable near a, g′(x)=0, and let limx→af(x)/g(x) be of the form 0/0 or ∞/∞. Then
limx→ag(x)f(x)=limx→ag′(x)f′(x)
(if the limit on the right exists or is ±∞). Here a can be a finite number, a± or ±∞.
Intuition. In the 0/0 case both functions go to zero. Their slopes decide which one goes faster. Near a, f(x)≈f′(a)(x−a) and g(x)≈g′(a)(x−a), and the ratio becomes f′(a)/g′(a).
The answer is 1/2. Check the form again at every step; you stop when the form is no longer indeterminate.
PITFALL · check the form.x→0limcosxx+1 is not indeterminate, it is directly 1/1=1. If you apply L’Hôpital to it, you get −sinx1 and head to a wrong result.
Other indeterminate forms
Form
What to do
Example
0⋅∞
f⋅g=1/gf
xlnx=1/xlnx
∞−∞
common denominator, rationalize
x1−sinx1
1∞, 00, ∞0
y=fg, lny=glnf
xx, (1+3/x)x
Example 2.x→0+limxlnx. The form is 0⋅(−∞).
xlnx=1/xlnx⇒−1/x21/x=−x→0.
Example 3.x→∞lim(1+x3)x. The form is 1∞. Let y be this expression:
So lny→3, y→e3. The general pattern: limx→∞(1+a/x)bx=eab.
Example 4.x→0+limxx. The form is 00. lny=xlnx→0 (Example 2), so y→e0=1.
TIP · do not forget the last step. In 1∞, 00, ∞0 questions, the limit you find is the limit of lny. The answer is e(that number). This last line is where most points are lost.
Growth rates
As x→∞: lnx≪xp≪ex (for every p>0). L’Hôpital shows this: xplnx→pxp−11/x=pxp1→0. You will use this ordering constantly in the series chapter.
The exponential function beats every polynomial. For x→∞limexx2, apply L’Hôpital twice: ex2x, then ex2→0. With each derivative the degree of the polynomial drops by one, while ex never changes. For x10 you take ten derivatives, and the result is still 0. In the exam, do not wonder “how many times should I apply L’Hôpital”; keep going while the form stays indeterminate, and stop when the indeterminacy is gone.
Sometimes L’Hôpital does not work and goes in a loop: when xx2+1 is differentiated it becomes x2+1x, and if you differentiate again you are back at the start. In that case use algebra: factor out the largest power in the numerator and denominator, 1+1/x2→1.
Improper integrals
The definite integral ∫abfdx is defined for a bounded function on a finite interval. This breaks down in two cases:
Type 2: the integrand goes to infinity at the boundary or inside. If f blows up at the point b, then
∫abf(x)dx=limc→b−∫acf(x)dx.
If the limit is a finite number the integral converges, otherwise it diverges. For ∫−∞∞ and for cases with a singularity inside, each piece must converge separately.
Example 5.∫1∞x2dx=b→∞lim[−x1]1b=b→∞lim(1−b1)=1.
Example 6.∫1∞xdx=b→∞limlnb=∞, diverges. 1/x goes to zero, but not fast enough. The area under it is infinite.
Example 7.∫01xdx=a→0+lim[2x]a1=2. The function goes to infinity but the area is finite.
Example 8.∫0∞xe−xdx. Integration by parts: ∫xe−xdx=−xe−x−e−x.
limb→∞(−be−b−e−b)−(0−1)=0+1=1.
The step be−b=b/eb→0 is an L’Hôpital limit.
p-integrals
The reference families you will use for comparison:
Integral
Converges
Diverges
Value
∫1∞xpdx
p>1
p≤1
p−11
∫01xpdx
p<1
p≥1
1−p1
p=1 diverges on both sides. Memorize this table.
Comparison tests
Even if you cannot compute the integral, you can show whether it converges.
Direct comparison. Let 0≤f(x)≤g(x) for x≥a.
If ∫a∞g converges, then ∫a∞f converges too.
If ∫a∞f diverges, then ∫a∞g diverges too.
Limit comparison. If f,g>0 and limx→∞f(x)/g(x)=L with 0<L<∞, the two integrals either both converge or both diverge.
Example 9.∫1∞e−x2dx cannot be computed (with elementary functions), but for x≥1, x2≥x, so e−x2≤e−x. Since ∫1∞e−xdx=1/e converges, ∫1∞e−x2dx converges.
Example 10.∫1∞x+1dx. Limit comparison with g=1/x: 1/x1/(x+1)=x+1x→1. ∫1∞x−1/2dx diverges (p=1/2≤1), so the given integral diverges too.
Singularity inside
Example 11.∫03(x−1)2/3dx. The integrand blows up at x=1, and this point is inside the interval [0,3]. Split in two:
∫01(x−1)−2/3dx=limc→1−[3(x−1)1/3]0c=0−3(−1)=3,
∫13(x−1)−2/3dx=limc→1+[3(x−1)1/3]c3=332−0.
Both pieces are finite, the total is 3+332≈6.78. If one of the pieces had come out infinite, the answer would be “diverges”; the value of the other would not matter.
Solution template for the exam
In an “evaluate or show that it diverges” question, follow this order:
1) Find the problem points: is a limit ∞? is there an x that makes the denominator zero? is ln or a root outside its domain?2) Write a separate piece for each problem point, and write each piece with lim3) Find the antiderivative (u-sub, integration by parts, partial fractions)4) Take the limit; use L'Hôpital if needed (like b e^-b, ln b / b)5) All finite → converges, write the value. One is ∞ → diverges
If the antiderivative cannot be found (for example e−x2, x4+11), the question already asks “converge or diverge?”. Then instead of steps 3 and 4, you do a comparison: look at the behavior of the integrand as x→∞, find the dominant term, and compare with a p-integral. For example x4+11≈x21, so it converges.
PITFALL · the direction of the comparison. “I am bigger than something that converges” proves nothing. To show convergence you must show that you are smaller than something that converges, and to show divergence that you are bigger than something that diverges.
Common mistakes
Wrong
Correct
Applying L’Hôpital without looking at the form
Plug in first; only 0/0, ∞/∞
Taking (f/g)′ (quotient rule)
f′ and g′ separately
Writing the limit of lny as the answer in a 1∞ question
The answer is elimlny
Saying 1∞=1
An indeterminate form; (1+1/x)x→e
∫−11x−2dx=−2
x=0 is inside, it diverges
∫−∞∞xdx=0 (“symmetric”)
Both pieces diverge separately, the integral diverges
If f→0 then ∫1∞f converges
1/x→0 but the integral diverges
Concluding convergence from being smaller than something that diverges
For convergence you must be smaller than something that converges
Test yourself
Exam-style questions. Solve them on paper first, then reveal the answer.
Question 1easy
Evaluate limx→03xsin5x.
Show answer
5/3
Plugging in x=0 gives 0/0, so L'Hôpital applies. The derivative of the numerator and denominator: 35cos5x. Plug in x=0: 5/3.
Question 2easy
Evaluate limx→∞xlnx.
Show answer
0
The form is ∞/∞. Derivatives: 1/(2x)1/x=x2→0. The logarithm grows more slowly than any positive power.
Question 3medium
Evaluate limx→0x21−cos2x.
Show answer
2
0/0. Apply L'Hôpital once: 2x2sin2x, still 0/0. Once more: 24cos2x→2.
Question 4medium
Evaluate limx→∞(1−x2)3x.
Show answer
e−6
The form is 1∞. Let L be the limit: lnL=lim3xln(1−2/x), which is ∞⋅0. Write 1/(3x)ln(1−2/x) and apply L'Hôpital: the numerator's derivative is 1−2/x2/x2, the denominator's derivative is −3x21. The ratio is 1−2/x−6→−6. So L=e−6.
Question 5medium
Evaluate limx→0(x1−sinx1).
Show answer
0
The form is ∞−∞. Common denominator: xsinxsinx−x, now 0/0. L'Hôpital: sinx+xcosxcosx−1, again 0/0. Once more: 2cosx−xsinx−sinx→20=0.
Question 6hard
Evaluate limx→0x3tanx−x.
Show answer
1/3
0/0. Derivative: 3x2sec2x−1=3x2tan2x. Since xtanx→1, the result is 31.
Question 7easy
Evaluate ∫2∞x3dx.
Show answer
1/8
b→∞lim[−2x21]2b=b→∞lim(−2b21+81)=81.
Question 8medium
Evaluate ∫044−xdx or show that it diverges.
Show answer
4 (converges)
The integrand goes to infinity at x=4, so the singularity is at the upper limit.b→4−lim[−24−x]0b=b→4−lim(−24−b+4)=4.
Question 9medium
Evaluate ∫0∞1+x2dx.
Show answer
π/2
b→∞limarctanb−arctan0=2π−0.
Question 10hard
A student writes ∫−11x2dx=[−x1]−11=−2. Is this correct?
Show answer
No, the integral diverges
The integral of a positive function cannot be negative, which is the first alarm. The problem: 1/x2 is undefined at x=0, and this point is INSIDE the interval. Split the integral at 0: ∫01x2dx=a→0+lim(a1−1)=∞. Since one piece diverges, the whole thing diverges.
Question 11hard
Evaluate ∫1∞x2lnxdx.
Show answer
1
Integration by parts: u=lnx, dv=x−2dx, v=−1/x.∫x2lnxdx=−xlnx+∫x2dx=−xlnx−x1. As b→∞, lnb/b→0 (L'Hôpital). Result: 0−(0−1)=1.
Question 12medium
Does ∫1∞x3+5dx converge or diverge? Justify with a comparison.
Show answer
Converges
For x≥1, x3+5>x3, so 0<x3+51<x31.∫1∞x3dx is a p-integral (p=3>1) and converges. By direct comparison, the smaller one converges too. (Its value is about 0.2225.)
Verification: Limits were evaluated numerically with values very close to the point, and improper integrals with tanh-sinh and an infinite-interval transformation in node (verify/MAT1052/01.mjs).
Review card
L'Hopital: only when 0/0 or ∞/∞. lim f/g = lim f'/g' (NOT the derivative of the quotient)
0·∞ → write f/(1/g). ∞-∞ → common denominator. 1^∞, 0^0, ∞^0 → take ln, then e^(...)
lim (1+a/x)^(bx) = e^(ab) ln x << x^p << e^x (x→∞)
Improper type 1: ∫_a^∞ f = lim_{b→∞} ∫_a^b f
Improper type 2: singularity at c → approach with lim; if c is inside the interval, split in two
p-integral: ∫_1^∞ 1/x^p → p>1 converges (=1/(p-1)), p≤1 diverges
∫_0^1 1/x^p → p<1 converges (=1/(1-p)), p≥1 diverges
∫_{-∞}^{∞}: split in two, BOTH must converge
Comparison: 0≤f≤g, ∫g converges → ∫f converges; ∫f diverges → ∫g diverges
Limit comp.: lim f/g = L, 0<L<∞ → both share the same fate
PITFALL: ∫_{-1}^{1} 1/x^2 = -2 is wrong, it diverges (x=0 is inside)