IB Mathematics: Analysis and Approaches • Calculus

Derivative Definition — SL 5.2 Definition of derivative; gradient of tangent; rates of change

Discover how a single limit captures the exact rate at which any quantity changes.

IB Mathematics Analysis and Approaches emblem with a function, curved graph, and sigma notation
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

For thousands of years, mathematicians could calculate how far something had traveled or how much area a shape enclosed, but they struggled with a deceptively simple question: how fast is something changing at this very instant? Ancient Greek thinkers like Archimedes came tantalizingly close when they tried to find tangent lines to curves, but they lacked a systematic method. The real breakthrough required a concept that wouldn't be formalized for nearly two millennia — the limit.

~250 BCE • Archimedes & Tangent Lines

Archimedes found tangent lines to spirals and parabolas using geometric reasoning, foreshadowing the derivative idea centuries before algebra existed.

1629 • Fermat's Method of Adequality

Pierre de Fermat developed a technique for finding maxima and minima of curves by comparing a function's value at nearby points — an early, informal version of differentiation.

1665–1687 • Newton's Fluxions

Isaac Newton invented his method of 'fluxions' to describe instantaneous rates of change, motivated by problems in physics such as planetary motion and falling objects.

1684 • Leibniz Publishes Calculus

Gottfried Wilhelm Leibniz independently published his version of calculus, introducing the dy/dx notation still used worldwide today in the IB curriculum.

1821 • Cauchy Formalizes the Limit

Augustin-Louis Cauchy gave the first rigorous definition of the derivative using limits, resolving debates that had plagued calculus for over a century and producing the definition you will learn in SL 5.2.

The central question that drove all of this history is one you encounter every day: if a car's odometer tells you how far you've driven, how do you figure out how fast you're going right now? The derivative answers this by zooming in on a curve until it looks like a straight line, and then measuring the slope of that line.

SECTION 2

Core Principles & Definitions

Before diving into formulas, you need to understand the three interconnected ideas at the heart of SL 5.2. Each one is really a different way of looking at the same mathematical object — the derivative.

1

Gradient of a Secant

A secant line cuts a curve at two points. Its gradient (slope) gives the average rate of change between those two points. This is your starting point.
2

Gradient of the Tangent

When you slide the second point closer and closer to the first, the secant line approaches a tangent line — a line that just touches the curve at one point. Its gradient is the instantaneous rate of change.
3

The Limit Process

The derivative is defined as the limit of the secant gradient as the gap between the two points shrinks to zero. This limit, when it exists, gives us a precise value for the slope at a single point.
4

Rate of Change

In real-world terms, the derivative tells you how quickly one quantity changes relative to another — speed (distance vs. time), growth rate (population vs. time), or marginal cost (cost vs. units produced).
✦

KEY TAKEAWAY

Think of zooming in on a curved road using satellite imagery. From far away the road bends, but if you zoom in enough, any small section looks perfectly straight. The derivative is the slope of that tiny straight segment. The closer you zoom, the more accurate your slope measurement becomes — and the limit lets you zoom in "infinitely" close to get the exact answer.

SECTION 3

Visual Explanation — From Secant to Tangent

The diagram below shows the curve f(x) = x² and illustrates how the secant line through two points on the curve approaches the tangent line as the second point slides toward the first. Pay attention to how the slope of each secant gets closer to the tangent's slope.

xySecant Lines Approaching a Tangentf(x) = x²A (1, 1)B₃ (3, 9)m = 4B₂ (2, 4)m = 3B₁ (1.5, 2.25)m = 2.5Tangent: m = 2As B → A, secant slope → tangent slope = 2
Point A (pink) is fixed at (1, 1). As points B₃, B₂, and B₁ slide closer to A, the dashed secant lines rotate toward the solid tangent line (cyan). The secant slopes 4, 3, and 2.5 converge toward the tangent slope of 2, which is the derivative f ′(1) = 2.

Notice the pattern: when B is at x = 3 the secant slope is 4, at x = 2 it is 3, and at x = 1.5 it is 2.5. The slopes are heading toward 2. If you kept going — x = 1.1, x = 1.01, x = 1.001 — the slopes would be 2.1, 2.01, 2.001. The limit of these slopes is the derivative, and it equals exactly 2 at x = 1.

SECTION 4

Mathematical Framework

Let's translate the visual idea into precise mathematical language. The IB SL 5.2 syllabus defines the derivative using the first-principles definition, which is built from a limit of the difference quotient.

AVERAGE RATE OF CHANGE (SECANT GRADIENT)

msec=[f(x+h)−f(x)]/hm_sec = [f(x + h) − f(x)] / h

Here, x is the fixed point, h is the horizontal distance to the second point, f(x + h) − f(x) is the vertical change (rise), and h is the horizontal change (run).

DERIVATIVE (FIRST-PRINCIPLES DEFINITION)

f′(x)=lim[f(x+h)−f(x)]/hh→0f ′(x) = lim [f(x + h) − f(x)] / h h→0

As h → 0, the secant becomes the tangent. The limit, if it exists, gives the instantaneous rate of change of f at x. This is also called the gradient of the tangent to the curve at that point.

LEIBNIZ NOTATION

dy/dx=limΔy/ΔxΔx→0dy/dx = lim Δy / Δx Δx→0

Leibniz's notation emphasises that the derivative is the ratio of an infinitely small change in y to an infinitely small change in x. In the IB, you will see both f ′(x) (Lagrange notation) and dy/dx (Leibniz notation) used interchangeably.

💡

IB Exam Tip

On IB SL exams, "find the derivative from first principles" means you must use the limit definition — not shortcut rules. Show every algebraic step: substitute, expand, simplify, cancel h, then take the limit.

SECTION 5

Detailed Breakdown — Rates of Change in Context

The derivative appears in many disguises depending on the context. In physics it might be called velocity; in economics it could be marginal cost; in biology, a growth rate. The diagram below shows how the derivative of a position–time graph gives instantaneous velocity.

Position → Velocity via the DerivativePosition s(t)Time (s)Position (m)s(t)secanttangent0123Velocity v(t) = s′(t)Time (s)Velocity (m/s)v(t)slope of tangent at t0123d/dt
Left: A curved position-time graph s(t). The dashed secant gives average velocity between two times. The solid tangent gives instantaneous velocity at a single moment. Right: The derivative s ′(t) plotted as the velocity function v(t). Each point on the velocity graph equals the slope of the tangent on the position graph at the same time.
ContextFunction f(x)Derivative f ′(x) Represents
PhysicsPosition s(t)Velocity — how fast position is changing
PhysicsVelocity v(t)Acceleration — how fast velocity is changing
EconomicsTotal cost C(q)Marginal cost — cost of one more unit
BiologyPopulation P(t)Growth rate — how fast the population grows
ChemistryConcentration c(t)Reaction rate — how fast concentration changes

The derivative in different disciplines

SECTION 6

Worked Example — Derivative from First Principles

Let's find the derivative of f(x) = 3x² − 5x + 2 at a general point x using the first-principles definition. This is exactly the type of question you'll see on IB exams when they say "from first principles" or "using the definition of the derivative."

Find f ′(x) for f(x) = 3x² − 5x + 2 from first principles

  1. 1

    Step 1 — Write the Definition

    Start with the definition: f ′(x) = lim(h→0) [f(x + h) − f(x)] / h. We need to compute f(x + h) first.
  2. 2

    Step 2 — Compute f(x + h)

    Substitute (x + h) into f: f(x + h) = 3(x + h)² − 5(x + h) + 2. Expand the square: 3(x² + 2xh + h²) − 5x − 5h + 2 = 3x² + 6xh + 3h² − 5x − 5h + 2.
    f(x + h) = 3x² + 6xh + 3h² − 5x − 5h + 2
  3. 3

    Step 3 — Form the Difference f(x + h) − f(x)

    Subtract f(x) = 3x² − 5x + 2 from the expression above: (3x² + 6xh + 3h² − 5x − 5h + 2) − (3x² − 5x + 2). The 3x², −5x, and +2 terms all cancel.
    f(x + h) − f(x) = 6xh + 3h² − 5h
  4. 4

    Step 4 — Divide by h

    Divide every term in the numerator by h: [6xh + 3h² − 5h] / h = 6x + 3h − 5. Notice that h cancels from each term because h ≠ 0 (we haven't taken the limit yet).
    [f(x + h) − f(x)] / h = 6x + 3h − 5
  5. 5

    Step 5 — Take the Limit as h → 0

    Now let h → 0: lim(h→0) (6x + 3h − 5) = 6x + 3(0) − 5 = 6x − 5. The 3h term vanishes, leaving a clean expression in x only.
    f ′(x) = 6x − 5
  6. 6

    Step 6 — Interpret the Result

    The derivative tells us the gradient of the tangent at any point x. For example, at x = 1, f ′(1) = 6(1) − 5 = 1, so the tangent line at x = 1 has a slope of 1. At x = 0, f ′(0) = −5, indicating a steep downward tangent.
    At x = 1: gradient = 1. At x = 0: gradient = −5.
⚠

Common Mistake

Students often forget to expand (x + h)² correctly. Remember that (x + h)² = x² + 2xh + h², not x² + h². Missing the 2xh cross-term will make everything after that wrong.

SECTION 7

Average vs. Instantaneous Rate of Change

One of the most important distinctions in SL 5.2 is between the average rate of change and the instantaneous rate of change. They use the same "rise over run" idea, but the instantaneous version takes the limit as the run shrinks to zero.

FeatureAverage Rate of ChangeInstantaneous Rate of Change
Formula[f(b) − f(a)] / (b − a)lim(h→0) [f(x+h) − f(x)] / h
Geometric meaningGradient of the secant line through two pointsGradient of the tangent line at one point
Requires a limit?No — just arithmeticYes — the limit is essential
Driving analogyTotal distance ÷ total time = average speedReading the speedometer at one instant
When is it useful?Summarising change over an intervalPinpointing behaviour at a specific moment

Average vs. instantaneous rate of change

✦

KEY TAKEAWAY

Imagine you drive 120 km in 2 hours. Your average speed is 60 km/h — but you weren't going exactly 60 km/h the whole time. At traffic lights you were at 0, on the motorway you may have hit 100. The derivative is like checking your speedometer at one precise instant. It captures what's happening right now, not over a whole journey.

SECTION 8

Connection to Advanced Differentiation

The first-principles definition is foundational, but computing every derivative this way would be slow. In later sections of the IB syllabus (SL 5.3–5.6), you will learn differentiation rules that give shortcuts. However, every single shortcut is derived from the limit definition you studied here. Understanding first principles means you'll always know why the rules work.

What You Know Now (SL 5.2)What's Coming Next
Derivative from first principles (limit definition)Power rule, product rule, quotient rule, chain rule (SL 5.3–5.6)
Finding the gradient of a tangent at a given pointEquations of tangent and normal lines (SL 5.4)
Interpreting the derivative as a rate of changeOptimisation and modelling with derivatives (SL 5.7–5.8)
Derivative of polynomial functionsDerivatives of trigonometric, exponential, and logarithmic functions (HL)

From first principles to advanced differentiation

Think of the limit definition as learning to count before doing algebra. It's the bedrock. Once you master it, the power rule ("bring the exponent down and subtract one") will feel like a natural shortcut rather than a mysterious trick. If you continue to HL, you'll even use the first-principles definition to derive the derivatives of sin x and eˣ.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain in your own words why the derivative is defined as a limit. Why can't we simply substitute h = 0 directly into the difference quotient [f(x + h) − f(x)] / h?
Show answer
If you substitute h = 0 directly, you get [f(x) − f(x)] / 0 = 0/0, which is undefined. The limit avoids this by examining what the expression approaches as h gets closer and closer to 0, without ever equalling 0. The algebraic trick is to simplify the difference quotient first (cancelling the h in the denominator), and then set h = 0. The limit therefore gives a well-defined number even though direct substitution does not.

Question 2: BASIC CALCULATION

Use the first-principles definition to find the derivative of f(x) = 4x − 7.
Show answer
Compute f(x + h) = 4(x + h) − 7 = 4x + 4h − 7. Then f(x + h) − f(x) = (4x + 4h − 7) − (4x − 7) = 4h. Divide by h: 4h/h = 4. Take the limit as h → 0: lim(h→0) 4 = 4. Therefore f ′(x) = 4. This makes sense because f(x) = 4x − 7 is a linear function with a constant slope of 4, so its derivative (gradient of the tangent) is 4 everywhere.

Question 3: INTERMEDIATE

Use the definition of the derivative to find f ′(x) for f(x) = x³. Then evaluate f ′(2) and interpret what this value means geometrically.
Show answer
f(x + h) = (x + h)³ = x³ + 3x²h + 3xh² + h³. So f(x + h) − f(x) = 3x²h + 3xh² + h³. Dividing by h gives 3x² + 3xh + h². Taking the limit as h → 0: lim(h→0)(3x² + 3xh + h²) = 3x². Therefore f ′(x) = 3x². Evaluating at x = 2: f ′(2) = 3(4) = 12. Geometrically, this means the tangent line to the curve y = x³ at the point (2, 8) has a gradient of 12 — it rises 12 units for every 1 unit it moves to the right.

Question 4: APPLIED

A ball is thrown upward so its height in metres after t seconds is h(t) = 20t − 5t². Find the instantaneous velocity at t = 1 second using the limit definition. Is the ball going up or coming down at that moment?
Show answer
h(t + Δt) = 20(t + Δt) − 5(t + Δt)² = 20t + 20Δt − 5t² − 10tΔt − 5(Δt)². So h(t + Δt) − h(t) = 20Δt − 10tΔt − 5(Δt)². Dividing by Δt: 20 − 10t − 5Δt. Taking the limit as Δt → 0: h ′(t) = 20 − 10t. At t = 1: h ′(1) = 20 − 10 = 10 m/s. Since the velocity is positive (10 > 0), the ball is still moving upward at t = 1 second. It has not yet reached its maximum height, which occurs when h ′(t) = 0, i.e., at t = 2 seconds.

Question 5: CRITICAL THINKING

Consider the function f(x) = |x|. Attempt to find f ′(0) using the limit definition. Investigate what happens when h approaches 0 from the positive side versus the negative side. What does this tell you about differentiability at x = 0?
Show answer
The difference quotient is [|0 + h| − |0|] / h = |h| / h. When h > 0 (approaching from the right), |h|/h = h/h = 1. When h < 0 (approaching from the left), |h|/h = (−h)/h = −1. Since the right-hand limit (1) does not equal the left-hand limit (−1), the overall limit does not exist. Therefore f ′(0) is undefined, meaning f(x) = |x| is not differentiable at x = 0, even though it is continuous there. Geometrically, the graph has a sharp corner (a V-shape) at the origin, and no single tangent line can be drawn. This illustrates that continuity is necessary but not sufficient for differentiability.

SUMMARY

Lesson Summary

Summary

The derivative of a function f at x is defined as f ′(x) = lim(h→0) [f(x + h) − f(x)] / h. This limit of the difference quotient transforms the average rate of change (gradient of a secant line) into the instantaneous rate of change (gradient of the tangent line). Geometrically, as the second point on a curve slides toward the first, the secant rotates into the tangent, and the secant's slope converges to the derivative.

In the IB SL 5.2 context, "finding the derivative from first principles" means using this limit definition directly: substitute, expand, simplify, cancel h, then let h → 0. The derivative has powerful real-world interpretations — it is velocity in physics, marginal cost in economics, and growth rate in biology. Mastering this definition gives you the conceptual foundation for every differentiation technique you will encounter throughout the rest of the course.

Varsity Tutors • IB Mathematics: Analysis and Approaches • Derivative Definition — SL 5.2