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, and they lean on the standard arctan/log forms you met in Rational Functions & Partial Fractions. Six 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) (and tan x = t for the 2x version); the product-of-sines split for 1/(sin(x−a)sin(x−b)); the trig-to-partial-fraction bridge when a substitution makes it rational; the fractional-power tan trick for cos/sin power products; and writing a numerator as 'denominator + its derivative'. Learn to RECOGNISE which one a question wants — that recognition is the whole skill.

Concept 1 of 6

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}.
Practice this conceptself-check · 4 quick reps

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 6

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. Double-angle version: for dxasin2x+bcos2x+c\displaystyle\int \dfrac{dx}{a\sin 2x + b\cos 2x + c}, substitute t=tanxt = \tan x directly — then sin2x=2t1+t2\sin 2x = \dfrac{2t}{1+t^2}, cos2x=1t21+t2\cos 2x = \dfrac{1-t^2}{1+t^2}, dx=dt1+t2dx = \dfrac{dt}{1+t^2}, and the integral reduces to dtAt2+Bt+C\int \dfrac{dt}{At^2+Bt+C}. This is the 2x2x analogue of Weierstrass (which uses t=tanx2t=\tan\tfrac{x}{2} for the plain-angle case).

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}.
Practice this conceptself-check · 4 quick reps

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]

Three sin/cos denominators, three substitutions

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

Concept 3 of 6

Product of Two Shifted Sines (or Cosines)

Intuition

For 1sin(xa)sin(xb)\dfrac{1}{\sin(x-a)\sin(x-b)}, don't substitute — split it. Writing the constant sin(ab)\sin(a-b) as sin\sin of the angle DIFFERENCE turns the product into a difference of cotangents, each a clean log. One identity, one line.

Definition

Use sin((xa)(xb))=sin(ba)\sin\big((x-a)-(x-b)\big) = \sin(b-a), a constant. Expanding and dividing by sin(xa)sin(xb)\sin(x-a)\sin(x-b) gives 1sin(xa)sin(xb)=1sin(ba)[cot(xb)cot(xa)]\dfrac{1}{\sin(x-a)\sin(x-b)} = \dfrac{1}{\sin(b-a)}\big[\cot(x-b) - \cot(x-a)\big], which integrates to a difference of logsin\log|\sin| terms. The same idea handles 1cos(xa)cos(xb)\dfrac{1}{\cos(x-a)\cos(x-b)} (difference of tan\tans) and 1sin(xa)cos(xb)\dfrac{1}{\sin(x-a)\cos(x-b)}.

Shifted-angle split

1sin(xa)sin(xb)=1sin(ba)[cot(xb)cot(xa)]\dfrac{1}{\sin(x-a)\sin(x-b)} = \dfrac{1}{\sin(b-a)}\big[\cot(x-b) - \cot(x-a)\big]
  • sin(ba)\sin(b-a)constant divisor — the sine of the difference of the two shifts

Worked example

Evaluate dxsinxsin(x+a)\displaystyle\int \dfrac{dx}{\sin x\,\sin(x+a)}.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 3Indefinite IntegrationHARD
If I=dxsin(xa)sin(xb)I = \int \frac{dx}{\sin(x-a)\sin(x-b)}, then II is given by

[Q111 · 14th May Shift 2 · 2024]

Split it — don't reach for Weierstrass

Weierstrass on a product of two shifted sines produces a quartic in tt and stalls. The shifted-angle split is one identity and one line. Keep the constant sin(ba)\sin(b-a) out front — it is NOT a function of xx.

Concept 4 of 6

Trig to Partial Fractions (substitute, then decompose)

Intuition

A trig integrand that becomes a RATIONAL function after one substitution hands straight off to the partial-fraction machinery from the previous movement. When there's a spare cosxdx\cos x\,dx (=d(sinx)=d(\sin x)) or sinxdx\sin x\,dx (=d(cosx)=-d(\cos x)), substitute and decompose.

Definition

Spot the bridge: if substituting t=sinxt=\sin x (needs a spare cosxdx\cos x\,dx) or t=cosxt=\cos x (needs a spare sinxdx\sin x\,dx) leaves a rational function of tt, do it — then split by partial fractions and integrate each piece as a log/arctan. An odd power of the 'spare' function is the signal: e.g. cos3x=cosx(1sin2x)\cos^3 x = \cos x(1-\sin^2 x) frees one cosxdx\cos x\,dx for t=sinxt=\sin x. Rewrite any cos2x\cos^2 x as 1sin2x1-\sin^2 x (or sin2x\sin^2 x as 1cos2x1-\cos^2 x) so the rest is rational in tt.

The bridge

R(sinx)cosxdx  t=sinx  R(t)dt    (now rational — decompose)\int R(\sin x)\,\cos x\,dx \;\xrightarrow{\,t=\sin x\,}\; \int R(t)\,dt \;\;(\text{now rational — decompose})

Worked example

Evaluate cosx(1+sinx)(3+sinx)dx\displaystyle\int \dfrac{\cos x}{(1+\sin x)(3+\sin x)}\,dx.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 4Indefinite IntegrationMODERATE
The value of cos3xsin2x+sinxdx\int\frac{\cos^3 x}{\sin^2 x + \sin x}\,dx is

[Q145 · 11th May Shift 1 · 2023]

No spare cos/sin → no bridge

The substitution only works if exactly one cosxdx\cos x\,dx (or sinxdx\sin x\,dx) is available to become dtdt and everything else turns rational in tt. If both sinx\sin x and cosx\cos x appear in odd/mixed ways with nothing spare, fall back to Weierstrass.

Concept 5 of 6

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.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 5Indefinite 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 6 of 6

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.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 6Indefinite 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 (6)

  • 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}
  • Product of Two Shifted Sines (or Cosines)

    Shifted-angle split

    1sin(xa)sin(xb)=1sin(ba)[cot(xb)cot(xa)]\dfrac{1}{\sin(x-a)\sin(x-b)} = \dfrac{1}{\sin(b-a)}\big[\cot(x-b) - \cot(x-a)\big]
  • Trig to Partial Fractions (substitute, then decompose)

    The bridge

    R(sinx)cosxdx  t=sinx  R(t)dt    (now rational — decompose)\int R(\sin x)\,\cos x\,dx \;\xrightarrow{\,t=\sin x\,}\; \int R(t)\,dt \;\;(\text{now rational — decompose})
  • 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 (6)

Drill every past-year question on this subtopic

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

Related notes