AI Math Tutor

Blog · Derivatives

Using the Definition of the Derivative: Limit Method

Using the definition of derivative means going back to the source: instead of reaching for a shortcut rule, you build a difference quotient and take its limit as the gap between two points shrinks to zero. Every shortcut rule you already use, the power rule, the product rule, the chain rule, was proved this way first, so the definition is worth understanding even after you stop needing it for every problem. This guide covers the difference quotient, the alternative form of the derivative, and two full worked examples, one polynomial and one with a fraction.

Key takeaways

The difference quotient: slope between two points

Start with two points on the graph of ff: the point (x,f(x))(x, f(x)) and a nearby point (x+h,f(x+h))(x + h, f(x+h)), where hh is a small number representing the horizontal gap between them. The slope of the line connecting these two points, called a secant line, is the rise over the run.

slope of secant line=f(x+h)−f(x)h\text{slope of secant line} = \frac{f(x+h) - f(x)}{h}

This is the difference quotient. It is an ordinary slope formula, the same one you would use for any two points, just written with function notation instead of two separate coordinate pairs. The value hh can be positive or negative, since the second point can sit to the right or the left of xx, and the formula works either way as long as hh is not exactly 0, which would make the fraction undefined.

A useful way to picture this: draw the curve of ff, mark the point (x,f(x))(x, f(x)), then mark a second point a little further along the curve at (x+h,f(x+h))(x+h, f(x+h)). Connect the two points with a straight line. That line's slope is the difference quotient, and it is only an estimate of the curve's steepness at xx, not the exact value, because the second point is not exactly at xx.

Taking the limit: from secant to tangent

A secant line connects two separate points, but a derivative describes the slope at a single point. The bridge between the two is a limit: as hh shrinks toward 0, the second point (x+h,f(x+h))(x+h, f(x+h)) slides closer and closer to (x,f(x))(x, f(x)), and the secant line rotates until it lines up with the tangent line at that one point.

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

This is the formal definition of the derivative. Nothing about the shape of ff changes; what changes is that the gap between the two points used to measure slope has shrunk to nothing, leaving the slope at one exact location.

The alternative form of the derivative

There is a second, equivalent way to write the same idea, used when you want the derivative at one specific point aa rather than a general formula in terms of xx.

f′(a)=lim⁡x→af(x)−f(a)x−af'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}

Here, xx plays the role that x+hx + h played before, and it approaches the fixed point aa directly instead of a small step hh approaching 0. Both forms measure the same slope; the choice between them usually comes down to which one is easier to simplify for a given function. Textbooks often introduce the h→0h \to 0 form first, since it gives a general formula for f′(x)f'(x) at any point, then switch to the x→ax \to a form when the question only asks about the slope at one named point.

Worked examples

Example 1: derivative of f(x)=x2f(x) = x^2 using the definition

  1. Write the difference quotient for f(x)=x2f(x) = x^2, substituting x+hx + h into the function.
    f(x+h)−f(x)h=(x+h)2−x2h\frac{f(x+h) - f(x)}{h} = \frac{(x+h)^2 - x^2}{h}
  2. Expand (x+h)2(x+h)^2 in the numerator.
    x2+2xh+h2−x2h\frac{x^2 + 2xh + h^2 - x^2}{h}
  3. Cancel the x2x^2 terms, then factor an hh out of what remains.
    2xh+h2h=h(2x+h)h\frac{2xh + h^2}{h} = \frac{h(2x + h)}{h}
  4. Cancel the hh in the numerator and denominator, since hh is approaching 0 but is never actually equal to 0 during this step.
    2x+h2x + h
  5. Take the limit as h→0h \to 0.
    f′(x)=lim⁡h→0(2x+h)=2xf'(x) = \lim_{h \to 0} (2x + h) = 2x

So f′(x)=2xf'(x) = 2x. Check it against the power rule: ddxx2=2x2−1=2x\frac{d}{dx}x^2 = 2x^{2-1} = 2x, which matches exactly.

Example 2: derivative of f(x)=1xf(x) = \frac{1}{x} using the definition

  1. Write the difference quotient for f(x)=1xf(x) = \frac{1}{x}.
    f(x+h)−f(x)h=1x+h−1xh\frac{f(x+h) - f(x)}{h} = \frac{\frac{1}{x+h} - \frac{1}{x}}{h}
  2. Combine the two fractions in the numerator over a common denominator.
    x−(x+h)x(x+h)h=−hx(x+h)h\frac{\frac{x - (x+h)}{x(x+h)}}{h} = \frac{\frac{-h}{x(x+h)}}{h}
  3. Dividing by hh is the same as multiplying by 1h\frac{1}{h}, which cancels one factor of hh.
    −hx(x+h)⋅1h=−1x(x+h)\frac{-h}{x(x+h)} \cdot \frac{1}{h} = \frac{-1}{x(x+h)}
  4. Take the limit as h→0h \to 0, which only affects the hh still inside the denominator.
    f′(x)=lim⁡h→0−1x(x+h)=−1x⋅x=−1x2f'(x) = \lim_{h \to 0} \frac{-1}{x(x+h)} = \frac{-1}{x \cdot x} = -\frac{1}{x^2}

So f′(x)=−1x2f'(x) = -\frac{1}{x^2}. Check it against the power rule by rewriting 1x\frac{1}{x} as x−1x^{-1}: ddxx−1=−1⋅x−2=−1x2\frac{d}{dx}x^{-1} = -1 \cdot x^{-2} = -\frac{1}{x^2}, the same result. For more reciprocal derivatives worked out this way, see Derivative of 1/t and Other Reciprocals, Step by Step.

Common mistakes

The limit definition sits underneath every shortcut covered in How to Do Derivatives: Rules, Examples and Checks, including logarithmic differentiation for a case like Derivative of x to the x and the sign rules behind Derivative of -sin x and the Other Trig Derivatives. Once you can build a difference quotient by hand, the shortcut rules stop feeling like memorized facts and start feeling like results you could rebuild yourself. To check a derivative you have worked out on your own, scan it and read every step in AI Math Tutor.

AI Math Tutor is a study aid, not a substitute for a teacher, and it can make mistakes: check every step, not just the answer.

Questions

What is the definition of the derivative?

The derivative of a function f at x is the limit of its difference quotient as h approaches 0: f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}. It measures the instantaneous rate of change of f at x, the slope of the tangent line at that exact point.

Why bother with the definition when there are shortcut rules?

The shortcut rules, like the power rule and the product rule, are themselves proved using the limit definition, so it is the source every other rule comes from. It also works on functions where no shortcut rule applies directly.

What is the alternative form of the derivative?

The alternative form finds the derivative at a specific point a directly: f′(a)=lim⁡x→af(x)−f(a)x−af'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}. It uses x approaching a instead of h approaching 0, but it describes the exact same slope.

Does the limit definition always give the same answer as the power rule?

Yes, whenever the power rule applies. Both methods find the same derivative for a function like x2x^2; the limit definition just shows the full reasoning behind the shortcut instead of skipping to the result.

Read next