IB Maths AA SL Topic 5 β€” Calculus Paper 1 & 2 ~10 min read

Differentiating Special Functions

So far we’ve only differentiated powers of x. But IB exams will also throw trig functions, exponentials, and logarithms at you. The good news: each of these has its own little rule, and they’re all in the formula booklet. Memorise four standard derivatives and the patterns that follow, and you can handle anything they ask.

πŸ“˜ What you need to know

The four standard derivatives

Here’s the foundation. Each of these stands on its own β€” you’ll use them all the time.

Sine
y = sin x
↓ differentiate
yβ€² = cos x
Cosine
y = cos x
↓ differentiate
yβ€² = βˆ’sin x
Exponential
y = ex
↓ differentiate
yβ€² = ex
Natural log
y = ln x
↓ differentiate
yβ€² = 1/x

πŸ€” Why is ex its own derivative?

ex is the only function (apart from the trivial f = 0) that’s its own derivative. That’s exactly why e is the special constant it is β€” it’s defined to make this work. The number e β‰ˆ 2.718 is whatever value gives this perfect property.

As soon as you see a question with sin or cos, switch your GDC to radians mode. The trig derivatives only work in radians β€” using degrees here is the most common error in this whole topic.

Linear “inside” functions: ax + b

Real exam questions rarely give you a clean sin x or ex. They’ll usually have something like sin(3x + 2) or eβˆ’2x instead. The pattern: the derivative gets multiplied by the coefficient of x. Same shape, just with an extra a tagged on the front.

FunctionDerivativeNotice
y = sin(ax + b)yβ€² = a cos(ax + b)“a” jumps out front
y = cos(ax + b)yβ€² = βˆ’a sin(ax + b)“a” jumps out, sign flips
y = eax + byβ€² = a eax + b“a” jumps out, e stays
y = ln(ax + b)yβ€² = a / (ax + b)“a” goes on top
🧠

“The coefficient pops out front”

Whatever number is multiplying the x inside the function, that number jumps out and multiplies the whole derivative. The “+ b” sits along for the ride β€” it doesn’t affect the derivative because constants vanish when you differentiate.

The ln(ax) trick β€” the “a”s cancel!

This is a classic exam trap. When you see something like ln(5x) or ln(7x), it looks like the answer should involve a 5 or a 7 β€” but it doesn’t.

From the rule above with b = 0:

d/dx[ln(ax)] = a / (ax) = 1/x

The a‘s cancel! So d/dx(ln 5x) = 1/x, not 5/x. And d/dx(ln 100x) is also 1/x.

⚠ Wrong
d/dx(ln 5x) = 5/x
treating the 5 like it has to appear somewhere
βœ“ Right
d/dx(ln 5x) = 1/x
a’s cancel: a/(ax) = 1/x

πŸ€” Why do they cancel?

Log laws: ln(5x) = ln 5 + ln x. The first term is a constant β€” it differentiates to 0. The second term differentiates to 1/x. So d/dx[ln 5x] = 0 + 1/x = 1/x. The 5 was always going to vanish.

Two patterns to watch out for

Beyond the ln trap, there’s another classic error to avoid β€” applying the wrong rule to ekx.

⚠ Wrong
d/dx(ekx) = kxΒ·ekx βˆ’ 1
applying the power rule (this isn’t a power!)
βœ“ Right
d/dx(ekx) = kΒ·ekx
e to a function β€” coefficient pops out
πŸ“

Don’t confuse ekx with xk

xk is “x raised to a constant” β€” use the power rule. ekx is “a constant raised to x” β€” use the exponential rule. They look similar but follow completely different rules.

What about more complex inside functions?

If the inside function isn’t just ax + b but something more complicated like x2 + 3 or 2x3, the same idea works β€” just multiply by the derivative of that inside function. This is the chain rule, and it’s the topic of the next note. For reference, here are the five general results:

If y =Then yβ€² =
(f(x))nn fβ€²(x) (f(x))nβˆ’1
ef(x)fβ€²(x) ef(x)
ln(f(x))fβ€²(x) / f(x)
sin(f(x))fβ€²(x) cos(f(x))
cos(f(x))βˆ’fβ€²(x) sin(f(x))
Notice the pattern: the derivative of the outside function stays the same β€” just multiply it by fβ€²(x) (the derivative of whatever’s inside). For now, stick to the linear-only versions; the next note covers the chain rule properly.

Worked examples

WE 1

Differentiate trig functions

Find fβ€²(x) for each:

(i) f(x) = sin x  Β·  (ii) f(x) = cos 2x  Β·  (iii) f(x) = 3 sin 4x βˆ’ cos(2x βˆ’ 3)

Apply the standard results. For each linear “inside”, the coefficient pops out front.part (i) fβ€²(x) = cos x cos xpart (ii) a = 2, so: fβ€²(x) = βˆ’2 sin 2x βˆ’2 sin 2xpart (iii) Differentiate term by term: 3 sin 4x β†’ 3 Γ— 4 cos 4x = 12 cos 4x βˆ’cos(2x βˆ’ 3) β†’ βˆ’(βˆ’2 sin(2x βˆ’ 3)) = 2 sin(2x βˆ’ 3) fβ€²(x) = 12 cos 4x + 2 sin(2x βˆ’ 3) double negative on (iii) β€” be very careful with the signs!
WE 2

Find a gradient β€” exact value with trig

Find the gradient of the tangent to the curve y = sin(2x + Ο€/6) at the point where x = Ο€/8. Give your answer as an exact value.

Differentiate, then substitute. Keep angles in radians throughout.step 1 β€” differentiate a = 2, so: dy/dx = 2 cos(2x + Ο€/6)step 2 β€” substitute x = Ο€/8 dy/dx = 2 cos(2(Ο€/8) + Ο€/6) = 2 cos(Ο€/4 + Ο€/6) = 2 cos(5Ο€/12)step 3 β€” exact value cos(5Ο€/12) = cos(Ο€/4 + Ο€/6) = cos(Ο€/4)cos(Ο€/6) βˆ’ sin(Ο€/4)sin(Ο€/6) = (√2/2)(√3/2) βˆ’ (√2/2)(1/2) = (√6 βˆ’ √2)/4 β†’ 2 Γ— (√6 βˆ’ √2)/4 = (√6 βˆ’ √2)/2 gradient = Β½(√6 βˆ’ √2) remember: GDC must be in RADIANS for trig calculus!
WE 3

Differentiate exponentials and logs

Find dy/dx for:   (i) y = e4x  Β·  (ii) y = ln(7x)  Β·  (iii) y = ln(2x βˆ’ 5)

Apply the standard linear-inside rules.part (i) a = 4: dy/dx = 4 e4x 4 e4xpart (ii) β€” the trick! a = 7, b = 0 β†’ a’s cancel: dy/dx = 7/(7x) = 1/x 1/xpart (iii) a = 2, b = βˆ’5: dy/dx = 2/(2x βˆ’ 5) 2/(2x βˆ’ 5) part (ii) is the classic ln(ax) trap β€” don’t write 7/x!
WE 4

Combined ex and ln β€” gradient at a point

A curve has equation y = eβˆ’3x + 1 + 2 ln 5x. Find the gradient of the curve at the point where x = 2, giving your answer in the form a + bec, where a, b, c are integers.

Differentiate term by term. Watch the ln(5x) trick on the second term!step 1 β€” differentiate eβˆ’3x+1 β†’ βˆ’3 eβˆ’3x+1 2 ln 5x β†’ 2 Γ— (1/x) = 2/x (a’s cancel!) dy/dx = βˆ’3 eβˆ’3x+1 + 2/xstep 2 β€” substitute x = 2 dy/dx = βˆ’3 eβˆ’3(2)+1 + 2/2 = βˆ’3 eβˆ’5 + 1 = 1 βˆ’ 3 eβˆ’5 gradient = 1 βˆ’ 3 eβˆ’5,   a = 1, b = βˆ’3, c = βˆ’5 if you wrote 10/x for the second term, you fell for the ln(5x) trap!
WE 5

Mixed: trig, exp, and log together

Find fβ€²(x) for   f(x) = 4 cos(3x) βˆ’ 2 eβˆ’x + ln(2x).

Differentiate term by term. Apply the right rule to each.term 1: 4 cos(3x) a = 3: β†’ 4 Γ— (βˆ’3 sin(3x)) = βˆ’12 sin(3x)term 2: βˆ’2 eβˆ’x a = βˆ’1: β†’ βˆ’2 Γ— (βˆ’1) eβˆ’x = 2 eβˆ’xterm 3: ln(2x) a’s cancel: β†’ 1/xCombine: fβ€²(x) = βˆ’12 sin(3x) + 2 eβˆ’x + 1/x three different rules, three different terms β€” they don’t interact!

πŸ’‘ Top tips

⚠ Common mistakes

You’ve got the four standard derivatives plus the linear-inside extension. The next note brings in the chain rule properly β€” the master tool for differentiating any “function of a function”, not just linear insides. Once chain rule is in your toolkit, every general result on this page becomes a single, clean technique.

Need help with Differentiating Special Functions?

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

Book Free Session β†’