NDA Maths · Indefinite Integration

Integration by Substitution

Substitution is the reverse chain rule: rename an inner function as u so that its derivative is already sitting in the integrand, collapsing the integral to a standard form in u.

Why this matters

This is the single highest-yield method in the chapter — 17 PYQs, more than any other technique. It splits into a few recognisable shapes: the f′(x)/f(x) → ln pattern, trig-identity reductions, rationalising a surd, and spotting a hidden derivative (xˣ, aˣ). Master the reflex of asking 'is the derivative of some inner part already here?' and most of these become one-liners.

Concept 1 of 6

Why Substitution Works — the Reverse Chain Rule

Intuition

The chain rule says the derivative of a composite carries an extra factor — the derivative of the inside. Substitution undoes exactly that: if the inside's derivative is already in the integrand, renaming the inside as u sweeps it all into a clean integral in u.

Definition

If you set u=g(x)u = g(x), then du=g(x)dxdu = g'(x)\,dx. The method:

f(g(x))g(x)dx=f(u)du.\int f\big(g(x)\big)\,g'(x)\,dx = \int f(u)\,du.
Procedure: (1) choose uu = the inner function; (2) compute du=g(x)dxdu = g'(x)\,dx; (3) replace every xx-piece so ONLY uu remains; (4) integrate in uu; (5) substitute xx back. If a stray xx survives step 3, the choice of uu was wrong.

Substitution rule

f(g(x))g(x)dx=f(u)du,u=g(x)\int f\big(g(x)\big)\,g'(x)\,dx = \int f(u)\,du,\quad u=g(x)

Worked example

Evaluate 2xex2dx\displaystyle\int 2x\,e^{x^2}\,dx.
  1. Inner function: u=x2u = x^2, so du=2xdxdu = 2x\,dx — and 2xdx2x\,dx is exactly present.
  2. Rewrite: eudu\int e^{u}\,du.
  3. Integrate and back-substitute u=x2u = x^2.
Answer:ex2+Ce^{x^2} + C

Every x must disappear before you integrate in u

After substituting, the integral must be purely in uu and dudu. A leftover xx means uu was chosen badly or a constant factor was mishandled — fix it before integrating.

Concept 2 of 6

Algebraic and Composite Substitutions

Intuition

When a power of some expression is multiplied by (a constant times) that expression's derivative, substitute the inner expression. This also covers the trick of integrating with respect to a new variable like x-squared.

Definition

Spot a function raised to a power times its derivative — e.g. (sinx)3cosxdx\int (\sin x)^3\cos x\,dx: set u=sinxu=\sin x, du=cosxdxdu=\cos x\,dx, giving u3du\int u^3\,du. The same idea reframes the variable: 'integrate ff with respect to x2x^2' means fd(x2)\int f\,d(x^2) — treat t=x2t = x^2 as the variable and use tndt\int t^n\,dt directly.

Power-times-derivative shape

(g(x))ng(x)dx=(g(x))n+1n+1+C\int \big(g(x)\big)^n\,g'(x)\,dx = \dfrac{\big(g(x)\big)^{n+1}}{n+1} + C

Worked example

Evaluate cos4xsinxdx\displaystyle\int \cos^4 x\,\sin x\,dx.
  1. Let u=cosxu = \cos x, so du=sinxdxdu = -\sin x\,dx, i.e. sinxdx=du\sin x\,dx = -du.
  2. Rewrite: u4(du)=u4du=u55\int u^4(-du) = -\int u^4\,du = -\dfrac{u^5}{5}.
  3. Back-substitute u=cosxu=\cos x.
Answer:cos5x5+C-\dfrac{\cos^5 x}{5} + C

From the bank · past-year question

Example 2Indefinite IntegrationEASY
What is sin3xcosxdx\int\sin^3 x\cos x\,dx equal to?

[Q83 · Sep · 2018]

Carry the sign from du

With u=cosxu=\cos x, du=sinxdxdu=-\sin x\,dx — the minus sign is part of the substitution. Dropping it flips the answer's sign, and the wrong-sign option is always offered.

Concept 3 of 6

The f-prime-over-f to Log Pattern

Intuition

When the numerator is exactly the derivative of the denominator, the integral is the natural log of the denominator. Train your eye to test the top against the bottom's derivative before doing anything else.

Definition

The single most-tested substitution shape:

f(x)f(x)dx=lnf(x)+C.\int \dfrac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C.
It is just u=f(x)u=f(x), du=f(x)dxdu=f'(x)\,dx, giving duu\int \tfrac{du}{u}. The disguise is usually in the numerator: differentiate the denominator mentally and check whether the numerator matches (up to a constant you can pull out).

Log pattern

f(x)f(x)dx=lnf(x)+C\int \dfrac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C

Worked example

Evaluate 2x+1x2+x+5dx\displaystyle\int \dfrac{2x+1}{x^2+x+5}\,dx.
  1. Differentiate the denominator: ddx(x2+x+5)=2x+1\dfrac{d}{dx}(x^2+x+5) = 2x+1.
  2. That is exactly the numerator, so the integrand is ff\dfrac{f'}{f} with f=x2+x+5f = x^2+x+5.
  3. Apply the pattern.
Answer:lnx2+x+5+C\ln|x^2+x+5| + C

From the bank · past-year question

Example 3Indefinite IntegrationMODERATE
What is (xe1+ex1)dxxe+ex\int\dfrac{(x^{e-1}+e^{x-1})\,dx}{x^e+e^x} equal to?

[Q76 · Apr · 2017]

Adjust by a constant, never by a variable

If the numerator is kk times f(x)f'(x) for a constant kk, pull kk out. But if it differs by a FUNCTION of xx, the pattern does not apply — do not force it.

Concept 4 of 6

Trigonometric Substitutions and Identity Reductions

Intuition

A trig integrand that is not a standard form usually yields to one move: divide through by cos-squared to manufacture sec-squared (the derivative of tan), use a half-angle identity, or simplify a surd of a trig expression into a difference of sine and cosine.

Definition

Three recurring reductions:

  • **Divide by cos2x\cos^2 x:** for dxa2sin2x+b2cos2x\int \dfrac{dx}{a^2\sin^2 x + b^2\cos^2 x}, divide top and bottom by cos2x\cos^2 x to get sec2xdxa2tan2x+b2\int \dfrac{\sec^2 x\,dx}{a^2\tan^2 x + b^2}, then substitute t=tanxt=\tan x (dt=sec2xdxdt=\sec^2x\,dx) → an arctan form.
  • Half-angle: 1cosx=2sin2x21-\cos x = 2\sin^2\tfrac{x}{2} and 1+cosx=2cos2x21+\cos x = 2\cos^2\tfrac{x}{2} turn a fraction into a csc2\csc^2 or sec2\sec^2 you can integrate.
  • Surd identities: 1±sin2x=(sinx±cosx)21 \pm \sin 2x = (\sin x \pm \cos x)^2, so 1sin2x=sinxcosx\sqrt{1-\sin 2x} = |\sin x - \cos x| becomes integrable. The simplification secx+tanx\sec x + \tan x inside an inverse-tan also collapses to tan(π4+x2)\tan(\tfrac{\pi}{4}+\tfrac{x}{2}).

The divide-by-cos-squared move

dxa2sin2x+b2cos2x=sec2xdxa2tan2x+b2,  t=tanx\int \dfrac{dx}{a^2\sin^2 x + b^2\cos^2 x} = \int \dfrac{\sec^2 x\,dx}{a^2\tan^2 x + b^2},\ \ t=\tan x

Worked example

Evaluate dx1+3cos2x\displaystyle\int \dfrac{dx}{1+3\cos^2 x}.
  1. Divide top and bottom by cos2x\cos^2 x: sec2xdxsec2x+3\int \dfrac{\sec^2 x\,dx}{\sec^2 x + 3}, and sec2x=1+tan2x\sec^2 x = 1+\tan^2 x, so the denominator is tan2x+4\tan^2 x + 4.
  2. Substitute t=tanxt=\tan x, dt=sec2xdxdt=\sec^2 x\,dx: dtt2+4=dtt2+22\int \dfrac{dt}{t^2 + 4} = \int\dfrac{dt}{t^2+2^2}.
  3. Arctan form with k=2k=2, then t=tanxt=\tan x back.
Answer:12tan1 ⁣(tanx2)+C\dfrac{1}{2}\tan^{-1}\!\Big(\dfrac{\tan x}{2}\Big) + C

From the bank · past-year question

Example 4Indefinite IntegrationMODERATE
What is dxa2sin2x+b2cos2x\int\frac{dx}{a^2\sin^2x+b^2\cos^2x} equal to?

[Q97 · Sep · 2018]

A square root forces an absolute value

(sinxcosx)2=sinxcosx\sqrt{(\sin x - \cos x)^2} = |\sin x - \cos x|, and the sign depends on the given range of xx. On 0<x<π40<x<\tfrac{\pi}{4}, cosx>sinx\cos x > \sin x, so it equals cosxsinx\cos x - \sin x — read the interval before dropping the modulus.

Concept 5 of 6

Rationalising a Surd Denominator

Intuition

A difference of two square roots in the denominator clears the moment you multiply by its conjugate — the difference of squares wipes out the surds and leaves a simple sum of powers to integrate.

Definition

For dxx+ax+b\displaystyle\int \dfrac{dx}{\sqrt{x+a}-\sqrt{x+b}}, multiply numerator and denominator by the conjugate x+a+x+b\sqrt{x+a}+\sqrt{x+b}. The denominator becomes (x+a)(x+b)=ab(x+a)-(x+b) = a-b, a constant, leaving 1ab(x+a+x+b)dx\dfrac{1}{a-b}\int\big(\sqrt{x+a}+\sqrt{x+b}\big)\,dx — two power-rule integrals. Each (x+c)1/2dx=23(x+c)3/2\int (x+c)^{1/2}\,dx = \tfrac{2}{3}(x+c)^{3/2}.

Conjugate clears the surd

1x+ax+b=x+a+x+bab\dfrac{1}{\sqrt{x+a}-\sqrt{x+b}} = \dfrac{\sqrt{x+a}+\sqrt{x+b}}{a-b}

Worked example

Evaluate dxx+3x\displaystyle\int \dfrac{dx}{\sqrt{x+3}-\sqrt{x}}.
  1. Multiply by the conjugate: denominator =(x+3)x=3=(x+3)-x=3, so integrand =x+3+x3= \dfrac{\sqrt{x+3}+\sqrt{x}}{3}.
  2. Integrate term by term: (x+3)1/2dx=23(x+3)3/2\int (x+3)^{1/2}dx = \tfrac{2}{3}(x+3)^{3/2}, x1/2dx=23x3/2\int x^{1/2}dx = \tfrac{2}{3}x^{3/2}.
  3. Multiply by 13\tfrac{1}{3} and combine.
Answer:29(x+3)3/2+29x3/2+C\dfrac{2}{9}(x+3)^{3/2} + \dfrac{2}{9}x^{3/2} + C

From the bank · past-year question

Example 5Indefinite IntegrationMODERATE
Let dxx+1x1=α(x+1)3/2+β(x1)3/2+c\displaystyle\int\dfrac{dx}{\sqrt{x+1}-\sqrt{x-1}}=\alpha(x+1)^{3/2}+\beta(x-1)^{3/2}+c.
What is the value of α\alpha?

[Q95 · Apr · 2024]

Do not lose the 1 over (a minus b) factor

After conjugating, the constant denominator aba-b stays as a multiplier on the whole integral. Forgetting it scales every coefficient wrong — the classic error on x+1x1\sqrt{x+1}-\sqrt{x-1} (where ab=2a-b=2).

Concept 6 of 6

Spotting a Hidden Derivative

Intuition

The hardest substitutions hide the derivative of an unusual function inside the integrand — the derivative of x-to-the-x, or an exponential base whose derivative is itself times a constant. Recognise the derivative, name its parent as u, and the integral collapses.

Definition

Useful hidden derivatives:

  • ddxxx=xx(1+lnx)\dfrac{d}{dx}\,x^x = x^x(1+\ln x). So (xx)2(1+lnx)dx\int (x^x)^2(1+\ln x)\,dx: set u=xxu=x^x, du=xx(1+lnx)dxdu = x^x(1+\ln x)\,dx, giving udu=u22\int u\,du = \tfrac{u^2}{2}.
  • ddxax=axlna\dfrac{d}{dx}\,a^x = a^x\ln a. For dxax1\int \dfrac{dx}{a^x - 1} or dxax+ax\int \dfrac{dx}{a^x + a^{-x}}, multiply through by axa^x and set u=axu=a^x (du=axlnadxdu = a^x\ln a\,dx) to reach a rational or arctan form in uu.

The x-to-the-x derivative

ddxxx=xx(1+lnx)\dfrac{d}{dx}\,x^x = x^x(1+\ln x)

Worked example

Evaluate 4x4x+1dx\displaystyle\int \dfrac{4^x}{4^{x}+1}\,dx.
  1. Let u=4x+1u = 4^x + 1, so du=4xln4dxdu = 4^x\ln 4\,dx, i.e. 4xdx=duln44^x\,dx = \dfrac{du}{\ln 4}.
  2. Rewrite: 1ln4duu=1ln4lnu\dfrac{1}{\ln 4}\int \dfrac{du}{u} = \dfrac{1}{\ln 4}\ln|u|.
  3. Back-substitute u=4x+1u = 4^x+1 (always positive).
Answer:1ln4ln(4x+1)+C\dfrac{1}{\ln 4}\ln\big(4^x+1\big) + C

From the bank · past-year question

Example 6Indefinite IntegrationHARD
What is (xx)2(1+lnx)dx\int (x^x)^2(1+\ln x)\,dx equal to?

[Q74 · Sep · 2022]

x-to-the-x is neither a power nor an exponential

ddxxxxxx1\dfrac{d}{dx}x^x \neq x\cdot x^{x-1} (power rule) and xxlnx\neq x^x\ln x (exponential rule). Both the base and the exponent vary, so its derivative is xx(1+lnx)x^x(1+\ln x) — derived via logarithmic differentiation.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (6)

  • Why Substitution Works — the Reverse Chain Rule

    Substitution rule

    f(g(x))g(x)dx=f(u)du,u=g(x)\int f\big(g(x)\big)\,g'(x)\,dx = \int f(u)\,du,\quad u=g(x)
  • Algebraic and Composite Substitutions

    Power-times-derivative shape

    (g(x))ng(x)dx=(g(x))n+1n+1+C\int \big(g(x)\big)^n\,g'(x)\,dx = \dfrac{\big(g(x)\big)^{n+1}}{n+1} + C
  • The f-prime-over-f to Log Pattern

    Log pattern

    f(x)f(x)dx=lnf(x)+C\int \dfrac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C
  • Trigonometric Substitutions and Identity Reductions

    The divide-by-cos-squared move

    dxa2sin2x+b2cos2x=sec2xdxa2tan2x+b2,  t=tanx\int \dfrac{dx}{a^2\sin^2 x + b^2\cos^2 x} = \int \dfrac{\sec^2 x\,dx}{a^2\tan^2 x + b^2},\ \ t=\tan x
  • Rationalising a Surd Denominator

    Conjugate clears the surd

    1x+ax+b=x+a+x+bab\dfrac{1}{\sqrt{x+a}-\sqrt{x+b}} = \dfrac{\sqrt{x+a}+\sqrt{x+b}}{a-b}
  • Spotting a Hidden Derivative

    The x-to-the-x derivative

    ddxxx=xx(1+lnx)\dfrac{d}{dx}\,x^x = x^x(1+\ln x)

Watch out for (6)

Mastery check — 5 interleaved questions

Try each one before clicking. Questions are interleaved across the concepts above, not grouped — interleaving sharpens transfer.

Example 1Indefinite IntegrationMODERATE
What is the integral of f(x)=1+x2+x4f(x)=1+x^{2}+x^{4} with respect to x2x^{2}?

[Q81 · Sep · 2021]

Example 2Indefinite IntegrationMODERATE
What is dxx(1+lnx)n\displaystyle\int \dfrac{dx}{x(1 + \ln x)^{n}} equal to (n1)(n \neq 1) ?

[Q82 · Sep · 2019]

Example 3Indefinite IntegrationMODERATE
What is tan1(secx+tanx)dx\displaystyle\int \tan^{-1}(\sec x + \tan x)\,dx equal to?

[Q67 · Sep · 2017]

Example 4Indefinite IntegrationMODERATE
Let dxx+1x1=α(x+1)3/2+β(x1)3/2+c\displaystyle\int\dfrac{dx}{\sqrt{x+1}-\sqrt{x-1}}=\alpha(x+1)^{3/2}+\beta(x-1)^{3/2}+c.
What is the value of β\beta?

[Q96 · Apr · 2024]

Example 5Indefinite IntegrationHARD
What is dx2x1\int\frac{dx}{2^x-1} equal to?

[Q90 · Apr · 2018]

Drill every past-year question on this subtopic

17 questions from the bank — paginated, with cart and Word-export support.