Skip to main content
Daily Math Minute

What Is a Derivative? The Limit Definition Explained

A derivative measures instantaneous rate of change: the slope of a curve at a single point. See how it comes from the slope of a secant line, compute derivatives from the limit definition, and interpret them as velocity.

CalculusIntermediateDaily Math Minute6 min read

What you'll learn

  • What a derivative measures, both geometrically and as a rate of change
  • How the slope of a secant line becomes the slope of a tangent line
  • How to compute a derivative from the limit definition
  • How to find the equation of a tangent line
  • How to interpret a derivative as velocity when the function gives position

Introduction

A derivative measures how fast a function is changing at one exact input. On a graph, it's the slope of the curve at a single point. A straight line has the same slope everywhere, but a curve's steepness keeps changing, and the derivative tells you the steepness at each point.

Why this matters

Speed is a derivative. Your car's speedometer doesn't show your average speed over the whole trip. It shows how fast your position is changing right now. The same idea measures the rate a population is growing, how quickly a medicine's concentration drops, or how a company's cost changes when it produces one more item. Derivatives also find the highest and lowest points of a curve, which is how optimization problems are solved.

The concept

From average to instantaneous

You already know how to find the slope between two points: rise over run. For a function ff, the slope between the points at xx and x+hx + h is the average rate of change over that interval:

f(x+h)−f(x)h\frac{f(x + h) - f(x)}{h}
(1)

This expression is called the difference quotient. The line through those two points is a secant line.

To get the slope at one point, slide the second point closer and closer to the first by making hh smaller and smaller. The secant lines approach a single line that just touches the curve at that point, called the tangent line. The slope of the tangent line is the derivative.

Example — Watching the secant slopes settle down

Take f(x)=x2f(x) = x^2 at x=3x = 3, where f(3)=9f(3) = 9. Here's the difference quotient for smaller and smaller values of hh:

hhf(3+h)f(3 + h)Secant slope f(3+h)−9h\frac{f(3 + h) - 9}{h}
1167
0.19.616.1
0.019.06016.01
0.0019.0060016.001

The slopes are closing in on 6. That's the derivative of x2x^2 at x=3x = 3.

The limit definition

The table suggests the answer, but a limit lets us find it exactly.

Definition — The derivative

The derivative of ff at xx, written f′(x)f'(x), is

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

The derivative exists only when this limit exists. The notation lim⁡h→0\lim_{h \to 0} means "the value this expression approaches as hh gets closer and closer to 0." You can't simply substitute h=0h = 0, because that gives 00\tfrac{0}{0}. Instead, simplify the expression algebraically until the hh in the denominator cancels, and then let hh go to 0.

Example — The table, confirmed exactly

For f(x)=x2f(x) = x^2 at x=3x = 3:

(3+h)2−9h=9+6h+h2−9h=6h+h2h=6+h\frac{(3 + h)^2 - 9}{h} = \frac{9 + 6h + h^2 - 9}{h} = \frac{6h + h^2}{h} = 6 + h

As h→0h \to 0, the expression 6+h6 + h approaches 6. So f′(3)=6f'(3) = 6, exactly what the table suggested.

Notation

The derivative of y=f(x)y = f(x) is written in several equivalent ways: f′(x)f'(x) (read "f prime of x"), y′y', or dydx\frac{dy}{dx}. The last one, called Leibniz notation, is a reminder that a derivative is a small change in yy divided by a small change in xx.

Try it

Drag the point along the curve below. The tangent line and its slope update as you move, and the slope at each point is the value of the derivative there. Try changing the function too.

Derivative Explorer

Point of tangency
1

f(x), with tangent line at x = a

Derivative graph — linked to the graph above; panning or zooming either moves both

What's happening at x = a
  1. At x = 1, f(x) ≈ 1 — the point (1, 1).
  2. The derivative there is f'(1) ≈ 2: the slope of the tangent line, and the instantaneous rate of change of f at this exact point.
  3. That slope is positive, so f is increasing at this point.
  4. The second derivative is positive here, so f is concave up (curving upward) near this point.
  5. Near x = 1, the tangent line y ≈ 1 + 2·(x − 1) is f's best straight-line approximation — the core idea a derivative captures.
Numerical derivative comparison
Forward, backward, and central difference estimates of f'(a) as the step size h shrinks — all three should converge toward the same value.
hForwardBackwardCentral
1312
0.12.11.92
0.012.011.992
0.0012.0011.9992
Analysis of f(x)
y-intercept
(0, 0)
x-intercepts
(0, 0)
Extrema
local min at (0, 0)
Inflection points
none found in view
Vertical asymptotes
none found in view
Horizontal asymptotes
none found
Domain
all real numbers in view
Range (estimated)
approximately [0, 100]
Analysis of f'(x) — its roots are f's critical points
y-intercept
(0, 0)
x-intercepts
(0, 0)
Extrema
none found in view
Inflection points
(-10, -20), (-9.92, -19.84), (-9.88, -19.76), (-9.76, -19.52), (-9.72, -19.44), (-9.64, -19.28), (-9.6, -19.2), (-9.54, -19.08), (-9.52, -19.04), (-9.48, -18.96), (-9.42, -18.84), (-9.4, -18.8), (-9.35, -18.69), (-9.3, -18.6), (-9.25, -18.51), (-9.24, -18.48), (-9.13, -18.25), (-9.12, -18.24), (-9.06, -18.12), (-9, -18), (-8.91, -17.82), (-8.88, -17.76), (-8.76, -17.52), (-8.66, -17.32), (-8.64, -17.28), (-8.6, -17.2), (-8.56, -17.12), (-8.49, -16.98), (-8.42, -16.84), (-8.4, -16.8), (-8.3, -16.6), (-8.28, -16.56), (-8.24, -16.48), (-8.2, -16.4), (-8.15, -16.3), (-8.12, -16.24), (-8.06, -16.12), (-8.03, -16.06), (-8, -16), (-7.94, -15.87), (-7.82, -15.64), (-7.76, -15.52), (-7.7, -15.39), (-7.67, -15.34), (-7.64, -15.28), (-7.57, -15.14), (-7.56, -15.11), (-7.5, -15), (-7.44, -14.88), (-7.39, -14.78), (-7.3, -14.61), (-7.25, -14.51), (-7.21, -14.42), (-7.2, -14.4), (-7.12, -14.24), (-6.93, -13.87), (-6.92, -13.83), (-6.88, -13.76), (-6.81, -13.62), (-6.8, -13.6), (-6.76, -13.52), (-6.66, -13.32), (-6.64, -13.28), (-6.59, -13.18), (-6.56, -13.12), (-6.5, -13), (-6.38, -12.76), (-6.33, -12.66), (-6.32, -12.64), (-6.25, -12.49), (-6.24, -12.48), (-6.14, -12.28), (-6.11, -12.22), (-6.08, -12.16), (-6, -12.01), (-6, -12), (-5.92, -11.84), (-5.86, -11.72), (-5.83, -11.66), (-5.76, -11.52), (-5.69, -11.38), (-5.68, -11.36), (-5.6, -11.2), (-5.6, -11.2), (-5.56, -11.12), (-5.52, -11.04), (-5.47, -10.94), (-5.44, -10.88), (-5.34, -10.68), (-5.28, -10.56), (-5.24, -10.48), (-5.16, -10.32), (-5.11, -10.22), (-5.01, -10.03), (-5, -10), (-4.89, -9.78), (-4.87, -9.74), (-4.84, -9.68), (-4.78, -9.56), (-4.76, -9.52), (-4.72, -9.44), (-4.66, -9.32), (-4.6, -9.2), (-4.56, -9.12), (-4.5, -9), (-4.44, -8.88), (-4.38, -8.76), (-4.32, -8.64), (-4.28, -8.56), (-4.22, -8.44), (-4.12, -8.24), (-4.08, -8.16), (-4.02, -8.04), (-3.94, -7.88), (-3.92, -7.84), (-3.84, -7.68), (-3.8, -7.6), (-3.76, -7.52), (-3.49, -6.99), (-3.43, -6.86), (-3.38, -6.76), (-3.33, -6.66), (-3.32, -6.64), (-3.28, -6.56), (-3.24, -6.48), (-3.16, -6.32), (-3.08, -6.16), (-3.02, -6.04), (-3, -6), (-2.92, -5.84), (-2.86, -5.72), (-2.84, -5.68), (-2.76, -5.52), (-2.69, -5.39), (-2.66, -5.32), (-2.64, -5.28), (-2.6, -5.2), (-2.54, -5.08), (-2.52, -5.04), (-2.48, -4.96), (-2.43, -4.86), (-2.36, -4.73), (-2.31, -4.62), (-2.26, -4.52), (-2.24, -4.48), (-2.2, -4.4), (-2.12, -4.24), (-2.07, -4.14), (-2.04, -4.08), (-1.96, -3.92), (-1.85, -3.7), (-1.82, -3.64), (-1.77, -3.55), (-1.68, -3.36), (-1.6, -3.2), (-1.5, -3), (-1.4, -2.8), (-1.32, -2.64), (-1.2, -2.4), (-1.15, -2.3), (-1.1, -2.2), (-1.08, -2.16), (-1.02, -2.04), (-1, -2), (-0.93, -1.86), (-0.92, -1.84), (-0.86, -1.72), (-0.8, -1.6), (-0.69, -1.39), (-0.64, -1.27), (-0.49, -0.98), (-0.48, -0.96), (-0.41, -0.82), (-0.33, -0.66), (-0.31, -0.61), (-0.24, -0.48), (-0.2, -0.4), (-0.12, -0.24), (-0.08, -0.16), (-0.04, -0.08), (0, 0), (0.04, 0.08), (0.08, 0.16), (0.16, 0.33), (0.2, 0.4), (0.24, 0.48), (0.31, 0.61), (0.33, 0.66), (0.41, 0.82), (0.48, 0.96), (0.64, 1.27), (0.69, 1.39), (0.82, 1.64), (0.85, 1.7), (0.92, 1.84), (0.98, 1.96), (1.02, 2.04), (1.04, 2.08), (1.08, 2.16), (1.19, 2.37), (1.2, 2.4), (1.31, 2.62), (1.32, 2.64), (1.37, 2.75), (1.4, 2.8), (1.5, 3), (1.6, 3.2), (1.65, 3.3), (1.68, 3.36), (1.77, 3.55), (1.82, 3.64), (1.87, 3.74), (1.96, 3.91), (2.04, 4.07), (2.04, 4.08), (2.14, 4.28), (2.18, 4.36), (2.2, 4.4), (2.24, 4.48), (2.28, 4.56), (2.38, 4.76), (2.4, 4.8), (2.46, 4.92), (2.48, 4.96), (2.52, 5.04), (2.6, 5.2), (2.72, 5.44), (2.76, 5.52), (2.8, 5.6), (2.84, 5.68), (2.92, 5.84), (3, 5.99), (3, 6), (3.08, 6.16), (3.14, 6.28), (3.16, 6.32), (3.2, 6.4), (3.24, 6.48), (3.32, 6.64), (3.4, 6.8), (3.46, 6.92), (3.7, 7.4), (3.76, 7.52), (3.81, 7.62), (3.84, 7.68), (3.9, 7.8), (3.92, 7.84), (4.02, 8.04), (4.06, 8.12), (4.08, 8.16), (4.12, 8.24), (4.22, 8.44), (4.28, 8.56), (4.32, 8.64), (4.38, 8.76), (4.4, 8.8), (4.44, 8.88), (4.48, 8.96), (4.56, 9.12), (4.6, 9.2), (4.72, 9.44), (4.76, 9.52), (4.83, 9.67), (4.84, 9.68), (4.88, 9.76), (4.94, 9.88), (5, 10), (5.04, 10.08), (5.12, 10.24), (5.16, 10.32), (5.22, 10.44), (5.24, 10.48), (5.28, 10.56), (5.38, 10.76), (5.4, 10.8), (5.44, 10.88), (5.5, 11), (5.52, 11.04), (5.56, 11.12), (5.6, 11.2), (5.68, 11.36), (5.75, 11.51), (5.76, 11.52), (5.92, 11.84), (6, 11.99), (6, 12), (6.09, 12.18), (6.21, 12.42), (6.24, 12.48), (6.32, 12.64), (6.39, 12.78), (6.5, 13), (6.64, 13.28), (6.69, 13.37), (6.72, 13.44), (6.96, 13.92), (7, 14.01), (7.1, 14.2), (7.17, 14.35), (7.2, 14.4), (7.44, 14.88), (7.5, 15), (7.54, 15.09), (7.57, 15.14), (7.64, 15.28), (7.7, 15.39), (7.73, 15.46), (7.77, 15.54), (7.82, 15.64), (7.96, 15.92), (8.06, 16.12), (8.11, 16.22), (8.12, 16.24), (8.2, 16.4), (8.24, 16.48), (8.28, 16.56), (8.4, 16.8), (8.44, 16.88), (8.49, 16.98), (8.58, 17.15), (8.6, 17.2), (8.64, 17.28), (8.72, 17.44), (8.76, 17.52), (8.87, 17.73), (8.88, 17.76), (8.92, 17.84), (9, 18), (9.09, 18.18), (9.24, 18.48), (9.35, 18.69), (9.4, 18.8), (9.48, 18.96), (9.52, 19.04), (9.64, 19.27), (9.64, 19.28), (9.7, 19.4), (9.76, 19.52), (9.85, 19.7), (9.92, 19.84), (9.97, 19.94), (10, 20)
Vertical asymptotes
none found in view
Horizontal asymptotes
none found
Domain
all real numbers in view
Range (estimated)
approximately [-20, 20]

Worked examples

Example — Worked example 1: the derivative of a line

Problem: Use the limit definition to find the derivative of f(x)=3x+5f(x) = 3x + 5.

Step 1: f(x+h)=3(x+h)+5=3x+3h+5f(x + h) = 3(x + h) + 5 = 3x + 3h + 5.

Step 2: Substitute into equation (2):

(3x+3h+5)−(3x+5)h=3hh=3\frac{(3x + 3h + 5) - (3x + 5)}{h} = \frac{3h}{h} = 3

Step 3: The expression is 3 for every h≠0h \neq 0, so the limit is 3.

Answer: f′(x)=3f'(x) = 3. This makes sense: a line has the same slope everywhere, and the slope of this line is 3.

Example — Worked example 2: a general formula

Problem: Find the derivative of f(x)=x2−4xf(x) = x^2 - 4x, then evaluate it at x=1x = 1.

Step 1: Expand f(x+h)f(x + h):

f(x+h)=(x+h)2−4(x+h)=x2+2xh+h2−4x−4hf(x + h) = (x + h)^2 - 4(x + h) = x^2 + 2xh + h^2 - 4x - 4h

Step 2: Subtract f(x)=x2−4xf(x) = x^2 - 4x. The x2x^2 and −4x-4x terms cancel:

f(x+h)−f(x)=2xh+h2−4hf(x + h) - f(x) = 2xh + h^2 - 4h

Step 3: Divide by hh, then take the limit:

lim⁡h→02xh+h2−4hh=lim⁡h→0(2x+h−4)=2x−4\lim_{h \to 0} \frac{2xh + h^2 - 4h}{h} = \lim_{h \to 0} (2x + h - 4) = 2x - 4

Step 4: f′(1)=2(1)−4=−2f'(1) = 2(1) - 4 = -2.

Answer: f′(x)=2x−4f'(x) = 2x - 4, and f′(1)=−2f'(1) = -2. At x=1x = 1, the curve is falling with slope −2-2.

Example — Worked example 3: the tangent line

Problem: Find the equation of the tangent line to f(x)=x2f(x) = x^2 at x=3x = 3.

Step 1: The point of tangency is (3,f(3))=(3,9)(3, f(3)) = (3, 9).

Step 2: The slope is f′(3)=6f'(3) = 6, found above.

Step 3: Use point-slope form, y−y1=m(x−x1)y - y_1 = m(x - x_1):

y−9=6(x−3)⟹y=6x−9y - 9 = 6(x - 3) \quad \Longrightarrow \quad y = 6x - 9

Answer: y=6x−9y = 6x - 9

Example — Worked example 4: velocity

Problem: A ball is thrown straight up. Its height after tt seconds is s(t)=20t−5t2s(t) = 20t - 5t^2 meters. How fast is it moving at t=1t = 1 second, and when does it reach the top?

Step 1: Expand s(t+h)s(t + h):

s(t+h)=20t+20h−5t2−10th−5h2s(t + h) = 20t + 20h - 5t^2 - 10th - 5h^2

Step 2: Subtract s(t)s(t) and divide by hh:

20h−10th−5h2h=20−10t−5h\frac{20h - 10th - 5h^2}{h} = 20 - 10t - 5h

Step 3: As h→0h \to 0, this approaches s′(t)=20−10ts'(t) = 20 - 10t. This is the velocity, in meters per second.

Step 4: At t=1t = 1: s′(1)=20−10=10s'(1) = 20 - 10 = 10 meters per second, moving upward.

Step 5: At the top of its flight, the ball stops rising for an instant, so its velocity is 0. Solve 20−10t=020 - 10t = 0 to get t=2t = 2 seconds. Its height then is s(2)=40−20=20s(2) = 40 - 20 = 20 meters.

Answer: 10 m/s upward at t=1t = 1. It reaches its highest point, 20 meters, at t=2t = 2.

Note — Where a derivative doesn't exist

A function has no derivative at a point where its graph has a sharp corner. For f(x)=∣x∣f(x) = |x| at x=0x = 0, the secant slopes from the right are all 11 and from the left are all −1-1. They don't approach a single number, so the limit in equation (2) doesn't exist. A function also has no derivative where it isn't continuous, such as at a jump or a gap.

Common mistakes

Warning — Substituting h = 0 too early

Putting h=0h = 0 into the difference quotient right away always gives 00\tfrac{0}{0}, which tells you nothing. Simplify first until the hh in the denominator cancels. Only then let h→0h \to 0.

Warning — Expanding a squared sum incorrectly

(x+h)2(x + h)^2 is x2+2xh+h2x^2 + 2xh + h^2, not x2+h2x^2 + h^2. Missing the middle term 2xh2xh makes the derivative of x2x^2 come out as 0, which can't be right for a curve that clearly isn't flat.

Warning — Confusing f'(x) with f'(a)

f′(x)=2x−4f'(x) = 2x - 4 is a function that gives the slope at any point. f′(1)=−2f'(1) = -2 is a number, the slope at one specific point. The tangent line at x=1x = 1 needs the number, not the function.

Practice questions

  1. Use the limit definition to find the derivative of f(x)=5x2f(x) = 5x^2.

    Show answer

    f′(x)=10xf'(x) = 10x. The difference quotient is 5(x+h)2−5x2h=10xh+5h2h=10x+5h\frac{5(x + h)^2 - 5x^2}{h} = \frac{10xh + 5h^2}{h} = 10x + 5h, which approaches 10x10x as h→0h \to 0.

  2. Use the limit definition to find the derivative of f(x)=1xf(x) = \frac{1}{x}.

    Show answer

    f′(x)=−1x2f'(x) = -\frac{1}{x^2}. Combine the fractions in the numerator over a common denominator first:

    1x+h−1x=x−(x+h)x(x+h)=−hx(x+h)\frac{1}{x + h} - \frac{1}{x} = \frac{x - (x + h)}{x(x + h)} = \frac{-h}{x(x + h)}

    Dividing by hh gives −1x(x+h)\frac{-1}{x(x + h)}, which approaches −1x2-\frac{1}{x^2} as h→0h \to 0.

  3. An object's position is s(t)=t2+3ts(t) = t^2 + 3t meters after tt seconds. What is its velocity at t=4t = 4?

    Show answer

    11 meters per second. The limit definition gives s′(t)=2t+3s'(t) = 2t + 3, and s′(4)=8+3=11s'(4) = 8 + 3 = 11.

  4. Find the equation of the tangent line to f(x)=x2−4xf(x) = x^2 - 4x at x=1x = 1.

    Show answer

    y=−2x−1y = -2x - 1. The point is (1,f(1))=(1,−3)(1, f(1)) = (1, -3), and from worked example 2 the slope is f′(1)=−2f'(1) = -2. Then y+3=−2(x−1)y + 3 = -2(x - 1), which simplifies to y=−2x−1y = -2x - 1.

Summary

  • The derivative f′(x)f'(x) is the instantaneous rate of change of ff: the slope of the tangent line at xx.
  • It's the limit of secant slopes: f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}.
  • To compute it, expand, cancel, divide out hh, and only then let h→0h \to 0.
  • If s(t)s(t) is position, s′(t)s'(t) is velocity, and velocity is zero at a highest or lowest point.

Computing every derivative from the limit definition is slow. The power rule is a shortcut that handles all of the examples above in one line. For more practice, see the difference quotient lesson and the interpreting the derivative lesson in the Calculus curriculum.