Definition of the Derivative

The Definition of the Derivative finds the instantaneous rate of change at a point using limits; the foundation for all derivative calculations.

f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

Solve a problem with Definition of the Derivative

Type the problem. The solver will use Definition of the Derivative where Definition of the Derivative is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Definition of the Derivative takes
ff
xx
hh
Definition of the Derivative
SymbolMeaning
ffThe function whose rate of change you are measuring; it can be any differentiable function like f(x)=x2f(x) = x^2 or f(x)=sin(x)f(x) = \sin(x).
xxThe specific input value where you want to find the instantaneous rate of change; if you misidentify this, you are computing the derivative at the wrong point.
hhA tiny change in the input approaching zero, measuring how much ff changes over that interval; if you forget that h0h \to 0, you are computing an average slope instead of an instantaneous one.

When to use it

Use this definition when you need to prove that a derivative exists, verify a derivative using first principles, or understand why differentiation rules work.

Level

Usually taught in: Calculus I

Worked examples

1. Find the derivative of a quadratic at a specific point

Problem

Find f(2)f'(2) where f(x)=3x2f(x) = 3x^2 using the definition of the derivative.
  1. f(2)=3(2)2=12 and f(2+h)=3(2+h)2f(2) = 3(2)^{2} = 12 \text{ and } f(2+h) = 3(2+h)^{2}

    Evaluate ff at the given point x=2x = 2 and at the shifted point x+hx + h.

  2. f(2+h)f(2)=3(4+4h+h2)12=12+12h+3h212=12h+3h2f(2+h) - f(2) = 3(4 + 4h + h^{2}) - 12 = 12 + 12h + 3h^{2} - 12 = 12h + 3h^{2}

    Expand (2+h)2=4+4h+h2(2 + h)^2 = 4 + 4h + h^2 using the binomial formula, multiply by 33, and subtract f(2)=12f(2) = 12.

  3. f(2+h)f(2)h=12h+3h2h=12+3h\frac{f(2+h) - f(2)}{h} = \frac{12h + 3h^{2}}{h} = 12 + 3h

    Factor hh from the numerator and cancel it with the denominator; now the expression is defined at h=0h = 0.

  4. limh0(12+3h)=12\lim_{h \to 0} (12 + 3h) = 12

    Substitute h=0h = 0 into the simplified form to evaluate the limit and find f(2)=12f'(2) = 12.

Answer: f(2)=12f'(2) = 12

We applied the definition step by step: evaluate the function at the target point and a nearby point, compute the change, divide by the change in input, and take the limit. The answer 1212 is the instantaneous rate of change of f(x)=3x2f(x) = 3x^2 at x=2x = 2.

2. Find the derivative of a rational function at a negative point

Problem

Find f(1)f'(-1) where f(x)=1xf(x) = \frac{1}{x} using the definition of the derivative.
  1. f(1)=11=1 and f(1+h)=11+hf(-1) = \frac{1}{-1} = -1 \text{ and } f(-1+h) = \frac{1}{-1+h}

    Evaluate ff at x=1x = -1 and at x=1+hx = -1 + h; note that f(1)f(-1) is negative.

  2. f(1+h)f(1)=11+h+1=1+(1+h)1+h=h1+hf(-1+h) - f(-1) = \frac{1}{-1+h} + 1 = \frac{1 + (-1+h)}{-1+h} = \frac{h}{-1+h}

    Rewrite (1)=+1-(-1) = +1 and combine the fractions by finding a common denominator (1+h)(-1+h).

  3. f(1+h)f(1)h=hh(1+h)=11+h\frac{f(-1+h) - f(-1)}{h} = \frac{h}{h(-1+h)} = \frac{1}{-1+h}

    Divide by hh: the hh in the numerator cancels with the hh in the denominator, leaving a fraction with no zero denominator.

  4. limh011+h=11=1\lim_{h \to 0} \frac{1}{-1+h} = \frac{1}{-1} = -1

    Substitute h=0h = 0 into the simplified expression to evaluate the limit and find f(1)=1f'(-1) = -1.

Answer: f(1)=1f'(-1) = -1

For rational functions, algebraic simplification is crucial because you must cancel factors to remove the zero denominator before taking the limit. The negative value of xx requires careful bookkeeping with signs, but the process is identical to the polynomial case.

3. Apply the definition to a real-world rate-of-change problem

Problem

A school bake sale's revenue from cupcakes is R(x)=2x2R(x) = 2x^2 dollars, where xx is the number of dozens sold. Use the definition to find the instantaneous rate of change of revenue when 3 dozen cupcakes have been sold.
  1. R(3)=2(3)2=18 and R(3+h)=2(3+h)2R(3) = 2(3)^{2} = 18 \text{ and } R(3+h) = 2(3+h)^{2}

    At 3 dozen, revenue is $18; compute revenue at the nearby quantity 3+h3 + h dozens.

  2. R(3+h)R(3)=2(9+6h+h2)18=18+12h+2h218=12h+2h2R(3+h) - R(3) = 2(9 + 6h + h^{2}) - 18 = 18 + 12h + 2h^{2} - 18 = 12h + 2h^{2}

    Expand (3+h)2=9+6h+h2(3+h)^2 = 9 + 6h + h^2, multiply by 22, and subtract the original revenue to find the additional revenue.

  3. R(3+h)R(3)h=12h+2h2h=12+2h\frac{R(3+h) - R(3)}{h} = \frac{12h + 2h^{2}}{h} = 12 + 2h

    Divide by hh to find the average rate of change over the small interval; factor and cancel to simplify.

  4. limh0(12+2h)=12\lim_{h \to 0} (12 + 2h) = 12

    As the interval shrinks to zero, the average rate approaches the instantaneous rate of change: R(3)=12R'(3) = 12 dollars per dozen.

Answer: R(3)=12 dollars per dozenR'(3) = 12 \text{ dollars per dozen}

The instantaneous rate of change tells the baker that at the moment when 3 dozen have been sold, each additional dozen sold brings in approximately $12 more in revenue. The definition converts an abstract calculus concept into a practical business insight.

Common mistakes

Where Definition of the Derivative usually goes wrong
Answer came out wrong
Substitute h=0h = 0 directly into the original expression before simplifying: limh0f(x+h)f(x)h=f(x+0)f(x)0=00\lim_{h \to 0} \frac{f(x + h) - f(x)}{h} = \frac{f(x + 0) - f(x)}{0} = \frac{0}{0}.
Always expand, simplify, and factor to cancel the hh in the denominator before substituting h=0h = 0.
Reverse the numerator and write f(x)f(x+h)h\frac{f(x) - f(x + h)}{h} instead of f(x+h)f(x)h\frac{f(x + h) - f(x)}{h}.
Always place the value at the larger input first: write f(x+h)f(x)f(x + h) - f(x) in the numerator to measure the increase in ff.
Stop after simplifying the difference quotient and report f(x+h)f(x)h=12+3h\frac{f(x + h) - f(x)}{h} = 12 + 3h as the final answer without taking the limit.
Always finish by writing limh0\lim_{h \to 0} and evaluating it: limh0(12+3h)=12\lim_{h \to 0} (12 + 3h) = 12.
The mistakeWhy it is wrongThe fix
Substitute h=0h = 0 directly into the original expression before simplifying: limh0f(x+h)f(x)h=f(x+0)f(x)0=00\lim_{h \to 0} \frac{f(x + h) - f(x)}{h} = \frac{f(x + 0) - f(x)}{0} = \frac{0}{0}.Plugging h=0h = 0 directly gives the indeterminate form 00\frac{0}{0}, which is undefined; the limit requires algebraic simplification first to remove the zero denominator.Always expand, simplify, and factor to cancel the hh in the denominator before substituting h=0h = 0.
Reverse the numerator and write f(x)f(x+h)h\frac{f(x) - f(x + h)}{h} instead of f(x+h)f(x)h\frac{f(x + h) - f(x)}{h}.Reversing the order gives the negative of the derivative, so your final answer will have the opposite sign from the correct derivative.Always place the value at the larger input first: write f(x+h)f(x)f(x + h) - f(x) in the numerator to measure the increase in ff.
Stop after simplifying the difference quotient and report f(x+h)f(x)h=12+3h\frac{f(x + h) - f(x)}{h} = 12 + 3h as the final answer without taking the limit.The expression 12+3h12 + 3h depends on hh and represents the average rate of change over the interval, not the instantaneous rate at xx; the limit as h0h \to 0 is essential.Always finish by writing limh0\lim_{h \to 0} and evaluating it: limh0(12+3h)=12\lim_{h \to 0} (12 + 3h) = 12.

Tips and when to use something else

  • For polynomial functions, the Power Rule is much faster than the definition; use the definition only to verify the Power Rule or when standard rules do not apply.
  • If the limit does not exist (the simplified expression still depends on hh or does not approach a single value), the derivative does not exist at that point.
  • The definition reveals why derivatives measure instantaneous slope: the average slope over hh approaches the tangent slope as h0h \to 0.
  • Watch for common algebra errors: forgetting to distribute when expanding (x+h)n(x + h)^n, losing a negative sign when subtracting f(x)f(x), or canceling hh incorrectly.

Frequently asked questions

What is the difference between the definition of the derivative and the derivative itself?
The definition is the limit formula limh0f(x+h)f(x)h\lim_{h \to 0} \frac{f(x + h) - f(x)}{h} that you use to find a derivative; the derivative is the answer you get. For instance, applying the definition to f(x)=3x2f(x) = 3x^2 at x=2x = 2 gives you f(2)=12f'(2) = 12. The number 1212 is the derivative; the definition is the tool to compute it.
Why do we need the definition if we have derivative rules like the Power Rule?
The derivative rules (Power Rule, Product Rule, Chain Rule) are derived from this definition, so they only apply where the definition works. Understanding the definition helps you see why those rules are true and when they fail. It is also the only way to differentiate unusual functions like f(x)=xf(x) = |x| or piecewise functions where the standard rules do not directly apply.
What does h0h \to 0 actually mean?
It means hh gets arbitrarily close to zero, but never equals zero. A limit describes what value a function approaches as its input gets close to (but does not reach) a particular value. In the definition, h0h \to 0 means we are examining the ratio over smaller and smaller intervals until the ratio stabilizes at the instantaneous rate of change.
Can you use the definition on every function?
The definition can be applied to any function, but the limit must exist for the derivative to be defined. Differentiable functions (smooth, no sharp corners or discontinuities) have derivatives everywhere they are defined. At points where the function has a corner, cusp, or jump discontinuity, the limit does not exist and the derivative is undefined.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18