In this guide
← Maths AI guides

Calculus · AI SL & HL

Differentiation

Understand gradients and rates, differentiate integer powers, and find tangents and normals. Labelled HL sections extend the derivative rules.

Course focus: AI SL: integer-power derivatives, including negative powers, numerical derivatives, tangents and normals (SL 5.1–5.4). AI HL adds rational powers, exponential, logarithmic and trigonometric derivatives, chain, product and quotient rules, and related rates (AHL 5.9). Implicit and parametric differentiation are not required AI techniques.

Before you start: Function notation, indices and gradients.

Start with a small example

Build it from the beginning

Think of the derivative as a local rate. A cooling curve can still have a positive temperature while its derivative is negative. At SL, differentiate integer powers, including reciprocals rewritten as negative powers; use a numerical derivative for other contextual models.

A first walkthrough

Find the local rate for \(f(x)=x^2\) at x=2 using 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 2.1, the average rate is \((4.41-4)/0.1=4.1\).
  2. From 2 to 2.01, it is 4.01; from 1.99 to 2, it is 3.99.
  3. The values approach 4 from either side, matching the power-rule result \(f\prime(2)=2(2)=4\). A numerical derivative estimates this limiting rate.
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

A tangent gradient compares output change with input change near one input. At SL, a sum of integer powers can be differentiated term by term, including reciprocal terms rewritten as negative powers. Numerical derivatives extend rate calculations to contextual models without requiring additional analytic rules.

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.

A rate rather than an amount

The value of a function and its derivative answer different questions. Temperature describes how hot something is; its derivative describes how quickly it is heating or cooling.

Choose an SL method first

Use the integer-power rule for analytic derivatives at SL, including negative powers. For another model, use the GDC numerical derivative at the required input. HL adds rules for further function types and combinations.

Compare the approaches

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

Integer-power rule — SL & HL

When it helpsUse when each term is a constant times an integer power of the input. Rewrite reciprocals as negative powers.

Check before using itKeep the original domain and reduce the exponent by one.

Numerical derivative — SL & HL

When it helpsUse technology to estimate the tangent gradient at a specified input, especially for a contextual model.

Check before using itEnter the original function, check the input and report output units per input unit.

Your method plan

  1. Identify whether the question wants a function value, derivative function or rate at one input.
  2. Use integer-power differentiation or a GDC numerical derivative at SL; use the labelled additional rules at HL.
  3. Evaluate at the stated input and interpret the sign, units and tangent if required.
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. For a numerical rate at one input, AI SL students may use the GDC numerical derivative or tangent-gradient tool directly. Enter the original function, select the stated input and report the slope with output-units per input-unit. A small symmetric difference, [f(a+h)−f(a−h)]/(2h), explains what the tool approximates; make h small enough to check that the reported digits are stable. This does not require an analytic derivative rule for every type of function.

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.
Worked example: Use a numerical derivative for cooling

A model is \(T(t)=30+50e^{-0.1t}\) °C, with t in minutes. Use technology to find the rate at t=5.

  1. Enter the temperature function and evaluate the numerical derivative at \(t=5\). The input is time; the output is temperature.
  2. The GDC gives a tangent gradient of about \(-3.0326533\). A symmetric difference with \(h=0.001\) gives \(-3.0326533\) as well.
  3. The rate is \(-3.03\ ^\circ\mathrm C\) per minute to 3 significant figures. The negative sign means cooling; it is not a negative temperature. An analytic exponential derivative is not required for this task.

2. Basic rules

For an integer power, multiply by its exponent and lower the exponent by one. This includes negative integers: rewrite reciprocals as negative powers before differentiating, and retain excluded inputs such as x=0. Constants differentiate to zero and sums are differentiated term by term. Rational non-integer powers and analytic exponential, logarithmic and trigonometric derivative rules are additional HL content. At SL, use a numerical derivative when an analytic rule lies outside the course.

Integer-power differentiation

Why this formula works

The power rule extends to negative integer powers as well as positive ones. Reciprocals become negative powers, so the same exponent-and-coefficient pattern applies. The derivative does not restore points excluded by the original denominator.

The formula

\(\frac{d}{dx}(ax^n)=anx^{n-1}\) \(n\in\mathbb Z\), wherever the original expression is defined.

Quick example

For \(f(x)=3x^{-2}=3/x^2\), \(f\prime(x)=-6x^{-3}=-6/x^3\), with \(x\ne0\).

3. 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

The derivative gives the tangent gradient at the specified input. The original function gives the point through which that line passes. Substituting the point and gradient into point-gradient form determines the tangent equation; check the point in your final line.

The formula

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

Quick example

For f(x)=x² at a=3, the point is (3,9) and slope is 6. Its tangent is \(y-9=6(x-3)\).

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.

4. Further function derivatives

HL extension

At HL, extend the power rule to rational exponents on the real domain of the original function. Exponentials, logarithms and trigonometric functions have their own derivative rules: a variable exponent is not an integer power of x. Work in radians for trigonometric differentiation. Apply these elementary rules first, then combine them using the chain, product or quotient rule in the following lessons. A logarithm requires a positive argument.

Elementary derivatives at HL

HL extension
Why this formula works

The exponential with base e has a local growth rate equal to its value. The logarithm reverses that relationship, giving a reciprocal derivative. Sine and cosine derivatives describe their changing unit-circle components and require radian inputs. Each formula applies only where the function is differentiable.

The formula

\((x^n)\prime=nx^{n-1}\) for rational n on the valid domain; \((e^x)\prime=e^x\) \((\ln x)\prime=1/x\) for \(x>0\). In radians, \((\sin x)\prime=\cos x\) \((\cos x)\prime=-\sin x\) \((\tan x)\prime=1/\cos^2 x\).

Quick example

For \(f(x)=\sqrt{x}+e^x+\ln x\) with \(x>0\), \(f\prime(x)=1/(2\sqrt{x})+e^x+1/x\). The domain excludes zero because of the logarithm.

5. Chain rule

HL extension

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

HL extension
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.

6. Product and quotient

HL extension

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
HL extension

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.

7. Related rates in a model

HL extension

When one measured quantity depends on another that changes with time, apply the chain rule to the explicit relationship. For a sphere, differentiate its volume as a function of radius, then multiply by the radius growth rate. Substitute the stated dimensions only after differentiating. Keep the signs and units: a shrinking radius gives a negative volume rate. Check the explicit model and changing input before applying the chain rule.

Related rates by the chain rule

HL extension
Why this formula works

The rate of volume change per unit radius is multiplied by the rate of radius change per unit time. The radius units cancel, leaving volume per unit time. Differentiate the general relationship before evaluating the instantaneous radius.

The formula

\(\frac{dV}{dt}=\frac{dV}{dr}\frac{dr}{dt}\). For a sphere, \(\frac{dV}{dt}=4\pi r^2\frac{dr}{dt}\).

Quick example

At \(r=3\) cm and \(dr/dt=0.2\) cm/s, the sphere grows at \(4\pi(3)^2(0.2)=7.2\pi\) cubic centimetres per second.

Worked example: A sphere growing at a measured rate
HL extension

A sphere has radius 3 cm, increasing at 0.2 cm/s. Find its volume growth rate.

  1. Use \(V=\frac43\pi r^3\), with radius measured in centimetres.
  2. Differentiate with respect to radius, then use \(dV/dt=(4\pi r^2)(dr/dt)\).
  3. At this instant, \(dV/dt=4\pi(3)^2(0.2)=7.2\pi\approx22.6\) cubic centimetres per second. The positive sign means increasing volume.
Quick formula reference

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

Integer-power differentiation

\(\frac{d}{dx}(ax^n)=anx^{n-1}\), \(n\in\mathbb Z\), wherever the original expression is defined.

Return to the explanation →

Combined rules

HL extension

\((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 →

Related rates by the chain rule

HL extension

\(\frac{dV}{dt}=\frac{dV}{dr}\frac{dr}{dt}\). For a sphere, \(\frac{dV}{dt}=4\pi r^2\frac{dr}{dt}\).

Return to the explanation →

Elementary derivatives at HL

HL extension

\((x^n)\prime=nx^{n-1}\) for rational n on the valid domain; \((e^x)\prime=e^x\), \((\ln x)\prime=1/x\) for \(x>0\). In radians, \((\sin x)\prime=\cos x\), \((\cos x)\prime=-\sin x\), \((\tan x)\prime=1/\cos^2 x\).

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 \(3/x^2\) is \(6/x\).

Explain and repair the mistake

Rewrite \(3/x^2=3x^{-2}\). Multiply by the exponent -2 and reduce it to -3, giving \(-6x^{-3}=-6/x^3\), for \(x\ne0\). The negative exponent is part of the power rule, not a reason to omit this SL method.

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 related rate with changing radius

HL extension

A spherical balloon has radius 4 cm, growing at 0.3 cm/s. Find the instantaneous volume growth rate.

  1. The model is \(V=\frac43\pi r^3\). Radius varies with time; volume is not linear in radius.
  2. Differentiate the explicit volume function: \(dV/dr=4\pi r^2\).
  3. Use \(dV/dt=(dV/dr)(dr/dt)=4\pi(4)^2(0.3)=19.2\pi\).
  4. The volume grows at approximately \(60.3\) cubic centimetres per second. The rate changes as the radius changes, even if its growth rate stays constant.
Pause and explain

Why must the radius be substituted after differentiation?

Check your reasoning

Substituting first would replace the volume function by a single constant and lose its dependence on radius. Differentiate the relationship, then evaluate its rate at the specified instant.

Common mistakes and how to avoid them

  • Negative integer powers are included at SL; retain the original domain.
  • A derivative is a rate, not the value of the original quantity.
  • HL: include the inner derivative in the chain rule; do not multiply derivatives to differentiate a product.
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

    Differentiate \(f(x)=4/x\) and evaluate the derivative at x=2.

    Need a starting point?

    Rewrite the reciprocal as \(4x^{-1}\).

    Show the worked solution
    1. \(f\prime(x)=-4x^{-2}=-4/x^2\), with \(x\ne0\).
    2. At 2 the rate is -1. The function value is 2, showing that value and rate are different.
  2. 2

    Apply and explain

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

    Need a starting point?

    Find the point and derivative separately.

    Show the worked solution
    1. The point is (2,5) and gradient is 4.
    2. Thus \(y-5=4(x-2)\), giving \(y=4x-3\).
  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=x^4+3x^2\).

    Show the worked solution

    The polynomial rules give \(dy/dx=4x^3+6x\). Each power reduces by one and its original exponent multiplies its coefficient; differentiate the terms separately.

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

AI Paper 1

GDC required

Short-response questions still need mathematical setup and interpretation. Choose the correct tool, enter the model or data carefully, and check units and rounding.

AI Paper 2

GDC required

Extended-response questions connect several steps. Keep intermediate values at full precision and explain how each result answers the context.

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 AI SL practice questions →Explore IB Maths AI HL practice questions →Try free IB Maths exam-style questions and worked solutions →

Original Arc Practice teaching notes for Maths AI. 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.