Integration by substitution

Some integrals refuse to match any standard form on sight, yet hide a simple structure underneath: an "inner function" tangled with its own derivative. Integration by substitution is the technique that unmasks this structure by swapping the variable, collapsing a messy integral in xx into a plain one in a new variable tt. It is the first of the three integration techniques in the CBSE Class 12 Integrals chapter (the others being partial fractions and integration by parts), and it is nothing more than the chain rule for differentiation, read backwards. Spotting the right substitution is a skill built through pattern recognition — look for a bracket, root, exponent or angle whose derivative is quietly sitting elsewhere in the integrand. Once found, the rest is bookkeeping: replace, integrate, and substitute back.

The core insight

If an integrand can be written as f(g(x)) g′(x)f(g(x))\,g'(x), the substitution t=g(x)t = g(x) turns it into the simpler integral ∫f(t) dt\int f(t)\,dt, which is then converted back to xx.

The core idea

Substitution is a change of variable, not a new integration rule — it is a way of packaging the chain rule so an unfamiliar integral becomes a familiar one. The formal statement:

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

where: g(x)g(x) is the "inner function," t=g(x)t = g(x) is the new variable, g′(x)=dtdxg'(x) = \dfrac{dt}{dx} is its derivative (which must be present, up to a constant multiple, elsewhere in the integrand), and F(t)F(t) is any antiderivative of f(t)f(t).

Recognizing when to substitute. Scan the integrand for an inner expression that looks awkward standing alone — a bracket raised to a power, a square root, an exponent, an angle multiplied by a constant — and check whether its derivative (up to a constant factor) is sitting nearby. If it is, that expression is almost always the right choice for tt. Four patterns recur constantly:

  • ∫(ax+b)n dx\int (ax+b)^n\,dx: put t=ax+bt = ax + b.
  • ∫f′(x)f(x) dx\int \dfrac{f'(x)}{f(x)}\,dx: put t=f(x)t = f(x); this always gives ln⁡∣f(x)∣+C\ln|f(x)| + C.
  • ∫f′(x) ef(x) dx\int f'(x)\,e^{f(x)}\,dx: put t=f(x)t = f(x); gives ef(x)+Ce^{f(x)} + C.
  • ∫[f(x)]n f′(x) dx\int [f(x)]^n\,f'(x)\,dx (including ∫f′(x)2f(x) dx\int \dfrac{f'(x)}{2\sqrt{f(x)}}\,dx): put t=f(x)t = f(x).

A second family is trigonometric substitution, where xx itself is replaced (e.g. x=asin⁡θx = a\sin\theta) to tame expressions like a2−x2\sqrt{a^2 - x^2}, turning them into acos⁡θa\cos\theta. This is used heavily for the standard square-root forms later in the chapter, but the mechanics — replace, integrate, substitute back — stay identical.

Figure
A flow diagram showing an integral in x becoming a simpler integral in t after substitution and then converting back to x
Substitution: convert to t, integrate, convert back integral in x f(g(x)) g'(x) dx t = g(x) integral in t f(t) dt = F(t) + C back to x answer in x F(g(x)) + C The middle step works only if the leftover integrand is entirely in t, with no stray x remaining.

Two habits matter throughout: always substitute back to the original variable before writing a final answer, and always check for a missing constant factor between g′(x)g'(x) and the differential term actually present in the integrand.

Derivation AWhy the substitution rule works

The goal is to justify, from nothing but the chain rule for differentiation and the definition of an antiderivative, why replacing t=g(x)t = g(x) inside ∫f(g(x)) g′(x) dx\int f(g(x))\,g'(x)\,dx and integrating with respect to tt instead of xx produces the correct antiderivative once tt is converted back to g(x)g(x) — this is what licenses every substitution problem in the chapter.

Step 1. Start from an antiderivative in tt. Suppose F(t)F(t) is any function with ddtF(t)=f(t)\dfrac{d}{dt}F(t) = f(t), so that ∫f(t) dt=F(t)+C\int f(t)\,dt = F(t) + C by the very definition of an indefinite integral.

Step 2. Build the composite function F(g(x))F(g(x)) and differentiate it with respect to xx using the chain rule. ddx[F(g(x))]=F′(g(x))⋅g′(x)\dfrac{d}{dx}\big[F(g(x))\big] = F'(g(x))\cdot g'(x). Since F′(t)=f(t)F'(t) = f(t), this becomes ddx[F(g(x))]=f(g(x))⋅g′(x)\dfrac{d}{dx}\big[F(g(x))\big] = f(g(x))\cdot g'(x).

Step 3. Read the result as an integration statement. The last line says the derivative of F(g(x))F(g(x)) is exactly the integrand f(g(x)) g′(x)f(g(x))\,g'(x). By the definition of an antiderivative, that means ∫f(g(x)) g′(x) dx=F(g(x))+C\int f(g(x))\,g'(x)\,dx = F(g(x)) + C — precisely the substitution formula, with no extra assumption beyond the chain rule.

Step 4. Connect this to the mechanical procedure. Writing t=g(x)t = g(x) gives dtdx=g′(x)\dfrac{dt}{dx} = g'(x), so treating dt=g′(x) dxdt = g'(x)\,dx as a formal replacement and computing ∫f(t) dt=F(t)+C\int f(t)\,dt = F(t) + C produces the same F(t)+CF(t) + C as Step 1; substituting t=g(x)t = g(x) back recovers exactly F(g(x))+CF(g(x)) + C from Step 3. The "replace and substitute back" recipe is therefore not a trick — it is shorthand for the chain rule run in reverse.

Worked example

Evaluate ∫2x (x2+3)5 dx\displaystyle\int 2x\,(x^2+3)^5\,dx.

Step 1. Identify the inner function. Here g(x)=x2+3g(x) = x^2 + 3, and its derivative g′(x)=2xg'(x) = 2x is exactly the other factor present in the integrand — a strong signal to substitute with t=g(x)t = g(x).

Step 2. Substitute. Let t=x2+3t = x^2 + 3, so dtdx=2x\dfrac{dt}{dx} = 2x, giving dt=2x dxdt = 2x\,dx. The integral becomes purely in tt:

∫2x (x2+3)5 dx=∫t5 dt\int 2x\,(x^2+3)^5\,dx = \int t^5\,dt

Step 3. Integrate in tt and substitute back. ∫t5 dt=t66+C\displaystyle\int t^5\,dt = \dfrac{t^6}{6} + C, and replacing t=x2+3t = x^2+3 gives

∫2x (x2+3)5 dx=(x2+3)66+C\int 2x\,(x^2+3)^5\,dx = \frac{(x^2+3)^6}{6} + C

Step 4. Verify by differentiating: ddx[(x2+3)66]=6(x2+3)5⋅2x6=2x(x2+3)5\dfrac{d}{dx}\left[\dfrac{(x^2+3)^6}{6}\right] = \dfrac{6(x^2+3)^5 \cdot 2x}{6} = 2x(x^2+3)^5, which matches the original integrand exactly.

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

Competitive stretch

Evaluate ∫tan⁡x dx\displaystyle\int \tan x\,dx.

Step 1. Rewrite tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x} and notice the numerator sin⁡x\sin x is (up to sign) the derivative of the denominator, since ddx(cos⁡x)=−sin⁡x\dfrac{d}{dx}(\cos x) = -\sin x.

Step 2. Substitute t=cos⁡xt = \cos x, so dt=−sin⁡x dxdt = -\sin x\,dx, i.e. sin⁡x dx=−dt\sin x\,dx = -dt. This turns the integral into ∫−dtt=−ln⁡∣t∣+C\displaystyle\int \dfrac{-dt}{t} = -\ln|t| + C.

Step 3. Substitute back t=cos⁡xt = \cos x and simplify using −ln⁡∣cos⁡x∣=ln⁡∣1cos⁡x∣-\ln|\cos x| = \ln\left|\dfrac{1}{\cos x}\right|.

Final answer: ∫tan⁡x dx=−ln⁡∣cos⁡x∣+C=ln⁡∣sec⁡x∣+C\displaystyle\int \tan x\,dx = -\ln|\cos x| + C = \ln|\sec x| + C, one of the standard integrals worth memorizing directly, though deriving it once shows substitution recognizing the ∫f′(x)f(x)dx\int \frac{f'(x)}{f(x)}dx pattern in disguise.

Common traps

  • Substituting t=g(x)t = g(x) but forgetting to also replace dxdx correctly — every part of the original integral, including the differential, must be rewritten in terms of tt.
  • Leaving a stray xx behind after substitution — a valid substitution must leave the integral entirely in terms of tt (or a constant that can be pulled outside the integral sign).
  • Missing a constant factor: treating ∫x(x2+3)5 dx\int x(x^2+3)^5\,dx (missing the coefficient 22) as if it matched the worked example directly. Since dt=2x dxdt = 2x\,dx, here x dx=12dtx\,dx = \tfrac12 dt, so a compensating factor of 12\tfrac12 is required.
  • Forgetting to substitute back to xx at the end, leaving the final answer stranded in terms of tt — a definite/indefinite integral in xx must be answered in xx.

Ask the tutor: not sure which substitution to try for a tricky integrand — describe it to the AI tutor and ask for a hint on spotting the derivative pairing.

How do I know which part of the integrand to call t?

Look for an inner expression that would be awkward to integrate on its own — a bracket raised to a power, a square root, an exponent, or an angle multiplied by a constant — and check whether its derivative, possibly with a missing constant multiple, appears elsewhere in the integrand. If both pieces are present, that inner expression is almost always the right choice for tt. If no such pairing exists no matter what you try, substitution alone will not work and the problem likely needs a trigonometric identity, partial fractions, or integration by parts instead.

Why do I need to substitute back to x at the end?

Because the original question asked for the integral of a function of xx, and ∫f(t) dt\int f(t)\,dt is only an intermediate result written in a variable you invented for convenience. Leaving the answer as F(t)+CF(t)+C is mathematically incomplete and will lose marks, since tt has no meaning outside your working. Always replace tt with g(x)g(x) in the final line so the answer is expressed in the same variable the question was posed in.

What if the derivative of my chosen inner function is off by a constant factor?

That is completely fine and very common — it does not mean the substitution is wrong. If t=g(x)t = g(x) gives dt=k g′(x) dxdt = k\,g'(x)\,dx for some constant kk, just solve for the piece you actually need, such as g′(x) dx=1k dtg'(x)\,dx = \dfrac{1}{k}\,dt, and carry that constant through the integral. Only worry when the leftover expression after substitution still contains xx that cannot be written in terms of tt at all — that signals a genuinely wrong choice of tt, not just a missing constant.

Before this

Where this leads