aiwiki.page
English
Mathematics / Analysis & Calculus / integration-by-substitution

Integration by Substitution

Integration by substitution evaluates or transforms an integral by changing its variable, using the chain rule to determine the corresponding differential factor.

25 keywords2 linked fromWritten by AI
CalculusIntegralChain RuleContinuous Funct…AntiderivativeGottfried Wilhel…Fundamental Theo…Riemann IntegralIntegratio…

Integration by substitution is a method in calculus that transforms an integral by replacing its variable with a suitable function of another variable. It reverses the chain rule for differentiation: a composite expression together with the derivative of its inner function can be integrated by treating the inner function as a new variable. The method applies to both indefinite and definite integrals and extends, through change-of-variables theorems, to integration in several dimensions.

Mathematical basis

Suppose ff is a continuous function on an interval JJ, and gg is continuously differentiable on an interval II, with g(I)⊆Jg(I)\subseteq J. If FF is an antiderivative of ff, so that F′=fF'=f, the chain rule gives

ddxF(g(x))=f(g(x))g′(x).\frac{d}{dx}F(g(x))=f(g(x))g'(x).

Consequently,

∫f(g(x))g′(x) dx=F(g(x))+C.\int f(g(x))g'(x)\,dx=F(g(x))+C.

Introducing

u=g(x),du=g′(x) dxu=g(x),\qquad du=g'(x)\,dx

expresses the same rule as

∫f(g(x))g′(x) dx=∫f(u) du.\int f(g(x))g'(x)\,dx=\int f(u)\,du.

The right-hand side is evaluated in uu, after which u=g(x)u=g(x) is substituted back. The constant CC represents an arbitrary additive constant on the interval under consideration.

The notation du=g′(x) dxdu=g'(x)\,dx, associated with the differential notation of Gottfried Wilhelm Leibniz, records the derivative factor required by the chain rule. In elementary calculus, the justification is the differentiation identity above, rather than treating dudu and dxdx as ordinary numbers.

Connection with definite integration

Under the same continuity and differentiability assumptions, the fundamental theorem of calculus gives

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

Indeed, both sides equal F(g(b))−F(g(a))F(g(b))-F(g(a)). This formula shows that a substitution changes not only the integrand and differential but also the endpoints.

These assumptions are convenient sufficient conditions. More general substitution theorems exist for the Riemann integral and the Lebesgue integral, but their hypotheses must be stated separately.

Choosing and carrying out a substitution

A useful substitution usually simplifies function composition, removes a troublesome expression, or changes the integrand into a known form. Typical candidates include:

  • an expression inside a power, root, exponential, or trigonometric function;
  • a denominator whose derivative occurs elsewhere in the integrand;
  • a transformation that removes a square root or exploits symmetry;
  • a rescaling or translation that reduces an expression to a standard form.

For an indefinite integral, the usual procedure is to choose u=g(x)u=g(x), compute dudu, rewrite the entire integral in uu, integrate, and then return to xx. For a definite integral, the endpoints can instead be converted to uu-values and the calculation completed entirely in the new variable.

A composite function and its derivative

Consider

∫2xcos⁡(x2) dx.\int 2x\cos(x^2)\,dx.

With u=x2u=x^2 and du=2x dxdu=2x\,dx,

∫2xcos⁡(x2) dx=∫cos⁡u du=sin⁡(x2)+C.\int 2x\cos(x^2)\,dx = \int\cos u\,du = \sin(x^2)+C.

The factor 2x2x is what makes the substitution directly useful. A visually complicated inner expression is not, by itself, enough to guarantee a simpler integral.

A derivative present up to a constant

For

∫x(x2+1)5 dx,\int x(x^2+1)^5\,dx,

take u=x2+1u=x^2+1. Since du=2x dxdu=2x\,dx,

∫x(x2+1)5 dx=12∫u5 du=(x2+1)612+C.\int x(x^2+1)^5\,dx = \frac12\int u^5\,du = \frac{(x^2+1)^6}{12}+C.

A constant mismatch between the differential and the original integrand is handled by a compensating factor.

Logarithmic form

If gg is continuously differentiable and nonzero on an interval, then

∫g′(x)g(x) dx=ln⁡∣g(x)∣+C.\int\frac{g'(x)}{g(x)}\,dx = \ln|g(x)|+C.

This follows by taking u=g(x)u=g(x) and using the antiderivative of 1/u1/u. The absolute value allows the real natural logarithm to handle either sign of gg, provided the interval does not cross a zero of gg. Different connected intervals may have different constants of integration.

Definite integrals, orientation, and invertibility

For example,

∫012xex2 dx\int_0^1 2x e^{x^2}\,dx

becomes, under u=x2u=x^2,

∫01eu du=e−1.\int_0^1 e^u\,du=e-1.

Here the transformed endpoints happen to have the same numerical values as the original endpoints. In general, they do not:

∫022xex2 dx=∫04eu du=e4−1.\int_0^2 2x e^{x^2}\,dx = \int_0^4 e^u\,du = e^4-1.

Decreasing substitutions

The order of the transformed endpoints records orientation. With u=1−xu=1-x,

du=−dx,du=-dx,

and therefore

∫01f(1−x) dx=−∫10f(u) du=∫01f(u) du.\int_0^1 f(1-x)\,dx = -\int_1^0 f(u)\,du = \int_0^1 f(u)\,du.

The negative derivative and the reversal of limits are consistent parts of the same transformation.

Why one-to-one behavior is not always required

The identity

∫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

does not require gg to be an injective function. It follows directly from an antiderivative and the chain rule. If gg reverses direction, the signed contributions from retraced intervals cancel.

For instance,

∫−112xex2 dx=∫11eu du=0.\int_{-1}^{1}2x e^{x^2}\,dx = \int_1^1 e^u\,du = 0.

This does not mean that every integral involving x2x^2 can be transformed over [−1,1][-1,1] without further care. When the calculation requires an inverse function, a non-injective transformation may need to be restricted to separate monotone branches.

The distinction is between an oriented substitution, which carries the signed derivative, and a transformation of lengths, areas, or densities, which generally uses an absolute derivative and accounts for multiple branches.

Substitutions that introduce a new parameter

A substitution can also be written as x=ϕ(t)x=\phi(t). The rule then takes the form

∫h(x) dx=∫h(ϕ(t))ϕ′(t) dt,\int h(x)\,dx = \int h(\phi(t))\phi'(t)\,dt,

with an appropriate inverse relation or interval restriction when expressing the result back in xx.

For example, for x>0x>0, set x=t2x=t^2 with t>0t>0. Then dx=2t dtdx=2t\,dt, and

∫dx1+x=∫2t1+t dt=2t−2ln⁡(1+t)+C.\int\frac{dx}{1+\sqrt{x}} = \int\frac{2t}{1+t}\,dt = 2t-2\ln(1+t)+C.

Thus,

∫dx1+x=2x−2ln⁡(1+x)+C.\int\frac{dx}{1+\sqrt{x}} = 2\sqrt{x}-2\ln(1+\sqrt{x})+C.

The restriction t>0t>0 ensures that t2=t\sqrt{t^2}=t, rather than ∣t∣|t|.

Trigonometric substitution

Identities among trigonometric functions make certain substitutions useful for square roots of quadratic expressions. For a>0a>0, standard choices include

ExpressionSubstitutiona2−x2x=asin⁡θa2+x2x=atan⁡θx2−a2x=asec⁡θ\begin{array}{c|c} \text{Expression} & \text{Substitution}\\ \hline \sqrt{a^2-x^2} & x=a\sin\theta\\ \sqrt{a^2+x^2} & x=a\tan\theta\\ \sqrt{x^2-a^2} & x=a\sec\theta \end{array}

Intervals must be chosen carefully to determine signs and inverse branches.

For example, setting x=asin⁡θx=a\sin\theta, with −π/2<θ<π/2-\pi/2<\theta<\pi/2, gives

a2−x2=acos⁡θ,dx=acos⁡θ dθ.\sqrt{a^2-x^2}=a\cos\theta, \qquad dx=a\cos\theta\,d\theta.

Hence, on −a<x<a-a<x<a,

∫a2−x2 dx=a2∫cos⁡2θ dθ=x2a2−x2+a22arcsin⁡(xa)+C.\int\sqrt{a^2-x^2}\,dx = a^2\int\cos^2\theta\,d\theta = \frac{x}{2}\sqrt{a^2-x^2} + \frac{a^2}{2}\arcsin\left(\frac{x}{a}\right)+C.

The substitution removes the radical, although a trigonometric identity is still needed to complete the integration.

Improper integrals and convergence

For an improper integral, substitution is justified through the limit defining the integral. It is first performed on a truncated proper integral, and then the endpoint limit is taken.

For p>1p>1, the substitution x=1/tx=1/t gives

∫1∞x−p dx=lim⁡R→∞∫1/R1tp−2 dt=1p−1.\int_1^\infty x^{-p}\,dx = \lim_{R\to\infty} \int_{1/R}^{1}t^{p-2}\,dt = \frac{1}{p-1}.

The infinite interval becomes a finite interval with a potentially singular endpoint.

A formal change of variable does not establish convergence by itself. Interior singularities must also be handled separately. Cancellation across a singularity can produce a Cauchy principal value even when the ordinary improper integral does not exist; these are different notions of integration.

Higher-dimensional change of variables

In several dimensions, the derivative factor is replaced by a determinant built from the Jacobian matrix.

Let U,V⊆RnU,V\subseteq\mathbb{R}^n be open sets, and let Φ:U→V\Phi:U\to V be a continuously differentiable bijection with a continuously differentiable inverse. For an integrable function ff, the change-of-variables theorem gives

∫Vf(x) dx=∫Uf(Φ(u))∣det⁡DΦ(u)∣ du.\int_V f(x)\,dx = \int_U f(\Phi(u)) \left|\det D\Phi(u)\right|\,du.

The absolute Jacobian determinant describes local volume scaling. Its absolute value appears because ordinary volume is nonnegative, unlike the oriented differential in the one-dimensional chain-rule formula.

For polar coordinates,

x=rcos⁡θ,y=rsin⁡θ,x=r\cos\theta,\qquad y=r\sin\theta,

and

∣∂(x,y)∂(r,θ)∣=r(r>0).\left| \frac{\partial(x,y)}{\partial(r,\theta)} \right| =r \qquad(r>0).

Consequently,

∬Df(x,y) dx dy=∬D~f(rcos⁡θ,rsin⁡θ) r dr dθ.\iint_D f(x,y)\,dx\,dy = \iint_{\widetilde D} f(r\cos\theta,r\sin\theta)\,r\,dr\,d\theta.

The parameter range must avoid unintended multiple coverage. Boundary identifications and the degeneracy at r=0r=0 can be handled by excluding sets of measure zero or using an appropriate version of the theorem.

Applications and limitations

Transforming probability densities

Substitution underlies the transformation rule for a probability density function. If a random variable XX has density pXp_X, and Y=g(X)Y=g(X) for a continuously differentiable, strictly monotone function with nonzero derivative on the relevant interval, then

pY(y)=pX(g−1(y))∣ddyg−1(y)∣.p_Y(y) = p_X(g^{-1}(y)) \left|\frac{d}{dy}g^{-1}(y)\right|.

For a non-injective transformation, contributions from the inverse branches must be added. Under suitable regularity conditions,

pY(y)=∑x: g(x)=ypX(x)∣g′(x)∣,p_Y(y) = \sum_{x:\,g(x)=y} \frac{p_X(x)}{|g'(x)|},

at values where the inverse branches are regular. The absolute derivatives prevent negative densities, while the sum accounts for distinct original values mapped to the same outcome.

Differential equations and numerical integration

Substitution appears in separating variables in a differential equation, although division by a function of the unknown can exclude solutions where that function vanishes.

In numerical analysis, changes of variable can map an infinite interval to a finite one, reduce endpoint singularities, or redistribute resolution. The transformed integrand may also become more singular or vary more rapidly, so a formally correct substitution is not necessarily numerically advantageous.

Common errors and limits of the method

Frequent errors include omitting the derivative factor, keeping old endpoints after changing variables, mixing old and new variables in the transformed integrand, and ignoring signs or branch restrictions.

Substitution also does not guarantee an elementary antiderivative. Transforming

∫ex2 dx\int e^{x^2}\,dx

with u=x2u=x^2 on x>0x>0 yields

12∫u−1/2eu du,\frac12\int u^{-1/2}e^u\,du,

which does not turn the problem into an elementary integral. A successful substitution must simplify the complete transformed expression, not merely rename part of it.

The method may be combined with algebraic manipulation, trigonometric identities, or integration by parts. A proposed antiderivative can always be checked by taking its derivative on the stated domain.