Mathwords logoMathwords

Integration by Substitution — Definition, Formula & Examples

Integration by substitution is a technique for evaluating integrals by replacing a complicated expression with a single new variable, simplifying the integrand into a form you can integrate directly. It is essentially the chain rule of differentiation applied in reverse.

If gg is a differentiable function whose range is contained in the domain of a continuous function ff, and FF is an antiderivative of ff, then f(g(x))g(x)dx=F(g(x))+C\int f(g(x))\,g'(x)\,dx = F(g(x)) + C. Equivalently, setting u=g(x)u = g(x) so that du=g(x)dxdu = g'(x)\,dx, the integral becomes f(u)du=F(u)+C\int f(u)\,du = F(u) + C.

Key Formula

f(g(x))g(x)dx=f(u)duwhere u=g(x),  du=g(x)dx\int f(g(x))\,g'(x)\,dx = \int f(u)\,du \quad\text{where } u = g(x),\; du = g'(x)\,dx
Where:
  • uu = The substitution variable, set equal to the inner function g(x)
  • g(x)g(x) = The inner function identified inside the integrand
  • g(x)dxg'(x)\,dx = The differential of the inner function, replaced by du
  • ff = The outer function applied to g(x)

How It Works

You look for a composite structure inside the integrand — an "inner function" g(x)g(x) whose derivative g(x)g'(x) also appears (possibly up to a constant factor). Introduce a new variable u=g(x)u = g(x), compute du=g(x)dxdu = g'(x)\,dx, and rewrite the entire integral in terms of uu. After integrating with respect to uu, substitute back to express the result in terms of xx. For definite integrals, you can either convert the limits of integration to uu-values or substitute back and use the original xx-limits.

Worked Example

Problem: Evaluate 2xcos(x2)dx\int 2x\cos(x^2)\,dx.
Identify the inner function: The argument of cosine is x2x^2, and its derivative 2x2x appears as a factor. Set u=x2u = x^2.
u=x2u = x^2
Compute du: Differentiate both sides to find the relationship between dudu and dxdx.
du=2xdxdu = 2x\,dx
Rewrite the integral in terms of u: Replace x2x^2 with uu and 2xdx2x\,dx with dudu.
2xcos(x2)dx=cos(u)du\int 2x\cos(x^2)\,dx = \int \cos(u)\,du
Integrate and substitute back: Integrate cos(u)\cos(u) and then replace uu with x2x^2.
cos(u)du=sin(u)+C=sin(x2)+C\int \cos(u)\,du = \sin(u) + C = \sin(x^2) + C
Answer: sin(x2)+C\sin(x^2) + C

Another Example

Problem: Evaluate 023x2(x3+1)4dx\displaystyle\int_0^2 3x^2(x^3 + 1)^4\,dx.
Choose u and find du: Set u=x3+1u = x^3 + 1, so du=3x2dxdu = 3x^2\,dx. The factor 3x2dx3x^2\,dx in the integrand matches dudu exactly.
u=x3+1,du=3x2dxu = x^3 + 1,\quad du = 3x^2\,dx
Convert the limits: When x=0x = 0, u=03+1=1u = 0^3 + 1 = 1. When x=2x = 2, u=23+1=9u = 2^3 + 1 = 9.
x=0u=1,x=2u=9x=0 \Rightarrow u=1,\quad x=2 \Rightarrow u=9
Rewrite and integrate: The integral becomes a simple power rule problem in uu.
19u4du=[u55]19=955155=5904915=590485\int_1^9 u^4\,du = \left[\frac{u^5}{5}\right]_1^9 = \frac{9^5}{5} - \frac{1^5}{5} = \frac{59049 - 1}{5} = \frac{59048}{5}
Answer: 590485\dfrac{59048}{5}

Why It Matters

Substitution is the first integration technique taught in Calculus I and II, and it appears in the vast majority of integral problems on AP Calculus and university exams. Physicists and engineers rely on it constantly — for example, when changing a position-based integral into a time-based one in kinematics. Mastering substitution also builds the intuition needed for more advanced methods like integration by parts and trigonometric substitution.

Common Mistakes

Mistake: Forgetting to convert dxdx to dudu, leaving a mix of uu and dxdx in the integral.
Correction: After choosing uu, always solve du=g(x)dxdu = g'(x)\,dx for dxdx (or match the entire g(x)dxg'(x)\,dx with dudu) and replace every occurrence of xx before integrating.
Mistake: Using the original xx-limits after substituting to uu in a definite integral.
Correction: Either convert the limits by plugging each xx-value into u=g(x)u = g(x), or substitute back to xx after integrating and then apply the original limits. Mixing the two produces wrong answers.