Module 2 of 5 · Lesson 2 of 2

Techniques of Integration

Parts, partial fractions, and the integrals that are defined as limits.

What you will be able to do

Given an integral, the learner can recognise which technique its structure calls for, apply integration by parts with a choice of u that makes the remaining integral easier, decompose a proper rational function into partial fractions, and evaluate an improper integral as a limit, reporting convergence with a value or divergence with the reason.

Orientation

When antidifferentiation does not come for free

The integral unit reduced ∫ a b f to finding a function that differentiates to f . For powers, sums and the odd substitution that is enough. For most integrands it is not.

∫ x e x d x has no substitution: neither factor is the other's derivative. ∫ d x ( x − 1 ) ( x + 2 ) is a single opaque fraction, though the answer is a sum of two logarithms. And ∫ 1 ∞ d x x 2 asks for an accumulation over an interval that never ends, which is not a Riemann sum at all. There are infinitely many rectangles to add.

Each obstruction has its own technique. Parts inverts the product rule and shifts the differentiation from one factor to the other. Partial fractions splits a rational integrand into pieces the power and logarithm rules already reach. And an improper integral is defined as a limit of ordinary ones, which is what makes the question of convergence meaningful.

That last is not a formality. ∫ 1 ∞ d x x 2 converges to exactly 1, while ∫ 1 ∞ d x x diverges. Both integrands tend to zero, and only one does so fast enough. This unit also settles the case the integral unit flagged and left open: ∫ − 1 1 x − 2 d x , where applying the fundamental theorem across the singularity produced a finite negative number for an integral that is positive and unbounded.

Definition

What each technique requires

The canonical definition states the three techniques and the p-test. What follows is why each carries the conditions it does.

Why the choice of u decides whether parts helps. The formula ∫ u d v = u v − ∫ v d u is an identity whichever way the factors are assigned, so it is always valid and usually useless. For ∫ x e x d x with u = x , the new integral is ∫ e x d x , simpler, because differentiating x gave 1. Assigning u = e x instead gives ∫ x 2 2 e x d x , with a higher power than before. The identity held; the trade went the wrong way.

The useful ordering is a rough hierarchy for u : logarithms first, then inverse trigonometric functions, then powers of x , then exponentials and trigonometric functions. What it encodes is which functions simplify on differentiation and which are unchanged by it.

Why a logarithm is integrated by parts at all. ∫ ln ⁡ x d x has one factor, so there is nothing to trade, until d v = d x is chosen, making v = x and u = ln ⁡ x . The method then gives x ln ⁡ x − ∫ x ⋅ 1 x d x = x ln ⁡ x − x . Parts applies whenever a function is easier to differentiate than to integrate, even alone.

Why partial fractions needs a proper function. The decomposition writes a fraction as a sum of terms each of degree − 1 or lower. If the original has numerator degree at least the denominator's, no such sum can reproduce it. The equation for the coefficients is inconsistent. Polynomial division extracts the polynomial part first, leaving a proper remainder the method can handle.

Why the coefficients are determined. Clearing denominators turns the decomposition into an equality of polynomials, and two polynomials agree for all x exactly when their coefficients match. That gives as many equations as unknowns. Substituting the roots of the denominator is a shortcut: each root kills all but one term, isolating one coefficient directly.

Why an improper integral is defined rather than evaluated. A Riemann sum needs a bounded interval cut into finitely many pieces of finite height. With an unbounded interval there is no finite partition, and with an unbounded integrand no finite rectangle height. So ∫ 1 ∞ is not an integral whose value is being computed. It is notation for a limit, and the limit is where the meaning lives.

This is why ln ⁡ ∞ − ln ⁡ 1 is not a calculation: ∞ is not a number the antiderivative can be evaluated at. The correct statement is lim t → ∞ ( ln ⁡ t − ln ⁡ 1 ) , which does not exist.

Why an interior singularity forces a split. The limit definition approaches the bad point from one side. A singularity inside the interval has two sides, each needing its own limit, and the integral converges only if both do. Integrating straight through applies the fundamental theorem where its hypothesis fails.

Why the p-test has two different thresholds. At infinity the integrand must decay fast enough, so large p helps: ∫ 1 ∞ x − p converges for p > 1 . Near zero the integrand blows up, so large p hurts: ∫ 0 1 x − p converges for p < 1 . The case p = 1 fails at both ends, because ln ⁡ x is unbounded in both directions, which is why 1 / x is the standard boundary against which other integrands are compared.

Derivation

Integration by parts and the p-test

Integration by parts. Start from the product rule for differentiable u and v :

d d x ( u v ) = u ′ v + u v ′ .

Integrate both sides over [ a , b ] . The left side is the derivative of u v , so by the fundamental theorem its integral is [ u v ] a b :

[ u v ] a b = ∫ a b u ′ v d x + ∫ a b u v ′ d x .

Rearranging isolates one integral:

∫ a b u v ′ d x = [ u v ] a b − ∫ a b u ′ v d x ,

which in differential notation is ∫ u d v = u v − ∫ v d u . The method is the product rule with one term moved across, and the minus sign comes from that move rather than from any convention.

Immediate check. For ∫ 0 1 x e x d x take u = x and d v = e x d x , so d u = d x and v = e x :

∫ 0 1 x e x d x = [ x e x ] 0 1 − ∫ 0 1 e x d x = e − [ e x ] 0 1 = e − ( e − 1 ) = 1 .

Differentiating the antiderivative x e x − e x returns e x + x e x − e x = x e x , and a midpoint sum with 400,000 subintervals.

The p-test at infinity. For p ≠ 1 the power rule gives an antiderivative directly:

∫ 1 t x − p d x = [ x 1 − p 1 − p ] 1 t = t 1 − p − 1 1 − p .

The behaviour as t → ∞ is decided by the sign of the exponent 1 − p :

t 1 − p as t → ∞ integral
p < 1 exponent positive, growsdiverges
p > 1 exponent negative, → 0 converges to 1 p − 1

The excluded case p = 1 has antiderivative ln ⁡ x , and ln ⁡ t → ∞ , so it diverges too. Checking the values: ln ⁡ 10 = 2.303 , ln ⁡ 100 = 4.605 , ln ⁡ 10 4 = 9.210 , ln ⁡ 10 6 = 13.816 , growing without bound, though slowly.

Verification of the convergent side. For p = 2 the formula gives 1 2 − 1 = 1 . Directly, ∫ 1 t x − 2 d x = 1 − 1 t , which reads 0.9 at t = 10 , 0.99 at t = 100 , 0.9999 at t = 10 4 and 0.999999 at t = 10 6 .

The p-test at zero. The same antiderivative, different endpoint:

∫ s 1 x − p d x = 1 − s 1 − p 1 − p .

Now s → 0 + , so s 1 − p → 0 when 1 − p > 0 and blows up when 1 − p < 0 . The threshold reverses: convergence for p < 1 , divergence for p > 1 .

Verification. For p = 1 2 : ∫ s 1 x − 1 / 2 d x = 2 − 2 s , which reads 1.3675 at s = 0.1 , 1.9368 at s = 0.001 and 1.9980 at s = 10 − 6 , approaching 2. The region is unbounded in height and has finite area. The integrand's blow-up is slow enough that the accumulation stays finite.

Procedure

Choosing the technique

Step 0 — check whether the integral is improper. Before any technique, ask two questions: is either limit infinite, and does the integrand blow up anywhere on the closed interval, endpoints included? A yes to either means the integral is defined as a limit, and Step 5 applies. Missing this is how a divergent integral acquires a finite answer.

Step 1 — try substitution. The cheapest method. Its signature is an inner function whose derivative appears as a factor, up to a constant. If it works, nothing else is needed.

Step 2 — for a product of unlike factors, use parts. The signature is a product whose factors come from different families: a power times an exponential, a power times a logarithm, a lone logarithm. Choose u by which factor simplifies when differentiated:

Integrand u d v
x e x x e x d x
x ln ⁡ x ln ⁡ x x d x
ln ⁡ x ln ⁡ x d x

Apply ∫ u d v = u v − ∫ v d u and inspect the new integral. If it is worse than the original, swap the choice; if both choices are worse, parts is the wrong method.

Step 3 — for a rational function, use partial fractions.

  1. Check it is proper: numerator degree strictly below denominator degree. If not, divide first.
  2. Factor the denominator completely.
  3. Write one term per factor, following the table in the definition.
  4. Clear denominators and solve, substituting each root isolates one coefficient at a time.
  5. Integrate term by term; linear denominators give logarithms.

Step 4 — verify by differentiating. Every antiderivative found by any method can be checked by differentiating it back to the integrand. This catches sign errors from parts and arithmetic errors in the coefficients, and costs a few seconds.

Step 5 — for an improper integral, replace the bad endpoint with a variable and take a limit.

  • Unbounded interval: ∫ a ∞ f = lim t → ∞ ∫ a t f .
  • Unbounded at an endpoint c : approach it, lim t → c ∫ a t f .
  • Unbounded at an interior point: split there first, then treat each piece separately. Both must converge, or the whole diverges.

Evaluate the proper integral in t by the techniques above, then take the limit. Report a finite value as convergence, and otherwise divergence with the reason.

Step 6 — use the p-test as a shortcut and a sanity check. For an integrand behaving like x − p : at infinity it converges when p > 1 ; near zero when p < 1 . Comparing a complicated integrand with the nearest power often settles convergence before any antiderivative is attempted.

Worked example

Five integrals, one of each kind

1. Parts with a power and an exponential: ∫ 0 1 x e x d x .

No substitution is available, neither factor is the other's derivative. Take u = x (simplifies when differentiated) and d v = e x d x (easy to integrate), so d u = d x and v = e x :

∫ 0 1 x e x d x = [ x e x ] 0 1 − ∫ 0 1 e x d x = e − [ e x ] 0 1 = e − ( e − 1 ) = 1 .

Check: differentiating x e x − e x gives e x + x e x − e x = x e x , and a midpoint sum returns.

The other choice. Taking u = e x and d v = x d x gives x 2 2 e x − ∫ x 2 2 e x d x . The new integrand carries x 2 where the original had x . The identity still holds; the trade went the wrong way.

2. Parts on a lone logarithm: ∫ 1 2 x ln ⁡ x d x .

Take u = ln ⁡ x and d v = x d x , so d u = d x x and v = x 2 2 :

∫ 1 2 x ln ⁡ x d x = [ x 2 2 ln ⁡ x ] 1 2 − ∫ 1 2 x 2 2 ⋅ 1 x d x = 2 ln ⁡ 2 − ∫ 1 2 x 2 d x = 2 ln ⁡ 2 − [ x 2 4 ] 1 2 .

So the value is 2 ln ⁡ 2 − ( 1 − 1 4 ) = 2 ln ⁡ 2 − 3 4 ≈ 0.6362943611 .

Check: a midpoint sum.

The logarithm was chosen as u because differentiating it produces 1 / x , which cancels against the x 2 from v . That cancellation is why the method works here.

3. Partial fractions: ∫ 3 5 d x ( x − 1 ) ( x + 2 ) .

The integrand is proper, numerator degree 0, denominator degree 2, so decompose directly:

1 ( x − 1 ) ( x + 2 ) = A x − 1 + B x + 2 ⟹ 1 = A ( x + 2 ) + B ( x − 1 ) .

Substituting the roots isolates each coefficient: at x = 1 , 1 = 3 A so A = 1 3 ; at x = − 2 , 1 = − 3 B so B = − 1 3 .

Verify the identity at x = 3 : the left side is 1 2 ⋅ 5 = 0.1 , and the right is 1 / 3 2 − 1 / 3 5 = 0.1 .

Integrating term by term:

1 3 [ ln ⁡ | x − 1 | − ln ⁡ | x + 2 | ] 3 5 = 1 3 [ ln ⁡ x − 1 x + 2 ] 3 5 = 1 3 ( ln ⁡ 4 7 − ln ⁡ 2 5 ) = 1 3 ln ⁡ 10 7 ≈ 0.1188916480 .

Check: a midpoint sum returns.

4. A convergent improper integral: ∫ 1 ∞ d x x 2 .

The interval is unbounded, so this is notation for a limit:

∫ 1 ∞ d x x 2 = lim t → ∞ ∫ 1 t x − 2 d x = lim t → ∞ [ − 1 x ] 1 t = lim t → ∞ ( 1 − 1 t ) = 1 .

Check: the partial values are 0.9 at t = 10 , 0.99 at t = 100 , 0.9999 at t = 10 4 , 0.999999 at t = 10 6 . The p-test agrees: p = 2 > 1 , value 1 p − 1 = 1 .

5. A divergent one: ∫ 1 ∞ d x x .

lim t → ∞ [ ln ⁡ x ] 1 t = lim t → ∞ ln ⁡ t ,

which does not exist, ln ⁡ 10 = 2.30 , ln ⁡ 100 = 4.61 , ln ⁡ 10 4 = 9.21 , ln ⁡ 10 6 = 13.82 , growing without bound. The integral diverges.

Compare case 4: both integrands tend to 0, and only x − 2 does so fast enough for the accumulated area to stay finite. p = 1 is exactly the threshold.

Example

Integrals worth recognising on sight

∫ ln ⁡ x d x = x ln ⁡ x − x + C . A single factor, integrated by parts with d v = d x . Memorise it with the reason: the logarithm is easy to differentiate and has no elementary antiderivative in sight, so it must be the u .

∫ x e x d x = x e x − e x + C . The template for a power times an exponential. Each application of parts lowers the power by one, so ∫ x 2 e x d x takes two passes and ∫ x 3 e x d x three.

∫ x ln ⁡ x d x = x 2 2 ln ⁡ x − x 2 4 + C . Over [ 1 , 2 ] this gives 2 ln ⁡ 2 − 3 4 ≈ 0.63629 . The 1 / x from differentiating the logarithm cancels against a power of x , which is what makes the remaining integral elementary.

A repeated linear factor: 3 x + 5 ( x − 1 ) 2 = 3 x − 1 + 8 ( x − 1 ) 2 . A repeated factor contributes one term per power, not a single term. Checking at x = 2 : the left side is 11 1 = 11 , and the right is 3 + 8 = 11 ; at x = 4 both give 1.888 8 ― . Integrating gives 3 ln ⁡ | x − 1 | − 8 x − 1 + C . A logarithm from the first term and a power from the second.

∫ 0 ∞ e − x d x = 1 . The standard convergent improper integral. The partial values climb 0.632 , 0.993 , 0.99995 , 0.999999998 at t = 1 , 5 , 10 , 20 : exponential decay is fast enough that almost all the area sits near the origin. This is the normalisation behind the exponential distribution.

∫ 1 ∞ d x x 2 + 1 = π 4 . The antiderivative is arctan ⁡ x , and the limit is π 2 − π 4 ≈ 0.78540 . The partial values run 0.6857 , 0.7754 , 0.7853 at t = 10 , 100 , 10 4 . Convergence could have been predicted without any antiderivative: the integrand is smaller than x − 2 , whose integral converges.

∫ 0 1 d x x = 2 . Improper at the left endpoint, where the integrand is unbounded. The partial values are 1.3675 , 1.9368 , 1.9980 as s → 0 + . Finite area under an unbounded curve, which is the case worth carrying: unboundedness alone never decides convergence.

Three are parts, two are the decomposition, three are improper, and the improper ones split two to one between convergent and divergent for the same reason each time, the rate at which the integrand approaches its bad point. Reading that rate is what the p-test formalises.

Warning

Infinity is not a number to substitute

The most common error in this material is treating ∞ as an endpoint the antiderivative can be evaluated at.

The error. Writing

∫ 1 ∞ d x x = [ ln ⁡ x ] 1 ∞ = ln ⁡ ∞ − ln ⁡ 1

and then reporting ln ⁡ ∞ as a value, or cancelling it against something. There is no real number ln ⁡ ∞ , so the expression is not an arithmetic statement at all.

What is meant instead. The notation ∫ 1 ∞ is shorthand for a limit that must be written out:

∫ 1 ∞ d x x = lim t → ∞ ∫ 1 t d x x = lim t → ∞ ( ln ⁡ t − ln ⁡ 1 ) = lim t → ∞ ln ⁡ t ,

which does not exist. The integral diverges. A conclusion, reached by evaluating a limit, not by substituting a symbol.

Why this matters beyond notation. The same habit applied where the limit does exist happens to give the right number, which is what keeps the error alive. ∫ 1 ∞ x − 2 d x written as [ − 1 x ] 1 ∞ = 0 + 1 = 1 is correct in value and wrong in reasoning, and the reasoning is what fails on the next problem.

The interior singularity is worse, because the wrong answer looks fine. For ∫ − 1 1 d x x 2 , applying the fundamental theorem straight through gives

[ − 1 x ] − 1 1 = − 1 − 1 = − 2 ,

a negative number for an integrand that is positive everywhere it is defined. Two things went wrong at once: the theorem's hypothesis failed, since − 1 / x is not an antiderivative on an interval containing 0, and the answer contradicts the construction, since every Riemann term would be positive.

Done correctly, the integral is split at 0 and each half evaluated as a limit. For the right half, ∫ s 1 x − 2 d x = 1 s − 1 , which reads 9 at s = 0.1 , 99 at s = 0.01 and 9999 at s = 10 − 4 , unbounded. That half diverges, so the whole integral diverges, and the left half diverges identically.

The check that catches it. Before applying the fundamental theorem, ask whether the integrand is unbounded anywhere on the closed interval. If it is, the integral is improper and needs a limit. And after any evaluation, ask whether the sign of the answer is possible given the sign of the integrand: a positive integrand cannot produce a negative integral, whatever the algebra says.

Non-example

Techniques applied where they do not help

Parts in the wrong direction. For ∫ x e x d x , choosing u = e x and d v = x d x gives

∫ x e x d x = x 2 2 e x − ∫ x 2 2 e x d x .

The identity is correct and the result is useless: the new integrand carries x 2 where the original had x . Repeating the choice raises the power again. Nothing has gone wrong except the direction of the trade, which is why the new integral must be inspected before continuing.

Partial fractions on an improper fraction. Attempting

x 2 ( x − 1 ) ( x + 2 ) = A x − 1 + B x + 2

produces no solution: the right side has degree − 1 at best while the left tends to 1 as x → ∞ . Clearing denominators gives x 2 = A ( x + 2 ) + B ( x − 1 ) , a quadratic equal to a linear expression, which fails at the x 2 coefficient. Division first gives 1 + − x + 2 ( x − 1 ) ( x + 2 ) , and the remainder is proper.

Partial fractions where the denominator does not factor. 1 x 2 + 1 has an irreducible quadratic denominator over the reals, so no decomposition into linear pieces exists. Forcing one produces complex coefficients where a real answer was wanted; the integral is arctan ⁡ x , which no amount of splitting will reveal.

Substitution where no inner derivative is present. For ∫ e x 2 d x , setting u = x 2 needs d u = 2 x d x , and there is no x factor to supply it. The substitution cannot be completed. This integral has no elementary antiderivative at all, a theorem, not a failure of ingenuity, which is why the related ∫ e − x 2 d x is handled numerically.

The contrast is ∫ x e x 2 d x , where the x is present and the substitution works immediately, giving 1 2 e x 2 .

Concluding divergence from an unbounded integrand. ∫ 0 1 d x x has an integrand growing without bound as x → 0 + , and it converges, to 2. The partial values 1.3675 , 1.9368 , 1.9980 climb toward it. Unboundedness alone decides nothing: the rate decides it, and p = 1 2 < 1 puts this case on the convergent side of the threshold.

Concluding convergence from a vanishing integrand. ∫ 1 ∞ d x x has an integrand tending to 0 and diverges. Tending to zero is necessary for convergence at infinity but nowhere near sufficient. The decay must beat 1 / x .

The two failures are mirror images, and together they are the reason the p-test is stated as a threshold rather than a rule of thumb.

Splitting that hides a divergence. For ∫ − 1 1 d x x 3 , the two halves are − ∞ and + ∞ , and pairing them symmetrically appears to give 0. That is a different quantity, the Cauchy principal value, and the integral itself diverges, because convergence requires each piece to converge independently.

Optional enrichment (1)

Application

Where these integrals actually arise

Probability densities are improper integrals. A continuous distribution's density must satisfy ∫ − ∞ ∞ f = 1 , which is an improper integral over an unbounded interval in both directions. For the exponential distribution with rate 1 the requirement is ∫ 0 ∞ e − x d x = 1 , exactly the case computed above. The partial values 0.632 , 0.993 , 0.99995 show how quickly the mass accumulates.

A density that failed to converge could not be a density, so convergence is not a technicality here; it is what makes the object well defined.

Expectations too. E [ X ] = ∫ − ∞ ∞ x f ( x ) d x , and the integral may diverge even when f is a perfectly good density. The Cauchy distribution, with f ( x ) = 1 π ( 1 + x 2 ) , has ∫ f = 1 but ∫ | x | f ( x ) d x divergent, so it has no mean. The integrand behaves like 1 / x for large x , which is the divergent side of the p-test. The same threshold, deciding whether a statistical quantity exists.

Integration by parts gives the moment relationships. Applying parts to ∫ 0 ∞ x n e − x d x reduces n by one each time, giving the factorial recursion Γ ( n + 1 ) = n Γ ( n ) . The gamma function extends factorials to non-integers by exactly this route, and it is where the chi-squared and gamma distributions come from.

Parts is also the step that produces the integration-by-parts formula in probability, E [ X ] = ∫ 0 ∞ ( 1 − F ( x ) ) d x for a nonnegative variable. A result that turns an expectation into an area above the distribution function.

Partial fractions solve linear differential equations. Separating variables in the logistic model d P d t = k P ( 1 − P ) produces ∫ d P P ( 1 − P ) , which is precisely a partial-fraction decomposition: 1 P + 1 1 − P . Integrating gives logarithms, and solving for P yields the logistic curve. The same decomposition appears whenever a rate depends on a product of factors.

In control theory the inverse Laplace transform is carried out by decomposing a rational transfer function into partial fractions, each term inverting to an exponential, so the decomposition is what turns a frequency-domain expression back into a time-domain response.

Improper integrals define the transforms themselves. The Laplace transform L { f } ( s ) = ∫ 0 ∞ f ( t ) e − s t d t and the Fourier transform are improper integrals whose convergence depends on the decay of f against the exponential factor. The region of s for which the integral converges is the transform's region of convergence, and it is read off with exactly the comparisons used here.

The threshold is the recurring idea. Whether a density normalises, whether a mean exists, whether a transform converges. Each is the same question about how fast a function approaches its bad point, answered by comparison with a power. The p-test is the smallest instance of a technique used throughout analysis.

Next step

Practice Techniques of Integration

Practice records what support you used, so the evidence reflects how you actually performed.

Practice this lessonSkip to Convergence of Infinite Series

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.