James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 5: Calculus › Introduction to differentiation

Introduction to differentiation

What a derivative is, how to differentiate powers of x, and how to use the derivative to find gradients, where a function is increasing or decreasing, and the equations of tangents and normals.

SL 5.1–5.4SL + HL extensionPaper 1Paper 2≈ 75 min to work through
Before you start: negative and fractional indices and straight lines. Shaky on these? See Before you start SL › sections C and F.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Understand the derivative as the gradient of a curve and as a rate of changeSL 5.1
  • Use the notation dydx and f′(x)SL 5.1
  • Differentiate axn for any rational n, and sums of such termsSL 5.3
  • Use f′(x) to decide where a function is increasing or decreasingSL 5.2
  • Find the gradient at a point, and the point with a given gradientSL 5.3
  • Find the equations of tangents and normalsSL 5.4
  • Find gradients and tangents on the TI-NspireSL 5.1–5.4

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Differentiation finds the gradient of a curve at any point, which tells you how fast something is changing at that instant. The result is a new function, the derivative, that gives the gradient for every value of x.

2.1 The gradient of a curve

A straight line has one gradient everywhere. A curve does not: it can be steep in one place, flat in another, and sloping down somewhere else. Think of a car journey: the speed changes all the time, and the speedometer shows the speed at this instant. Differentiation is the mathematics of the speedometer.

The gradient of a curve changes from point to point. The gradient at a point is the gradient of the tangent there. Take a chord from x to x+h: as h gets smaller, the chord gets closer to the tangent. The limit of the chord's gradient as h→0 is the derivative. The interactive in section 3 shows this happening.

Why use a limit?

You can only calculate a gradient between two points. So take a second point close to the first and find the gradient of the chord joining them. Move the second point closer and closer. The chord gets closer and closer to the tangent, and its gradient settles on a single value. That limiting value is the gradient of the curve at the point. Drag the point in the Explore it section to see this.

  • Notation: if y=f(x), the derivative is dydx or f′(x).
  • The derivative is also a rate of change: if V is a volume and t is time, dVdt is how fast the volume is changing.

2.2 The power rule

Power rule In formula booklet
f(x)=axn ⇒ f′(x)=anxn−1

Check it against what you know. y=x2 has derivative 2x: at x=0 (the bottom of the parabola) the gradient is 0, and it gets steeper as x increases. y=3x has derivative 3: a straight line has a constant gradient. y=5 has derivative 0: a horizontal line is flat.

Differentiate a sum term by term. The derivative of a constant is 0. Rewrite roots and fractions as powers first.

Worked example 1Paper 1
Differentiate y=4x3−5x2+7x−2.
4x3→12x2, −5x2→−10x, 7x→7, −2→0.
dydx=12x2−10x+7
Worked example 2Paper 1
Find f′(x) when f(x)=3x2+2x.
Rewrite: f(x)=3x−2+2x12.
Always rewrite before differentiating.
f′(x)=−6x−3+x−12
=−6x3+1x

2.3 Gradients, increasing and decreasing

  • The gradient at x=a: substitute into f′(x), not into f(x).
  • f′(x)>0: f is increasing. f′(x)<0: f is decreasing.
Worked example 3Paper 1
Find the points on y=x3−3x where the gradient is 9.
dydx=3x2−3=9
x2=4, so x=2 or x=−2.
Points: (2,2) and (−2,−2).
Substitute into the original equation to find y.
Worked example 4Paper 1
Given f(x)=x3−6x2+9x+1, find the values of x for which f is decreasing.
f′(x)=3x2−12x+9=3(x−1)(x−3)
f′(x)<0 between the roots: 1<x<3.
Sketch y=f′(x): a positive quadratic is below the axis between its roots.

2.4 Tangents and normals

At x=a, the tangent has gradient m=f′(a) and passes through (a,f(a)), so its equation is y−f(a)=m(x−a). The normal is perpendicular to the tangent, so its gradient is −1m.

Worked example 5Paper 1
Find the equations of the tangent and the normal to y=x2−3x+4 at x=3.
Point: y=9−9+4=4, so (3,4).
Gradient: dydx=2x−3=3.
Tangent: y−4=3(x−3), so y=3x−5.
Normal: gradient −13; y−4=−13(x−3), so y=−13x+5.
Worked example 6 (faded)Paper 1
Given f(x)=2x4−x, find f′(1).
f′(x)= 8x³ − 1  ← you work this out
f′(1)= 7  ← you work this out
On your TI-Nspire Calculator tricks →

Gradient at a point: on a Calculator page, menu → 4: Calculus → 1: Numerical Derivative at a Point. Or on a Graphs page, menu → 6: Analyze Graph → dy/dx, then click a point on the curve.

Tangent line: on a Graphs page, menu → Geometry → Points & Lines → Tangent, then click the curve; the equation is shown on screen.

Even on Paper 2, questions often ask for f′(x) first: the method marks need the algebra.

3Explore it

Point P is fixed and Q is a distance h further along the curve. Make h smaller and watch the chord PQ turn into the tangent at P.

curvechord PQtangent at P

★HL extension

Extra depth for HL: harder worked examples and HL-standard exam questions.

HL tangent and normal questions are less direct: a tangent passing through a point not on the curve, or a normal meeting the curve again. Both start from a general point (a,f(a)) on the curve. The formal definition of the derivative is on Limits and first principles.

Tangents through an external point

Worked example H1Paper 1
Find the equations of the tangents to y=x2 that pass through (1,−3).
Tangent at (a,a2): y−a2=2a(x−a)
The point of contact is unknown, so call it a.
Through (1,−3): −3−a2=2a−2a2⇒a2−2a−3=0
a=3 or a=−1: tangents y=6x−9 and y=−2x−1

A normal meeting the curve again

Worked example H2Paper 1
The normal to y=x2 at (1,1) meets the curve again at Q. Find Q.
Gradient of tangent 2, so normal gradient −12: y=−12x+32
x2=−12x+32⇒2x2+x−3=0⇒(x−1)(2x+3)=0
You know x=1 is a root, which makes factorising quick.
Q(−32,94)

HL exam-style questions

Question 1Paper 1[6 marks]

Consider the curve y=x2.

  • (a)Show that the tangent at (a,a2) has equation y=2ax−a2.[2]
  • (b)Find the equations of the two tangents that pass through (1,−3).[4]
(a)
gradient 2aA1
y−a2=2a(x−a)AG M1
(b)
−3=2a−a2M1
a=3, a=−1A1
y=6x−9A1
y=−2x−1A1
Question 2Paper 1[5 marks]

The normal to the curve y=x2 at the point P(1,1) meets the curve again at Q.

  • (a)Find the equation of the normal at P.[2]
  • (b)Find the coordinates of Q.[3]
(a)
gradient −12A1
y−1=−12(x−1)A1
(b)
2x2+x−3=0M1
x=−32A1
Q(−32,94)A1

4Common mistakes & exam tips

Common mistakes

  • Forgetting that a constant differentiates to 0, or that 7x differentiates to 7.
  • Differentiating 3x2 without rewriting it as 3x−2 first.
  • Writing x as x−12 instead of x12.
  • Substituting into f(x) to find a gradient.
  • Normal gradient: it is −1m, not 1m or −m.

Exam tips

  • "Show that" with a gradient: write f′(x) in full before substituting.
  • Increasing or decreasing: factorise f′(x), sketch it, and read off where it is above or below the axis.
  • Give tangent and normal equations in the form asked for, e.g. ax+by+d=0.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Differentiate 5x4−2x+9.
20x3−2
FluencyP2
Find dydx when y=(x+2)(x−5).
Expand first: y=x2−3x−10, so dydx=2x−3.
FluencyP3
Find f′(x) when f(x)=6x.
f(x)=6x−12, so f′(x)=−3x−32.
FluencyP4
Find the gradient of y=x3 at x=−2.
3(−2)2=12
Problem solvingP5
The tangent to y=x2+kx at x=1 is parallel to y=5x−2. Find k.
Gradient at x=1: 2+k=5, so k=3.
Problem solvingP6
Given f(x)=x3−12x, find the interval on which f is decreasing.
f′(x)=3x2−12<0⇒x2<4, so −2<x<2.

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

Let f(x)=2x3−3x2−12x+5.

  • (a)Find f′(x).[2]
  • (b)Solve f′(x)=0.[2]
  • (c)Find the values of x for which f is decreasing.[2]
(a)
6x2−6x−12A2
Award A1 for two correct terms.
(b)
6(x−2)(x+1)=0M1
x=2, x=−1A1
(c)
f′(x)<0 between the rootsM1
−1<x<2A1
Question 2Paper 1[7 marks]

The curve y=x2−4x+1 passes through the point P(3,−2).

  • (a)Find dydx.[1]
  • (b)Find the equation of the tangent to the curve at P.[3]
  • (c)The normal to the curve at P meets the x-axis at Q. Find the coordinates of Q.[3]
(a)
2x−4A1
(b)
Gradient at x=3 is 2A1
y+2=2(x−3)M1
y=2x−8A1
(c)
Normal gradient −12A1
y+2=−12(x−3); set y=0M1
Q(−1,0)A1
Question 3Paper 2[6 marks]

Let f(x)=x2+8x, for x>0.

  • (a)Find f′(2).[2]
  • (b)Find the x-coordinate of the point where the tangent to the graph of f is horizontal.[2]
  • (c)Find the equation of the tangent to the graph of f at x=1.[2]
(a)
f′(x)=2x−8x2M1
f′(2)=2A1
(b)
2x−8x2=0 (or GDC)M1
x=1.59 (43)A1
(c)
f(1)=9, f′(1)=−6A1
y=−6x+15A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2022 · TZ1 · Paper 1Q4Find k from a tangent parallel condition on an exponential curve★☆☆
May 2025 · TZ3 · Paper 2Q5Find derivative expression and parameter from a tangent's angle★★☆
May 2025 · TZ1 · Paper 2Q5Find tangent gradient of a cosine curve and values giving a set angle★★☆
Nov 2025 · TZ3 · Paper 1Q9Discriminant condition; normal line equation; shaded area★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake