MatheramaMatherama
← Definite Integration
Definite Integration·Section 7·12 min read

Improper Integrals

Up to this point, our definition of the definite integral ∫abf(x) dx\int_a^b f(x) \, dx has relied on two basic assumptions:

  1. The interval of integration [a,b][a, b] has finite length (aa and bb are finite real numbers).
  2. The integrand f(x)f(x) is bounded on [a,b][a, b] (it does not shoot off to +∞+\infty or −∞-\infty anywhere on the interval).

When either of these two conditions fails—because the interval extends to ±∞\pm\infty, or because the curve has a vertical asymptote where f(x)→±∞f(x) \to \pm\infty—the integral is called an improper integral.

How can an unbounded region possibly have a finite area? The secret is simple: we first integrate over a safe, finite interval using the First Fundamental Theorem of Calculus, and then take the limit as the boundary moves toward infinity or toward the vertical asymptote!

  • If this limit exists as a finite real number, we say the improper integral converges (or exists), and that limit is its value.
  • If the limit is ±∞\pm\infty or does not exist, we say the improper integral diverges (does not exist).

1. Type 1 Improper Integrals: Infinite Intervals of Integration§

In a Type 1 improper integral, the function f(x)f(x) is continuous, but one or both limits of integration are infinite (∞\infty or −∞-\infty).

We evaluate it by placing a movable vertical wall at a finite position (x=bx = b or x=ax = a), finding the exact area up to the wall, and then sliding the wall to infinity:

Case 1 (Upper Limit at +∞+\infty): If f(x)f(x) is continuous on [a,∞)[a, \infty), then:

∫a∞f(x) dx=lim⁡b→∞∫abf(x) dx\int_a^\infty f(x) \, dx = \lim_{b \to \infty} \int_a^b f(x) \, dx

Case 2 (Lower Limit at −∞-\infty): If f(x)f(x) is continuous on (−∞,b](-\infty, b], then:

∫−∞bf(x) dx=lim⁡a→−∞∫abf(x) dx\int_{-\infty}^b f(x) \, dx = \lim_{a \to -\infty} \int_a^b f(x) \, dx

Case 3 (Both Limits Infinite, −∞-\infty to +∞+\infty): If f(x)f(x) is continuous on (−∞,∞)(-\infty, \infty), we split the integral at any convenient real number cc (usually c=0c = 0) into two separate Type 1 integrals:

∫−∞∞f(x) dx=∫−∞0f(x) dx+∫0∞f(x) dx=lim⁡a→−∞∫a0f(x) dx+lim⁡b→∞∫0bf(x) dx\int_{-\infty}^\infty f(x) \, dx = \int_{-\infty}^0 f(x) \, dx + \int_0^\infty f(x) \, dx = \lim_{a \to -\infty} \int_a^0 f(x) \, dx + \lim_{b \to \infty} \int_0^b f(x) \, dx

[!CAUTION] Both Pieces Must Converge Independently: For ∫−∞∞f(x) dx\int_{-\infty}^\infty f(x) \, dx to exist, both limits lim⁡a→−∞∫a0f(x) dx\lim_{a \to -\infty} \int_a^0 f(x) \, dx and lim⁡b→∞∫0bf(x) dx\lim_{b \to \infty} \int_0^b f(x) \, dx must exist as finite numbers independently! If either piece goes to ±∞\pm\infty, the entire integral diverges.

Type 1 improper integral of e^(-x) from 0 to infinity using a movable wall x = b


Example 1: Area Under the Exponential Tail§

Evaluate:

∫0∞e−x dx\int_0^\infty e^{-x} \, dx

Solution:

Look at the region under y=e−xy = e^{-x} for x≥0x \ge 0 in the figure above. Although the region stretches infinitely far to the right, the curve y=e−xy = e^{-x} drops toward the xx-axis so rapidly that the tail becomes vanishingly thin.

First, we integrate from x=0x = 0 up to a finite movable wall x=bx = b:

∫0be−x dx=[−e−x]0b=−e−b−(−e0)=1−e−b\int_0^b e^{-x} \, dx = \Big[ -e^{-x} \Big]_0^b = -e^{-b} - (-e^0) = 1 - e^{-b}

Next, we slide the wall to infinity (b→∞b \to \infty). Since lim⁡b→∞e−b=lim⁡b→∞1eb=0\lim_{b \to \infty} e^{-b} = \lim_{b \to \infty} \frac{1}{e^b} = 0, we obtain:

∫0∞e−x dx=lim⁡b→∞(1−e−b)=1−0=1\int_0^\infty e^{-x} \, dx = \lim_{b \to \infty} \big( 1 - e^{-b} \big) = 1 - 0 = 1

Thus, the infinite region under y=e−xy = e^{-x} on [0,∞)[0, \infty) has an exact, finite area of 11!


Example 2: Comparing Reciprocal Powers on an Infinite Interval§

Evaluate the following two integrals and compare their geometric meaning:

(a)∫1∞1x2 dxand(b)∫1∞1x dx\text{(a)} \quad \int_1^\infty \frac{1}{x^2} \, dx \qquad \text{and} \qquad \text{(b)} \quad \int_1^\infty \frac{1}{x} \, dx

Solution:

(a) For f(x)=1x2f(x) = \frac{1}{x^2} on [1,∞)[1, \infty), we integrate from 11 to bb and take the limit as b→∞b \to \infty:

∫1∞1x2 dx=lim⁡b→∞∫1bx−2 dx=lim⁡b→∞[−1x]1b\int_1^\infty \frac{1}{x^2} \, dx = \lim_{b \to \infty} \int_1^b x^{-2} \, dx = \lim_{b \to \infty} \left[ -\frac{1}{x} \right]_1^b =lim⁡b→∞(−1b−(−1))=lim⁡b→∞(1−1b)=1−0=1= \lim_{b \to \infty} \left( -\frac{1}{b} - (-1) \right) = \lim_{b \to \infty} \left( 1 - \frac{1}{b} \right) = 1 - 0 = 1

The integral converges to 11 (the infinite tail under y=1x2y = \frac{1}{x^2} has finite area 11).

(b) For f(x)=1xf(x) = \frac{1}{x} on [1,∞)[1, \infty), we integrate from 11 to bb and take the limit as b→∞b \to \infty:

∫1∞1x dx=lim⁡b→∞∫1b1x dx=lim⁡b→∞[ln⁡x]1b=lim⁡b→∞(ln⁡b−ln⁡1)=lim⁡b→∞ln⁡b=+∞\int_1^\infty \frac{1}{x} \, dx = \lim_{b \to \infty} \int_1^b \frac{1}{x} \, dx = \lim_{b \to \infty} \Big[ \ln x \Big]_1^b = \lim_{b \to \infty} (\ln b - \ln 1) = \lim_{b \to \infty} \ln b = +\infty

Because ln⁡b→∞\ln b \to \infty as b→∞b \to \infty, this limit does not exist as a finite number. The integral diverges (the curve y=1xy = \frac{1}{x} approaches the xx-axis too slowly, enclosing an infinite area!).


Example 3: Integrating Over the Entire Real Line§

Evaluate:

∫−∞∞11+x2 dx\int_{-\infty}^\infty \frac{1}{1 + x^2} \, dx

Solution:

The function f(x)=11+x2f(x) = \frac{1}{1 + x^2} is continuous for all real xx. Splitting at x=0x = 0:

∫−∞∞11+x2 dx=lim⁡a→−∞∫a011+x2 dx+lim⁡b→∞∫0b11+x2 dx\int_{-\infty}^\infty \frac{1}{1 + x^2} \, dx = \lim_{a \to -\infty} \int_a^0 \frac{1}{1 + x^2} \, dx + \lim_{b \to \infty} \int_0^b \frac{1}{1 + x^2} \, dx

Since an antiderivative of 11+x2\frac{1}{1 + x^2} is tan⁡−1x\tan^{-1} x:

Left Piece:

lim⁡a→−∞[tan⁡−1x]a0=lim⁡a→−∞(tan⁡−10−tan⁡−1a)=0−(−π2)=π2\lim_{a \to -\infty} \Big[ \tan^{-1} x \Big]_a^0 = \lim_{a \to -\infty} \big( \tan^{-1} 0 - \tan^{-1} a \big) = 0 - \left(-\frac{\pi}{2}\right) = \frac{\pi}{2}

Right Piece:

lim⁡b→∞[tan⁡−1x]0b=lim⁡b→∞(tan⁡−1b−tan⁡−10)=π2−0=π2\lim_{b \to \infty} \Big[ \tan^{-1} x \Big]_0^b = \lim_{b \to \infty} \big( \tan^{-1} b - \tan^{-1} 0 \big) = \frac{\pi}{2} - 0 = \frac{\pi}{2}

Since both pieces converge to finite values, we add them together:

∫−∞∞11+x2 dx=π2+π2=π\int_{-\infty}^\infty \frac{1}{1 + x^2} \, dx = \frac{\pi}{2} + \frac{\pi}{2} = \pi

2. Type 2 Improper Integrals: Unbounded Functions (Vertical Asymptotes)§

In a Type 2 improper integral, the interval [a,b][a, b] is finite, but the integrand f(x)f(x) blows up to +∞+\infty or −∞-\infty (has a vertical asymptote) at an endpoint or at an interior point x=cx = c.

Just as we did in Section 04, we step back from the trouble spot by a tiny positive distance h>0h > 0, evaluate the ordinary definite integral on the safe interval, and take the limit as h→0+h \to 0^+:

Case 1 (Unbounded at the Left Endpoint x=ax = a): If f(x)f(x) is continuous on (a,b](a, b] and unbounded near aa:

∫abf(x) dx=lim⁡h→0+∫a+hbf(x) dx\int_a^b f(x) \, dx = \lim_{h \to 0^+} \int_{a+h}^b f(x) \, dx

Case 2 (Unbounded at the Right Endpoint x=bx = b): If f(x)f(x) is continuous on [a,b)[a, b) and unbounded near bb:

∫abf(x) dx=lim⁡h→0+∫ab−hf(x) dx\int_a^b f(x) \, dx = \lim_{h \to 0^+} \int_a^{b-h} f(x) \, dx

Case 3 (Unbounded at an Interior Point x=c∈(a,b)x = c \in (a, b)): We split the integral at x=cx = c into two separate Type 2 integrals:

∫abf(x) dx=lim⁡h1→0+∫ac−h1f(x) dx+lim⁡h2→0+∫c+h2bf(x) dx\int_a^b f(x) \, dx = \lim_{h_1 \to 0^+} \int_a^{c-h_1} f(x) \, dx + \lim_{h_2 \to 0^+} \int_{c+h_2}^b f(x) \, dx

(Both the left limit and the right limit must converge to finite numbers independently for the integral to exist!)

Type 2 improper integrals for 1/sqrt(x) and ln x on 0 to 1 with limit h approaching 0


Example 4: Vertical Asymptote at the Left Endpoint§

Evaluate:

∫011x dx\int_0^1 \frac{1}{\sqrt{x}} \, dx

Solution:

As x→0+x \to 0^+, the function f(x)=1xf(x) = \frac{1}{\sqrt{x}} blows up to +∞+\infty, so the yy-axis is a vertical asymptote.

Replacing the lower limit 00 with 0+h=h0 + h = h (where h>0h > 0) and taking the limit as h→0+h \to 0^+:

∫011x dx=lim⁡h→0+∫h1x−1/2 dx\int_0^1 \frac{1}{\sqrt{x}} \, dx = \lim_{h \to 0^+} \int_h^1 x^{-1/2} \, dx

On [h,1][h, 1], x−1/2x^{-1/2} is continuous with antiderivative 2x2\sqrt{x}:

∫011x dx=lim⁡h→0+[2x]h1=lim⁡h→0+(21−2h)=2−0=2\int_0^1 \frac{1}{\sqrt{x}} \, dx = \lim_{h \to 0^+} \Big[ 2\sqrt{x} \Big]_h^1 = \lim_{h \to 0^+} \big( 2\sqrt{1} - 2\sqrt{h} \big) = 2 - 0 = 2

Even though the curve climbs infinitely high along the yy-axis, the chimney-shaped region becomes narrow fast enough that its total area is the finite number 22!


Example 5: Area Bounded by the Natural Logarithm Near Zero§

Evaluate:

∫01ln⁡x dx\int_0^1 \ln x \, dx

Solution:

As x→0+x \to 0^+, ln⁡x→−∞\ln x \to -\infty, so the integrand has a vertical asymptote along the negative yy-axis at the left endpoint x=0x = 0 (as shown in the right panel of the figure above).

Step 1 (Step Back from x=0x = 0): We integrate from x=hx = h (h>0h > 0) to x=1x = 1 and take lim⁡h→0+\lim_{h \to 0^+}:

∫01ln⁡x dx=lim⁡h→0+∫h1ln⁡x dx\int_0^1 \ln x \, dx = \lim_{h \to 0^+} \int_h^1 \ln x \, dx

Step 2 (Integrate by Parts on [h,1][h, 1]): Taking ln⁡x\ln x as the first function and 11 as the second function gives the antiderivative ∫ln⁡x dx=xln⁡x−x\int \ln x \, dx = x \ln x - x:

∫h1ln⁡x dx=[xln⁡x−x]h1=(1ln⁡1−1)−(hln⁡h−h)=−1−hln⁡h+h\int_h^1 \ln x \, dx = \Big[ x \ln x - x \Big]_h^1 = (1 \ln 1 - 1) - (h \ln h - h) = -1 - h \ln h + h

Step 3 (Take the Limit as h→0+h \to 0^+): As h→0+h \to 0^+, the term h→0h \to 0, and hln⁡hh \ln h is an indeterminate form of type 0×(−∞)0 \times (-\infty). Recall the standard limit (which we can verify by L'Hôpital's Rule):

lim⁡h→0+(hln⁡h)=lim⁡h→0+ln⁡h1/h  =L’H  lim⁡h→0+1/h−1/h2=lim⁡h→0+(−h)=0\lim_{h \to 0^+} (h \ln h) = \lim_{h \to 0^+} \frac{\ln h}{1 / h} \;\overset{\text{L'H}}{=}\; \lim_{h \to 0^+} \frac{1 / h}{-1 / h^2} = \lim_{h \to 0^+} (-h) = 0

Substituting this into our limit gives:

∫01ln⁡x dx=lim⁡h→0+(−1−hln⁡h+h)=−1−0+0=−1\int_0^1 \ln x \, dx = \lim_{h \to 0^+} \big( -1 - h \ln h + h \big) = -1 - 0 + 0 = -1

Thus, ∫01ln⁡x dx=−1\int_0^1 \ln x \, dx = -1 (and since ln⁡x≤0\ln x \le 0 on (0,1](0, 1], the geometric area enclosed between y=ln⁡xy = \ln x and the xx-axis is ∣−1∣=1|-1| = 1).


Example 6: Why Blind Substitution Across a Vertical Asymptote Fails§

Determine whether the following integral exists:

∫−111x2 dx\int_{-1}^1 \frac{1}{x^2} \, dx

Solution:

[!CAUTION] The Classic Trap: If someone ignores the vertical asymptote at x=0x = 0 and blindly plugs the endpoints into the antiderivative F(x)=−1xF(x) = -\frac{1}{x}, they get:

[−1x]−11=(−11)−(−1−1)=−1−1=−2(ABSURD!)\left[ -\frac{1}{x} \right]_{-1}^1 = \left(-\frac{1}{1}\right) - \left(-\frac{1}{-1}\right) = -1 - 1 = -2 \quad \text{(ABSURD!)}

How could the integral of a strictly positive function f(x)=1x2>0f(x) = \frac{1}{x^2} > 0 ever be negative?! It cannot—because f(x)f(x) blows up to +∞+\infty at the interior point x=0x = 0, violating the continuity condition of the Fundamental Theorem!

The Correct Analysis:

Since x=0x = 0 is a vertical asymptote inside [−1,1][-1, 1], we must split the integral at x=0x = 0:

∫−111x2 dx=lim⁡h1→0+∫−1−h11x2 dx+lim⁡h2→0+∫h211x2 dx\int_{-1}^1 \frac{1}{x^2} \, dx = \lim_{h_1 \to 0^+} \int_{-1}^{-h_1} \frac{1}{x^2} \, dx + \lim_{h_2 \to 0^+} \int_{h_2}^1 \frac{1}{x^2} \, dx

Let us check the right piece lim⁡h2→0+∫h211x2 dx\lim_{h_2 \to 0^+} \int_{h_2}^1 \frac{1}{x^2} \, dx:

lim⁡h2→0+[−1x]h21=lim⁡h2→0+(−1−(−1h2))=lim⁡h2→0+(1h2−1)=+∞\lim_{h_2 \to 0^+} \left[ -\frac{1}{x} \right]_{h_2}^1 = \lim_{h_2 \to 0^+} \left( -1 - \left(-\frac{1}{h_2}\right) \right) = \lim_{h_2 \to 0^+} \left( \frac{1}{h_2} - 1 \right) = +\infty

Because the limit blows up to +∞+\infty (and the left piece also blows up to +∞+\infty), the improper integral diverges (does not exist).


Miscellaneous Examples§


Example 1§

Evaluate:

∫0∞xe−x dx\int_0^\infty x e^{-x} \, dx

Solution:

We first integrate from 00 to bb using integration by parts (with first function f(x)=xf(x) = x and second function g(x)=e−xg(x) = e^{-x}) and then take the limit as b→∞b \to \infty:

∫0bxe−x dx=[−xe−x]0b−∫0b(1)(−e−x) dx=−be−b+∫0be−x dx\int_0^b x e^{-x} \, dx = \Big[ -x e^{-x} \Big]_0^b - \int_0^b (1)(-e^{-x}) \, dx = -b e^{-b} + \int_0^b e^{-x} \, dx =−be−b+[−e−x]0b=1−e−b−beb= -b e^{-b} + \Big[ -e^{-x} \Big]_0^b = 1 - e^{-b} - \frac{b}{e^b}

Now take the limit as b→∞b \to \infty. Recall that exponential growth ebe^b dominates any polynomial power bb, so by L'Hôpital's Rule:

lim⁡b→∞beb  =L’H  lim⁡b→∞1eb=0\lim_{b \to \infty} \frac{b}{e^b} \;\overset{\text{L'H}}{=}\; \lim_{b \to \infty} \frac{1}{e^b} = 0

Therefore:

∫0∞xe−x dx=lim⁡b→∞(1−1eb−beb)=1−0−0=1\int_0^\infty x e^{-x} \, dx = \lim_{b \to \infty} \left( 1 - \frac{1}{e^b} - \frac{b}{e^b} \right) = 1 - 0 - 0 = 1

Example 2§

Evaluate:

∫0111−x2 dx\int_0^1 \frac{1}{\sqrt{1 - x^2}} \, dx

Solution:

The integrand f(x)=11−x2f(x) = \frac{1}{\sqrt{1 - x^2}} is continuous on [0,1)[0, 1), but as x→1−x \to 1^-, the denominator 1−x2→0\sqrt{1 - x^2} \to 0, so f(x)→+∞f(x) \to +\infty at the right endpoint x=1x = 1.

Replacing the upper limit 11 with 1−h1 - h (h>0h > 0) and taking the limit as h→0+h \to 0^+:

∫0111−x2 dx=lim⁡h→0+∫01−h11−x2 dx\int_0^1 \frac{1}{\sqrt{1 - x^2}} \, dx = \lim_{h \to 0^+} \int_0^{1-h} \frac{1}{\sqrt{1 - x^2}} \, dx

Since ∫11−x2 dx=sin⁡−1x\int \frac{1}{\sqrt{1 - x^2}} \, dx = \sin^{-1} x:

=lim⁡h→0+[sin⁡−1x]01−h=lim⁡h→0+(sin⁡−1(1−h)−sin⁡−1(0))=sin⁡−1(1)−0=π2= \lim_{h \to 0^+} \Big[ \sin^{-1} x \Big]_0^{1-h} = \lim_{h \to 0^+} \big( \sin^{-1}(1 - h) - \sin^{-1}(0) \big) = \sin^{-1}(1) - 0 = \frac{\pi}{2}

Example 3§

Evaluate:

∫01xln⁡x dx\int_0^1 x \ln x \, dx

Solution:

As x→0+x \to 0^+, ln⁡x→−∞\ln x \to -\infty, so x=0x = 0 is a point where ln⁡x\ln x is undefined. Stepping back from x=0x = 0 to x=hx = h (h>0h > 0):

∫01xln⁡x dx=lim⁡h→0+∫h1xln⁡x dx\int_0^1 x \ln x \, dx = \lim_{h \to 0^+} \int_h^1 x \ln x \, dx

Applying integration by parts on [h,1][h, 1] with first function u=ln⁡xu = \ln x (du=1x dxdu = \frac{1}{x}\,dx) and second function dv=x dxdv = x \, dx (v=x22v = \frac{x^2}{2}):

∫h1xln⁡x dx=[x22ln⁡x]h1−∫h1x22⋅1x dx=(0−h22ln⁡h)−12[x22]h1\int_h^1 x \ln x \, dx = \left[ \frac{x^2}{2} \ln x \right]_h^1 - \int_h^1 \frac{x^2}{2} \cdot \frac{1}{x} \, dx = \left( 0 - \frac{h^2}{2}\ln h \right) - \frac{1}{2} \left[ \frac{x^2}{2} \right]_h^1 =−h22ln⁡h−14(1−h2)= -\frac{h^2}{2}\ln h - \frac{1}{4}(1 - h^2)

Taking the limit as h→0+h \to 0^+, since lim⁡h→0+(h2ln⁡h)=0\lim_{h \to 0^+} (h^2 \ln h) = 0:

∫01xln⁡x dx=lim⁡h→0+(−h22ln⁡h−14+h24)=0−14+0=−14\int_0^1 x \ln x \, dx = \lim_{h \to 0^+} \left( -\frac{h^2}{2}\ln h - \frac{1}{4} + \frac{h^2}{4} \right) = 0 - \frac{1}{4} + 0 = -\frac{1}{4}

Example 4§

Evaluate:

∫2∞1x2−1 dx\int_2^\infty \frac{1}{x^2 - 1} \, dx

Solution:

On [2,∞)[2, \infty), the denominator x2−1=(x−1)(x+1)x^2 - 1 = (x - 1)(x + 1) is strictly positive, so the integrand is continuous. Integrating from 22 to bb and taking lim⁡b→∞\lim_{b \to \infty}:

∫2∞1x2−1 dx=lim⁡b→∞∫2b1x2−1 dx\int_2^\infty \frac{1}{x^2 - 1} \, dx = \lim_{b \to \infty} \int_2^b \frac{1}{x^2 - 1} \, dx

Using the standard formula ∫dxx2−1=12ln⁡∣x−1x+1∣\int \frac{dx}{x^2 - 1} = \frac{1}{2} \ln \left| \frac{x - 1}{x + 1} \right|:

=lim⁡b→∞[12ln⁡(x−1x+1)]2b=12lim⁡b→∞[ln⁡(b−1b+1)−ln⁡(2−12+1)]= \lim_{b \to \infty} \left[ \frac{1}{2} \ln \left( \frac{x - 1}{x + 1} \right) \right]_2^b = \frac{1}{2} \lim_{b \to \infty} \left[ \ln \left( \frac{b - 1}{b + 1} \right) - \ln \left( \frac{2 - 1}{2 + 1} \right) \right]

As b→∞b \to \infty, b−1b+1=1−1/b1+1/b→1\frac{b - 1}{b + 1} = \frac{1 - 1/b}{1 + 1/b} \to 1, so ln⁡(b−1b+1)→ln⁡1=0\ln\left(\frac{b - 1}{b + 1}\right) \to \ln 1 = 0. Therefore:

∫2∞1x2−1 dx=12(0−ln⁡(13))=12ln⁡3\int_2^\infty \frac{1}{x^2 - 1} \, dx = \frac{1}{2} \left( 0 - \ln\left(\frac{1}{3}\right) \right) = \frac{1}{2}\ln 3

Example 5§

Evaluate:

∫e∞1x(ln⁡x)2 dx\int_e^\infty \frac{1}{x (\ln x)^2} \, dx

Solution:

We integrate from ee to bb and take the limit as b→∞b \to \infty:

∫e∞1x(ln⁡x)2 dx=lim⁡b→∞∫eb1x(ln⁡x)2 dx\int_e^\infty \frac{1}{x (\ln x)^2} \, dx = \lim_{b \to \infty} \int_e^b \frac{1}{x (\ln x)^2} \, dx

In the finite integral ∫eb1x(ln⁡x)2 dx\int_e^b \frac{1}{x (\ln x)^2} \, dx, let t=ln⁡xt = \ln x, so dt=1x dxdt = \frac{1}{x} \, dx:

  • When x=ex = e, t=ln⁡e=1t = \ln e = 1.
  • When x=bx = b, t=ln⁡bt = \ln b.

Thus:

∫eb1x(ln⁡x)2 dx=∫1ln⁡bt−2 dt=[−1t]1ln⁡b=1−1ln⁡b\int_e^b \frac{1}{x (\ln x)^2} \, dx = \int_1^{\ln b} t^{-2} \, dt = \left[ -\frac{1}{t} \right]_1^{\ln b} = 1 - \frac{1}{\ln b}

Now take the limit as b→∞b \to \infty. Since ln⁡b→∞\ln b \to \infty, we have 1ln⁡b→0\frac{1}{\ln b} \to 0:

∫e∞1x(ln⁡x)2 dx=lim⁡b→∞(1−1ln⁡b)=1−0=1\int_e^\infty \frac{1}{x (\ln x)^2} \, dx = \lim_{b \to \infty} \left( 1 - \frac{1}{\ln b} \right) = 1 - 0 = 1

Example 6§

Evaluate:

∫−111x1/3 dx\int_{-1}^1 \frac{1}{x^{1/3}} \, dx

Solution:

The integrand f(x)=x−1/3=1x3f(x) = x^{-1/3} = \frac{1}{\sqrt[3]{x}} blows up to −∞-\infty as x→0−x \to 0^- and to +∞+\infty as x→0+x \to 0^+. Because x=0x = 0 is an interior vertical asymptote, we split [−1,1][-1, 1] at x=0x = 0:

∫−11x−1/3 dx=lim⁡h1→0+∫−1−h1x−1/3 dx+lim⁡h2→0+∫h21x−1/3 dx\int_{-1}^1 x^{-1/3} \, dx = \lim_{h_1 \to 0^+} \int_{-1}^{-h_1} x^{-1/3} \, dx + \lim_{h_2 \to 0^+} \int_{h_2}^1 x^{-1/3} \, dx

An antiderivative of x−1/3x^{-1/3} is 32x2/3=32(x3)2\frac{3}{2} x^{2/3} = \frac{3}{2} (\sqrt[3]{x})^2. Let us evaluate both limits independently:

Left Piece:

lim⁡h1→0+[32x2/3]−1−h1=lim⁡h1→0+(32(−h1)2/3−32(−1)2/3)=0−32(1)=−32\lim_{h_1 \to 0^+} \left[ \frac{3}{2} x^{2/3} \right]_{-1}^{-h_1} = \lim_{h_1 \to 0^+} \left( \frac{3}{2}(-h_1)^{2/3} - \frac{3}{2}(-1)^{2/3} \right) = 0 - \frac{3}{2}(1) = -\frac{3}{2}

Right Piece:

lim⁡h2→0+[32x2/3]h21=lim⁡h2→0+(32(1)2/3−32(h2)2/3)=32−0=32\lim_{h_2 \to 0^+} \left[ \frac{3}{2} x^{2/3} \right]_{h_2}^1 = \lim_{h_2 \to 0^+} \left( \frac{3}{2}(1)^{2/3} - \frac{3}{2}(h_2)^{2/3} \right) = \frac{3}{2} - 0 = \frac{3}{2}

Because both pieces converge to finite numbers (−32-\frac{3}{2} and +32+\frac{3}{2}), the improper integral converges, and its value is their sum:

∫−111x1/3 dx=−32+32=0\int_{-1}^1 \frac{1}{x^{1/3}} \, dx = -\frac{3}{2} + \frac{3}{2} = 0

Example 7§

Evaluate:

∫0∞1ex+e−x dx\int_0^\infty \frac{1}{e^x + e^{-x}} \, dx

Solution:

Multiplying both the numerator and the denominator by exe^x gives:

∫0∞exe2x+1 dx=lim⁡b→∞∫0bex1+(ex)2 dx\int_0^\infty \frac{e^x}{e^{2x} + 1} \, dx = \lim_{b \to \infty} \int_0^b \frac{e^x}{1 + (e^x)^2} \, dx

Substituting t=ext = e^x (dt=ex dxdt = e^x \, dx, with x=0  ⟹  t=1x = 0 \implies t = 1 and x=b  ⟹  t=ebx = b \implies t = e^b):

=lim⁡b→∞∫1ebdt1+t2=lim⁡b→∞[tan⁡−1t]1eb=lim⁡b→∞(tan⁡−1(eb)−tan⁡−1(1))= \lim_{b \to \infty} \int_1^{e^b} \frac{dt}{1 + t^2} = \lim_{b \to \infty} \Big[ \tan^{-1} t \Big]_1^{e^b} = \lim_{b \to \infty} \big( \tan^{-1}(e^b) - \tan^{-1}(1) \big)

As b→∞b \to \infty, eb→∞e^b \to \infty, so tan⁡−1(eb)→π2\tan^{-1}(e^b) \to \frac{\pi}{2}. Therefore:

∫0∞1ex+e−x dx=π2−π4=π4\int_0^\infty \frac{1}{e^x + e^{-x}} \, dx = \frac{\pi}{2} - \frac{\pi}{4} = \frac{\pi}{4}

Example 8§

Evaluate:

∫01ln⁡xx dx\int_0^1 \frac{\ln x}{\sqrt{x}} \, dx

Solution:

At x=0x = 0, both ln⁡x→−∞\ln x \to -\infty and 1x→+∞\frac{1}{\sqrt{x}} \to +\infty, so we step back from x=0x = 0 to x=hx = h (h>0h > 0) and take lim⁡h→0+\lim_{h \to 0^+}:

∫01ln⁡xx dx=lim⁡h→0+∫h1x−1/2ln⁡x dx\int_0^1 \frac{\ln x}{\sqrt{x}} \, dx = \lim_{h \to 0^+} \int_h^1 x^{-1/2} \ln x \, dx

Applying integration by parts on [h,1][h, 1] with first function u=ln⁡xu = \ln x (du=1x dxdu = \frac{1}{x}\,dx) and second function dv=x−1/2 dxdv = x^{-1/2} \, dx (v=2xv = 2\sqrt{x}):

∫h1x−1/2ln⁡x dx=[2xln⁡x]h1−∫h1(2x)(1x dx)\int_h^1 x^{-1/2} \ln x \, dx = \Big[ 2\sqrt{x} \ln x \Big]_h^1 - \int_h^1 (2\sqrt{x}) \left(\frac{1}{x} \, dx\right) =(0−2hln⁡h)−2∫h1x−1/2 dx=−2hln⁡h−2[2x]h1=−2hln⁡h−4(1−h)= \big( 0 - 2\sqrt{h}\ln h \big) - 2 \int_h^1 x^{-1/2} \, dx = -2\sqrt{h}\ln h - 2 \Big[ 2\sqrt{x} \Big]_h^1 = -2\sqrt{h}\ln h - 4(1 - \sqrt{h})

Now take the limit as h→0+h \to 0^+. By L'Hôpital's Rule:

lim⁡h→0+(hln⁡h)=lim⁡h→0+ln⁡hh−1/2  =L’H  lim⁡h→0+1/h−12h−3/2=lim⁡h→0+(−2h)=0\lim_{h \to 0^+} \big( \sqrt{h}\ln h \big) = \lim_{h \to 0^+} \frac{\ln h}{h^{-1/2}} \;\overset{\text{L'H}}{=}\; \lim_{h \to 0^+} \frac{1 / h}{-\frac{1}{2} h^{-3/2}} = \lim_{h \to 0^+} \big( -2\sqrt{h} \big) = 0

Therefore:

∫01ln⁡xx dx=lim⁡h→0+(−2hln⁡h−4+4h)=0−4+0=−4\int_0^1 \frac{\ln x}{\sqrt{x}} \, dx = \lim_{h \to 0^+} \big( -2\sqrt{h}\ln h - 4 + 4\sqrt{h} \big) = 0 - 4 + 0 = -4

Summary§

Type of Improper Integral Standard Definition Convergence Condition
Type 1: Upper Limit ∞\infty ∫a∞f(x) dx=lim⁡b→∞∫abf(x) dx\int_a^\infty f(x) \, dx = \lim_{b \to \infty} \int_a^b f(x) \, dx Converges if the limit as b→∞b \to \infty is a finite real number.
Type 1: Both Limits ±∞\pm\infty ∫−∞∞f(x) dx=lim⁡a→−∞∫a0f(x) dx+lim⁡b→∞∫0bf(x) dx\int_{-\infty}^\infty f(x) \, dx = \lim_{a \to -\infty} \int_a^0 f(x) \, dx + \lim_{b \to \infty} \int_0^b f(x) \, dx Both the (−∞,0](-\infty, 0] piece and the [0,∞)[0, \infty) piece must converge independently.
Type 2: Unbounded at x=ax = a ∫abf(x) dx=lim⁡h→0+∫a+hbf(x) dx\int_a^b f(x) \, dx = \lim_{h \to 0^+} \int_{a+h}^b f(x) \, dx Converges if the one-sided limit as h→0+h \to 0^+ is finite.
Type 2: Unbounded at x=bx = b ∫abf(x) dx=lim⁡h→0+∫ab−hf(x) dx\int_a^b f(x) \, dx = \lim_{h \to 0^+} \int_a^{b-h} f(x) \, dx Converges if the one-sided limit as h→0+h \to 0^+ is finite.
Type 2: Interior Asymptote c∈(a,b)c \in (a, b) lim⁡h1→0+∫ac−h1f(x) dx+lim⁡h2→0+∫c+h2bf(x) dx\lim_{h_1 \to 0^+} \int_a^{c-h_1} f(x) \, dx + \lim_{h_2 \to 0^+} \int_{c+h_2}^b f(x) \, dx Both one-sided limits around x=cx = c must converge independently.
Section 7 of 15 · Definite Integration

Mark this section complete when you have worked through its proofs.