IB Maths AA HL Topic 5 — Calculus Paper 1 & 2 HL ~12 min read

Integrating with Partial Fractions

Partial fractions decompose a rational integrand P(x)/Q(x) into simpler pieces — each a fraction of the form A/(xr) — so the integral becomes a sum of ln terms. The technique is powerful but should be your THIRD choice, not your first. Always check: (1) is the numerator (a multiple of) the derivative of the denominator? If yes, use the f′/f shortcut. (2) Does the denominator factorise? If no real roots, complete the square and use arctan. Only when both shortcuts fail and Q factors into linear pieces should you reach for partial fractions.

📘 What you need to know

The decision tree

Three routes lead to a clean answer for a rational integrand. Before computing anything, check which route applies — it can save many minutes of unnecessary algebra.

Three routes for rational integrand P(x)/Q(x) with quadratic Q P(x) / Q(x), Q quadratic Check 1: is numerator = derivative of Q(x)? Check 2: does Q(x) factor into linear pieces? numerator = Q′(x) Q factors, no f′/f No real roots f′(x) / f(x) SHORTCUT ∫ f′(x)/f(x) dx = ln|f(x)| + c fastest — one line PARTIAL FRACTIONS A/(x−r) + B/(x−s) A ln|x−r| + B ln|x−s| + c decompose, integrate each COMPLETE SQUARE (x+k)² + a² (1/a) arctan((x+k)/a) inverse-trig form Check the discriminant of Q: b² − 4ac > 0 means Q factors (left/middle); < 0 means no real roots (right)
Three routes for any rational integrand P(x)/Q(x) with quadratic Q. Always check the f′/f shortcut FIRST (one line). Then check the discriminant of Q. Reach for partial fractions only when neither shortcut applies AND Q factors into linear pieces — that’s the third-priority route, not the default.
Three integrals, three answers — same integrand shape: ∫ (2x+3)/(x²+3x+5) dx uses f′/f → ln(x²+3x+5). ∫ 1/(x²+2x+5) dx needs complete-the-square → (1/2)arctan((x+1)/2). ∫ 1/(x²−4) dx needs partial fractions → (1/4)ln|(x−2)/(x+2)|. The integrand SHAPE looks similar but the antiderivative TYPE depends entirely on the discriminant and whether numerator matches Q′.

Cover-up vs simultaneous equations

Cover-up method (faster)
P(x)(xr)(xs) = Axr + Bxs

A = P(r)/(rs),  B = P(s)/(sr)
Substitute x = each root in turn into the numerator-equals-numerator identity. The other factor vanishes (“covers up”), isolating A or B directly.
Simultaneous equations (more general)
Multiply out: P(x) = A(xs) + B(xr)

Equate coefficients of x and constant on both sides → solve 2×2 system for A, B
Works for any decomposition; required when the question explicitly asks for it, or when one method gives messy fractions and the other is cleaner.

🧭 Recipe — integrate any P(x)/Q(x) with Q quadratic

  1. Check f′/f FIRST: is the numerator (a constant multiple of) the derivative of the denominator? If yes, the integral is (constant)·ln|denominator| + c in one line. Skip partial fractions entirely.
  2. Check the discriminant of Q(x): if b² − 4ac < 0, the denominator has NO real roots. Complete the square to get (x+k)² + a² and use the arctan formula — NOT partial fractions.
  3. If Q factors (discriminant > 0), write P(x)/Q(x) = A/(xr) + B/(xs) where r, s are the roots of Q. Find A and B via cover-up or simultaneous equations.
  4. Integrate each piece: ∫ A/(xr) dx = A ln|xr| + c. Sum the pieces to get the full antiderivative.
  5. Finish: for indefinite, add +c and (if asked for single-log form) combine using log laws. For definite, apply upper-minus-lower at the limits — log laws often simplify the difference into a single ln.

Worked examples

WE 1

Basic partial fractions — difference of squares

Find ∫ 1x² − 4 dx.

Step 1 — decision check numerator = 1; derivative of (x²-4) is 2x — NOT a match for f’/f discriminant of x²-4: 0² – 4(1)(-4) = 16 > 0 — Q factors → partial fractions Step 2 — factor and decompose x² – 4 = (x-2)(x+2) 1/((x-2)(x+2)) = A/(x-2) + B/(x+2) Step 3 — cover-up method multiply both sides by (x-2)(x+2): 1 = A(x+2) + B(x-2) x = 2: 1 = 4A ⟹ A = 1/4 x = -2: 1 = -4B ⟹ B = -1/4 Step 4 — integrate each piece I = ∫ (1/4)/(x-2) dx – ∫ (1/4)/(x+2) dx = (1/4) ln|x-2| – (1/4) ln|x+2| + c Step 5 — combine logs = (1/4) ln|(x-2)/(x+2)| + c ∫ 1/(x² − 4) dx = 14 ln|x − 2x + 2| + c classic “difference of squares” partial fractions — uses the identity 1/(a²-b²) = (1/(2a)) · [1/(a-b) – 1/(a+b)] · … well, more directly, just cover-up with the two roots.
WE 2

Non-constant numerator — full decomposition

Find ∫ 2x + 5x² − x − 2 dx.

Step 1 — decision check derivative of (x²-x-2) is 2x-1; numerator is 2x+5 ≠ multiple of 2x-1 → not f’/f discriminant: 1 + 8 = 9 > 0 → factors → partial fractions Step 2 — factor and decompose x² – x – 2 = (x-2)(x+1) (2x+5)/((x-2)(x+1)) = A/(x-2) + B/(x+1) Step 3 — cover-up 2x + 5 = A(x+1) + B(x-2) x = 2: 9 = 3A ⟹ A = 3 x = -1: 3 = -3B ⟹ B = -1 Step 4 — integrate I = ∫ 3/(x-2) dx + ∫ -1/(x+1) dx = 3 ln|x-2| – ln|x+1| + c Step 5 — combine into single log = ln|(x-2)³| – ln|x+1| + c = ln|(x-2)³/(x+1)| + c ∫ (2x+5)/(x²−x−2) dx = ln|(x−2)³x+1| + c cover-up handles a non-constant numerator just as easily — substitute each root, the (other factor) “covers up” and the constant pops out. The “3 ln|x-2|” combines using the log law A ln|f| = ln|f^A| into ln|(x-2)³|.
WE 3

Definite integral via partial fractions

Evaluate ∫34 1x² − 1 dx, giving your answer in exact form.

Step 1 — decision check; factor x² – 1 = (x-1)(x+1) numerator 1 ≠ Q'(x) = 2x; → partial fractions Step 2 — decompose by cover-up 1 = A(x+1) + B(x-1) x = 1: 1 = 2A ⟹ A = 1/2 x = -1: 1 = -2B ⟹ B = -1/2 Step 3 — antiderivative (no need for +c on a definite) F(x) = (1/2) ln|x-1| – (1/2) ln|x+1| = (1/2) ln|(x-1)/(x+1)| Step 4 — apply limits 3 to 4 F(4) = (1/2) ln|3/5| F(3) = (1/2) ln|2/4| = (1/2) ln(1/2) Step 5 — compute the difference using log law F(4) – F(3) = (1/2)[ln(3/5) – ln(1/2)] = (1/2) ln[(3/5)/(1/2)] = (1/2) ln(6/5) ∫ from 3 to 4 of 1/(x²−1) dx = 12 ln(65) interval [3, 4] is well inside x > 1, so x-1 and x+1 are both positive — modulus drops naturally. Final answer is positive (since 6/5 > 1, so ln(6/5) > 0) — matches the fact that 1/(x²-1) > 0 on [3, 4].
WE 4

Decision tree — spot f′/f, DON’T use partial fractions

Find ∫ 2x + 3x² + 3x + 5 dx.

Step 1 — the decision-tree check denominator: f(x) = x² + 3x + 5 f'(x) = 2x + 3 ← exactly the numerator! ⟹ this is f'(x)/f(x) — use the SHORTCUT, NOT partial fractions Step 2 — apply f’/f formula ∫ f'(x)/f(x) dx = ln|f(x)| + c I = ln|x² + 3x + 5| + c Step 3 — can we drop the modulus? check discriminant: 9 – 20 = -11 < 0 no real roots — f(x) doesn’t change sign anywhere f(0) = 5 > 0 ⟹ f(x) > 0 for all x — drop modulus ∫ (2x+3)/(x²+3x+5) dx = ln(x² + 3x + 5) + c EVEN THOUGH this looks like a partial-fractions setup (rational integrand with quadratic denominator), the f’/f match saves us all the decomposition work. Always do the f'(x) check first — it’s just one differentiation, and it often eliminates the harder algebra entirely.
WE 5

Decision tree — no real roots, use complete-the-square + arctan

Find ∫ 1x² + 2x + 5 dx.

Step 1 — decision tree check numerator 1; derivative of x²+2x+5 is 2x+2 — not f’/f discriminant: 4 – 20 = -16 < 0 — NO real roots → NOT partial fractions ⟹ complete the square and use arctan Step 2 — complete the square x² + 2x + 5 = (x² + 2x + 1) + 4 = (x + 1)² + 4 = (x + 1)² + 2² Step 3 — apply ∫ 1/(a² + u²) du = (1/a) arctan(u/a), with u = x+1, a = 2 I = ∫ 1/((x+1)² + 4) dx = (1/2) arctan((x+1)/2) + c ∫ 1/(x²+2x+5) dx = 12 arctan(x + 12) + c trap to avoid: trying partial fractions on x²+2x+5 leads to dead ends because the quadratic doesn’t factor over the reals (you’d get complex roots). The discriminant check at step 1 saves you from wasted work — always do it BEFORE trying to factor.
WE 6

Full decomposition with log-law combining

Find ∫ 3x − 4x² − 3x + 2 dx.

Step 1 — decision check denominator’s derivative: 2x – 3 numerator 3x – 4: NOT a multiple of 2x – 3 ⟹ not f’/f. Check factorisation: x² – 3x + 2 = (x-1)(x-2). roots are 1 and 2 ⟹ partial fractions Step 2 — decompose (3x-4)/((x-1)(x-2)) = A/(x-1) + B/(x-2) 3x – 4 = A(x-2) + B(x-1) Step 3 — cover-up x = 1: -1 = -A ⟹ A = 1 x = 2: 2 = B ⟹ B = 2 Step 4 — integrate each piece I = ∫ 1/(x-1) dx + ∫ 2/(x-2) dx = ln|x-1| + 2 ln|x-2| + c Step 5 — combine using log laws into single ln = ln|x-1| + ln|(x-2)²| + c = ln|(x-1)(x-2)²| + c ∫ (3x−4)/(x²−3x+2) dx = ln|(x−1)(x−2)²| + c both forms ln|x-1| + 2 ln|x-2| + c and ln|(x-1)(x-2)²| + c are fully correct — combine only if “as a single log” or “in simplified form” is asked. The coefficient 2 in front of ln|x-2| becomes the power on (x-2) when combining.

💡 Top tips

⚠ Common mistakes

Up next: Area Between Curve & y-axis. So far you’ve integrated to find areas bounded by a curve and the x-axis between two x-limits. This sub-chapter flips the orientation: when the area is bounded by the curve, the y-axis, and two y-limits (horizontal lines), you integrate with respect to y instead. Rearrange y = f(x) into x = g(y) and apply ∫|x| dy. Beware: areas to the LEFT of the y-axis are “negative” and need absolute-value treatment, just like with the x-axis version.

Need help with Calculus?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →