Course contents0/24 done

The derivative: slope of the tangent

Zoom into a curve until it looks straight — the slope you see is the derivative.

Lesson 19 of 24 15 min

You will learn

  • Define the derivative from first principles
  • See it as the slope of the tangent and as an instantaneous rate
  • Differentiate x² and 1/x from first principles

The problem a derivative solves

The slope of a straight line is easy: rise ÷ run, the same everywhere. A curve, though, is steep in some places and flat in others. The derivative tells you the slope of a curve at one single point.

Trick: pick the point P=(a,f(a))P = (a, f(a)) and a second point QQ a little to the right, at x=a+hx = a + h. The straight line through them is a secant, and its slope is easy:

Key idea

Slope of the secant PQ

f(a+h)−f(a)h\frac{f(a + h) - f(a)}{h}
P Q ← h → secant PQ tangent at P y = f(x)
Slide Q towards P (make h smaller). The orange secant swings round until it lies along the blue tangent. The slope it settles on is the derivative at P.

Key idea

Derivative from first principles

Other notations for the same thing: dydx\frac{dy}{dx}, ddxf(x)\frac{d}{dx}f(x), y′y'.

f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a) = \lim_{h \to 0} \frac{f(a + h) - f(a)}{h}

Worked example · Derivative of x²

Find the derivative of f(x) = x² from first principles.

  1. f(x + h) − f(x) = (x + h)² − x² = 2xh + h².
  2. Divide by h: (2xh + h²)/h = 2x + h.
  3. Let h → 0: the limit is 2x.
  4. So the slope of y = x² at x = 3 is 6, at x = −1 it is −2, and at x = 0 it is 0 (the bottom of the parabola).

Answer: d/dx (x²) = 2x

Worked example · Derivative of 1/x

Find the derivative of f(x) = 1/x from first principles.

  1. f(x + h) − f(x) = 1/(x + h) − 1/x = (x − (x + h)) / (x(x + h)) = −h / (x(x + h)).
  2. Divide by h: −1 / (x(x + h)).
  3. Let h → 0: −1/x².

Answer: d/dx (1/x) = −1/x²

Practical · Interactive lab

Derivative as slope of the tangent

Your task: Drag the point along the curve and watch the tangent and its slope update. Find where the slope is zero, and check that the slope matches 2x on the parabola.

Open the lab →

Checkpoint

1. Using first principles, the derivative of f(x) = 3x is…

2. The slope of the tangent to y = x² at x = 4 is…