Radford Mathematics IB Mathematics resources • AA HL

Radford Mathematics

Contact / enquiry

Send a question about tutoring, revision courses, website resources or anything else. Your message will be sent to info@radfordmathematics.com.

IB Mathematics: Analysis and Approaches HL — Topic 5 Calculus

Differentiation Rules

Differentiate standard functions and combinations using sums, constant multiples, the chain rule, product rule and quotient rule.

AA HL · SL 5.6

Learning goal

Differentiate standard functions and combinations of functions using the correct rule, with clear notation and working.

Syllabus link

IB Mathematics AA SL/HL: SL 5.6. Derivatives of \(x^n\), \(\sin x\), \(\cos x\), \(e^x\) and \(\ln x\); sums and multiples; chain, product and quotient rules.

Big idea

A derivative measures instantaneous rate of change. The main skill in this section is recognising the structure of a function and choosing the correct differentiation rule before doing the algebra.

Core habit

Identify the structure first: sum, composite, product or quotient. Then apply the corresponding rule and simplify only after differentiating correctly.

1

The derivative as a function

A derivative is itself a function. It gives the gradient of the original function at each value of \(x\).

Notation

If \(y=f(x)\), the derivative can be written as \(f'(x)\) or \(\dfrac{dy}{dx}\). Both mean the rate of change of \(y\) with respect to \(x\).

Graph of y equals x squared plus 1 with a tangent at x equals 1 whose gradient is 2
If \(f(x)=x^2+1\), then \(f'(x)=2x\). At \(x=1\), the tangent gradient is \(f'(1)=2\).
2

Standard derivatives to know

FunctionDerivativeNote
\(x^n\)\(nx^{n-1}\)\(n\in\mathbb{Q}\)
\(\sin x\)\(\cos x\)angles in radians
\(\cos x\)\(-\sin x\)angles in radians
\(e^x\)\(e^x\)unchanged
\(\ln x\)\(\dfrac1x\)\(x>0\)

Common trap

The derivative of \(\ln x\) is \(1/x\), not \(\ln x\). Trigonometric derivative rules in calculus use radians.

Worked example 1: standard derivatives and notation

Differentiate: (a) \(f(x)=x^{5/2}\); (b) \(y=3\sin x-4e^x+7\ln x\).

Solution

\[(a)\quad f'(x)=\frac52x^{3/2}.\]

For part (b), differentiate each term separately:

\[\frac{dy}{dx}=3\cos x-4e^x+\frac7x.\]
3

Sums, differences and constant multiples

Differentiation is linear. Constants multiply through, and sums or differences can be differentiated term by term.

\[\frac{d}{dx}\big(af(x)+bg(x)\big)=af'(x)+bg'(x).\]

Worked example 2: differentiating a sum

Find \(f'(x)\) for \(f(x)=4x^3-\dfrac5{x^2}+6\cos x-2\ln x\).

Solution

Rewrite the fraction as a power: \(-5/x^2=-5x^{-2}\). Then differentiate term by term:

\[f'(x)=12x^2+10x^{-3}-6\sin x-\frac2x=12x^2+\frac{10}{x^3}-6\sin x-\frac2x.\]
4

The chain rule for composite functions

The chain rule is used when one function is inside another. Differentiate the outer function, keeping the inner function in place, then multiply by the derivative of the inner function.

\[f(x)=g(h(x))\quad\Longrightarrow\quad f'(x)=g'(h(x))h'(x).\]
\[\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}.\]
Diagram showing an inner function feeding into an outer function for the chain rule
Think “outer derivative × inner derivative”.

Chain Rule tutorial

A full walkthrough of the chain rule and its notation.

Watch the full Chain Rule tutorial
Then watch Chain Rule Shortcuts

Worked example 3: chain rule with a power

Differentiate \(y=(3x^2-5x+1)^4\).

Solution

Function notation. Let \(h(x)=3x^2-5x+1\) and \(g(u)=u^4\). Then

\[h'(x)=6x-5,\qquad g'(u)=4u^3.\]

Therefore

\[\frac{dy}{dx}=4(3x^2-5x+1)^3(6x-5).\]

Leibniz notation. Put \(u=3x^2-5x+1\), so \(y=u^4\). Then

\[\frac{dy}{du}=4u^3,\qquad\frac{du}{dx}=6x-5,\]

and multiply the two derivatives before substituting back.

Worked example 4: exponential and trigonometric composites

Differentiate (a) \(f(x)=e^{x^2+2x}\); (b) \(g(x)=\sin(3x-1)\).

Solution

\[(a)\quad f'(x)=(2x+2)e^{x^2+2x}.\]
\[(b)\quad g'(x)=3\cos(3x-1).\]
5

The product rule

Use the product rule when two functions of \(x\) are multiplied together.

\[y=uv\quad\Longrightarrow\quad\frac{dy}{dx}=u'v+uv'.\]

Do not differentiate a product factor-by-factor

In general, \((fg)'\ne f'g'\). You need both cross-terms from the product rule.

Product Rule tutorial

See the product rule developed and applied step by step.

Watch on YouTube

Worked example 5: product rule

Differentiate \(y=x^2\ln x\).

Solution

Let \(u=x^2\) and \(v=\ln x\). Then \(u'=2x\) and \(v'=1/x\). Therefore

\[\frac{dy}{dx}=(2x)(\ln x)+x^2\left(\frac1x\right)=2x\ln x+x.\]
6

The quotient rule

Use the quotient rule when one function of \(x\) is divided by another.

\[y=\frac uv\quad\Longrightarrow\quad\frac{dy}{dx}=\frac{vu'-uv'}{v^2}.\]

Quotient Rule tutorial

Use this tutorial for a complete worked explanation of the quotient structure and numerator order.

Watch on YouTube

Worked example 6: quotient rule

Differentiate \(y=\dfrac{e^x}{x^2+1}\).

Solution

Let \(u=e^x\), \(v=x^2+1\). Then \(u'=e^x\) and \(v'=2x\).

\[\frac{dy}{dx}=\frac{(x^2+1)e^x-e^x(2x)}{(x^2+1)^2}=\frac{e^x(x^2-2x+1)}{(x^2+1)^2}=\frac{e^x(x-1)^2}{(x^2+1)^2}.\]
7

Choosing the correct rule

StructureRuleExample
Sum/differenceDifferentiate term by term\(x^3+\sin x\)
Function inside a functionChain rule\(\sin(x^2)\)
Two functions multipliedProduct rule\(x^2e^x\)
One function divided by anotherQuotient rule\(\ln x/x\)
Decision diagram for choosing between sum, chain, product and quotient differentiation rules
Complex expressions can require more than one rule. Identify the outermost structure first.

Worked example 7: product rule with a chain rule inside

Differentiate \(f(x)=x^2e^{3x-1}\).

Solution

Use the product rule with \(u=x^2\) and \(v=e^{3x-1}\). The derivative of \(v\) also needs the chain rule:

\[u'=2x,\qquad v'=3e^{3x-1}.\]
\[f'(x)=2xe^{3x-1}+3x^2e^{3x-1}=xe^{3x-1}(2+3x).\]

Worked example 8: quotient rule and a stationary tangent

Let \(y=\dfrac{\ln x}x\), \(x>0\). Find \(dy/dx\) and the gradient at \(x=e\).

Solution

Use the quotient rule with \(u=\ln x\), \(v=x\):

\[\frac{dy}{dx}=\frac{x(1/x)-(\ln x)(1)}{x^2}=\frac{1-\ln x}{x^2}.\]

At \(x=e\), \(\ln e=1\), so

\[\left.\frac{dy}{dx}\right|_{x=e}=0.\]

The tangent is horizontal at \(x=e\).

8

Video tutorials

9

Practice

Differentiate each function

  1. \(7x^4-3x^2+5x-9\)
  2. \(2\sin x+5\cos x-3e^x\)
  3. \(4\ln x-\dfrac6x\), \(x>0\)
  4. \(x^{3/2}-x^{-1/2}\)
  5. \((5x-2)^6\)
  6. \(\sin(4x+1)\)
  7. \(e^{2x^2-3x}\)
  8. \(\ln(3x^2+1)\)
  9. \(x^3\sin x\)
  10. \(e^x\cos x\)
  11. \(\dfrac{x^2+1}{x-1}\)
  12. \(\dfrac{\ln x}{x^2}\)
  13. \(x^2\ln(2x+1)\)
  14. \(\dfrac{e^{3x}}{x^2+4}\)
  15. For \(f(x)=x^2e^{-x}\), find \(f'(x)\) and hence the gradient when \(x=2\).
  16. Explain why \(x\sin x\) needs the product rule but \(\sin(x^2)\) needs the chain rule.
10

Answer key

Answers 1–8

  1. \(28x^3-6x+5\)
  2. \(2\cos x-5\sin x-3e^x\)
  3. \(\dfrac4x+\dfrac6{x^2}\)
  4. \(\dfrac32x^{1/2}+\dfrac12x^{-3/2}\)
  5. \(30(5x-2)^5\)
  6. \(4\cos(4x+1)\)
  7. \((4x-3)e^{2x^2-3x}\)
  8. \(\dfrac{6x}{3x^2+1}\)

Answers 9–16

  1. \(3x^2\sin x+x^3\cos x\)
  2. \(e^x(\cos x-\sin x)\)
  3. \(\dfrac{x^2-2x-1}{(x-1)^2}\)
  4. \(\dfrac{1-2\ln x}{x^3}\)
  5. \(2x\ln(2x+1)+\dfrac{2x^2}{2x+1}\)
  6. \(\dfrac{e^{3x}(3x^2-2x+12)}{(x^2+4)^2}\)
  7. \(f'(x)=e^{-x}(2x-x^2)\), so \(f'(2)=0\).
  8. \(x\sin x\) is a product of two functions of \(x\); \(\sin(x^2)\) is a composite function with \(x^2\) inside sine.