Methods of integration: substitution and identities
NCERT Class 12 Mathematics Chapter 7 Section 7.3
Quick answer
Integration by substitution changes the variable: if the integrand contains a function t = g(x) together with its derivative, then g′(x) dx = dt and the integral becomes a standard one in t, after which x is put back. It gives ∫tan x dx = log |sec x| + C, ∫cot x dx = log |sin x| + C, ∫sec x dx = log |sec x + tan x| + C and ∫cosec x dx = log |cosec x − cot x| + C. Powers and products of sines and cosines are first turned into sums with identities such as cos x = (1 + cos 2x)/2.
With your textbook
NCERT Mathematics Part II (Class 12), Chapter 7 “Integrals”, Section 7.3 “Methods of Integration”, pages 235–243.
Open the official NCERT chapter (PDF, 5.7 MB, ncert.nic.in) (opens in a new tab)
Checked against the 2026-27 reprint on .
What is integration by substitution?
Integration by substitution
- To find I = ∫f(x) dx, put x = g(t), so that dx/dt = g′(t) and dx = g′(t) dt. Then (NCERT Section 7.3.1, page 236)
This change of variable formula is one of the important tools available to us in the name of integration by substitution.
NCERT Mathematics Part II (Class 12), Section 7.3.1, page 236
In plain words: substitution is the chain rule of NCERT Chapter 5 read backwards. (The definition follows NCERT’s x = g(t); in practice we name the new variable directly, t = g(x), as NCERT’s examples do.) If part of the integrand is a function t = g(x) and its derivative g′(x) is also there as a factor, then g′(x) dx becomes dt, and the integral turns into a standard one in t. NCERT’s advice (page 236): usually substitute for a function whose derivative also occurs in the integrand. At the end, put x back.
NCERT Section 7.3 names three methods: substitution, partial fractions and integration by parts (page 235). This page covers substitution and the trigonometric identities of Section 7.3.2.
Choosing the substitution
NCERT Example 5 (pages 236–237) shows the pattern:
- For m ≠ 0, ∫sin mx dx: put t = mx, so dx = dt/m. The integral is (1/m)∫sin t dt = −(1/m) cos mx + C. If m = 0, the integrand is 0 and the answer is C.
- ∫2x sin (x2 + 1) dx: put t = x2 + 1, so 2x dx = dt. The integral is −cos (x2 + 1) + C.
- ∫sin (tan x)/(1 + x2) dx: put t = tan x, so dx/(1 + x2) = dt. The integral is −cos (tan x) + C.
Sometimes two substitutions are needed. For ∫(tan4 √x sec2 √x)/√x dx, NCERT puts t = √x, so dx = 2t dt and the integral is 2∫tan4 t sec2 t dt; then u = tan t gives 2∫u4 du:
∫(tan4 √x sec2 √x)/√x dx
= (2/5) tan5 √x + C.
Two patterns come straight from the rule (reasoned from NCERT’s substitution; NCERT uses the first for tan x and cot x on pages 237–238): with t = f(x),
Two patterns of substitution
∫f′(x)/f(x) dx = log |f(x)| + C, f(x) ≠ 0
∫[f(x)] f′(x) dx = [f(x)]/(n + 1) + C, n ≠ −1
Integrals of tan x, cot x, sec x and cosec x
NCERT derives these by substitution on pages 237–238 and uses them later without reference:
Four standard integrals (each + C)
∫tan x dx = log |sec x|
∫cot x dx = log |sin x|
∫sec x dx = log |sec x + tan x|
∫cosec x dx = log |cosec x − cot x|
- tan x: write it as sin x/cos x and put t = cos x, so sin x dx = −dt. The integral is −log |cos x| + C, which is log |sec x| + C.
- cot x: cos x/sin x with t = sin x gives log |sin x| + C.
- sec x: multiply the top and bottom by sec x + tan x. The new top, sec x(sec x + tan x), is the derivative of the bottom, so t = sec x + tan x gives log |sec x + tan x| + C.
- cosec x: multiply by cosec x + cot x instead. Now dt is −cosec x times (cosec x + cot x) dx, so the integral is −log |cosec x + cot x| + C. Since cosec2 x − cot2 x = 1, the product of cosec x + cot x and cosec x − cot x is 1, so this is log |cosec x − cot x| + C.
Beyond the NCERT text (JEE): the integral of sec x can also be written as log |tan (π/4 + x/2)| + C, and that of cosec x as log |tan (x/2)| + C. These are the same answers, since tan (π/4 + x/2) equals sec x + tan x, and tan (x/2) equals cosec x − cot x.
Using trigonometric identities
When the integrand is a power or a product of sines and cosines, an identity first turns it into a sum of terms that can be integrated one by one (NCERT Section 7.3.2, pages 241–242). The identities are the Class 11 double angle formulas and the product-to-sum formulas. NCERT Example 7:
- cos2 x = (1 + cos 2x)/2, so ∫cos2 x dx = x/2 + (1/4) sin 2x + C.
- sin 2x cos 3x = ½[sin 5x + sin (−x)] = ½(sin 5x − sin x), so the integral is −(1/10) cos 5x + ½ cos x + C.
- sin3 x = (3 sin x − sin 3x)/4, so ∫sin3 x dx = −(3/4) cos x + (1/12) cos 3x + C.
NCERT also finds ∫sin3 x dx by substitution: write sin3 x = (1 − cos2 x) sin x and put t = cos x, which gives −cos x + (1/3) cos3 x + C. The two answers look different, but NCERT’s Remark (page 242) notes that they are equivalent: putting cos 3x = 4 cos3 x − 3 cos x into the first one gives exactly the second.
Solved examples
Example 1: A power of a quadratic (NCERT Exercise 7.2, Q9, page 240)
Find ∫(4x + 2)√(x2 + x + 1) dx.
The derivative of x2 + x + 1 is 2x + 1, and 4x + 2 = 2(2x + 1). Put t = x2 + x + 1, so (4x + 2) dx = 2 dt. The integral is 2∫t1/2 dt = (4/3)t3/2 + C.
Answer: (4/3)(x2 + x + 1)3/2 + C.
Example 2: A power of log x (NCERT Exercise 7.2, Q14, page 240)
Find ∫dx/(x(log x)m), for m ≠ 1 on an interval where the real power is defined and the denominator is nonzero. For arbitrary real m, x > 1 is a safe domain.
Put t = log x, so dx/x = dt. The integral is ∫t−m dt = t1 − m/(1 − m) + C, which needs m ≠ 1. (For m = 1 it is log |log x| + C on either interval 0 < x < 1 or x > 1.)
Answer: (log x)1 − m/(1 − m) + C.
Example 3: The top is the derivative of the bottom (NCERT Exercise 7.2, Q24, page 241)
Find ∫(2 cos x − 3 sin x)/
The derivative of 6 cos x + 4 sin x is −6 sin x + 4 cos x = 2(2 cos x − 3 sin x). So the top is half the derivative of the bottom, and the integral is ½ log |6 cos x + 4 sin x| + C.
Answer: ½ log |2 sin x + 3 cos x| + C. Since 6 cos x + 4 sin x = 2(2 sin x + 3 cos x), the two forms differ only by the constant ½ log 2, so both are right; the second is NCERT’s.
Example 4: A triple product (NCERT Exercise 7.3, Q3, page 243)
Find ∫cos 2x cos 4x cos 6x dx.
First cos 4x cos 6x = ½(cos 10x + cos 2x). Multiplying by cos 2x and using the same formula twice, the integrand is the sum of ¼ cos 12x, ¼ cos 8x, ¼ and ¼ cos 4x.
Answer: ¼[x + (sin 12x)/12 + (sin 8x)/8 + (sin 4x)/4] + C.
Example 5: Choose the correct answer (NCERT Exercise 7.2, Q39, page 241)
∫dx/(sin2 x cos2 x) equals (A) tan x + cot x + C; (B) tan x − cot x + C; (C) tan x cot x + C; (D) tan x − cot 2x + C.
Write 1 = sin2 x + cos2 x in the top. The integrand splits as sec2 x + cosec2 x, whose integral is tan x − cot x + C.
Answer: (B).
Common mistakes to avoid
Common mistake
Changing the function but not dx
With t = 3x, ∫cos 3x dx is not ∫cos t dt: since dt = 3 dx, it is (1/3)∫cos t dt = (1/3) sin 3x + C.
Common mistake
Integrating tan x as sec x
sec2 x is the derivative of tan x, not its integral. ∫tan x dx = log |sec x| + C, which is the same as −log |cos x| + C.
Common mistake
Thinking that a different-looking answer must be wrong
Two anti derivatives of the same function differ by a constant. For ∫2 sin x cos x dx, sin2 x + C, −cos2 x + C and −½ cos 2x + C are all right, because sin2 x and −cos2 x differ by 1, and −½ cos 2x = sin2 x − ½.
Quick revision summary
- Substitution: put t = g(x) when g′(x) is also a factor of the integrand, so that g′(x) dx = dt; change dx too, and put x back at the end.
- ∫f′(x)/f(x) dx = log |f(x)| + C; this gives ∫tan x dx = log |sec x| + C and ∫cot x dx = log |sin x| + C.
- ∫sec x dx = log |sec x + tan x| + C and ∫cosec x dx = log |cosec x − cot x| + C.
- Powers and products of sines and cosines: use the double angle, triple angle and product-to-sum identities first, such as cos x = (1 + cos 2x)/2.
Formula sheet
- ∫f(g(x)) g′(x) dx = ∫f(t) dt, t = g(x)
- ∫tan x dx = log |sec x| + C
- ∫cot x dx = log |sin x| + C
- ∫sec x dx = log |sec x + tan x| + C
- ∫cosec x dx = log |cosec x − cot x| + C
Questions students ask
Why does integration by substitution work?
Integration by substitution works because it is the chain rule read backwards: if F′ = f, then F(g(x)) has derivative f(g(x)) g′(x), so that product integrates to F(g(x)) + C; putting t = g(x) is shorthand for this. In ∫x2 cos (x3) dx, t = x3 gives dt = 3x2 dx and the answer (1/3) sin (x3) + C, which the chain rule turns back into the integrand. A missing constant can be supplied, like the 1/3, but not a missing variable: in ∫cos (x3) dx, the same t leaves dx = dt/(3x2), still with x.
What is the difference between integration by substitution and integration by parts?
Integration by substitution undoes the chain rule and suits an integrand containing a function and its derivative as a factor, while integration by parts undoes the product rule and suits a product of two kinds of function, one of which gets simpler when differentiated, such as x times ex. So look first for an inner function and its derivative: if both are there, substitute. Some integrals need both: in ∫e√x dx (x > 0), t = √x gives dx = 2t dt and 2∫tet dt, which parts turns into 2et(t − 1), so the answer is 2e√x(√x − 1) + C.
How do you integrate powers of sin x and cos x?
To integrate sinm x cosn x, for nonnegative integer powers m, n, look at the powers: if one is odd, set one factor of that function aside, turn the rest into the other function with sin2 x + cos2 x = 1 and put t equal to the other function; if both are even, lower the powers with double angle formulas such as cos2 x = (1 + cos 2x)/2. For ∫sin5 x dx, write sin4 x as (1 − cos2 x)2 and put t = cos x: the integral is −cos x + (2/3) cos3 x, minus (1/5) cos5 x, plus C. NCERT’s Example 6 (page 238) does sin3 x cos2 x this way.
What is the integral of sec x cosec x?
The integral of sec x cosec x, that is of 1/(sin x cos x), is log |tan x| + C, on any interval where sin x and cos x are both non-zero. Dividing the top and the bottom by cos2 x turns the integrand into sec2 x/tan x, whose top is the derivative of its bottom, so t = tan x gives ∫dt/t = log |t| + C. Another route writes 1 = sin2 x + cos2 x in the top, which leaves tan x + cot x, and the standard integrals log |sec x| and log |sin x| add up to the same log |tan x|.
What is trigonometric substitution in integration?
Trigonometric substitution puts x = a sin θ, a tan θ or a sec θ (a > 0), so that √(a2 − x2), a2 + x2 or √(x2 − a2) becomes a cos θ, a2 sec2 θ or a tan θ (choose −π/2 ≤ θ ≤ π/2 for sine, −π/2 < θ < π/2 for tangent, and 0 ≤ θ < π/2 for secant on x ≥ a; exclude endpoints that make an integrand undefined); NCERT uses it to prove the particular integrals and, on page 265, names it as another route to the square-root integrals. For ∫dx/(x2 + 9)3/2, x = 3 tan θ leaves (1/9)∫cos θ dθ = (1/9) sin θ + C, and sin θ = x/√(x2 + 9), giving x/(9√(x2 + 9)) + C.
Practice questions
Try each question first, then open the answer to check your working.
-
Q1. Find ∫(log x)2/x dx and ∫dx/(x + x log x) (NCERT Exercise 7.2, Q2 and Q3, page 240).
Show answerHide answer
With t = log x and dt = dx/x: ∫t2 dt = (1/3)(log x)3 + C. For the second, x + x log x = x(1 + log x); put t = 1 + log x to get log |1 + log x| + C.
-
Q2. Find ∫e2x + 3 dx and ∫x/ex2 dx (NCERT Exercise 7.2, Q16 and Q17, page 240).
Show answerHide answer
½e2x + 3 + C. For the second, x/ex2 = xe−x2; put t = −x2, so x dx = −½ dt, giving −½e−x2 + C.
-
Q3. Find ∫sin2 (2x + 5) dx (NCERT Exercise 7.3, Q1, page 243).
Show answerHide answer
sin2 θ = (1 − cos 2θ)/2 with θ = 2x + 5, so the integrand is ½ − ½ cos (4x + 10), and the integral is x/2 − (1/8) sin (4x + 10) + C.
-
Q4. With the top 10x9 + 10x log 10 and the bottom x10 + 10x, the integral of top/bottom equals (A) 10x − x10 + C; (B) 10x + x10 + C; (C) (10x − x10)−1 + C; (D) log (10x + x10) + C (NCERT Exercise 7.2, Q38, page 241).
Show answerHide answer
The top is the derivative of the bottom, so the integral is log |x10 + 10x| + C. The bottom is positive, so this is (D).