Skip to main content

Integration Techniques and Improper Integrals

Integration techniques are pattern-recognition tools for finding antiderivatives and evaluating definite integrals. Substitution reverses the chain rule. Integration by parts reverses the product rule. Partial fractions break rational functions into simpler pieces. Improper integrals extend definite integrals to infinite intervals and unbounded integrands through limits.

No single technique solves every integral. The work is to identify structure, transform the integral without changing its value, and check whether the result is an antiderivative, a convergent improper integral, or a divergent expression.

Definitions

Substitution uses a new variable u=g(x)u=g(x) and du=g(x)dxdu=g'(x)\,dx. It is most useful when the integrand contains a composite function and a constant multiple of the inside derivative.

Integration by parts is

udv=uvvdu.\int u\,dv=uv-\int v\,du.

It follows from the product rule:

(uv)=uv+uv.(uv)'=u'v+uv'.

Partial fractions apply to rational functions

p(x)q(x)\frac{p(x)}{q(x)}

after polynomial division if necessary. The denominator is factored, and the fraction is written as a sum of simpler rational terms.

An improper integral over an infinite interval is defined by a limit:

af(x)dx=limbabf(x)dx.\int_a^\infty f(x)\,dx =\lim_{b\to\infty}\int_a^b f(x)\,dx.

An integral with an infinite discontinuity at aa is also improper:

abf(x)dx=limca+cbf(x)dx.\int_a^b f(x)\,dx =\lim_{c\to a^+}\int_c^b f(x)\,dx.

If the defining limit exists as a finite number, the improper integral converges. Otherwise it diverges.

Key results

Substitution for definite integrals changes the limits as well as the integrand. If u=g(x)u=g(x), then

abf(g(x))g(x)dx=g(a)g(b)f(u)du.\int_a^b f(g(x))g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du.

Changing limits prevents accidental substitution back to xx.

Integration by parts is useful when the integrand is a product and differentiating one factor makes it simpler. A common guideline for choosing uu is LIATE: logarithmic, inverse trigonometric, algebraic, trigonometric, exponential. This is only a heuristic; the real test is whether the remaining integral becomes simpler.

For rational functions, factor the denominator into linear and irreducible quadratic factors. Repeated factors require repeated terms. For example,

1(x1)2(x+2)=Ax1+B(x1)2+Cx+2.\frac{1}{(x-1)^2(x+2)} =\frac{A}{x-1}+\frac{B}{(x-1)^2}+\frac{C}{x+2}.

The pp-integral test for improper integrals states:

11xpdx{converges,p>1,diverges,p1.\int_1^\infty \frac{1}{x^p}\,dx \begin{cases} \text{converges}, & p>1,\\ \text{diverges}, & p\le 1. \end{cases}

Near zero,

011xpdx{converges,p<1,diverges,p1.\int_0^1 \frac{1}{x^p}\,dx \begin{cases} \text{converges}, & p<1,\\ \text{diverges}, & p\ge 1. \end{cases}

Comparison tests extend these facts. If 0f(x)g(x)0\le f(x)\le g(x) and g\int g converges, then f\int f converges. If 0g(x)f(x)0\le g(x)\le f(x) and g\int g diverges, then f\int f diverges.

Trigonometric integrals often use identities such as

sin2x=1cos2x2,cos2x=1+cos2x2.\sin^2 x=\frac{1-\cos 2x}{2}, \qquad \cos^2 x=\frac{1+\cos 2x}{2}.

Trigonometric substitution converts radicals such as a2x2\sqrt{a^2-x^2} using x=asinθx=a\sin\theta, but it must be paired with triangle-based back-substitution or careful inverse trigonometric notation.

A useful first step is to decide whether the goal is an antiderivative or a definite value. Some definite integrals are easiest through symmetry, geometry, or a substitution that changes the bounds. Some antiderivatives are not elementary at all, even though the corresponding definite integral can be approximated accurately. For example, ex2dx\int e^{-x^2}\,dx has no elementary antiderivative, but definite integrals involving ex2e^{-x^2} are central in probability.

Substitution should be checked by differentiating the chosen uu. If u=x2+1u=x^2+1, then du=2xdxdu=2x\,dx. The integrand must contain xdxx\,dx up to a constant factor, or it must be transformed in another way. If the remaining expression still contains both xx and uu, the substitution has not completed the conversion.

Integration by parts may need to be repeated. Integrals such as x2exdx\int x^2e^x\,dx reduce the power of xx one step at a time. Integrals such as exsinxdx\int e^x\sin x\,dx cycle back to the original integral; in that case, apply parts twice and solve algebraically for the original integral.

Improper integrals require checking every problematic point. If an integral is improper at both endpoints, split it:

abf(x)dx=acf(x)dx+cbf(x)dx.\int_a^b f(x)\,dx =\int_a^c f(x)\,dx+\int_c^b f(x)\,dx.

Each piece must converge. If either piece diverges, the original improper integral diverges. Cancellation across an infinite discontinuity is not allowed unless the problem specifically asks for a Cauchy principal value, which is a different concept.

Comparison tests usually need nonnegative functions. If the integrand changes sign, absolute convergence may be studied by applying comparison to f(x)\vert f(x)\vert . Conditional convergence is more subtle and appears again in series.

Partial fractions require careful algebra before integration starts. If the denominator has an irreducible quadratic such as x2+1x^2+1, the numerator over that factor should be linear:

Ax+Bx2+1.\frac{Ax+B}{x^2+1}.

If the denominator contains (x2+1)2(x^2+1)^2, include both

Ax+Bx2+1andCx+D(x2+1)2.\frac{Ax+B}{x^2+1} \quad\text{and}\quad \frac{Cx+D}{(x^2+1)^2}.

Missing repeated-factor terms is a common reason partial fraction systems fail.

For trigonometric integrals, parity guides the method. If a power of sine is odd, save one sine factor and convert the remaining even power using sin2x=1cos2x\sin^2 x=1-\cos^2 x. If a power of cosine is odd, save one cosine factor and convert the remaining even power using cos2x=1sin2x\cos^2 x=1-\sin^2 x. If both powers are even, half-angle identities are often the cleanest route.

Numerical integration is also a legitimate technique when an exact antiderivative is unavailable or unnecessary. Midpoint, trapezoidal, and Simpson rules approximate definite integrals from function values. They do not replace convergence checks for improper integrals, but they are useful after the interval has been made finite and the integrand is well behaved.

Visual

Integral patternLikely techniqueReason
Composite with inside derivativesubstitutionreverses chain rule
Product where one factor simplifiesintegration by partsreverses product rule
Rational functionpartial fractionsdecomposes denominator factors
Powers of sine and cosinetrig identities or substitutionuses parity and identities
Radical a2x2a^2-x^2trig substitutionmatches sine/cosine identity
Infinite interval or vertical asymptoteimproper limitintegral defined by convergence

Worked example 1: integration by parts

Problem. Evaluate

xexdx.\int x e^x\,dx.

Method.

  1. Choose
u=x,dv=exdx.u=x,\qquad dv=e^x\,dx.
  1. Then
du=dx,v=ex.du=dx,\qquad v=e^x.
  1. Apply integration by parts:
udv=uvvdu.\int u\,dv=uv-\int v\,du.
  1. Substitute:
xexdx=xexexdx.\int x e^x\,dx=xe^x-\int e^x\,dx.
  1. Integrate the remaining term:
xexex+C.xe^x-e^x+C.
  1. Factor if desired:
ex(x1)+C.e^x(x-1)+C.

Checked answer. Differentiate:

ddx(ex(x1))=ex(x1)+ex=exx.\frac{d}{dx}\left(e^x(x-1)\right)=e^x(x-1)+e^x=e^x x.

So the antiderivative is correct.

Worked example 2: improper integral convergence

Problem. Determine whether

11x3dx\int_1^\infty \frac{1}{x^3}\,dx

converges, and evaluate it if it does.

Method.

  1. Write the integral as a limit:
11x3dx=limb1bx3dx.\int_1^\infty \frac{1}{x^3}\,dx =\lim_{b\to\infty}\int_1^b x^{-3}\,dx.
  1. Find an antiderivative:
x3dx=x22=12x2.\int x^{-3}\,dx=\frac{x^{-2}}{-2}=-\frac{1}{2x^2}.
  1. Evaluate from 11 to bb:
[12x2]1b=12b2(12).\left[-\frac{1}{2x^2}\right]_1^b =-\frac{1}{2b^2}-\left(-\frac12\right).
  1. Simplify:
1212b2.\frac12-\frac{1}{2b^2}.
  1. Take the limit:
limb(1212b2)=12.\lim_{b\to\infty}\left(\frac12-\frac{1}{2b^2}\right)=\frac12.

Checked answer. The improper integral converges and equals 1/21/2. This agrees with the pp-integral test because p=3>1p=3\gt 1.

The finite value has a geometric interpretation: the tail from 11 to infinity has total area 1/21/2 even though the interval is infinitely long. The function decreases fast enough that the accumulated area remains finite. In contrast, 1/x1/x decreases too slowly:

11xdx=limblnb\int_1^\infty \frac1x\,dx =\lim_{b\to\infty}\ln b

diverges.

The comparison with 1/x1/x is one of the most important benchmarks in calculus. Powers just larger than 11 converge on [1,)[1,\infty), while 1/x1/x and slower decays diverge. On the other hand, near 00 the inequality reverses: 1/x1/\sqrt{x} is integrable near 00, but 1/x1/x is not.

A final verification step is to differentiate any proposed antiderivative. For definite integrals, also check whether the numerical sign and size are plausible. A positive integrand on a positive-length interval cannot have a negative integral, and a bounded integrand satisfies simple area bounds such as

m(ba)abf(x)dxM(ba)m(b-a)\le \int_a^b f(x)\,dx\le M(b-a)

when mf(x)Mm\le f(x)\le M throughout the interval under consideration carefully.

Code

def midpoint_integral(f, a, b, n=10000):
h = (b - a) / n
total = 0.0
for i in range(n):
total += f(a + (i + 0.5) * h)
return total * h

def improper_tail_estimate(B):
return midpoint_integral(lambda x: 1 / x**3, 1, B) + 1 / (2 * B**2)

for B in [5, 10, 50]:
print(B, improper_tail_estimate(B))

Common pitfalls

  • Using substitution without changing dxdx into dudu.
  • Forgetting to change bounds in a definite integral after substitution.
  • Choosing uu in integration by parts so the remaining integral becomes harder.
  • Skipping polynomial division before partial fractions when the numerator degree is at least the denominator degree.
  • Treating an improper integral as ordinary endpoint substitution. The limit is part of the definition.
  • Assuming a decreasing positive integrand always has a finite area over an infinite interval.
  • Forgetting absolute values in antiderivatives such as 1/xdx=lnx+C\int 1/x\,dx=\ln\vert x\vert +C.

Connections