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

Integrating Trigonometric, Exponential & Reciprocal Functions

The next batch of standard antiderivatives: sin and cos give back each other (with a sign flip), sec² gives tan, ex is its own antiderivative, and 1/x gives ln|x|. For linear arguments (ax + b), divide by a in front. All these are in the formula booklet — but recognising the pattern matters more than memorising.

📘 What you need to know

The three standard integrals

Trig (radians only) ∫ sin x dx = −cos x + c
∫ cos x dx = sin x + c
∫ sec²x dx = tan x + c
Exponential & reciprocal ∫ ex dx = ex + c
1x dx = ln|x| + c
Why the minus on ∫sin? The derivative of cos x is −sin x. To go backwards from sin x to its antiderivative, you need −cos x so that differentiating gives −(−sin x) = sin x. The minus signs cancel.

Linear arguments (ax + b) — divide by a

If the argument x is replaced by a linear expression (ax + b), each formula picks up a factor of 1/a. This follows from the reverse chain rule (full discussion in the next note). For now, just apply the pattern:

IntegralResult
∫ sin(ax + b) dx−(1/a) cos(ax + b) + c
∫ cos(ax + b) dx(1/a) sin(ax + b) + c
∫ sec²(ax + b) dx(1/a) tan(ax + b) + c
∫ eax + b dx(1/a) eax + b + c
∫ 1/(ax + b) dx(1/a) ln|ax + b| + c
∫ a/(ax + b) dxln|ax + b| + c  (special case: numerator IS the derivative of denominator)
Sanity check: differentiate your answer. The chain rule will multiply by the derivative of (ax + b), which is a — that exactly cancels the 1/a you put out front. The result should be the integrand you started with.

🧭 Recipe — integrate a trig / exp / reciprocal function

  1. Identify the family: is it sin / cos / sec² / e(…) / 1/(…) ?
  2. Look at the argument: is it just x, or is it a linear expression (ax + b)?
  3. Apply the standard antiderivative: sin → −cos, cos → sin, sec² → tan, e(…) → e(…), 1/(…) → ln|…|.
  4. If the argument is (ax + b), multiply by 1/a (and keep any coefficient that was already on the outside).
  5. Add “+ c, then verify by differentiating.

Worked examples

WE 1

The three foundational integrals — direct lookup

Find each indefinite integral.

(a) ∫sin x dx    (b) ∫ex dx    (c) ∫(1/x) dx

(a) ∫sin x dx — use the standard formula ∫sin x dx = −cos x + c (b) ∫e^x dx — e^x is its own antiderivative ∫e^x dx = e^x + c (c) ∫(1/x) dx — the n = −1 special case ∫(1/x) dx = ln|x| + c (a) −cos x + c | (b) e^x + c | (c) ln|x| + c verify by differentiating each: d/dx(−cos x) = sin x ✓ d/dx(e^x) = e^x ✓ d/dx(ln|x|) = 1/x ✓
WE 2

Trig with linear arguments (ax + b)

Find ∫(3 cos(4x + 2) − 5 sin(2x − 1)) dx.

Integrate term by term For 3 cos(4x + 2): cos goes to sin, divide by a = 4 ∫3 cos(4x + 2) dx = 3 · (1/4) sin(4x + 2) = (3/4) sin(4x + 2) For −5 sin(2x − 1): sin goes to −cos, divide by a = 2 ∫(−5) sin(2x − 1) dx = (−5) · (−(1/2)) cos(2x − 1) = (5/2) cos(2x − 1) (double negative: minus on −5, minus on −cos → plus) Combine and add + c = (3/4) sin(4x + 2) + (5/2) cos(2x − 1) + c ∫(3 cos(4x + 2) − 5 sin(2x − 1)) dx = (3/4) sin(4x + 2) + (5/2) cos(2x − 1) + c verify: d/dx of result = 3 cos(4x + 2) − 5 sin(2x − 1) ✓
WE 3

sec² with linear argument

Find ∫6 sec²(2x + π/4) dx.

Recall: ∫sec²(ax + b) dx = (1/a) tan(ax + b) + c Here a = 2, so divide by 2 ∫6 sec²(2x + π/4) dx = 6 · (1/2) tan(2x + π/4) + c = 3 tan(2x + π/4) + c ∫6 sec²(2x + π/4) dx = 3 tan(2x + π/4) + c ∫sec² isn’t in the formula booklet directly — use d/dx(tan x) = sec² x from the booklet, “the other way round”
WE 4

Exponential with linear arguments

Find ∫(e3x − 1 + 4e−2x) dx.

Integrate term by term using ∫e^(ax+b) dx = (1/a) e^(ax+b) + c For e^(3x − 1): a = 3, divide by 3 ∫e^(3x − 1) dx = (1/3) e^(3x − 1) For 4e^(−2x): a = −2, divide by −2 (which is multiplying by −1/2) ∫4 e^(−2x) dx = 4 · (−1/2) e^(−2x) = −2 e^(−2x) Combine and add + c = (1/3) e^(3x − 1) − 2 e^(−2x) + c ∫(e^(3x − 1) + 4 e^(−2x)) dx = (1/3) e^(3x − 1) − 2 e^(−2x) + c careful: dividing by NEGATIVE a flips the sign. ∫e^(−2x) dx = −(1/2) e^(−2x), not (1/2) e^(−2x)
WE 5

Reciprocal of a linear expression — multiple terms

Find ∫(52x + 345x − 1) dx.

Use ∫(1/(ax+b)) dx = (1/a) ln|ax+b| + c on each term For 5/(2x + 3): a = 2, coefficient 5 ∫ 5/(2x + 3) dx = 5 · (1/2) ln|2x + 3| = (5/2) ln|2x + 3| For −4/(5x − 1): a = 5, coefficient −4 ∫ (−4)/(5x − 1) dx = (−4) · (1/5) ln|5x − 1| = −(4/5) ln|5x − 1| Combine and add + c = (5/2) ln|2x + 3| − (4/5) ln|5x − 1| + c = (5/2) ln|2x + 3| − (4/5) ln|5x − 1| + c always write absolute value bars around ln arguments — ln is only defined for positive numbers, but |·| covers both sides
WE 6

Curve from gradient function — find + c

A curve has gradient function dy/dx = cos(2x) + 13x + 1 and passes through the point (0, 5). Find an expression for y.

Step 1 — integrate dy/dx y = ∫(cos(2x) + 1/(3x + 1)) dx = (1/2) sin(2x) + (1/3) ln|3x + 1| + c Step 2 — substitute (0, 5) to find c at x = 0: y = (1/2) sin(0) + (1/3) ln|1| + c = 0 + 0 + c = c → c = 5 Write out the answer y = (1/2) sin(2x) + (1/3) ln|3x + 1| + 5 y = (1/2) sin(2x) + (1/3) ln|3x + 1| + 5 sin(0) = 0 and ln|1| = 0, so the constant becomes obvious. Using x = 0 always makes the algebra simplest when it’s available

💡 Top tips

⚠ Common mistakes

Up next: Reverse Chain Rule. So far the inside has always been (ax + b) — linear. What if the inside is something more general, like x² + 1, or 5x² − 2? You spot the pattern by recognising that the derivative of the inside appears (possibly with adjustment) as a factor outside. This is “integration by inspection” — and once you spot the trick, integrals like ∫2x cos(x²) dx become instant.

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 →