MHT-CET Maths · Indefinite Integration

Trigonometric Integrals II — Rational Forms and Substitutions

The hard trig core — fractions in sine and cosine, handled by the half-angle (Weierstrass) substitution, the divide-by-cosine-squared move, the fractional-power tangent trick, and numerator-matching.

Why this matters

26 PYQs and the chapter's HARDEST pocket — 25 of the 26 are HARD. These are the integrals that decide a top score. Four named techniques cover almost all of them: Weierstrass t = tan(x/2) for 1/(a+b sin x); divide-by-cos² for 1/(a+b sin²x); the fractional-power tan trick for cos/sin power products; and writing a numerator as 'denominator + its derivative'. Learn to RECOGNISE which of the four a question wants — that recognition is the whole skill.

Concept 1 of 4

The Half-Angle (Weierstrass) Substitution

Intuition

Any rational function of sinx\sin x and cosx\cos x becomes a rational function of one variable t=tan(x/2)t = \tan(x/2). It is the universal hammer for 1a+bsinx\dfrac{1}{a + b\sin x} and 1a+bcosx\dfrac{1}{a + b\cos x}.

Definition

With t=tanx2t = \tan\dfrac{x}{2}: sinx=2t1+t2\sin x = \dfrac{2t}{1+t^2}, cosx=1t21+t2\cos x = \dfrac{1-t^2}{1+t^2}, and dx=2dt1+t2dx = \dfrac{2\,dt}{1+t^2}. Substituting turns the integral into a rational function of tt, finished by completing the square and an arctan.

Weierstrass substitution

t=tanx2:sinx=2t1+t2, cosx=1t21+t2, dx=2dt1+t2t = \tan\dfrac{x}{2}:\quad \sin x = \dfrac{2t}{1+t^2},\ \cos x = \dfrac{1-t^2}{1+t^2},\ dx = \dfrac{2\,dt}{1+t^2}

Worked example

Evaluate dx5+3cosx\displaystyle\int \dfrac{dx}{5 + 3\cos x}.
  1. Substitute t=tan(x/2)t = \tan(x/2): cosx=1t21+t2\cos x = \dfrac{1-t^2}{1+t^2}, dx=2dt1+t2dx = \dfrac{2\,dt}{1+t^2}.
  2. Denominator: 5+31t21+t2=5(1+t2)+3(1t2)1+t2=8+2t21+t25 + 3\cdot\dfrac{1-t^2}{1+t^2} = \dfrac{5(1+t^2) + 3(1-t^2)}{1+t^2} = \dfrac{8 + 2t^2}{1+t^2}.
  3. Integral becomes 2dt8+2t2=dt4+t2=12tan1t2\int \dfrac{2\,dt}{8 + 2t^2} = \int \dfrac{dt}{4 + t^2} = \dfrac{1}{2}\tan^{-1}\dfrac{t}{2} (the cosine form needs no completing-the-square — there is no linear tt term).
  4. Back-substitute t=tan(x/2)t = \tan(x/2).
Answer:12tan1 ⁣(tan(x/2)2)+C\dfrac{1}{2}\tan^{-1}\!\left(\dfrac{\tan(x/2)}{2}\right) + C
Practice this conceptself-check · 4 quick reps

Try it yourself

Set up dx1+sinx\displaystyle\int \dfrac{dx}{1 + \sin x} with the half-angle substitution.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Under t=tan(x/2)t=\tan(x/2), what is sinx\sin x?
  2. 2.
    Under t=tan(x/2)t=\tan(x/2), what is dxdx?
  3. 3.
    Under t=tan(x/2)t=\tan(x/2), what is cosx\cos x?
  4. 4.
    dx1+sinx\int \dfrac{dx}{1+\sin x}

From the bank · past-year question

Example 1Indefinite IntegrationHARD
The value of dx5+4sinx\int \frac{dx}{5+4\sin x} is equal to

[Q122 · 15th May Shift 1 · 2023]

Weierstrass is for a + b·sin/cos, not a + b·sin²

If the denominator has sin2x\sin^2 x or cos2x\cos^2 x (an even power), the half-angle substitution gives a messy quartic. Use divide-by-cos2x\cos^2 x instead — the next concept.

Concept 2 of 4

Divide by cos²x for a + b·sin²x Forms

Intuition

When the denominator is built from sin2x\sin^2 x and cos2x\cos^2 x, divide top and bottom by cos2x\cos^2 x. Everything turns into tanx\tan x and sec2x\sec^2 x, and t=tanxt = \tan x finishes it as an arctan.

Definition

For dxa+bsin2x\displaystyle\int \dfrac{dx}{a + b\sin^2 x} (or with cos2x\cos^2 x): divide numerator and denominator by cos2x\cos^2 x, using 1cos2x=sec2x\dfrac{1}{\cos^2 x} = \sec^2 x and sin2xcos2x=tan2x\dfrac{\sin^2 x}{\cos^2 x} = \tan^2 x. Then t=tanx, dt=sec2xdxt = \tan x,\ dt = \sec^2 x\,dx gives dtA+Bt2\int \dfrac{dt}{A + Bt^2}, a standard arctan.

After dividing by cos²x

sec2xdxA+Btan2xt=tanxdtA+Bt2\int \dfrac{\sec^2 x\,dx}{A + B\tan^2 x} \xrightarrow{\,t=\tan x\,} \int \dfrac{dt}{A + Bt^2}

Worked example

Evaluate dx4cos2x+9sin2x\displaystyle\int \dfrac{dx}{4\cos^2 x + 9\sin^2 x}.
  1. Divide top and bottom by cos2x\cos^2 x: sec2x4+9tan2x\dfrac{\sec^2 x}{4 + 9\tan^2 x}.
  2. Let t=tanxt = \tan x, dt=sec2xdxdt = \sec^2 x\,dx: the integral becomes dt4+9t2\int \dfrac{dt}{4 + 9t^2}.
  3. Standard arctan-quadratic form: dt4+9t2=16tan13t2\int \dfrac{dt}{4 + 9t^2} = \dfrac{1}{6}\tan^{-1}\dfrac{3t}{2}.
  4. Back-substitute t=tanxt = \tan x.
Answer:16tan1 ⁣(3tanx2)+C\dfrac{1}{6}\tan^{-1}\!\left(\dfrac{3\tan x}{2}\right) + C
Practice this conceptself-check · 4 quick reps

Try it yourself

Evaluate dx1+tan2x\displaystyle\int \dfrac{dx}{1 + \tan^2 x} using this idea.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Divide 1a+bsin2x\dfrac{1}{a+b\sin^2 x} by cos2x\cos^2 x: numerator becomes?
  2. 2.
    sec2x1+tan2xdx\int \dfrac{\sec^2 x}{1 + \tan^2 x}\,dx
  3. 3.
    After t=tanxt=\tan x, dt1+4t2\int \dfrac{dt}{1+4t^2}?
  4. 4.
    dxcos2x(1+tan2x)\int \dfrac{dx}{\cos^2 x(1+\tan^2 x)} — simplify the integrand.

From the bank · past-year question

Example 2Indefinite IntegrationHARD
If dx1+3sin2x=12tan1(f(x))+c\int \frac{dx}{1+3\sin^{2}x} = \frac{1}{2}\tan^{-1}(f(x))+c, where c is a constant of integration, then f(x)f(x) is equal to

[Q105 · 15th May Shift 1 · 2023]

Even powers → divide by cos²; odd → Weierstrass

Denominator has sin2/cos2\sin^2/\cos^2 (even): divide by cos2x\cos^2 x, use t=tanxt=\tan x. Denominator has plain sinx/cosx\sin x/\cos x (odd): use Weierstrass t=tan(x/2)t=\tan(x/2). Picking the wrong one makes the algebra explode.

Concept 3 of 4

The Fractional-Power tan Trick

Intuition

For a product of powers of sinx\sin x and cosx\cos x whose exponents add up to an even negative integer, factoring out sec2x\sec^2 x and substituting t=tanxt = \tan x turns the whole thing into a plain power of tt — even when the exponents are fractions.

Definition

If the integrand is sinmxcosnx\sin^m x\,\cos^n x with m+nm + n an even negative integer, write it as a power of tanx\tan x times sec2x\sec^2 x: sinmxcosnx=tanmxcosm+nx=(tanx)m(sec2x)(m+n)/2\sin^m x\cos^n x = \tan^m x\cdot\cos^{m+n}x = (\tan x)^m(\sec^2 x)^{-(m+n)/2}. Then t=tanxt = \tan x reduces it to tm(1+t2)(m+n)/21\int t^m(1+t^2)^{-(m+n)/2 - 1}-type powers — often a single tpdt\int t^p\,dt.

The reduction (m + n even)

sinmxcosnxdxt=tanxtm(1+t2)m+n21dt\int \sin^m x\,\cos^n x\,dx \xrightarrow{\,t=\tan x\,} \int t^{m}\,(1+t^2)^{\frac{m+n}{2}-1}\,dt

Worked example

Evaluate sin5/3xcos1/3xdx\displaystyle\int \sin^{-5/3}x\,\cos^{-1/3}x\,dx.
  1. Exponents: m=53m = -\tfrac{5}{3} (sin), n=13n = -\tfrac{1}{3} (cos); sum m+n=2m+n = -2, an even negative integer — the trick applies.
  2. Rewrite: sin5/3xcos1/3x=tan5/3xcos2x=tan5/3xsec2x\sin^{-5/3}x\,\cos^{-1/3}x = \tan^{-5/3}x\cdot\cos^{-2}x = \tan^{-5/3}x\,\sec^2 x.
  3. Let t=tanx, dt=sec2xdxt = \tan x,\ dt = \sec^2 x\,dx: t5/3dt=t2/32/3=32t2/3\int t^{-5/3}\,dt = \dfrac{t^{-2/3}}{-2/3} = -\dfrac{3}{2}\,t^{-2/3}.
  4. Back-substitute t=tanxt = \tan x.
Answer:32(tanx)2/3+C-\dfrac{3}{2}(\tan x)^{-2/3} + C
Practice this conceptself-check · 4 quick reps

Try it yourself

Evaluate sec2/3xcsc4/3xdx\displaystyle\int \sec^{2/3}x\,\csc^{4/3}x\,dx by the same route.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    For sinmxcosnx\sin^m x\cos^n x, the trick needs m+nm+n to be?
  2. 2.
    Rewrite sin1/2xcos3/2x\sin^{-1/2}x\cos^{-3/2}x (sum =2=-2).
  3. 3.
    tan1/2xsec2xdx\int \tan^{-1/2}x\,\sec^2 x\,dx
  4. 4.
    tan3/2xsec2xdx\int \tan^{3/2}x\,\sec^2 x\,dx

From the bank · past-year question

Example 3Indefinite IntegrationHARD
cos3/7xsin11/7xdx=\int \cos^{-3/7}x \cdot \sin^{-11/7}x\,dx =

[Q128 · Shift 1 · 2023]

Check m + n is an even integer first

The trick only collapses cleanly when m+nm + n is an even integer (so cosm+nx\cos^{m+n}x becomes an integer power of sec2x\sec^2 x). If it is odd, this route leaves a stray secx\sec x or cosx\cos x and you need a different method.

Concept 4 of 4

Numerator as Denominator + its Derivative

Intuition

For asinx+bcosxcsinx+dcosx\dfrac{a\sin x + b\cos x}{c\sin x + d\cos x}-type fractions, write the numerator as a combination of the denominator and the denominator's derivative. The first piece integrates to xx-times-a-constant, the second to a clean log.

Definition

Express numerator=A(denominator)+Bddx(denominator)\text{numerator} = A\,(\text{denominator}) + B\,\dfrac{d}{dx}(\text{denominator}). Then numdendx=A ⁣1dx+B ⁣(den)dendx=Ax+Blogden+C\displaystyle\int \dfrac{\text{num}}{\text{den}}\,dx = A\!\int 1\,dx + B\!\int \dfrac{(\text{den})'}{\text{den}}\,dx = Ax + B\log|\text{den}| + C. Solve for A,BA, B by matching the sinx\sin x and cosx\cos x coefficients.

Decomposition of the numerator

num=Aden+B(den)    numdendx=Ax+Blogden+C\text{num} = A\cdot\text{den} + B\cdot(\text{den})' \;\Rightarrow\; \int\dfrac{\text{num}}{\text{den}}\,dx = Ax + B\log|\text{den}| + C

Worked example

Evaluate 2sinx+3cosxsinx+cosxdx\displaystyle\int \dfrac{2\sin x + 3\cos x}{\sin x + \cos x}\,dx.
  1. Denominator D=sinx+cosxD = \sin x + \cos x, so D=cosxsinxD' = \cos x - \sin x. Write 2sinx+3cosx=AD+BD2\sin x + 3\cos x = A\,D + B\,D'.
  2. Match coefficients — sinx\sin x: AB=2A - B = 2; cosx\cos x: A+B=3A + B = 3. Solve: A=52, B=12A = \tfrac52,\ B = \tfrac12.
  3. Integrate:  ⁣(A+BDD)dx=52x+12logsinx+cosx+C\int\!\left(A + B\dfrac{D'}{D}\right)dx = \dfrac{5}{2}x + \dfrac{1}{2}\log|\sin x + \cos x| + C.
Answer:52x+12logsinx+cosx+C\dfrac{5}{2}x + \dfrac{1}{2}\log|\sin x + \cos x| + C
Practice this conceptself-check · 4 quick reps

Try it yourself

Evaluate dxsinx+cosx\displaystyle\int \dfrac{dx}{\sin x + \cos x}.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Derivative of sinx2cosx\sin x - 2\cos x?
  2. 2.
    Write sinx+cosx\sin x + \cos x as a single sine.
  3. 3.
    (sinx2cosx)sinx2cosxdx\int \dfrac{(\sin x - 2\cos x)'}{\sin x - 2\cos x}\,dx
  4. 4.
    If num =1D+2D= 1\cdot D + 2\cdot D', the integral is?

From the bank · past-year question

Example 4Indefinite IntegrationHARD
5tanxtanx2dx=x+alogsinx2cosx+c\displaystyle\int\frac{5\tan x}{\tan x - 2}\,dx = x + a\log|\sin x - 2\cos x| + c, then the value of aa is

[Q111 · 10th May Shift 2 · 2024]

Convert tan-fractions to sin/cos first

A ratio in tanx\tan x is easiest after multiplying through by cosx\cos x to get a sin/cos ratio — then the 'denominator + its derivative' decomposition is clean.

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 (4)

  • The Half-Angle (Weierstrass) Substitution

    Weierstrass substitution

    t=tanx2:sinx=2t1+t2, cosx=1t21+t2, dx=2dt1+t2t = \tan\dfrac{x}{2}:\quad \sin x = \dfrac{2t}{1+t^2},\ \cos x = \dfrac{1-t^2}{1+t^2},\ dx = \dfrac{2\,dt}{1+t^2}
  • Divide by cos²x for a + b·sin²x Forms

    After dividing by cos²x

    sec2xdxA+Btan2xt=tanxdtA+Bt2\int \dfrac{\sec^2 x\,dx}{A + B\tan^2 x} \xrightarrow{\,t=\tan x\,} \int \dfrac{dt}{A + Bt^2}
  • The Fractional-Power tan Trick

    The reduction (m + n even)

    sinmxcosnxdxt=tanxtm(1+t2)m+n21dt\int \sin^m x\,\cos^n x\,dx \xrightarrow{\,t=\tan x\,} \int t^{m}\,(1+t^2)^{\frac{m+n}{2}-1}\,dt
  • Numerator as Denominator + its Derivative

    Decomposition of the numerator

    num=Aden+B(den)    numdendx=Ax+Blogden+C\text{num} = A\cdot\text{den} + B\cdot(\text{den})' \;\Rightarrow\; \int\dfrac{\text{num}}{\text{den}}\,dx = Ax + B\log|\text{den}| + C

Watch out for (4)

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
The value of cos3xsin2x+sinxdx\int\frac{\cos^3 x}{\sin^2 x + \sin x}\,dx is

[Q145 · 11th May Shift 1 · 2023]

Example 2Indefinite IntegrationHARD
If sinx3+4cos2xdx=Atan1(Bcosx)+c\int\dfrac{\sin x}{3 + 4\cos^2 x}\,dx = A\tan^{-1}(B\cos x) + c, (where cc is a constant of integration), then the value of A+BA + B is

[Q124 · 9th May Shift 2 · 2024]

Example 3Indefinite IntegrationHARD
If dxcos3x2sin2x=(tanx)A+C(tanx)B+K\int\frac{dx}{\cos^3 x\sqrt{2\sin2x}}=(\tan x)^A+\frac{C}{(\tan x)^B}+K, where K is a constant of integration, then the value of 5(A+B+C)5(A+B+C) is equal to

[Q101 · 3rd May 2nd Shift · 2023]

Example 4Indefinite IntegrationHARD
If I=sinx+sin3xcos2xdx=Pcosx+Qlog2cosx12cosx+1+CI=\int\frac{\sin x+\sin^3 x}{\cos 2x}\,dx=P\cos x+Q\log\left|\frac{2\cos x-1}{2\cos x+1}\right|+C, then the values of PP and QQ are respectively

[Q106 · 9th May Shift 1 · 2024]

Example 5Indefinite IntegrationHARD
cosec(xa)cosecxdx=\int \text{cosec}(x-a) \cdot \text{cosec}\,x\, dx =

[Q106 · 15th May Shift 2 · 2023]

Drill every past-year question on this subtopic

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

Related notes