← Calculus 12 · All tools

Derivatives: Definition and Rules

BC Calculus 12 · Differentiation (first half) · A derivative is a rate of change: how fast something is changing, right now, at one exact point.

Free learning tool. No account, no sign-in. Just open and play.

Secant → Tangent Lab

Drag h toward 0 and watch the secant line turn into the tangent line. The secant slope is the average rate of change over the interval; the tangent slope is the instantaneous rate of change at the point — the derivative.

curve    secant line (average rate)    tangent line (instantaneous rate)

Average rate vs. instantaneous rate

As h gets smaller, the average rate closes in on the instantaneous rate. That limit is the derivative.

hAverage rate frac(f(a + h) − f(a), h)Instantaneous rate f'(a)

Worked Examples

Each example shows one step at a time. Cover the next step, try it yourself, then reveal it. The last step is always the check. The graph plays along: each step moves the picture to the state that step is about.

Each click replaces the first three examples with a fresh set. Example 4 is fixed.

Example 1 — The definition, from scratch

Find f'(2) for f(x) = x2, using the definition of the derivative.

  1. Setup: f'(2) = limh→0 (2 + h)2 − 4h.
  2. Expand the numerator: (2 + h)2 − 4 = 4 + 4h + h2 − 4 = 4h + h2.
  3. Cancel h: 4h + h2h = 4 + h.
  4. Take the limit as h → 0: 4 + 0 = 4. So f'(2) = 4.
  5. Check: the power rule gives f'(x) = 2x, so f'(2) = 4. ✔

The secant line (red) closes in on the tangent line (green) as h → 0.

Example 2 — The product rule

Find f'(x) for f(x) = x2sin(x).

  1. Identify the two factors: u = x2 and v = sin(x).
  2. Differentiate each one: u' = 2x and v' = cos(x).
  3. Apply f' = u'v + uv': f'(x) = 2x sin(x) + x2 cos(x).
  4. Simplify: there is nothing to combine — the two terms stay separate.
  5. Check at x = 1: f'(1) = 2sin(1) + cos(1) ≈ 2.22. ✔

Dashed: f(x); blue: f'(x) — the derivative is a new function, with its own graph.

Example 3 — The chain rule, layer by layer

Find f'(x) for f(x) = sin(2x + 1).

  1. Split into layers: outer sin(u), inner u = 2x + 1.
  2. Differentiate the outer layer, leaving the inner alone: cos(2x + 1).
  3. Multiply by the inner derivative, 2: f'(x) = 2cos(2x + 1).
  4. Simplify: nothing left to combine — f'(x) = 2cos(2x + 1).
  5. Check at x = 0: f'(0) = 2cos(1) ≈ 1.08. ✔

Dashed: f(x); blue: f'(x). Forgetting the ×2 from the inner layer is the classic chain-rule mistake.

Example 4 — Implicit differentiation

Find the slope of the tangent to x2 + y2 = 25 at the point (3, 4).

  1. Differentiate both sides with respect to x: 2x + 2y dydx = 0. (The y-term needs the chain rule: y is a function of x.)
  2. Solve for dydx: dydx = −xy.
  3. At (3, 4): dydx = −34.
  4. Check: (3, 4) is on the circle (9 + 16 = 25), and the slope is negative — the curve falls as x grows there, as the picture shows. ✔

The circle x2 + y2 = 25 with its tangent line at (3, 4).

Practice Generator

Fresh questions every time — the numbers change, so you cannot just memorize answers. Hint first, try it, then check the full solution. Chain-rule questions come in two steps: split the layers first, then differentiate.

Score: 0 / 0

Press “New question” to start.

Your mistakes (saved in this browser only)

Questions you got wrong are listed here so you can review them. Nothing leaves your computer.

Printable Worksheet

Make a paper worksheet from this chapter's questions — pick a topic, generate a set, and print it (or save it as a PDF). The questions come from the same generator as the Practice Generator above, with the same answers.

Tip: a mixed set always includes one chain-rule question. In the print dialog, choose “Save as PDF” to keep a copy.

One-Page Summary

The definition

f'(a) = limh→0 f(a + h) − f(a)h  — the limit of the secant slopes as h → 0. The average rate of change on [a, b] is f(b) − f(a)b − a; the instantaneous rate at a is the limit of that as b → a.

Notation — all four mean the same thing

NotationRead as
f'(x)“f prime of x” — Lagrange notation
dydx“dy by dx” — Leibniz notation (a ratio of tiny changes)
ddx f(x)“d by dx of f of x” — the derivative operator
y'“y prime” — when y is the function

The rules

RuleFormula
Constantddx c = 0
Powerddx xn = nxn−1
Constant multiple(cf)' = cf'
Sum / difference(f ± g)' = f' ± g'
Product(fg)' = f'g + fg'
Quotientfg' = f'g − fg'g2 — “low d-high minus high d-low, over low squared”
Chainddx f(g(x)) = f'(g(x)) · g'(x) — outer derivative, times inner derivative

Transcendental derivatives

FunctionDerivative
sin(x)cos(x)
cos(x)−sin(x)
exex — it is its own derivative
ln(x)1x (x > 0)

Implicit differentiation — the steps

  1. Differentiate both sides with respect to x. Every y-term gets a dydx attached (chain rule: y is a function of x).
  2. Collect all the dydx terms on one side, everything else on the other.
  3. Factor out dydx and solve for it.
  4. If a point is given, substitute it in — and check the point is actually on the curve first.

Higher derivatives

f''(x) is the derivative of f'(x) — just differentiate twice, one rule at a time. f'' tells you about concavity (that story belongs to the Applications block).

Common mistakes

Scope note

This block is the definition and the rules. Curve sketching with f' and f'', optimization, and related rates belong to the next block, Derivatives: Applications — they use these rules, they do not add new ones.