Blog · Calculus guides · 25 November 2026 · 4 min read
By the Asymptote team. Every answer on this page is checked by the same machine that grades the game.
Improper Integrals: p-Test, 3 Examples & Practice Problems
An improper integral is a definite integral with an infinite limit of integration, or with an integrand that blows up somewhere on the interval, and it is defined as a limit: it converges if that limit is a finite number and diverges otherwise. Replace the bad end with a letter such as , integrate as normal, then let go to the bad end. For example, .
Before you scroll
Try one now
Type the answer. Any correct form counts, and it is checked instantly. Stuck? The answer is underneath.
Problem 1
EasyEvaluate:
Stuck? Show the answer
Answer
How to start
Write it as . The antiderivative is .
The formula
The second half is the p-test, the most useful line on this page. sits exactly on the fence and falls off the wrong side: its area grows like , never quickly, never stopping, like a queue at the post office.
When to use it
An integral is improper when something on the interval is infinite: a limit of or , or an integrand with a vertical asymptote at an end or, sneakily, in the middle. Always look at the integrand across the whole interval before integrating, because looks perfectly ordinary and is not. Improper integrals are where limits at infinity meet integration, and the same converge-or-diverge question comes back for infinite sums in the series convergence tests, where the integral test compares a series with exactly these integrals.
How to do it, step by step
- Find every bad point. Infinite limits, and any in the interval where the integrand is undefined or infinite. Look in the middle, not just at the ends.
- Split so each piece has one bad point, at an end. splits at any convenient number, usually 0. An asymptote at inside the interval splits the integral at .
- Replace each bad end with and integrate. Write the piece as a limit, such as , and find the antiderivative as usual.
- Take the limit. A finite number means the piece converges. , or no limit at all, means it diverges.
- Every piece must converge. If one piece diverges, the whole integral diverges, whatever the others do.
Worked examples
Example 1: An infinite upper limit
EasyEvaluate, or show that it diverges:
The upper limit is infinite, so replace it with :
As the vanishes. This is the p-test with : it converges, to .
Answer
Example 2: An integrand that blows up at an end
MediumEvaluate, or show that it diverges:
Nothing infinite in the limits, but shoots off to infinity at . Replace the 0 with and approach from the right:
The second term goes to 0. Near zero the p-test runs the other way round: converges when , and here . Infinitely tall, finite area: a fence post with excellent manners.
Answer
Example 3: Infinite at both ends
HarderEvaluate, or show that it diverges:
Two infinite limits means two limits. Split at 0 and do each half on its own. The antiderivative is :
The left half is the same by symmetry, . Both halves converge, so add them.
Do not shortcut this as . That symmetric limit can produce a number for integrals that diverge: for every , yet diverges, because each half does.
Answer
Improper integrals practice problems
The easy one was at the top. Here are the harder ones. Type an answer and it is checked instantly by the same checker that grades the game; any correct form counts. Stuck? The answer and the first step are under each one.
Problem 2
MediumEvaluate:
Stuck? Show the answer
Answer
How to start
The integrand blows up at 0. Integrate to get , then let the lower limit go to .
Problem 3
HarderEvaluate:
Stuck? Show the answer
Answer
How to start
Partial fractions: . Combine the antiderivative into before taking the limit.
Want more? Asymptote has 542 more improper integrals problems, free, with no account.
Common mistakes
- Missing an asymptote in the middle. is not . A positive function cannot have a negative area. The integrand blows up at , and diverges, so the whole integral diverges.
- Plugging in . Writing gets the right number by luck, and falls apart on , where never settles and the limit does not exist. Write the limit.
- Thinking a function that goes to 0 must have a finite area. goes to 0, but diverges. Heading to zero is necessary, not enough: it has to get there fast.
- Letting two infinities cancel. If one piece diverges, the integral diverges. is not 0; it is not anything.
Practice it now
No clock, three strikes
Improper integrals are Diverge-only. At difficulty 8 and 9 come the p-test kind, a power of out to infinity or blowing up at 0, plus the odd exponential; much deeper, from difficulty 16, rational ones over that need an arctan. Every one of them converges, so the answer is always a number.
FAQ
- What makes an integral improper?
- An infinite limit of integration, like , or an integrand that becomes infinite somewhere on the interval, like at 0. Either way, the integral is defined as a limit.
- How do you know if an improper integral converges or diverges?
- Evaluate the limit: a finite number means it converges, anything else means it diverges. For powers use the p-test: converges only when , and only when . Messier integrands can be compared with one of those.
- Does the integral of 1/x from 1 to infinity converge?
- No. , which grows without limit as . It is the borderline case of the p-test, , and it diverges.
- Why is the integral of 1/x^2 from -1 to 1 not -2?
- Because has a vertical asymptote at , inside the interval, so the fundamental theorem cannot be used across it. Split at 0: , so the integral diverges.
- Where can I find improper integrals practice problems?
- Right on this page: the practice problems section has three improper integrals problems, easy, medium and harder, with the answer and the first step under each one, and a box that checks what you type with the same checker that grades Asymptote. The game has 542 more improper integrals problems after that, free and with no account: try Diverge, which has no clock.
Keep going
Limits at Infinity: Horizontal Asymptotes & Practice Problems
Limits at infinity: compare the highest powers. Bigger bottom gives 0, equal gives the ratio of leading terms. Roots, the conjugate trick, practice problems.
Partial Fractions: 4 Steps, 3 Examples & Practice Problems
Partial fractions: factor the bottom, split into simple fractions, solve for A and B, integrate into logs. 3 worked examples and practice problems.
Integrals of Sec and Tan: Formulas, Proofs & Practice Problems
The integral of tan x is ln|sec x| + C and of sec x is ln|sec x + tan x| + C. Both proofs, powers of tan and sec, and practice problems.