The Limit Definition of the Derivative, Step by Step
Learn the limit definition of the derivative: the difference quotient, secant lines becoming tangent lines, and worked examples for x², 1/x and √x.
By the PracticeCalculus team Published 7 min read
On this page
- What is the derivative? The plain-language definition
- From secant lines to the tangent line
- How to use the limit definition: the general method
- Worked example 1: the derivative of x²
- Worked example 2: the derivative of 1/x
- Worked example 3: the derivative of √x
- Worked example 4: the alternate form at a point
- What the derivative tells you
- When the derivative does not exist
- Common mistakes with the limit definition
- Quick reference
- Practice builds the algebra
Slope is easy for a straight line: rise over run. But a curve like y = x^2 gets steeper as you move right, so what does "the slope at x = 1" even mean? The limit definition of the derivative answers that precisely, and it is the foundation every derivative rule is built on.
What is the derivative? The plain-language definition
The derivative of a function at a point is the slope of the tangent line there: the instantaneous rate of change. We find it by taking the slope between two points on the curve and letting the second point slide toward the first.
Formally, the derivative of f is
whenever this limit exists. The fraction inside the limit is called the difference quotient.
At a specific point x = a, the same definition is often written in an equivalent alternate form:
From secant lines to the tangent line
A secant line passes through two points on a curve. Take the points (x, f(x)) and (x + h, f(x + h)). The rise is f(x+h) - f(x) and the run is h, so the slope of the secant line is exactly the difference quotient:
Now shrink h. The second point slides along the curve toward the first, and the secant line pivots. In the limit, the two points merge and the secant line becomes the tangent line. Its slope is the derivative.
Here is f(x) = x^2 at x = 1:
| h | Second point | Secant slope \frac{(1+h)^2 - 1}{h} |
|---|---|---|
| 1 | (2, 4) | 3 |
| 0.5 | (1.5, 2.25) | 2.5 |
| 0.1 | (1.1, 1.21) | 2.1 |
| 0.01 | (1.01, 1.0201) | 2.01 |
The slopes close in on 2. So the slope of the tangent line to y = x^2 at x = 1 is 2.
How to use the limit definition: the general method
Every limit-definition problem follows the same four steps.
- Write f(x + h) by replacing every x in the formula with (x + h).
- Form the difference quotient \frac{f(x+h) - f(x)}{h}.
- Simplify until the h in the denominator cancels. (Substituting h = 0 right away always gives \frac{0}{0}.)
- Let h \to 0 by substituting h = 0 into what remains.
The algebra in step 3 depends on the function. These are the same techniques used in evaluating limits:
| Function type | Simplifying technique |
|---|---|
| Polynomial | Expand and cancel |
| Fraction (like \frac{1}{x}) | Combine over a common denominator |
| Square root | Multiply by the conjugate |
Worked example 1: the derivative of x²
Find f'(x) for f(x) = x^2 using the limit definition.
Step 1. Write f(x + h).
Step 2. Form the difference quotient.
Step 3. Factor out h and cancel.
Step 4. Let h \to 0.
At x = 1 this gives f'(1) = 2, matching the table. The tangent line there is y - 1 = 2(x - 1), or y = 2x - 1.
Worked example 2: the derivative of 1/x
Find f'(x) for f(x) = \frac{1}{x}.
Step 1. Write f(x + h). f(x + h) = \frac{1}{x + h}.
Step 2. Form the difference quotient.
Step 3. Combine the top over a common denominator.
Dividing by h cancels it:
Step 4. Let h \to 0.
The derivative is negative for every x \neq 0, which matches the graph of \frac{1}{x}: it falls on both branches. At x = 1 the slope is -1, so the tangent line is y = -x + 2.
Worked example 3: the derivative of √x
Find f'(x) for f(x) = \sqrt{x}.
Step 1. Write the difference quotient.
Substituting h = 0 gives \frac{0}{0}, and there is nothing to expand. A difference of square roots calls for the conjugate.
Step 2. Multiply by the conjugate over itself.
Step 3. Simplify and cancel. The top is just h:
Step 4. Let h \to 0.
This works for x > 0. At x = 0 the slope blows up: the graph of \sqrt{x} starts with a vertical tangent. At x = 4, f'(4) = \frac{1}{2 \cdot 2} = \frac{1}{4}, so the tangent line there is y = \frac{1}{4}x + 1.
Worked example 4: the alternate form at a point
Find f'(3) for f(x) = x^2 - 4x using f'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}.
Step 1. Compute f(3). f(3) = 9 - 12 = -3.
Step 2. Set up the limit.
Step 3. Factor and cancel. x^2 - 4x + 3 = (x - 3)(x - 1), so the limit becomes \lim_{x \to 3} (x - 1).
Step 4. Substitute. f'(3) = 3 - 1 = 2.
Check with the power rule: f'(x) = 2x - 4, and f'(3) = 2.
What the derivative tells you
Once you have f'(x), it does more than give the slope at one point. It is a new function that reports the slope at every point, and that slope has a meaning in context.
- Slope of the tangent line. f'(a) is the slope of the line that just touches the graph at x = a. The tangent line is y = f(a) + f'(a)(x - a).
- Instantaneous rate of change. If s(t) is position at time t, the difference quotient is an average velocity over a time interval of length h. Its limit, s'(t), is the velocity at the instant t.
- Increasing or decreasing. Where f'(x) > 0 the graph rises; where f'(x) < 0 it falls. For f(x) = x^2, f'(x) = 2x is negative for x < 0 and positive for x > 0, which is exactly the shape of the parabola.
Notation varies by textbook, but all of these mean the same thing:
The Leibniz form \frac{dy}{dx} is a reminder of where the derivative comes from: a small change in y divided by a small change in x, in the limit.
When the derivative does not exist
The limit in the definition can fail. For f(x) = |x| at x = 0, the difference quotient is \frac{|h|}{h}, which equals 1 for h > 0 and -1 for h < 0. The one-sided limits disagree, so f'(0) does not exist. Graphically, the corner at the origin has no single tangent line. Functions also fail to be differentiable at jumps, holes and vertical tangents, so a function must be continuous to have a derivative.
Common mistakes with the limit definition
- Writing f(x) + h instead of f(x + h). For f(x) = x^2, f(x + h) is (x + h)^2, not x^2 + h.
- Expanding (x + h)^2 as x^2 + h^2. The middle term 2xh is the whole derivative. Never drop it.
- Substituting h = 0 too early. If any h is still in a denominator by itself, keep simplifying.
- Losing the minus sign in f(x+h) - f(x). Put f(x) in parentheses: -(x^2 - 4x) distributes to both terms.
- Dropping the \lim. Write \lim_{h \to 0} on every line until you actually let h \to 0.
Quick reference
| f(x) | Key algebra step | f'(x) |
|---|---|---|
| x^2 | Expand (x+h)^2 | 2x |
| x^3 | Expand (x+h)^3 | 3x^2 |
| \frac{1}{x} | Common denominator | -\frac{1}{x^2} |
| \sqrt{x} | Conjugate | \frac{1}{2\sqrt{x}} |
| mx + b | Cancel directly | m |
Practice builds the algebra
The limit definition is mostly careful algebra: expanding, combining fractions and multiplying by conjugates without dropping a term. The interactive lesson below walks you through difference quotients one step at a time, checks each line instantly, and shows exactly where a sign or a 2xh went missing. Once it clicks, the shortcut rules will make complete sense.
Practice it now
The limit definition
Solve real problems on this topic with instant feedback, hints and a step-by-step walkthrough for every answer. Free, no sign-up needed to start.
Practice this lesson