On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Introduction to Calculus · Grade 9-12

Derivative

The derivative f′(x) is how fast the output is changing at one exact instant — the slope of the tangent line at that point.

f′(x)=lim⁡h→0f(x+h)−f(x)h

Quick Answer

The derivative f′(x) is how fast the output is changing at one exact instant — the slope of the tangent line at that point. You find it by taking the slope between x and x+h and letting h shrink to 0. Use it for speed from a position formula, for how quickly a cost or temperature is changing at a given moment, and for finding where a graph rises, falls or levels off. For f(x)=x2, f′(x)=2x: the slope is 2 at x=1 and 6 at x=3, so the curve steepens as it climbs.

Why This Matters

One formula, f′(x), gives the slope at every point at once, so you can answer "how fast right now?" for speed, growth or cost without measuring over an interval. Its sign shows where a function rises or falls, and its zeros mark peaks and valleys, which is how optimization works. Without it you are stuck with averages, which can hide what happens at a particular moment.

Intuitive Explanation

Zoom in on the curve y=x2 near the point (3,9). From far away it bends, but the closer you look the straighter it gets, until the piece you see is almost a line. The slope of that almost-line is the derivative at x=3. You can measure it with nearby points: from x=3 to x=3.1 the slope is 9.61−90.1=6.1, and from x=3 to x=3.01 it is 6.01. The slopes settle on 6, so f′(3)=6.

The definition does this with a general gap h. The quotient f(x+h)−f(x)h is the slope of the line through two points on the curve, called a secant. For x2 it simplifies to 2x+h, and as h→0 only 2x is left. That is a new function, f′(x)=2x, which gives the slope anywhere: 2 at x=1, 6 at x=3, −4 at x=−2.

The average rate of change also divides a change in output by a change in input, but across a fixed interval. For x2 from x=1 to x=3 it is 9−12=4, the slope of one secant line. That matches the derivative only at x=2, the middle of the interval, not at either end. If a problem names two separate inputs it wants the average; if it names one instant, it wants the derivative.

Think of it like this. A car's speedometer shows the derivative of its position: not the miles driven, not the trip average, but how fast the distance is growing at this moment. A reading of 50 mph does not promise 50 miles in the next hour. One difference: a speedometer never reads below zero, while a derivative goes negative when the quantity is falling.

Core idea. The derivative is the instantaneous rate of change at a single point, found as the limit of secant slopes as the two points merge.


When to Use

Use the derivative when a question asks how fast something is changing at a particular moment or point, for the slope of a curve or of a tangent line, or for instantaneous velocity from a position formula. It is also the tool for finding where a function rises, falls or levels off. If the question gives two separate times or inputs and asks for the change per unit between them, use the average rate of change. If the graph is a straight line, its slope is the same everywhere and no limit is needed.

Tip. Ask: Am I asked for the rate of change at a single instant, found by letting the gap h shrink to zero?

How to Recognize It

Check whether the question is about one moment or a stretch of time, and whether you are holding the quantity itself or its rate.

  1. Is the quantity given by a formula, rather than by two measured values?

    Yes means you can differentiate and get the rate at any single instant. With only two measured values, such as heights at t=1 and t=4, you can find just the average rate of change, f(4)−f(1)4−1.

  2. Is the graph or formula curved, so the steepness differs from place to place?

    Yes means you need the derivative, because no single number describes the whole curve's steepness. No, a straight line, means the slope of the line is the answer at every point and no limit is needed.

  3. Are you given the quantity itself, like position or cost, and asked how fast it changes?

    Yes means differentiate. If you are given the rate, like velocity or a flow in litres per minute, and asked for the amount that builds up, run the process backwards with an integral.

  4. Does the question ask where the graph rises, falls or levels off?

    Yes is still a derivative job: f′(x)>0 where it rises, f′(x)<0 where it falls, and f′(x)=0 at level points. If it asks for the largest or smallest value, carry on to optimization.

Derivative compared with Average rate of change, Slope of a line, and Integral

Every row is a rate or a slope, which is why they blur together. Ask what you have and what you want: a rate at one point of a curve (derivative), over an interval (average rate), on a straight line (slope), or a total built from a rate (integral).

Derivative

Meaning
Use this when you need the instantaneous rate of change or tangent slope of a function at one specific point.
Key test
Am I asked for the rate of change at a single instant, found by letting the gap h shrink to zero?
Formula
f′(x)=lim⁡h→0f(x+h)−f(x)h
Example
Use the limit definition to find f′(x) for f(x)=x2.

Average rate of change

Meaning
The slope of the secant line between two separated points, an interval average not an instant.
Key test
Use when the question spans a whole interval, like average speed over a trip.
Formula
f(b)−f(a)b−a
Example
Average velocity from hour 1 to hour 3

Slope of a line

Meaning
A constant rate for a straight line, the same everywhere, requiring no limit.
Key test
Use when the relationship is already linear so the rate never changes.
Formula
m=y2−y1x2−x1
Example
A line with slope 3 at every point

Integral

Meaning
Accumulates total change from a rate, the reverse operation of the derivative.
Key test
Use when you have the rate and want the accumulated total, not the rate from the function.
Formula
∫f(x) dx
Example
Position from a velocity function

Formula & Notation

f′(x)=lim⁡h→0f(x+h)−f(x)h
f′(a)=lim⁡h→0f(a+h)−f(a)h, provided the limit exists. Equivalently, f′(a)=lim⁡x→af(x)−f(a)x−a.

How to read it: f′(x), dydx, dfdx, or Df(x) all denote the derivative of f with respect to x.

Worked Examples

Example 1 — Derivative from the definition

Easy

Use the limit definition to find f′(x) for f(x)=x2.
Show the steps and the answer
  1. Write the difference quotient: f(x+h)−f(x)h=(x+h)2−x2h.

    This is the slope of the secant line from x to x+h; the derivative is what it approaches as h shrinks.

  2. Expand the top: (x+h)2−x2=x2+2xh+h2−x2=2xh+h2.

    The x2 terms cancel, and what is left has a factor of h that can cancel the h underneath.

  3. Divide by h: 2xh+h2h=2x+h for h≠0.

    Before dividing, setting h=0 gave 00; after dividing, h appears harmlessly.

  4. Let h→0: 2x+h→2x.

    Test it at x=3: the formula gives 6, matching the secant slopes 6.1 and 6.01 for h=0.1 and h=0.01.

Answer: f′(x)=2x

Takeaway: The derivative is the limit of secant slopes; for x2 the slope at any x is 2x, a new function of x.

Example 2 — Average over an interval

Standard

For f(x)=x2, find the average rate of change from x=1 to x=3.
Show the steps and the answer
  1. Notice that two separate inputs, x=1 and x=3, are given.

    Two endpoints mean a slope across an interval, the secant line, so no limit is involved.

  2. Find the outputs at the ends: f(1)=1 and f(3)=9.

    The average rate uses only the values at the two endpoints, whatever the curve does in between.

  3. Divide the changes: f(3)−f(1)3−1=9−12=4.

    Change in output over change in input is the slope of the secant through (1,1) and (3,9).

  4. Compare with the derivative: f′(x)=2x is 2 at x=1 and 6 at x=3.

    The average, 4, lies between the slopes at the ends and equals the instantaneous slope only at x=2.

Answer: 4

Takeaway: Two given endpoints ask for the average rate, a secant slope; one instant asks for the derivative.

Example 3 — Find the mistake: height or speed?

Application

A stone's height in metres after t seconds is h(t)=20+15t−5t2. Jordan is asked how fast it is moving at t=2 and writes: "h(2)=20+30−20=30, so it is moving at 30 m/s." Find the mistake and correct it.
Show the steps and the answer
  1. Look at what Jordan computed: h(2)=30 is the height at t=2, in metres.

    The function's value says where the stone is, not how fast that position is changing.

  2. Differentiate term by term: 20→0, 15t→15, −5t2→−10t, so h′(t)=15−10t.

    Speed is the rate of change of height. A constant has slope 0, and t2 has derivative 2t from the limit definition.

  3. Evaluate: h′(2)=15−20=−5 m/s.

    The negative sign means the height is decreasing, so the stone is on its way down.

  4. Check with a short interval: h(2.01)=29.9495, and 29.9495−300.01=−5.05.

    A secant slope over a tiny gap is close to −5, nowhere near 30.

Answer: At t=2 s the stone is 30 m up and its velocity is h′(2)=−5 m/s: it is falling at 5 m/s.

Takeaway: h(2) is where the stone is; h′(2) is how fast that is changing. The units tell them apart: metres versus metres per second.

Where You'll See It

  • The cost of one more item

    If making q items costs C(q)=500+4q+0.01q2 dollars, then C′(q)=4+0.02q. At q=100, C′(100)=6, so the 101st item costs about $6 to make. The exact extra cost, C(101)−C(100)=$6.01, is almost the same. Economists call this the marginal cost and use it to decide whether producing more is worth it.

  • A sprinter's top speed

    Usain Bolt's 100 m world record of 9.58 s is an average of 1009.58≈10.44 m/s, but split times over short stretches show he peaked at about 12.4 m/s. That peak is a rate at an instant, estimated from tiny intervals the way a derivative is defined. The average hides both his slow start and his top speed.

Common Mistakes

  1. The slip: Forgetting the limit and just computing f(x+h)−f(x)h with a fixed h

    Instead: the derivative requires h→0, collapsing the secant into a tangent.

  2. The slip: Confusing f′(x) (a function of x) with f′(a) (a single number)

    Instead: evaluate the derivative function at the point to get the slope there.

  3. The slip: Treating the derivative as the function's value instead of its rate

    Instead: f(2) is the height of the curve, f′(2) is its steepness.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Use the limit definition to find f′(x) for f(x)=3x+5.

    Hint: Write f(x+h)−f(x)h and simplify before letting h→0.

  2. Use the limit definition to find f′(2) for f(x)=x2+x.

    Hint: Expand f(2+h)=(2+h)2+(2+h) and subtract f(2)=6.

  3. Use the limit definition to find f′(x) for f(x)=1x.

    Hint: Combine 1x+h−1x into one fraction before dividing by h.

  4. A ball's height is h(t)=20t−5t2 metres after t seconds. Use the limit definition to find h′(1) and say what it means.

    Hint: Find h(1+h)−h(1) first, using a different letter for the small step if that helps.

  5. Question A: how much did a tank's water level change per minute, on average, between minute 2 and minute 6? Question B: how fast is it changing at minute 4? Which one needs the derivative?

    Hint: Look at whether each question names one moment or a stretch of time.

  6. For f(x)=x2, a student says "f′(3)=9, because 32=9." Correct the student.

    Hint: Is 9 the height of the curve at x=3 or its steepness there?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Can a graph be unbroken at a point and still have no derivative there?

Yes. The graph of f(x)=∣x∣f(x)=|x| has no gap at x=0x=0, but its slope is −1-1 just to the left and 11 just to the right, so the difference quotient has no single limit and f′(0)f'(0) does not exist. Corners, cusps and vertical tangents all do this. The other direction always holds: a function that has a derivative at a point must be continuous there.

What is the difference between f′(x), dydx and ddx?

f′(x)f'(x) and dydx\frac{dy}{dx} are two notations for the same derivative, Lagrange's prime and Leibniz's fraction-like form. On its own, ddx\frac{d}{dx} is an instruction, take the derivative with respect to xx of what follows, as in ddx(x3)=3x2\frac{d}{dx}(x^3)=3x^2. Leibniz's form is handy with units: dVdt\frac{dV}{dt} in litres per second shows which quantity changes per unit of which.

If a velocity is zero at some instant, has the object stopped?

Only for that instant. A ball thrown straight up has zero velocity at the top of its flight, yet it is still accelerating downward at about 9.8 m/s29.8\text{ m/s}^2, so it does not stay there. A derivative of zero describes a single moment, not a period of rest. An object that really stays still has a velocity of zero over a whole interval of time.

Why can't I just set h=0 in the difference quotient?

Because f(x+0)−f(x)0=00\frac{f(x+0)-f(x)}{0}=\frac{0}{0}, which tells you nothing. The method is to simplify while hh is still not zero. For f(x)=x2f(x)=x^2, (x+h)2−x2h=2xh+h2h=2x+h\frac{(x+h)^2-x^2}{h}=\frac{2xh+h^2}{h}=2x+h. Now the hh in the denominator is gone, and letting h→0h\to0 leaves 2x2x. The limit is what lets you divide first and shrink hh afterwards.

Learning Path

← Before

LimitSlope
Derivative

You are here

You need Limit (what a quantity approaches as a gap shrinks) and Slope (rise over run for a line). The derivative combines them: the slope of a curve at one point is the limit of secant slopes. Next, Differentiation Rules give derivatives without the limit every time, the Chain Rule handles functions inside functions, and the Integral runs the process backwards to recover totals from rates.

See Also