PYQ Vault

HSC Maths · Indefinite Integration

Integration by Partial Fractions

A proper rational function is split into simpler fractions, one for each factor of the denominator, and each piece integrates to a log or an inverse tangent.

Why this matters

36 questions, two of them from board papers: 5eˣ over (eˣ + 1)(e²ˣ + 9) (2024), and (3x² + 4x − 5) over (x² − 1)(x + 2) (2026), the same as a solved example of the textbook. The textbook rows are Exercise 3.4, its solved examples and Miscellaneous items.

Concept 1 of 3: Non-repeated linear factors

A fraction whose denominator is a product of different linear factors is a sum of simple fractions A over each factor. Each constant is found in one line by putting x equal to the value that makes its factor zero, and each piece integrates to a log.

Definition

  • A rational function f(x)g(x)\dfrac{f(x)}{g(x)} is proper when the degree of ff is less than the degree of gg. If it is not, divide first: quotient plus a proper fraction.
  • px+q(x−a)(x−b)=Ax−a+Bx−b\dfrac{px + q}{(x - a)(x - b)} = \dfrac{A}{x - a} + \dfrac{B}{x - b}.
  • Multiply through by the denominator; put x=ax = a to find AA and x=bx = b to find BB.
  • ∫Ax−a dx=Alog⁡∣x−a∣+c\int \dfrac{A}{x - a}\,dx = A\log|x - a| + c, and ∫dxax+b=1alog⁡∣ax+b∣+c\int \dfrac{dx}{ax + b} = \dfrac{1}{a}\log|ax + b| + c.

Distinct linear factors

px2+qx+r(x−a)(x−b)(x−c)=Ax−a+Bx−b+Cx−c\frac{px^2+qx+r}{(x-a)(x-b)(x-c)} = \frac{A}{x-a} + \frac{B}{x-b} + \frac{C}{x-c}

Worked example

Evaluate ∫x+7(x−1)(x+2) dx\int \dfrac{x + 7}{(x - 1)(x + 2)}\,dx.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · Q. 31Hard

Example 1 · Indefinite Integration · Integration by Partial Fractions

Evaluate : ∫3x2+4x−5(x2−1)(x+2)⋅dx\int \frac{3x^{2} + 4x - 5}{(x^{2} - 1)(x + 2)} \cdot dx

Splitting an improper fraction

If the degree of the numerator is not less than that of the denominator, divide first. Partial fractions of an improper fraction miss the quotient and give a wrong answer.

Dropping the 1/a with a factor like 3x + 1

∫dx3x+1=13log⁡∣3x+1∣+c\int \dfrac{dx}{3x + 1} = \dfrac{1}{3}\log|3x + 1| + c. The partial fraction constant and this 13\dfrac{1}{3} multiply together.

Concept 2 of 3: Repeated linear factors and quadratic factors

A repeated factor needs a fraction for every power of it, and a quadratic factor that does not split needs a linear numerator, not a constant. The constants that the 'put x equal to' trick cannot reach are found by comparing coefficients.

Definition

  • A repeated factor (x−a)2(x - a)^2 gives Ax−a+B(x−a)2\dfrac{A}{x - a} + \dfrac{B}{(x - a)^2}.
  • A quadratic factor x2+bx+cx^2 + bx + c with no real factors gives Bx+Cx2+bx+c\dfrac{Bx + C}{x^2 + bx + c}.
  • Find the constants by putting convenient values of xx, then compare the coefficients of the highest power for the rest.
  • ∫dx(x−a)2=−1x−a+c\int \dfrac{dx}{(x - a)^2} = -\dfrac{1}{x - a} + c.
  • An expression in x2x^2 only, such as x2(x2+1)(x2+4)\dfrac{x^2}{(x^2 + 1)(x^2 + 4)}: put x2=mx^2 = m only to find the constants, then write the fractions in xx again.

Repeated and quadratic factors

f(x)(x−a)2(x−b)=Ax−a+B(x−a)2+Cx−b,f(x)(x−a)(x2+k)=Ax−a+Bx+Cx2+k\frac{f(x)}{(x-a)^2(x-b)} = \frac{A}{x-a} + \frac{B}{(x-a)^2} + \frac{C}{x-b}, \qquad \frac{f(x)}{(x-a)(x^2+k)} = \frac{A}{x-a} + \frac{Bx+C}{x^2+k}

Worked example

Evaluate ∫x2(x2+1)(x2+4) dx\int \dfrac{x^2}{(x^2 + 1)(x^2 + 4)}\,dx.
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · Ex 3.4 I (xiii)Moderate

Example 2 · Indefinite Integration · Integration by Partial Fractions

Integrate the following w. r. t. x :
∫3x−2(x+1)2(x+3) dx\int \frac{3x - 2}{(x + 1)^2 (x + 3)} \, dx

Missing a power of a repeated factor

(x+1)2(x + 1)^2 in the denominator needs both Ax+1\dfrac{A}{x + 1} and B(x+1)2\dfrac{B}{(x + 1)^2}. With only one of them the constants cannot be found.

A constant over a quadratic factor

Over x2+1x^2 + 1 the numerator must be Bx+CBx + C. Writing just BB forces wrong values for the other constants.

Concept 3 of 3: Substitute first, then partial fractions

Many integrands are rational functions of eˣ, log x, sin x, cos x or a power of x rather than of x itself. One substitution turns them into an ordinary rational function of t, and the partial fractions are then done in t.

Definition

  • Powers of exe^x: put t=ext = e^x, dt=ex dxdt = e^x\,dx.
  • log⁡x\log x: put t=log⁡xt = \log x, dt=dxxdt = \dfrac{dx}{x}.
  • 1x(xn+1)\dfrac{1}{x(x^n + 1)}: multiply top and bottom by xn−1x^{n-1} and put t=xnt = x^n.
  • 1sin⁡x(a+bcos⁡x)\dfrac{1}{\sin x(a + b\cos x)}: multiply top and bottom by sin⁡x\sin x, write sin⁡2x=1−cos⁡2x\sin^2 x = 1 - \cos^2 x and put t=cos⁡xt = \cos x. With cos⁡x\cos x and sin⁡x\sin x the other way round, put t=sin⁡xt = \sin x.
  • Split the rational function of tt into partial fractions, integrate, and put back.

eˣ first

t=ex,  dt=ex dx:∫ex dx(ex+a)(ex+b)=∫dt(t+a)(t+b)t = e^x,\; dt = e^x\,dx: \qquad \int \frac{e^x\,dx}{(e^x+a)(e^x+b)} = \int \frac{dt}{(t+a)(t+b)}

Worked example

Evaluate ∫1sin⁡x(1+cos⁡x) dx\int \dfrac{1}{\sin x(1 + \cos x)}\,dx.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2024 · Q. 33Hard

Example 3 · Indefinite Integration · Integration by Partial Fractions

Evaluate: ∫5ex(ex+1)(e2x+9)dx\int\frac{5e^{x}}{\left( e^{x} + 1 \right)\left( e^{2x} + 9 \right)}dx.

Doing partial fractions in x when the expression is in eˣ

ex(ex+1)(ex+2)\dfrac{e^x}{(e^x + 1)(e^x + 2)} is not a rational function of xx. Put t=ext = e^x first; then the factors are linear in tt.

Putting back the wrong function

If t=cos⁡xt = \cos x, every tt in the answer becomes cos⁡x\cos x, including the one inside 12(1+t)\dfrac{1}{2(1 + t)}.

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

  • Non-repeated linear factors

    Distinct linear factors

    px2+qx+r(x−a)(x−b)(x−c)=Ax−a+Bx−b+Cx−c\frac{px^2+qx+r}{(x-a)(x-b)(x-c)} = \frac{A}{x-a} + \frac{B}{x-b} + \frac{C}{x-c}
  • Repeated linear factors and quadratic factors

    Repeated and quadratic factors

    f(x)(x−a)2(x−b)=Ax−a+B(x−a)2+Cx−b,f(x)(x−a)(x2+k)=Ax−a+Bx+Cx2+k\frac{f(x)}{(x-a)^2(x-b)} = \frac{A}{x-a} + \frac{B}{(x-a)^2} + \frac{C}{x-b}, \qquad \frac{f(x)}{(x-a)(x^2+k)} = \frac{A}{x-a} + \frac{Bx+C}{x^2+k}
  • Substitute first, then partial fractions

    eˣ first

    t=ex,  dt=ex dx:∫ex dx(ex+a)(ex+b)=∫dt(t+a)(t+b)t = e^x,\; dt = e^x\,dx: \qquad \int \frac{e^x\,dx}{(e^x+a)(e^x+b)} = \int \frac{dt}{(t+a)(t+b)}

Watch out for (6)

Test yourself on Indefinite Integration

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