Find a course

Module 2: The DerivativeLesson 5 of 1214 min

The Definition of the Derivative

Compute derivatives from the limit of the difference quotient, write tangent line equations, read f' from a graph and see where derivatives fail to exist.

Step 1 of 14Learn

One line that defines calculus

In the first lesson, the ball's average velocity over [2, 2 + h] simplified to 64 + 16h, and letting h → 0 gave an instantaneous velocity of 64 ft/s. Do the same thing for any function at any point and you have the derivative:

f'(a) = lim (h → 0) [f(a + h) − f(a)] / h

The fraction is the difference quotient: the slope of the secant line from (a, f(a)) to (a + h, f(a + h)). Its limit as h → 0 is the slope of the tangent line, the instantaneous rate of change of f at a.

If the limit exists, f is differentiable at a.

Letting a vary gives the derivative function:

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

Several notations are common, and you'll see all of them:

  • f'(x), read "f prime of x" (Lagrange's notation)
  • dy/dx, read "dee y dee x" (Leibniz's notation), which reminds you it's a ratio of tiny changes
  • d/dx [f(x)], an instruction: "take the derivative of this with respect to x"
  • y', short for the derivative of y

They all mean the same thing. Leibniz notation is especially handy for the chain rule and related rates, where tracking which variable changes with respect to which matters.

Step 2 of 14Learn

Computing a derivative from the definition

Example 1. Find f'(x) for f(x) = x².

  • f(x + h) = (x + h)² = x² + 2xh + h²
  • Difference quotient: (x² + 2xh + h² − x²)/h = (2xh + h²)/h = 2x + h
  • Limit as h → 0: f'(x) = 2x

So the slope of y = x² at x = 3 is 6, and at x = −1 it's −2.

Example 2. Find f'(x) for f(x) = 3x² − 5x.

  • f(x + h) = 3(x + h)² − 5(x + h) = 3x² + 6xh + 3h² − 5x − 5h
  • Subtract f(x) = 3x² − 5x: what remains is 6xh + 3h² − 5h
  • Divide by h: 6x + 3h − 5
  • Let h → 0: f'(x) = 6x − 5

The pattern is always the same:

  1. Write out f(x + h) carefully, with parentheses.
  2. Subtract f(x); everything without an h should cancel.
  3. Divide by h; every remaining term should have had an h factor.
  4. Let h → 0.

If terms without h survive step 2, there's an algebra error. It's a built-in check. The most common slip is writing f(x + h) as f(x) + h, for example (x + h)² as x² + h, which loses the crucial 2xh term.

Step 3 of 14Practice · Work it out

Use the definition of the derivative to find f'(1) for f(x) = x² + 3x.

Step 4 of 14Explore

The difference quotient becomes the derivative

The graph shows the difference quotient [f(x + h) − f(x)]/h for f(x) = x³ as a function of x, for the width h you choose. As h shrinks toward 0, the whole curve settles onto the derivative f'(x) = 3x². Check the readouts at x = 2.

0102030 -202
Difference quotient at x = 2
19
Exact derivative 3x² at x = 2
12

Step 5 of 14Learn

Tangent lines

Once you know the slope at a point, the equation of the tangent line comes from point-slope form. At x = a, the tangent line passes through (a, f(a)) with slope f'(a):

y − f(a) = f'(a)(x − a)

Example. Find the tangent line to f(x) = x² at x = 3.

  • Point: f(3) = 9, so (3, 9).
  • Slope: f'(x) = 2x, so f'(3) = 6.
  • Line: y − 9 = 6(x − 3), which simplifies to y = 6x − 9.

Check: at x = 3 the line gives 18 − 9 = 9, matching the curve.

Near x = 3, the tangent line is an excellent approximation to the curve. At x = 3.1, the curve gives 9.61 and the line gives 9.6. That idea, using the tangent line to estimate values, becomes linear approximation in the last module.

A horizontal tangent occurs where f'(a) = 0, the flat spots at the tops of hills and bottoms of valleys. For f(x) = x², that's x = 0.

Two values, two jobs. In tangent line problems, students often plug a into f' when they need the point, or into f when they need the slope. The point's height comes from f(a); the slope comes from f'(a). Mixing them up gives a line that's parallel to the right one, or one through the wrong point.

Step 6 of 14Practice · Work it out

Find the tangent line to f(x) = x² at x = −1 in the form y = mx + b. What is b?

Step 7 of 14Learn

Reading the derivative from a graph

The derivative is itself a function, and its graph is linked to the graph of f in predictable ways:

  • Where f is increasing (rising left to right), its tangent slopes are positive, so f'(x) > 0.
  • Where f is decreasing, f'(x) < 0.
  • Where f has a horizontal tangent (a peak, a valley or a flat spot), f'(x) = 0.
  • Where f is steep, |f'| is large; where it's nearly flat, f' is near 0.

Sketching f' from f. Picture f(x) = x³ − 3x. It rises until x = −1, falls until x = 1, then rises again. So f' is positive, crosses zero at x = −1, is negative between −1 and 1, crosses zero at 1, and is positive again. Indeed, f'(x) = 3x² − 3, an upward parabola with zeros at ±1.

Notice what f' does not tell you: the height of f. The functions x² and x² + 10 have exactly the same slopes everywhere, so they share the derivative 2x. The derivative measures how f changes, not where it is.

A common misreading: confusing "f is positive" with "f' is positive." A function can be high above the axis while falling (f > 0 but f' < 0), like a plane descending at 30,000 feet.

Step 8 of 14Practice · Match the pairs

Match each feature of the graph of f to what it says about f'.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. f is rising steeply
  2. f is falling
  3. f has a peak with a smooth top
  4. f is a horizontal line
  5. f has a sharp corner

Step 9 of 14Practice · Chart

f(x) = x3 − 3x and its derivative f′(x) = 3x2 − 3

Tap the x where f has a local maximum.

Tap the point that answers the question, then press Check.

f(x) = x^3 − 3x and its derivative f′(x) = 3x^2 − 3Line chart with 9 categories: −2: f(x) -2, f′(x) 9; −1.5: f(x) 1.13, f′(x) 3.75; −1: f(x) 2, f′(x) 0; −0.5: f(x) 1.38, f′(x) -2.25; 0: f(x) 0, f′(x) -3; 0.5: f(x) -1.38, f′(x) -2.25; 1: f(x) -2, f′(x) 0; 1.5: f(x) -1.13, f′(x) 3.75; 2: f(x) 2, f′(x) 9.-5-2.502.557.510−2−1.5−1−0.500.511.52x
f(x) = x3 − 3x and its derivative f′(x) = 3x2 − 3
xf(x)f′(x)
−2-29
−1.51.133.75
−120
−0.51.38-2.25
00-3
0.5-1.38-2.25
1-20
1.5-1.133.75
229

Step 10 of 14Learn

When the derivative fails to exist

A function is not differentiable at a point if the limit of the difference quotient doesn't exist there. On a graph, look for four features:

  1. Corners. f(x) = |x| at x = 0. Slopes are −1 on the left and +1 on the right; the one-sided limits of the difference quotient disagree.
  2. Cusps. f(x) = x2/3 at x = 0. The graph comes to a sharp point where slopes blow up to −∞ on one side and +∞ on the other.
  3. Vertical tangents. f(x) = x1/3 at x = 0. The tangent line is vertical, so its slope is undefined.
  4. Discontinuities. Holes, jumps and asymptotes: a function can't have a tangent line where its graph breaks.

Differentiable implies continuous. If f has a derivative at a, then f is continuous at a. The converse is false: |x| is continuous at 0 (no break) but not differentiable there (sharp corner).

Visually, a differentiable function is smooth: zoom in on any point and the graph looks more and more like a straight line. Zoom in on the corner of |x| and it stays a V shape forever, however close you get.

This matters in applications. In the last module, you'll look for maximums and minimums at points where f' = 0, and at points where f' doesn't exist. Corners are easy to forget.

Step 11 of 14Practice · True or false

If a function is continuous at x = a, then it must be differentiable at x = a.

Step 12 of 14Practice · Diagram

Differentiable is a stricter condition than continuous

Where does f(x) = |x| at x = 0 belong?

Tap the shape that answers the question, then press Check.

Differentiable is a stricter condition than continuousVenn diagram: Continuous, Differentiable, Continuous only, Continuous + Differentiable (overlap), Differentiable only.ContinuousDifferentiable• |x| at 0• cube root of x at 0• polynomials• sin x, e^x• (empty)
Continuous

No break: the limit exists and equals f(a).

Differentiable

A single tangent slope exists at a. This always implies continuity.

Continuous only

Continuous but not differentiable: corners, cusps and vertical tangents.

  • |x| at 0
  • cube root of x at 0
Continuous + Differentiable (overlap)

Smooth points: both conditions hold.

  • polynomials
  • sin x, e^x
Differentiable only

Impossible: a function differentiable at a is continuous at a.

  • (empty)

Step 13 of 14Note

Step 14 of 14Practice · Choose one

T(t) is the temperature of a cup of coffee, in °C, t minutes after it is poured. What does T'(3) = −2 mean?