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.

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.

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.

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.

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.

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)
m_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)] / 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→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.

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.

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.
The derivative in different disciplines
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

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
Step 1 — Write the DefinitionStart with the definition: f ′(x) = lim(h→0) [f(x + h) − f(x)] / h. We need to compute f(x + h) first.
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
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
Step 4 — Divide by hDivide 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
Step 5 — Take the Limit as h → 0Now 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
Step 6 — Interpret the ResultThe 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.

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.

Average vs. instantaneous rate of change
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
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.

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.

From first principles to advanced differentiation
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)

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

Practice Problems

PROBLEM 1CONCEPTUAL
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?
PROBLEM 2BASIC CALCULATION
Use the first-principles definition to find the derivative of f(x) = 4x − 7.
PROBLEM 3INTERMEDIATE
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.
PROBLEM 4APPLIED
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?
PROBLEM 5CRITICAL 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?

Lesson 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