Skip to content
Lesson 4 of 10 · Calculus I

The derivative

Define the derivative as the limit of secant slopes, compute it from the definition, write tangent lines, and know when a derivative does not exist.

22 min

Take a curve y = f(x) and two points on it, at x and at x + h. The line through them is a secant, with slope

[f(x + h) − f(x)] / h

(the average rate of change over the step h). As h shrinks, the second point slides toward the first and the secant settles into the tangent line. The slope the secants settle on is the derivative:

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

Other notations mean the same thing: dy/dx, d/dx f(x), Df. The derivative is itself a function: it gives the slope at every x.

  • Geometry: slope of the tangent line.
  • Motion: if s(t) is position, s′(t) is velocity.
  • Everyday: the instantaneous rate of change: how fast cost grows with output, a population with time, temperature with distance.

At x = a the tangent is y = f(a) + f′(a)(x − a). Near a, the curve and its tangent are almost indistinguishable, which gives the linear approximation f(x) ≈ f(a) + f′(a)(x − a).

Try it

Set x = 1. The true slope there is f′(1) = 3 − 2 = 1. Start with h = 1.5, then shrink h and watch the secant slope drop toward 1. Move x to −1: what does the slope settle on now? (Check against 3x² − 2.)

1.0
1.50

Secant slope of f(x) = x³ − 2x from x to x + h

—

Use the definition to find f′(x) for f(x) = x².

  1. 1

    [(x + h)² − x²]/h

    Write the difference quotient.

1/4

Find the equation of the tangent to f(x) = 1/x at x = 2, given f′(x) = −1/x².

  1. 1

    f(2) = 1/2

    The point is (2, 1/2).

1/4
Common misconception

“If a function is continuous, it must have a derivative everywhere.”

Smooth, drawn-without-lifting graphs usually do have tangents, so continuity feels like enough.

What is actually true

Differentiable implies continuous, but not the other way. f(x) = |x| is continuous at 0 yet has a sharp corner, so left and right secant slopes (−1 and +1) disagree and f′(0) does not exist. Cusps, jumps and vertical tangents also break differentiability.

How to catch yourself

Ask: is there a corner, a jump or a vertical tangent here?

  • f′(x) = lim (h→0) [f(x + h) − f(x)]/h: the slope of the tangent.
  • The derivative is also the instantaneous rate of change and, for position, velocity.
  • Tangent at a: y = f(a) + f′(a)(x − a).
  • Differentiable at a implies continuous at a; the reverse is false.
  • Corners, cusps, jumps and vertical tangents are where derivatives fail.
Check yourself

Practice.

1Numeric answer

Using f(x) = x², what is the slope of the secant from x = 1 to x = 3?

2Numeric answer

f(x) = 3x² − x. Find f′(2) using f′(x) = 6x − 1.

3Multiple choice

For f(x) = |x|, f′(0) is:

  • A0
  • B1
  • C−1
  • Dundefined
4Multiple choice

The tangent line to f(x) = x² at x = 1 is:

  • Ay = 2x − 1
  • By = x
  • Cy = 2x
  • Dy = x + 1

Practise this lesson, not just read it

In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Calculus I is planned around your week. Free.