What Are Improper Integrals and When Do They Converge?

Can an infinitely long shape hold a finite amount of paint? We build the intuition behind improper integrals from Gabriel's Horn, then figure out exactly when an infinite process settles down and when it runs away forever.

By Petrus Sheya

July 21, 2026 · 6 min read

Can a shape be infinitely long and still hold a finite amount of paint?

That sounds like a trick question. But it's exactly what happens with a strange object called Gabriel's Horn, and untangling it is the whole point of this post.


A trumpet that breaks your intuition

Take the curve y=1/xy = 1/x, starting at x=1x = 1 and stretching out forever. Now spin it around the x-axis. You get a trumpet-shaped horn that gets thinner and thinner, forever, but never quite closes up.

Here's the paradox. If you compute the volume inside that horn, you get a finite number. You could fill it with a bucket of paint. But if you compute the surface area of the horn's outside, it's infinite. You could never have enough paint to coat it, not even close.

Same object. One measurement is finite, the other is infinite. That's not a contradiction, it's a fact about infinite processes, and by the end of this post you'll know exactly why it happens.


What makes an integral "improper"

A regular integral, like 25x2dx\int_2^5 x^2\,dx, adds up a function's values over a finite, well-behaved interval. Nothing weird happens. You get a number, done.

An integral turns improper the moment one of two things happens.

Either the interval itself goes on forever, like 11x2dx\int_1^\infty \frac{1}{x^2}\,dx. Or the function blows up somewhere inside the interval, like 011xdx\int_0^1 \frac{1}{x}\,dx, where 1/x1/x shoots to infinity as xx approaches 0.

In both cases, you're trying to add up infinitely many things. The question is always the same: does that infinite sum settle on a number, or does it run away?


Case one: the interval goes on forever

Let's start with the horn's volume. It comes from an integral like 11xpdx\int_1^\infty \frac{1}{x^p}\,dx, for some power pp. We can't literally integrate "to infinity" directly, so here's the trick calculus uses.

Pick some large but finite number bb. Compute the integral up to bb. Then ask what happens as bb keeps growing.

11xpdx=limb1b1xpdx\int_1^\infty \frac{1}{x^p}\,dx = \lim_{b \to \infty} \int_1^b \frac{1}{x^p}\,dx

That's it. That's the whole idea behind an infinite-interval improper integral. You replace infinity with a variable, compute normally, then take a limit.

Press play and watch b race toward infinity along a squeezed axis. The shaded area either settles on a number or keeps climbing.

110¹10²10³10⁴10⁵b = 1.00
Area so far0.0000
As b → ∞→ 1.0000

Play with pp above. When p>1p > 1, the running area chases down a specific number and never overshoots it, even though bb keeps growing forever. When p1p \le 1, no such luck. The area keeps climbing without bound.

The reason comes down to speed. When p>1p > 1, the function 1/xp1/x^p shrinks fast enough that each new sliver of area contributes almost nothing, and those contributions add up to a finite total. When p1p \le 1, the function shrinks too slowly. The slivers keep contributing just enough to push the total higher forever.

Working out the antiderivative confirms it: for p1p \ne 1,

1b1xpdx=b1p11p\int_1^b \frac{1}{x^p}\,dx = \frac{b^{1-p} - 1}{1 - p}

As bb \to \infty, the term b1pb^{1-p} vanishes if p>1p > 1 (leaving a finite limit of 1p1\frac{1}{p-1}) and explodes if p<1p < 1. And at exactly p=1p = 1, the antiderivative is lnb\ln b, which climbs to infinity no matter how slowly.


Case two: the function blows up

Now flip the problem. What if the interval is perfectly finite, but the function itself shoots to infinity at one edge?

Take 011xpdx\int_0^1 \frac{1}{x^p}\,dx. As xx approaches 0, 1/xp1/x^p rockets upward. We can't just plug in x=0x = 0. So we use the same trick as before, but mirrored: replace the bad endpoint with a variable, then let it sneak up on the danger zone.

011xpdx=limε0+ε11xpdx\int_0^1 \frac{1}{x^p}\,dx = \lim_{\varepsilon \to 0^+} \int_\varepsilon^1 \frac{1}{x^p}\,dx

Now zoom the other direction: the function itself shoots up near x = 0. Watch whether the sliver of area piling up against the wall stays finite.

10⁻⁶10⁻⁵10⁻⁴10⁻³10⁻²10⁻¹1wall at x = 0ε = 1.00
Area so far0
As ε → 0→ 2.0000

Slide pp and watch what happens as ε\varepsilon creeps toward the wall at x=0x = 0. And here's the interesting twist: the rule flips.

For the infinite-interval case, convergence needed p>1p > 1. For this blow-up case, convergence needs p<1p < 1. Smaller pp means the function grows more slowly as it approaches zero, so the sliver of area near the wall stays thin enough to add up to something finite. Larger pp means the function shoots up too violently, and the area near the wall is unbounded.

Same formula, same technique, opposite condition. Worth sitting with that for a second.


When you can't compute the integral at all

Real functions are rarely as clean as 1/xp1/x^p. Sometimes you'll face something like

f(x)=1x2+sin(x)+3f(x) = \frac{1}{x^2 + \sin(x) + 3}

There's no elementary antiderivative for that. You can't just plug in bounds and subtract. So how do you know if 1f(x)dx\int_1^\infty f(x)\,dx converges?

You don't compute it directly. You trap it.

Notice that sin(x)\sin(x) never dips below 1-1, so the denominator of f(x)f(x) never drops below x2+2x^2 + 2. That means f(x)1x2+2f(x) \le \frac{1}{x^2+2} for every xx, always. And 1x2+2\frac{1}{x^2+2} does have a clean antiderivative, one whose integral to infinity we can compute exactly.

Drag b outward. The white curve has no clean antiderivative, but it never pokes above the dashed gold curve, and that one we can compute exactly.

110203040f(x), no closed formg(x) = 1 / (x²+2)
b6.0
Area(f)0.4085
Area(g)0.5118
g's limit at ∞0.6755

Drag bb outward and watch the white curve stay pinned beneath the gold one, no matter how far you go. If a function is always smaller than something whose total area is finite, its own total area can't be more than that. It's squeezed from above.

This is called the comparison test, and it's one of the most useful tools in this whole topic. You almost never need to compute an improper integral exactly to know whether it converges. You just need a bound you already understand.


The general rule, in one picture

Let's zoom out. We've seen two mirrored rules:

  • 11xpdx\int_1^\infty \frac{1}{x^p}\,dx converges when p>1p > 1
  • 011xpdx\int_0^1 \frac{1}{x^p}\,dx converges when p<1p < 1

Both flip at the exact same value: p=1p = 1. That's not a coincidence, it's the same balancing act (shrinking width against growing count, or growing height against shrinking width) viewed from two different angles.

One slider, two mirrored rules. Watch the tail integral and the hole integral swap between converging and diverging as p crosses 1.

Tail: ∫ from 1 to ∞ of 1/xᵖHole: ∫ from 0 to 1 of 1/xᵖp = 1 (ln x, always diverges)0.511.522.53
Tail integralDiverges
Hole integralDiverges

Slide pp across that boundary and watch both rules trade places at once. This single number, p=1p = 1, is the dividing line between "infinite processes that settle down" and "infinite processes that don't," for every power function you'll ever integrate.


Back to the horn

Now we can finally explain the paradox we opened with.

The horn's volume comes from spinning y=1/xy = 1/x around the x-axis and integrating cross-sectional disks, which works out to π11x2dx\pi \int_1^\infty \frac{1}{x^2}\,dx. Here p=2p = 2, which is greater than 1. It converges. The volume is exactly π\pi.

The horn's surface area involves a similar-looking integral, but one that behaves like 11xdx\int_1^\infty \frac{1}{x}\,dx at its core, where p=1p = 1. That's exactly the borderline case that always diverges. The surface area is infinite.

So the horn really does hold a finite bucket of paint on the inside while needing an infinite amount to coat the outside. Not a contradiction. Just two different powers of xx, on two different sides of the same threshold.


The short version

An integral becomes improper when its interval stretches to infinity or its function explodes at some point. Either way, you replace the dangerous edge with a variable, compute normally, and take a limit.

Whether that limit settles on a number or runs away depends entirely on speed: how fast the function shrinks as it heads toward infinity, or how fast it's allowed to blow up near a wall. For power functions, that whole question collapses into a single number, pp, and a single threshold, p=1p = 1.

And when you can't compute the integral directly, you don't have to. Trap it between two functions you already understand, and let the comparison do the work.

All areas on this page are computed either from closed-form antiderivatives or, where no elementary antiderivative exists, from a 400-interval Simpson's rule approximation.