PYQ Vault

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.

Test yourself — a quick 13-question Indefinite Integration recall quiz, instant score.

Concept 1 of 6: Why Substitution Works — the Reverse Chain Rule

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. The linear-inner-function shortcut — the 1a\tfrac1a factor three PYQs turn on: if ∫f(x) dx=F(x)+C\int f(x)\,dx=F(x)+C then ∫f(ax+b) dx=1aF(ax+b)+C\int f(ax+b)\,dx=\dfrac{1}{a}F(ax+b)+C, because u=ax+bu=ax+b gives du=a dxdu=a\,dx. So ∫ekx dx=ekxk\int e^{kx}\,dx=\dfrac{e^{kx}}{k}, ∫cos⁡2x dx=sin⁡2x2\int\cos2x\,dx=\dfrac{\sin2x}{2}, ∫sec⁡2x2 dx=2tan⁡x2\int\sec^2\tfrac x2\,dx=2\tan\tfrac x2, ∫(3x+1)4 dx=(3x+1)515\int(3x+1)^4\,dx=\dfrac{(3x+1)^5}{15}, ∫52x dx=52x2ln⁡5\int 5^{2x}\,dx=\dfrac{5^{2x}}{2\ln5}. Dropping the 1a\tfrac1a is the recorded common mistake on one PYQ, and on another the PUBLISHED key is off by exactly this factor of 2 — trust the rule, not the key.

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 ∫2x ex2 dx\displaystyle\int 2x\,e^{x^2}\,dx.
Practice this concept2 quick reps

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

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. ∫(sin⁡x)3cos⁡x dx\int (\sin x)^3\cos x\,dx: set u=sin⁡xu=\sin x, du=cos⁡x dxdu=\cos x\,dx, giving ∫u3 du\int u^3\,du. The same idea reframes the variable: 'integrate ff with respect to x2x^2' means ∫f d(x2)\int f\,d(x^2) — treat t=x2t = x^2 as the variable and use ∫tn dt\int t^n\,dt directly.

Power-times-derivative shape

∫(g(x))n g′(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 ∫cos⁡4x sin⁡x dx\displaystyle\int \cos^4 x\,\sin x\,dx.

The same idea in a real exam question:

NDA · Sep 2018 · Q83Easy

Example 2 · Indefinite Integration · Integration by Substitution — Algebraic, Trigonometric, and Composite Forms

What is ∫sin⁡3xcos⁡x dx\int\sin^3 x\cos x\,dx equal to?

Carry the sign from du

With u=cos⁡xu=\cos x, du=−sin⁡x dxdu=-\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

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=ln⁡∣f(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=ln⁡∣f(x)∣+C\int \dfrac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C

Worked example

Evaluate ∫2x+1x2+x+5 dx\displaystyle\int \dfrac{2x+1}{x^2+x+5}\,dx.
Practice this concept2 quick reps

The same idea in a real exam question:

NDA · Apr 2017 · Q76Moderate

Example 3 · Indefinite Integration · Integration by Substitution — Algebraic, Trigonometric, and Composite Forms

What is ∫(xe−1+ex−1) dxxe+ex\int\dfrac{(x^{e-1}+e^{x-1})\,dx}{x^e+e^x} equal to?

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

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 cos⁡2x\cos^2 x: for ∫dxa2sin⁡2x+b2cos⁡2x\int \dfrac{dx}{a^2\sin^2 x + b^2\cos^2 x}, divide top and bottom by cos⁡2x\cos^2 x to get ∫sec⁡2x dxa2tan⁡2x+b2\int \dfrac{\sec^2 x\,dx}{a^2\tan^2 x + b^2}, then substitute t=tan⁡xt=\tan x (dt=sec⁡2x dxdt=\sec^2x\,dx). The arctan form with a leading coefficient is ∫dta2t2+b2=1abtan⁡−1 ⁣(atb)+C\displaystyle\int \dfrac{dt}{a^2t^2+b^2} = \dfrac{1}{ab}\tan^{-1}\!\Big(\dfrac{at}{b}\Big) + C — factor a2a^2 out first: 1a2∫dtt2+(b/a)2=1a2⋅abtan⁡−1atb\dfrac{1}{a^2}\int\dfrac{dt}{t^2+(b/a)^2} = \dfrac{1}{a^2}\cdot\dfrac{a}{b}\tan^{-1}\dfrac{at}{b}. So the whole integral is 1abtan⁡−1 ⁣(atan⁡xb)+C\dfrac{1}{ab}\tan^{-1}\!\Big(\dfrac{a\tan x}{b}\Big) + C.
  • Half-angle: 1−cos⁡x=2sin⁡2x21-\cos x = 2\sin^2\tfrac{x}{2} and 1+cos⁡x=2cos⁡2x21+\cos x = 2\cos^2\tfrac{x}{2} turn a fraction into a csc⁡2\csc^2 or sec⁡2\sec^2 you can integrate.
  • Surd identities: 1±sin⁡2x=(sin⁡x±cos⁡x)21 \pm \sin 2x = (\sin x \pm \cos x)^2, so 1−sin⁡2x=∣sin⁡x−cos⁡x∣\sqrt{1-\sin 2x} = |\sin x - \cos x| becomes integrable. The simplification sec⁡x+tan⁡x\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

∫dxa2sin⁡2x+b2cos⁡2x=∫sec⁡2x dxa2tan⁡2x+b2=1abtan⁡−1 ⁣(atan⁡xb)+C\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} = \dfrac{1}{ab}\tan^{-1}\!\Big(\dfrac{a\tan x}{b}\Big) + C

Worked example

Evaluate ∫dx1+3cos⁡2x\displaystyle\int \dfrac{dx}{1+3\cos^2 x}.

The same idea in a real exam question:

NDA · Sep 2018 · Q97Moderate

Example 4 · Indefinite Integration · Integration by Substitution — Algebraic, Trigonometric, and Composite Forms

What is ∫dxa2sin⁡2x+b2cos⁡2x\int\frac{dx}{a^2\sin^2x+b^2\cos^2x} equal to?

Which of aa, bb goes inside the arctan?

In ∫dta2t2+b2\int \dfrac{dt}{a^2t^2+b^2} the coefficient of t2t^2 ends up multiplying tt inside: tan⁡−1(atb)\tan^{-1}\big(\tfrac{at}{b}\big), not tan⁡−1(bta)\tan^{-1}\big(\tfrac{bt}{a}\big). Check with a=1a=1: ∫dtt2+b2=1btan⁡−1tb\int\frac{dt}{t^2+b^2} = \frac1b\tan^{-1}\frac{t}{b} — tt is divided by the constant term's root. A published key for this exact PYQ had aa and bb swapped; the 1ab\tfrac{1}{ab} outside is the same either way, so only the inside tells the options apart.

A square root forces an absolute value

(sin⁡x−cos⁡x)2=∣sin⁡x−cos⁡x∣\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}, cos⁡x>sin⁡x\cos x > \sin x, so it equals cos⁡x−sin⁡x\cos x - \sin x — read the interval before dropping the modulus.

Concept 5 of 6: Rationalising a Surd Denominator

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+a−x+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)=a−b(x+a)-(x+b) = a-b, a constant, leaving 1a−b∫(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/2 dx=23(x+c)3/2\int (x+c)^{1/2}\,dx = \tfrac{2}{3}(x+c)^{3/2}.

Conjugate clears the surd

1x+a−x+b=x+a+x+ba−b\dfrac{1}{\sqrt{x+a}-\sqrt{x+b}} = \dfrac{\sqrt{x+a}+\sqrt{x+b}}{a-b}

Worked example

Evaluate ∫dxx+3−x\displaystyle\int \dfrac{dx}{\sqrt{x+3}-\sqrt{x}}.

The same idea in a real exam question:

NDA · Apr 2024 · Q95Moderate

Example 5 · Indefinite Integration · Integration by Substitution — Algebraic, Trigonometric, and Composite Forms

Let ∫dxx+1−x−1=α(x+1)3/2+β(x−1)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?

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

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

Concept 6 of 6: Spotting a Hidden Derivative

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:

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

The x-to-the-x derivative

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

Worked example

Evaluate ∫4x4x+1 dx\displaystyle\int \dfrac{4^x}{4^{x}+1}\,dx.

The same idea in a real exam question:

NDA · Sep 2022 · Q74Hard

Example 6 · Indefinite Integration · Integration by Substitution — Algebraic, Trigonometric, and Composite Forms

What is ∫(xx)2(1+ln⁡x) dx\int (x^x)^2(1+\ln x)\,dx equal to?

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

ddxxx≠x⋅xx−1\dfrac{d}{dx}x^x \neq x\cdot x^{x-1} (power rule) and ≠xxln⁡x\neq x^x\ln x (exponential rule). Both the base and the exponent vary, so its derivative is xx(1+ln⁡x)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))n g′(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=ln⁡∣f(x)∣+C\int \dfrac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C
  • Trigonometric Substitutions and Identity Reductions

    The divide-by-cos-squared move

    ∫dxa2sin⁡2x+b2cos⁡2x=∫sec⁡2x dxa2tan⁡2x+b2=1abtan⁡−1 ⁣(atan⁡xb)+C\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} = \dfrac{1}{ab}\tan^{-1}\!\Big(\dfrac{a\tan x}{b}\Big) + C
  • Rationalising a Surd Denominator

    Conjugate clears the surd

    1x+a−x+b=x+a+x+ba−b\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

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

Watch out for (7)

Test yourself on Indefinite Integration

15 past NDA questions from this chapter, timed at 19 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.