Integration by Substitution: Steps and Examples

#Calculus
TL;DR
Integration by Substitution is the reverse of the chain rule: when an integral has the shape ∫f(g(x)),g′(x),dx\int f(g(x)),g'(x),dx, you set u=g(x)u = g(x) so that du=g′(x),dxdu = g'(x),dx, turning the whole thing into the simpler ∫f(u),du\int f(u),du. Integrate in uu, substitute xx back, and add +C+C. For a definite integral, change the limits to uu as well, then evaluate.
BT
Bhanzu TeamLast updated on September 22, 202610 min read

What Is Integration by Substitution?

Integration by Substitution is a technique for evaluating integrals by changing the variable of integration from xx to a new variable u=g(x)u = g(x). It is the integration counterpart of the chain rule, which is why it is often called u-substitution or the reverse chain rule. It is the first method most students reach for after the basic power, exponential, and trigonometric integration rules run out.

The method applies whenever the integrand can be written as a composite function multiplied by the derivative of its inner function:

∫f(g(x)),g′(x),dx;=;∫f(u),du,where u=g(x), du=g′(x),dx.\int f\big(g(x)\big),g'(x),dx ;=; \int f(u),du, \qquad \text{where } u = g(x),\ du = g'(x),dx.

The rule works because g′(x),dxg'(x),dx is exactly the piece that dudu replaces. Once the integral is written purely in uu, you integrate as usual and then swap xx back in at the end. Every indefinite answer carries a constant of integration +C+C, because differentiation destroys constants and substitution never recovers them.

How Do You Integrate By Substitution Step By Step?

The whole method is four short moves. The only judgement call is the first one: choosing uu.

  1. Choose u=g(x)u = g(x) to be an inside function whose derivative g′(x)g'(x) also appears in the integrand (up to a constant factor).

  2. Differentiate to get du=g′(x),dxdu = g'(x),dx, and solve for dxdx if needed.

  3. Substitute so that the integral is written entirely in uu, with no stray xx left anywhere.

  4. Integrate in uu, then replace uu with g(x)g(x) and add +C+C.

The choosing step is where readers stall. A reliable signal: scan the integrand for a chunk whose derivative is sitting right next to it. In ∫2x(x2+1)5,dx\int 2x(x^2+1)^5,dx, the inside function x2+1x^2+1 has derivative 2x2x, and that 2x2x is already in the integrand, so u=x2+1u = x^2+1 is the natural choice.

Geometrically, substitution is a change of scale on the horizontal axis. The factor g′(x)g'(x) measures how fast the uu-axis stretches relative to the xx-axis, and du=g′(x),dxdu = g'(x),dx absorbs that stretch so the area under the curve is preserved. You are not changing the region, only the ruler you measure it with.

What Are Some Worked Examples Of Integration by Substitution?

Each example below is differentiated back to the original integrand, because the fastest way to catch a substitution slip is to check the answer.

Example 1: Evaluate ∫2x(x2+1)5,dx\int 2x(x^2+1)^5,dx.

Let u=x2+1u = x^2 + 1, so du=2x,dxdu = 2x,dx. The integral becomes:

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

Check by differentiating: ddx[(x2+1)66]=6(x2+1)5⋅2x6=2x(x2+1)5\dfrac{d}{dx}\left[\dfrac{(x^2+1)^6}{6}\right] = \dfrac{6(x^2+1)^5 \cdot 2x}{6} = 2x(x^2+1)^5, the original integrand.

Final answer: (x2+1)66+C\dfrac{(x^2+1)^6}{6} + C.

Example 2: Evaluate ∫ln⁡xx,dx\int \dfrac{\ln x}{x},dx.

Let u=ln⁡xu = \ln x, so du=1x,dxdu = \dfrac{1}{x},dx. The 1x,dx\dfrac{1}{x},dx in the integral is exactly dudu:

∫ln⁡xx,dx=∫u,du=u22+C=(ln⁡x)22+C.\int \frac{\ln x}{x},dx = \int u,du = \frac{u^2}{2} + C = \frac{(\ln x)^2}{2} + C.

Check: ddx[(ln⁡x)22]=2ln⁡x2⋅1x=ln⁡xx\dfrac{d}{dx}\left[\dfrac{(\ln x)^2}{2}\right] = \dfrac{2\ln x}{2}\cdot\dfrac{1}{x} = \dfrac{\ln x}{x}. This pattern relies on the derivative of the logarithmic function ln⁡x\ln x.

Final answer: (ln⁡x)22+C\dfrac{(\ln x)^2}{2} + C.

Example 3: Evaluate ∫x,ex2,dx\int x,e^{x^2},dx.

Let u=x2u = x^2, so du=2x,dxdu = 2x,dx, which gives x,dx=12,dux,dx = \dfrac{1}{2},du:

∫x,ex2,dx=∫eu⋅12,du=12eu+C=12ex2+C.\int x,e^{x^2},dx = \int e^{u}\cdot\frac{1}{2},du = \frac{1}{2}e^{u} + C = \frac{1}{2}e^{x^2} + C.

Check: ddx[12ex2]=12ex2⋅2x=x,ex2\dfrac{d}{dx}\left[\dfrac{1}{2}e^{x^2}\right] = \dfrac{1}{2}e^{x^2}\cdot 2x = x,e^{x^2}.

Final answer: 12ex2+C\dfrac{1}{2}e^{x^2} + C.

Example 4: Evaluate ∫tan⁡x,dx\int \tan x,dx.

Rewrite tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x} and let u=cos⁡xu = \cos x, so du=−sin⁡x,dxdu = -\sin x,dx, which gives sin⁡x,dx=−,du\sin x,dx = -,du:

∫tan⁡x,dx=∫sin⁡xcos⁡x,dx=∫−,duu=−ln⁡∣u∣+C=−ln⁡∣cos⁡x∣+C.\int \tan x,dx = \int \frac{\sin x}{\cos x},dx = \int \frac{-,du}{u} = -\ln|u| + C = -\ln|\cos x| + C.

Check: ddx[−ln⁡∣cos⁡x∣]=−1cos⁡x⋅(−sin⁡x)=sin⁡xcos⁡x=tan⁡x\dfrac{d}{dx}\left[-\ln|\cos x|\right] = -\dfrac{1}{\cos x}\cdot(-\sin x) = \dfrac{\sin x}{\cos x} = \tan x. This is a standard result you will meet again in the differentiation of trigonometric functions.

Final answer: −ln⁡∣cos⁡x∣+C-\ln|\cos x| + C (equivalently ln⁡∣sec⁡x∣+C\ln|\sec x| + C).

Which Substitution Patterns Should You Recognise?

Most first-year substitutions fall into a handful of shapes. Learning to spot the pattern is faster than re-deriving each time.

Table: Standard integrands that Integration by Substitution solves, with the substitution to use.

Integrand pattern

Substitution

Result

∫(g(x))n,g′(x),dx, n≠−1\int \big(g(x)\big)^{n},g'(x),dx,\ n \neq -1

u=g(x)u = g(x)

(g(x))n+1n+1+C\dfrac{\big(g(x)\big)^{n+1}}{n+1} + C

∫g′(x)g(x),dx\int \dfrac{g'(x)}{g(x)},dx

u=g(x)u = g(x)

ln⁡∣g(x)∣+C\ln\lvert g(x)\rvert + C

∫g′(x),eg(x),dx\int g'(x),e^{g(x)},dx

u=g(x)u = g(x)

eg(x)+Ce^{g(x)} + C

∫g′(x)cos⁡(g(x)),dx\int g'(x)\cos\big(g(x)\big),dx

u=g(x)u = g(x)

sin⁡(g(x))+C\sin\big(g(x)\big) + C

∫g′(x)sin⁡(g(x)),dx\int g'(x)\sin\big(g(x)\big),dx

u=g(x)u = g(x)

−cos⁡(g(x))+C-\cos\big(g(x)\big) + C

∫tan⁡x,dx\int \tan x,dx

u=cos⁡xu = \cos x

−ln⁡∣cos⁡x∣+C-\ln\lvert\cos x\rvert + C

Every row is the same idea: the derivative of the inside function is present, so dudu mops it up. The first row is the reverse power rule; the second is the reason ∫1x,dx=ln⁡∣x∣+C\int \frac{1}{x},dx = \ln|x| + C generalises so widely.

How Do You Use Integration by Substitution For A Definite Integral?

A definite integral has limits, and those limits are xx-values. When you switch to uu, the limits must switch too. If u=g(x)u = g(x), then the bounds become u=g(a)u = g(a) at the bottom and u=g(b)u = g(b) at the top:

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

Example 5: Evaluate ∫012x(x2+1)5,dx\int_{0}^{1} 2x(x^2+1)^5,dx.

Use u=x2+1u = x^2 + 1, du=2x,dxdu = 2x,dx, the same substitution as Example 1. Now convert the limits:

  • when x=0x = 0, u=02+1=1u = 0^2 + 1 = 1;

  • when x=1x = 1, u=12+1=2u = 1^2 + 1 = 2.

∫012x(x2+1)5,dx=∫12u5,du=[u66]12=26−166=64−16=636=10.5.\int_{0}^{1} 2x(x^2+1)^5,dx = \int_{1}^{2} u^5,du = \left[\frac{u^6}{6}\right]_{1}^{2} = \frac{2^6 - 1^6}{6} = \frac{64 - 1}{6} = \frac{63}{6} = 10.5.

Once the limits are in uu, you never go back to xx: you evaluate in uu directly. The alternative is to find the antiderivative, return to xx, and use the original xx-limits 00 and 11. Both give 10.510.5. What you must not do is change the limits to uu and then also back-substitute to xx, which evaluates at the wrong numbers.

Geometrically, the area under 2x(x2+1)52x(x^2+1)^5 from x=0x=0 to x=1x=1 equals the area under u5u^5 from u=1u=1 to u=2u=2. The substitution moved the interval, not the area.

Why Does Integration By Substitution Work?

Substitution is not a trick pulled from nowhere. It is the chain rule for derivatives read from right to left.

  • It undoes the chain rule. The chain rule says ddx[F(g(x))]=F′(g(x)),g′(x)\dfrac{d}{dx}\big[F(g(x))\big] = F'(g(x)),g'(x). If we call F′=fF' = f, then integrating both sides gives ∫f(g(x)),g′(x),dx=F(g(x))+C\int f(g(x)),g'(x),dx = F(g(x)) + C. Substitution is just this identity, organised so you can compute FF in the easy variable uu.

  • The dudu bookkeeping is exact. Writing du=g′(x),dxdu = g'(x),dx is not sloppy shorthand; it is the statement that a thin slice dxdx on the xx-axis maps to a slice dudu on the uu-axis stretched by the factor g′(x)g'(x). Multiplying by g′(x)g'(x) keeps every slice, and therefore the whole area, unchanged.

  • The constant factor is free. If the derivative you need is present only up to a number, as in ∫xex2,dx\int x e^{x^2},dx where du=2x,dxdu = 2x,dx but only x,dxx,dx appears, you rescale with a constant. Constants pass straight through an integral, so this is always allowed.

That is the deep reason the method feels so natural once it clicks: differentiation and integration are inverse operations, and substitution is the chain-rule half of that inverse relationship made practical.

Who Invented Integration By Substitution?

The method grew out of the notation that made calculus usable, rather than from a single theorem.

Two later mathematicians turned the convenient notation into secure mathematics:

  • Leonhard Euler (1707–1783, Switzerland) used change of variables systematically across his integral calculus, treating substitution as a standard tool rather than a special case.

  • Augustin-Louis Cauchy (1789–1857, France) gave the definite integral its rigorous limit-of-sums definition, which is what justifies changing the limits when you change the variable.

Where Is Integration By Substitution Used In The Real World?

Any time a quantity accumulates and the rate depends on a changing inner variable, substitution tends to appear.

  • Kinematics and physics: finding distance from a velocity that depends on a changing quantity, or work done by a force that varies along a path, often needs a substitution to unwind the composite.

  • Pharmacokinetics: the total drug exposure in the body is the integral of a concentration that decays exponentially, exactly the ∫eg(t)g′(t),dt\int e^{g(t)}g'(t),dt shape substitution handles.

  • Probability and statistics: standardising a normal distribution, replacing xx with z=x−μσz = \frac{x-\mu}{\sigma}, is a substitution that turns a messy bell curve into the standard one whose areas are tabulated.

  • Signal processing and engineering: changing variables inside an integral is the routine first step when rescaling time or frequency in a transform.

  • Computer graphics and geometry: integrals for arc length, surface area, and volume are frequently set up as a composite and then reduced by substitution.

One method, learned on ∫2x(x2+1)5,dx\int 2x(x^2+1)^5,dx, is the same one that measures drug exposure and standardises a bell curve. Mathematics reuses its good ideas everywhere the same shape appears.

What Are The Most Common Mistakes With Integration by Substitution?

These three errors account for most lost marks on substitution problems, and they match the exact questions readers ask on math forums and in class.

Forgetting to convert dxdx into dudu.

Where it slips in:

A student picks u=g(x)u = g(x), rewrites the composite part in uu, but leaves the dxdx and a stray xx untouched, then integrates a mix of uu and xx.

Don't do this:

Do not integrate until every xx and the dxdx are gone. An integral with both uu and xx in it cannot be evaluated.

The correct way:

Compute du=g′(x),dxdu = g'(x),dx and use it to replace dxdx (and any leftover xx) completely. If a constant factor is missing, solve dudu for dxdx and carry the constant, as in x,dx=12,dux,dx = \tfrac{1}{2},du.

Not changing the limits on a definite integral (or changing them and back-substituting).

Where it slips in:

On ∫ab\int_{a}^{b}, a student keeps the original xx-limits while integrating in uu, or converts the limits to uu and then also substitutes xx back before plugging the bounds in, double-counting the change.

Don't do this:

Do not evaluate uu-limits on an xx-antiderivative, and do not apply the change of variable twice.

The correct way:

Pick one lane. Either change the limits to u=g(a)u = g(a) and u=g(b)u = g(b) and evaluate entirely in uu, or keep the answer in xx and use the original xx-limits. Never both.

Choosing a uu whose derivative is not present.

Where it slips in:

A student sets uu to the most complicated-looking piece, but g′(x)g'(x) is nowhere in the integrand, so the dxdx cannot be replaced and the integral does not simplify.

Don't do this:

Do not choose uu by appearance alone. If g′(x)g'(x) is not available (even up to a constant), substitution will stall.

The correct way:

Choose u=g(x)u = g(x) so that g′(x),dxg'(x),dx is already sitting in the integrand. If it is not, substitution may be the wrong tool, and integration by parts or an algebraic rearrangement may be needed instead.

Practice Problems On Integration by Substitution

Work each one, then differentiate your answer back to check. Answers follow each line.

  1. Find ∫3x2(x3+2)4,dx\int 3x^2(x^3+2)^4,dx.
    (Answer: u=x3+2u = x^3+2, so (x3+2)55+C\dfrac{(x^3+2)^5}{5} + C.)

  2. Find ∫2xx2+1,dx\int \dfrac{2x}{x^2+1},dx.
    (Answer: u=x2+1u = x^2+1, so ln⁡(x2+1)+C\ln(x^2+1) + C.)

  3. Find ∫cos⁡x,esin⁡x,dx\int \cos x,e^{\sin x},dx.
    (Answer: u=sin⁡xu = \sin x, so esin⁡x+Ce^{\sin x} + C.)

  4. Find ∫(2x+1)(x2+x)3,dx\int (2x+1)(x^2+x)^3,dx.
    (Answer: u=x2+xu = x^2+x, so (x2+x)44+C\dfrac{(x^2+x)^4}{4} + C.)

  5. Evaluate ∫02x,ex2,dx\int_{0}^{2} x,e^{x^2},dx.
    (Answer: u=x2u = x^2, limits 00 to 44, so 12(e4−1)≈26.7991\tfrac{1}{2}(e^4 - 1) \approx 26.7991.)

  6. Find ∫(ln⁡x)2x,dx\int \dfrac{(\ln x)^2}{x},dx.
    (Answer: u=ln⁡xu = \ln x, so (ln⁡x)33+C\dfrac{(\ln x)^3}{3} + C.)

Where Should You Go Next After Integration by Substitution?

Substitution is one of two core integration techniques; the natural next steps build directly on it.

  1. Integration of uv (by parts). The partner technique for products that substitution cannot reduce, such as ∫xex,dx\int x e^{x},dx.

  2. The derivative formula sheet. Substitution is the chain rule reversed, so fluency with derivatives makes choosing uu automatic.

  3. Calculus, the core ideas. Step back to see how differentiation and integration fit together as inverse operations.

If your child is moving into integral calculus, a live Bhanzu trainer teaches Integration by Substitution starting from the chain rule it reverses, in the Bhanzu math tutoring program. It is the same method that recurs in India's NCERT Class 12 Integrals chapter and under the US Common Core high-school standards, feeding straight into AP Calculus AB.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is Integration by Substitution in simple terms?
It is a way to solve an integral by renaming part of it. You set a new variable uu equal to an inside function g(x)g(x), replace dxdx with du=g′(x),dxdu = g'(x),dx, integrate in uu, and switch back. It undoes the chain rule.
How do you choose u in Integration by Substitution?
Look for an inside function whose derivative is also present in the integrand, up to a constant. In ∫2x(x2+1)5,dx\int 2x(x^2+1)^5,dx, the inside function x2+1x^2+1 has derivative 2x2x, which is right there, so u=x2+1u = x^2+1.
Do you have to change the limits for a definite integral?
Only if you evaluate in uu. Change the limits to u=g(a)u = g(a) and u=g(b)u = g(b) and finish in uu, or keep the antiderivative in xx and use the original xx-limits. Doing both at once is the classic error.
Why do I always add plus C?
An indefinite integral has infinitely many antiderivatives that differ by a constant, because differentiating a constant gives zero. The +C+C records that whole family. Definite integrals do not need it, since the constant cancels when you subtract.
What if the derivative of u is off by a constant?
That is fine. Constants factor out of an integral, so if du=2x,dxdu = 2x,dx but only x,dxx,dx appears, write x,dx=12,dux,dx = \tfrac{1}{2},du and carry the 12\tfrac{1}{2}. A missing constant never blocks the substitution.
When does substitution not work?
When no inside function has its derivative present in the integrand. Some integrals, such as ∫e−x2,dx\int e^{-x^2},dx, have no elementary antiderivative at all, and no substitution produces one; those need series or numerical methods instead.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →