In this guide
← Maths AA guides

Calculus · AA SL & HL

Differentiation

Understand a derivative as an instantaneous rate and choose the right rule for powers, products, quotients and composite functions.

Course focus: AA SL & HL: shared methods are taught first. Sections labelled HL extension go beyond SL requirements.

Before you start: Function notation, indices and gradients.

Start with a small example

Build it from the beginning

A derivative answers how fast an output is changing at one input. Begin with average rates between two points, then move the second point closer. For a smooth curve, those average rates approach the tangent gradient. This builds the rule before asking you to memorise it.

A first walkthrough

For \(f(x)=x^2\), find the tangent gradient at x=2 from nearby points.

See the changing rates
Second inputFunction valueAverage rate from x=2
395
2.14.414.1
2.014.04014.01
1.993.96013.99
  1. From 2 to 3, the average gradient is \(\frac{9-4}{3-2}=5\).
  2. From 2 to 2.1 it is \(\frac{4.41-4}{0.1}=4.1\). From 2 to 2.01 it is 4.01.
  3. Using a step h, the quotient is \(\frac{(2+h)^2-4}{h}=4+h\) for nonzero h. As h approaches zero, the gradient approaches 4.
  4. At a general input x, \(\frac{(x+h)^2-x^2}{h}=2x+h\). The limiting gradient is \(2x\), explaining the square-function rule.
Try the practice ladder after learning the methods ↓

The foundations behind the method

Understand what the symbols mean

Average rate compares changes across an interval. Instantaneous rate is the limit as that interval shrinks, when the limit exists. A derivative is a function describing those local rates, and its units are output units divided by input units. A tangent captures first-order behaviour near a point, not the whole curve.

How the ideas connect

The chain rule distinguishes an outer operation from its inner input: differentiate the outer function at the inner value, then multiply by the inner derivative. A derivative of zero at one point indicates a horizontal tangent; a derivative identically zero throughout an interval indicates a constant function there.

01

Start with the idea

Build your understanding

Differentiation measures how a function changes locally. A derivative supplies a tangent slope or an instantaneous rate, whereas a secant compares a finite change. Identify the structure of an expression before selecting derivative rules.

Structure first

An expression may contain a product, a quotient and a composition simultaneously. One rule does not replace all the others.

Units

A derivative carries output units per input unit. This can help distinguish a rate from an amount.

Compare the approaches

Choose by the information in the question, rather than the formula you recognise first.

Chain rule

When it helpsUse when one function is inside another.

Check before using itMultiply by the derivative of the inside.

Product rule

When it helpsUse when two changing factors are multiplied together.

Check before using itDifferentiating each factor and multiplying the results is invalid.

Your method plan

  1. Identify the outermost operation and nested functions.
  2. Apply the relevant rules with the inside derivatives visible.
  3. Simplify only after every factor and term is included.
02

Learn the methods

Learn step by step

1. From average to instantaneous rate

The gradient between two points is an average rate. The derivative is its limiting value as the points approach each other. At an input a, f′(a) is the tangent gradient if the derivative exists. A graph may be defined at a corner or endpoint without having a two-sided derivative there.

A secant approaches a tangent

0120246xy
  • Curve: y = x²
  • Tangent: y = 2x − 1
  • Secant: y = 3x − 2
For y = x² at x = 1, the tangent slope is 2. A secant from x = 1 to x = 2 has slope 3. As the second point approaches the first, the secant slope tends to 2.

2. Basic rules

Differentiate powers by multiplying by the exponent and lowering that exponent by one. Constants differentiate to zero. Rewrite roots and reciprocals as powers when helpful. Exponential and trig derivatives are different rules; do not apply the power rule to a variable exponent.

Basic derivatives

Why this formula works

For the square function, increase x by a small amount h. The output changes by (x+h) squared minus x squared, which expands to 2xh plus h squared. Divide by h to get the average gradient 2x+h. As h shrinks towards zero, the extra h disappears, leaving 2x. Other integer powers follow the same expansion pattern.

The formula

\((x^n)'=nx^{n-1}\) \((e^x)'=e^x\) \((\ln x)'=1/x\) for \(x>0\). In radians, \((\sin x)'=\cos x\) and \((\cos x)'=-\sin x\).

Quick example

For \(f(x)=x^{2}\), the quotient is [\((x+h)^{2}-x^{2}\)]/\(h=2x+h\), tending to 2x. Thus the tangent gradient at \(x=3\) is 6.

3. Chain rule

For a function inside another function, differentiate the outside while leaving the inside unchanged, then multiply by the inside derivative. Identify the layers before working. A missing inner derivative is a frequent source of a plausible but incorrect answer.

Combined rules

Why this formula works

For a composition, a small input change first changes the inner quantity and then the outer quantity, so the rates multiply. For a product, changes in either factor contribute, giving \(u'v+uv'\). The quotient rule can be derived by treating \(v^{-1}\) as another factor.

The formula

\((uv)'=u'v+uv'\) \((u/v)'=(u'v-uv')/v^2\) \((f(g(x)))'=f'(g(x))g'(x)\).

Quick example

For \((2x+1)^{3}\), the outer derivative is \(3(2x+1)^{2}\) and the inner derivative is 2, giving \(6(2x+1)^{2}\). Omitting the 2 changes every slope.

4. Product and quotient

For two factors both depending on x, differentiate using the product rule rather than multiplying their derivatives. For a quotient, keep the subtraction order fixed and square the denominator. Simplification before differentiation may be easier, but retain the original domain.

Worked example: A product and chain

Differentiate \(y=x^{2}e^{3x}\).

  1. Choose \(u=x^{2}\) and \(v=e^{3x}\). Their derivatives are 2x and 3e^(3x).
  2. Product rule gives \(y'=2xe^{3x}+3x^{2}e^{3x}\).
  3. Factor if useful: \(y'=e^{3x}(2x+3x^{2})\). The factor 3 comes from the chain rule.

5. Tangents and normals

Find \(y=f(a)\) and gradient f′(a), then use point-gradient form. A normal is perpendicular to the tangent. If the tangent gradient is zero, the normal is vertical; if the curve has a vertical tangent, the derivative formula must be interpreted carefully.

Tangent equation

Why this formula works

A differentiable curve has tangent gradient equal to its derivative at the chosen input. The tangent must also pass through the point on the original curve. Substituting these two pieces of information into point-gradient form determines its equation.

The formula

\(y-f(a)=f\prime(a)(x-a)\).

Quick example

For \(y=x^2+2\) at \(x=2\), the point is \((2,6)\), and \(y\prime=2x\) gives gradient 4. The tangent is \(y-6=4(x-2)\), or \(y=4x-2\).

Worked example: A tangent

Find the tangent to \(y=x^{3}-2x\) at \(x=2\).

  1. The point is \((2,4)\). The derivative is \(3x^{2}-2\), so the gradient is 10.
  2. Use \(y-4=10(x-2)\), giving \(y=10x-16\).
  3. The derivative gives a gradient, not the tangent’s vertical intercept.

6. HL representations

HL extension

At AA HL, implicit differentiation handles equations that relate x and y without isolating y. Apply the chain rule to every term containing y and collect the derivative terms before solving. A parametric gradient may be explored when a question supplies the relationship between coordinate rates; this is optional extension material, not an additional named syllabus requirement. Curvature formulas are not required AA content.

Worked example: A parametric gradient
Optional background

A curve has \(x=t^2\), \(y=t^3\). Find the gradient at \(t=2\).

  1. Calculate \(dx/dt=2t\) and \(dy/dt=3t^2\).
  2. For \(t\ne 0\), \(dy/dx=3t^2/(2t)=3t/2\). At \(t=2\) it is 3.
  3. The point is \((4,8)\), so the tangent is \(y-8=3(x-4)\). The quotient formula is indeterminate at \(t=0\) and needs separate analysis there.
Quick formula reference

For revision once you understand the methods above. Check the conditions before using a formula.

Basic derivatives

\((x^n)'=nx^{n-1}\), \((e^x)'=e^x\), \((\ln x)'=1/x\) for \(x>0\). In radians, \((\sin x)'=\cos x\) and \((\cos x)'=-\sin x\).

Return to the explanation →

Combined rules

\((uv)'=u'v+uv'\), \((u/v)'=(u'v-uv')/v^2\), \((f(g(x)))'=f'(g(x))g'(x)\).

Return to the explanation →

Tangent equation

\(y-f(a)=f\prime(a)(x-a)\).

Return to the explanation →

Learn to diagnose an error

Spot the mistake

The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.

Incorrect reasoning

The derivative of \((3x+1)^4\) is \(4(3x+1)^3\).

Explain and repair the mistake

Include the inner rate 3: \(12(3x+1)^3\). For composite functions, name the inner expression before differentiating so its derivative is not missed.

03

Connect and apply

Put the ideas together

A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.

Worked application

A product, its domain and a tangent

For \(y=x\ln x\), find the tangent at \(x=e\) and explain the permitted input domain.

  1. The logarithm requires \(x>0\). Both factors change, so use the product rule.
  2. The derivative is \(y\prime=\ln x+x(1/x)=\ln x+1\).
  3. At \(x=e\), the point is \((e,e)\) and the slope is 2.
  4. The tangent is \(y-e=2(x-e)\), equivalently \(y=2x-e\). It passes through the original point.
Pause and explain

Why is multiplying the two separate derivatives incorrect?

Check your reasoning

That would give \(1/x\), omitting the contribution from changing x while the logarithm has its current value. The product rule adds both contributions, giving \(\ln x+1\).

Common mistakes and how to avoid them

  • Trig differentiation assumes radians.
  • Keep the inner derivative in a chain rule.
  • Differentiating a product does not mean multiplying the two derivatives.
04

Practise independently

Build confidence, then apply it

Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.

  1. 1

    Build confidence

    Find the derivative of \(5x^3\) and its value at x=2.

    Need a starting point?

    Multiply by the exponent, then lower it by one.

    Show the worked solution
    1. The derivative function is \(15x^2\).
    2. At 2, the slope is \(15(4)=60\). A derivative function and its value at a point are different answers.
  2. 2

    Apply and explain

    Find the tangent to \(y=x^2-2x\) at \(x=2\).

    Need a starting point?

    You need both a point and a gradient.

    Show the worked solution
    1. The point is \((2,0)\). The derivative \(2x-2\) gives gradient 2.
    2. The tangent is \(y=2(x-2)\), or \(y=2x-4\).
  3. 3

    Check your understanding

    For \(f(x)=x^2\), what is the tangent slope at x=3?

    Show the worked solution

    \(f'(x)=2x\), so the slope is 6. The tangent through (3,9) is \(y-9=6(x-3)\).

  4. 4

    Use the method

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

    Show the worked solution

    \(y'=4(2x+1)^3(2)=8(2x+1)^3\).

Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.

Using these methods in exam questions

AA Paper 1

No calculator

Practise the algebra and exact values by hand. Keep fractions, surds and multiples of π exact where required. Show the steps that justify the result.

AA Paper 2

GDC required

Use graphing, numerical solving or statistical tools when appropriate. Write the setup before giving the output, and keep extra precision until the final answer.

For this topic: Distinguish a function value from a derivative value. For a tangent give both the point and slope; for an integral show the integrand and limits, then interpret the sign and units.

HL only · GDC required

Paper 3: build a connected argument

Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.

  1. Identify what the first part establishes and record the conditions under which it holds.
  2. When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
  3. Check the conclusion against an earlier numerical case and explain its meaning or limitation.

For the first-assessment-2021 courses. IB assessment reference ↗

Find a specific method or formula

Now practise the method

If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.

Practise this subtopic →

Want a broader practice session? Explore IB Maths AA SL practice questions →Explore IB Maths AA HL practice questions →Try free IB Maths exam-style questions and worked solutions →

Original Arc Practice teaching notes for Maths AA. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.