01 / 20

Derivative
Definition

Discover how the limit of a difference quotient defines instantaneous rate of change: the gradient of the tangent and the foundation of calculus.

IB Mathematics AA

What Is a Rate of Change?

A rate of change tells us how one quantity varies with respect to another. If you drive 120 km in 2 hours, your average speed is \(\frac{120}{2} = 60 \text{ km/h}\). That ratio, change in distance over change in time, is the simplest rate of change.

From Secant to Tangent

x y Secant (far) Secant (closer) Tangent P

As the second point slides closer to \(P\), the secant lines rotate toward the tangent line. The gradient of the tangent at \(P\) is the instantaneous rate of change: this is the derivative.

The Difference Quotient

\((x, f(x))\) \((x+h, f(x+h))\) \(h\) \(f(x+h) - f(x)\) Secant

The Formal Definition

This single formula encodes three powerful ideas at once:

Gradient
The slope of the tangent line to \(y = f(x)\) at the point \((x, f(x))\).
Rate
The instantaneous rate of change of \(f\) with respect to \(x\).
Function
\(f'(x)\) is itself a new function: the derivative function of \(f\).

Notation for Derivatives

You will encounter several equivalent notations. All mean the same thing: the derivative of \(y = f(x)\) with respect to \(x\).

Notation Name Origin
\( f'(x) \) Prime notation Lagrange
\( \dfrac{dy}{dx} \) Leibniz notation Leibniz
\( \dfrac{df}{dx} \) Leibniz (function form) Leibniz
\( \dot{y} \) Dot notation (time) Newton

Average vs Instantaneous

Average Rate of Change Instantaneous Rate of Change
Formula \( \dfrac{f(b)-f(a)}{b-a} \) \( \displaystyle\lim_{h\to 0}\dfrac{f(x+h)-f(x)}{h} \)
Geometry Gradient of secant Gradient of tangent
Interval Over \([a, b]\) At a single point \(x\)
Limit? No limit needed Requires \( h \to 0 \)

When Does \( f'(x) \) Not Exist?

The limit definition fails (the derivative does not exist) in three main cases:

Corner / Cusp
The left-hand and right-hand limits of the difference quotient are different. Example: \(f(x) = |x|\) at \(x=0\).
Vertical Tangent
The gradient tends to \( \pm\infty \). Example: \(f(x) = x^{1/3}\) at \(x=0\).
Discontinuity
If \(f\) is not continuous at \(x=a\), then \(f'(a)\) cannot exist. Continuity is necessary (but not sufficient).

Finding \( f'(x) \) from First Principles

1
Write \( f(x+h) \). Replace every \(x\) in the formula with \((x+h)\) and expand fully.
2
Compute \( f(x+h) - f(x) \). Subtract the original function and simplify.
3
Divide by \(h\). Form the difference quotient \( \frac{f(x+h)-f(x)}{h} \).
4
Cancel \(h\). Factor out \(h\) from the numerator so you can cancel the \(h\) in the denominator.
5
Take the limit as \(h \to 0\). Substitute \(h = 0\) into the simplified expression: the result is \(f'(x)\).

Example 1: \( f(x) = x^2 \)

1
\( f(x+h) = (x+h)^2 = x^2 + 2xh + h^2 \)
2
\( f(x+h) - f(x) = 2xh + h^2 \)
3
\( \dfrac{f(x+h)-f(x)}{h} = \dfrac{2xh + h^2}{h} \)
4
Cancel \( h \): \( = 2x + h \)
5
\( \displaystyle\lim_{h \to 0}(2x + h) = 2x \)

Visualising \( f(x) = x^2 \) and Its Tangent

x y 1 2 3 -1 -2 -3 1 2 3 4 5 6 7 8 \((3, 9)\) \(y = 6x - 9\)

Example 2: \( f(x) = 3x^2 + 2x \)

1
\( f(x+h) = 3(x+h)^2 + 2(x+h) = 3x^2 + 6xh + 3h^2 + 2x + 2h \)
2
\( f(x+h) - f(x) = 6xh + 3h^2 + 2h \)
3
\( \dfrac{f(x+h)-f(x)}{h} = \dfrac{6xh + 3h^2 + 2h}{h} \)
4
Cancel \( h \): \( = 6x + 3h + 2 \)
5
\( \displaystyle\lim_{h \to 0}(6x + 3h + 2) = 6x + 2 \)

Example 3: \( f(x) = \dfrac{1}{x} \)

1
\( f(x+h) = \dfrac{1}{x+h} \)
2
\( f(x+h) - f(x) = \dfrac{1}{x+h} - \dfrac{1}{x} = \dfrac{x - (x+h)}{x(x+h)} = \dfrac{-h}{x(x+h)} \)
3
\( \dfrac{f(x+h)-f(x)}{h} = \dfrac{\frac{-h}{x(x+h)}}{h} \)
4
Cancel \( h \): \( = \dfrac{-1}{x(x+h)} \)
5
\( \displaystyle\lim_{h \to 0}\dfrac{-1}{x(x+h)} = -\dfrac{1}{x^2} \)

Gradient of the Tangent at a Point

To find the gradient of the tangent to \(y = f(x)\) at a specific point \(x = a\):

1
Find \( f'(x) \) using the limit definition (or known rules once you learn them).
2
Substitute \(x = a\): The value \(f'(a)\) is the gradient of the tangent at \((a, f(a))\).
3
Write the tangent equation: $$y - f(a) = f'(a)(x - a)$$

Common Mistakes to Avoid

✕ Forgetting to Expand
Writing \((x+h)^2 = x^2 + h^2\) instead of \(x^2 + 2xh + h^2\). The cross term \(2xh\) is essential.
✕ Dividing Before Simplifying
Dividing individual terms by \(h\) before combining them. Always simplify the numerator fully first, then cancel \(h\).
✕ Substituting \(h = 0\) Too Early
Plugging \(h = 0\) before cancelling gives \(\frac{0}{0}\). You must algebraically cancel \(h\) from numerator and denominator first.

Question 1 of 5

The derivative of \(f(x)\) is defined as:

Question 2 of 5

Using first principles, what is the derivative of \(f(x) = 5x^2\)?

Question 3 of 5

The derivative \(f'(a)\) gives the gradient of which line?

Question 4 of 5

For \(f(x) = x^2 - 4x\), what is the gradient of the tangent at \(x = 5\)?

Question 5 of 5

At which of the following would \(f'(x)\) not exist?