NDA Maths · Indefinite Integration

Integration by Partial Fractions

Partial fractions break a single rational function into a sum of simpler fractions, each of which integrates to a logarithm or an arctangent.

Why this matters

7 PYQs sit here, and the NDA reuses one shape relentlessly: 1/(x(xⁿ+1)). Beyond that, two variations recur — substitute a trig expression first and THEN decompose, and the 'express the numerator using the denominator and its derivative' trick. All three reduce to splitting, then integrating term by term.

Concept 1 of 4

Decomposition and the Cover-Up Method

Intuition

A proper rational function whose denominator factors can be rewritten as a sum of fractions, one per factor. The cover-up method reads off each numerator instantly by plugging in the root that kills the other factors.

Definition

For distinct linear factors,

p(x)(xa)(xb)=Axa+Bxb.\dfrac{p(x)}{(x-a)(x-b)} = \dfrac{A}{x-a} + \dfrac{B}{x-b}.
Cover-up: to get AA, cover the (xa)(x-a) factor and evaluate the rest at x=ax=a; likewise for BB at x=bx=b. Each piece then integrates as Axadx=Alnxa\int \dfrac{A}{x-a}\,dx = A\ln|x-a|. An irreducible quadratic factor x2+1x^2+1 needs a numerator of the form Cx+DCx+D and integrates to a log plus an arctan.

Linear-factor decomposition

p(x)(xa)(xb)=Axa+Bxb\dfrac{p(x)}{(x-a)(x-b)} = \dfrac{A}{x-a} + \dfrac{B}{x-b}

Worked example

Evaluate dx(x1)(x+2)\displaystyle\int \dfrac{dx}{(x-1)(x+2)}.
  1. Decompose: 1(x1)(x+2)=Ax1+Bx+2\dfrac{1}{(x-1)(x+2)} = \dfrac{A}{x-1} + \dfrac{B}{x+2}.
  2. Cover-up: A=1(1+2)=13A = \dfrac{1}{(1+2)} = \tfrac13 (at x=1x=1); B=1(21)=13B = \dfrac{1}{(-2-1)} = -\tfrac13 (at x=2x=-2).
  3. Integrate each: 13lnx113lnx+2\tfrac13\ln|x-1| - \tfrac13\ln|x+2|.
Answer:13lnx1x+2+C\dfrac{1}{3}\ln\left|\dfrac{x-1}{x+2}\right| + C

Decompose only a PROPER fraction

If the numerator's degree is \geq the denominator's, do polynomial division FIRST, then decompose the remainder. Skipping this gives a wrong split.

Concept 2 of 4

The Recurring 1 over x times x-to-the-n-plus-1 Family

Intuition

This exact shape appears again and again in NDA papers. The trick is not classical partial fractions — multiply top and bottom by x-to-the-(n-1) to manufacture the derivative of the denominator, turning it into two log terms.

Definition

For dxx(xn+1)\displaystyle\int \dfrac{dx}{x(x^n+1)}, multiply numerator and denominator by xn1x^{n-1}:

xn1dxxn(xn+1).\int \dfrac{x^{n-1}\,dx}{x^n(x^n+1)}.
Now 1xn(xn+1)=1xn1xn+1\dfrac{1}{x^n(x^n+1)} = \dfrac{1}{x^n} - \dfrac{1}{x^n+1} (a one-line split), and xn1dx=1nd(xn)x^{n-1}\,dx = \tfrac{1}{n}\,d(x^n). With t=xnt=x^n it becomes 1n(1t1t+1)dt\dfrac{1}{n}\int\big(\tfrac1t - \tfrac{1}{t+1}\big)dt, giving the standard answer
1nlnxnxn+1+C.\dfrac{1}{n}\ln\left|\dfrac{x^n}{x^n+1}\right| + C.

Closed form for the family

dxx(xn+1)=1nlnxnxn+1+C\int \dfrac{dx}{x(x^n+1)} = \dfrac{1}{n}\ln\left|\dfrac{x^n}{x^n+1}\right| + C

Worked example

Evaluate dxx(x3+1)\displaystyle\int \dfrac{dx}{x(x^3+1)}.
  1. This is the family with n=3n=3.
  2. Apply the closed form directly: 1nlnxnxn+1\dfrac{1}{n}\ln\left|\dfrac{x^n}{x^n+1}\right| with n=3n=3.
  3. Substitute n=3n=3.
Answer:13lnx3x3+1+C\dfrac{1}{3}\ln\left|\dfrac{x^3}{x^3+1}\right| + C

From the bank · past-year question

Example 2Indefinite IntegrationMODERATE
What is dxx(xn+1)\int\frac{dx}{x(x^n+1)} equal to?

[Q88 · Apr · 2020]

The 1 over n out front is easy to lose

The coefficient is 1n\dfrac{1}{n}, coming from xn1dx=1nd(xn)x^{n-1}dx = \tfrac1n d(x^n). For n=7n=7 the answer carries 17\tfrac17; the no-coefficient option is the planted distractor.

Concept 3 of 4

Substitute First, Then Decompose

Intuition

A trig integrand can become a rational function in one substitution — then ordinary partial fractions finish it. The classic case is sine on top with a product of cosine-linear factors below: substitute u equals cosine.

Definition

For sinθdθ(2+cosθ)(3+4cosθ)\displaystyle\int \dfrac{\sin\theta\,d\theta}{(2+\cos\theta)(3+4\cos\theta)}, put u=cosθu=\cos\theta, du=sinθdθdu = -\sin\theta\,d\theta. The integral becomes du(2+u)(3+4u)-\displaystyle\int \dfrac{du}{(2+u)(3+4u)}, a rational function. Decompose 1(2+u)(3+4u)=A2+u+B3+4u\dfrac{1}{(2+u)(3+4u)} = \dfrac{A'}{2+u} + \dfrac{B'}{3+4u} by cover-up, integrate to logs, then put u=cosθu=\cos\theta back. When the answer is written Aln2+cosθ+Bln3+4cosθA\ln|2+\cos\theta| + B\ln|3+4\cos\theta|, the ln3+4cosθ\ln|3+4\cos\theta| coefficient picks up an extra 14\tfrac14 from the chain factor inside that factor.

Trig-to-rational substitution

sinθdθf(cosθ)=duf(u),u=cosθ\int \dfrac{\sin\theta\,d\theta}{f(\cos\theta)} = -\int \dfrac{du}{f(u)},\quad u=\cos\theta

Worked example

Evaluate sinθdθ(1+cosθ)(2+cosθ)\displaystyle\int \dfrac{\sin\theta\,d\theta}{(1+\cos\theta)(2+\cos\theta)}.
  1. Let u=cosθu=\cos\theta, du=sinθdθdu=-\sin\theta\,d\theta: integral =du(1+u)(2+u)= -\int \dfrac{du}{(1+u)(2+u)}.
  2. Cover-up: 1(1+u)(2+u)=11+u12+u\dfrac{1}{(1+u)(2+u)} = \dfrac{1}{1+u} - \dfrac{1}{2+u}.
  3. Integrate: (ln1+uln2+u)-\big(\ln|1+u| - \ln|2+u|\big), then u=cosθu=\cos\theta back.
Answer:ln2+cosθ1+cosθ+C\ln\left|\dfrac{2+\cos\theta}{1+\cos\theta}\right| + C

From the bank · past-year question

Example 3Indefinite IntegrationHARD
for the items that follow: Let sinθdθ(2+cosθ)(3+4cosθ)=Aln2+cosθ+Bln3+4cosθ\int\dfrac{\sin\theta\,d\theta}{(2+\cos\theta)(3+4\cos\theta)}=A\ln|2+\cos\theta|+B\ln|3+4\cos\theta|.
What is the value of A?

[Q91 · Apr · 2026]

Carry the minus from du, and the chain factor

u=cosθu=\cos\theta gives du=sinθdθdu=-\sin\theta\,d\theta — the leading minus stays. And a factor like 3+4cosθ3+4\cos\theta contributes a 14\tfrac14 to its log coefficient because ddu(3+4u)=4\dfrac{d}{du}(3+4u)=4.

Concept 4 of 4

Express the Numerator via the Denominator and Its Derivative

Intuition

When both numerator and denominator are linear combinations of sine and cosine, you cannot use cover-up. Instead write the numerator as A times the denominator plus B times the denominator's derivative — then the integral splits into an x-term and a log-term.

Definition

For pcosx+qsinxacosx+bsinxdx\displaystyle\int \dfrac{p\cos x + q\sin x}{a\cos x + b\sin x}\,dx, set

pcosx+qsinx=A(acosx+bsinx)+Bddx(acosx+bsinx).p\cos x + q\sin x = A\,(a\cos x + b\sin x) + B\,\dfrac{d}{dx}(a\cos x + b\sin x).
Match the cosx\cos x and sinx\sin x coefficients to solve the 2×22\times 2 system for A,BA, B. Then
=A ⁣1dx+B ⁣(denominator)denominatordx=Ax+Blnacosx+bsinx+C,\int = A\!\int 1\,dx + B\!\int \dfrac{(\text{denominator})'}{\text{denominator}}\,dx = A\,x + B\ln|a\cos x + b\sin x| + C,
the second piece being the f/ff'/f log pattern.

Numerator as denom + derivative

N(x)=AD(x)+BD(x)  NDdx=Ax+BlnD+CN(x) = A\,D(x) + B\,D'(x)\ \Rightarrow\ \int \dfrac{N}{D}\,dx = A x + B\ln|D| + C

Worked example

Express 5cosx+sinx5\cos x + \sin x as A(cosx+sinx)+Bddx(cosx+sinx)A(\cos x + \sin x) + B\dfrac{d}{dx}(\cos x + \sin x), and integrate 5cosx+sinxcosx+sinx\dfrac{5\cos x + \sin x}{\cos x + \sin x}.
  1. ddx(cosx+sinx)=sinx+cosx\dfrac{d}{dx}(\cos x + \sin x) = -\sin x + \cos x. So match 5cosx+sinx=A(cosx+sinx)+B(cosxsinx)5\cos x + \sin x = A(\cos x+\sin x) + B(\cos x - \sin x).
  2. Coefficients: cosx\cos x: A+B=5A+B=5; sinx\sin x: AB=1A-B=1. Solve: A=3, B=2A=3,\ B=2.
  3. Integrate: Ax+Blncosx+sinx=3x+2lncosx+sinxA\,x + B\ln|\cos x+\sin x| = 3x + 2\ln|\cos x + \sin x|.
Answer:3x+2lncosx+sinx+C3x + 2\ln|\cos x + \sin x| + C

From the bank · past-year question

Example 4Indefinite IntegrationMODERATE
Given that 3cosx+4sinx2cosx+5sinxdx=αx29+β29ln2cosx+5sinx+c\displaystyle\int\dfrac{3\cos x+4\sin x}{2\cos x+5\sin x}\,dx=\dfrac{\alpha x}{29}+\dfrac{\beta}{29}\ln|2\cos x+5\sin x|+c.
What is the value of α\alpha?

[Q81 · Apr · 2024]

Watch the sign in the denominator's derivative

ddx(2cosx+5sinx)=2sinx+5cosx\dfrac{d}{dx}(2\cos x + 5\sin x) = -2\sin x + 5\cos x — the cosine term's derivative is sin-\sin. A sign slip in the 2×22\times2 system swaps AA and BB, the exact distractor the paired items test.

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)

  • Decomposition and the Cover-Up Method

    Linear-factor decomposition

    p(x)(xa)(xb)=Axa+Bxb\dfrac{p(x)}{(x-a)(x-b)} = \dfrac{A}{x-a} + \dfrac{B}{x-b}
  • The Recurring 1 over x times x-to-the-n-plus-1 Family

    Closed form for the family

    dxx(xn+1)=1nlnxnxn+1+C\int \dfrac{dx}{x(x^n+1)} = \dfrac{1}{n}\ln\left|\dfrac{x^n}{x^n+1}\right| + C
  • Substitute First, Then Decompose

    Trig-to-rational substitution

    sinθdθf(cosθ)=duf(u),u=cosθ\int \dfrac{\sin\theta\,d\theta}{f(\cos\theta)} = -\int \dfrac{du}{f(u)},\quad u=\cos\theta
  • Express the Numerator via the Denominator and Its Derivative

    Numerator as denom + derivative

    N(x)=AD(x)+BD(x)  NDdx=Ax+BlnD+CN(x) = A\,D(x) + B\,D'(x)\ \Rightarrow\ \int \dfrac{N}{D}\,dx = A x + B\ln|D| + C

Watch out for (4)

Mastery check — 4 interleaved questions

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

Example 1Indefinite IntegrationMODERATE
What is dxx(x2+1)\int\frac{dx}{x(x^{2}+1)} equal to?

[Q93 · Sep · 2021]

Example 2Indefinite IntegrationHARD
for the items that follow: Let sinθdθ(2+cosθ)(3+4cosθ)=Aln2+cosθ+Bln3+4cosθ\int\dfrac{\sin\theta\,d\theta}{(2+\cos\theta)(3+4\cos\theta)}=A\ln|2+\cos\theta|+B\ln|3+4\cos\theta|.
What is the value of B?

[Q92 · Apr · 2026]

Example 3Indefinite IntegrationEASY
Given that 3cosx+4sinx2cosx+5sinxdx=αx29+β29ln2cosx+5sinx+c\displaystyle\int\dfrac{3\cos x+4\sin x}{2\cos x+5\sin x}\,dx=\dfrac{\alpha x}{29}+\dfrac{\beta}{29}\ln|2\cos x+5\sin x|+c.
What is the value of β\beta?

[Q82 · Apr · 2024]

Example 4Indefinite IntegrationMODERATE
What is dxx(x7+1)\int\dfrac{dx}{x(x^7+1)} equal to?

[Q73 · Apr · 2017]

Drill every past-year question on this subtopic

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