Basic Differentiation Rules
Differentiate quickly with the constant, power, constant multiple and sum rules, then exponentials, logarithms, sine and cosine, and higher derivatives.
Welcome back!
Step 1 of 14Learn
Rules instead of limits
Computing every derivative from the limit definition would be exhausting. Fortunately, working out the definition for general cases gives rules you can apply in seconds.
Constant rule. The derivative of a constant is zero: d/dx [c] = 0. A horizontal line has slope 0 everywhere.
Power rule. For any real number n:
d/dx [xⁿ] = n xⁿ⁻¹
Bring the exponent down as a coefficient, then lower the exponent by one.
- d/dx [x⁵] = 5x⁴
- d/dx [x] = 1 (since x = x¹, the derivative is 1 · x⁰ = 1)
- d/dx [x¹⁰⁰] = 100x⁹⁹
You can see why for x²: earlier, the definition gave 2x, which matches n xⁿ⁻¹ with n = 2. For x³, expanding (x + h)³ gives x³ + 3x²h + 3xh² + h³; the difference quotient is 3x² + 3xh + h², which tends to 3x². The binomial expansion always produces n xⁿ⁻¹h as the only term that survives.
The rule works for negative and fractional exponents too, as long as you first rewrite the function as a power of x. That rewriting step is where most errors happen, so the next step drills it.
Step 2 of 14Practice · Fill in the blanks
Fill in the blanks
Using the power rule, d/dx [x⁸] = and d/dx [x] = .
Step 3 of 14Learn
Constant multiples, sums and rewriting
Two more rules let you differentiate any polynomial term by term.
- Constant multiple rule: d/dx [c · f(x)] = c · f'(x). Constants just ride along: d/dx [7x³] = 7 · 3x² = 21x².
- Sum and difference rule: d/dx [f(x) ± g(x)] = f'(x) ± g'(x).
Example. f(x) = 4x³ − 5x² + 7x − 2
f'(x) = 12x² − 10x + 7 (the constant −2 disappears)
Rewrite before differentiating. Roots and fractions must become powers first:
| Original | Rewritten | Derivative |
|---|---|---|
| √x | x1/2 | (1/2)x−1/2 = 1/(2√x) |
| 1/x³ | x−3 | −3x−4 = −3/x⁴ |
| 5/x | 5x−1 | −5x−2 = −5/x² |
| ∛(x²) | x2/3 | (2/3)x−1/3 |
With negative exponents, subtracting 1 makes the exponent more negative: x−3 becomes x−4, not x−2. That's the single most common power-rule error.
What these rules don't cover: products and quotients. The derivative of x² · x³ is not 2x · 3x². (Multiply first: x⁵, derivative 5x⁴.) For products and quotients you can't simplify, you'll need the product and quotient rules in the next module.
Step 4 of 14Practice · Work it out
If f(x) = 4x³ − 5x² + 7x − 2, what is f'(2)?
Step 5 of 14Practice · Choose one
What is the derivative of f(x) = 6/√x?
Step 6 of 14Learn
Exponential and logarithmic functions
The number e ≈ 2.71828 is special for one reason: the function eˣ is its own derivative.
d/dx [eˣ] = eˣ
At every point on the graph of y = eˣ, the slope equals the height. At x = 0 the height is 1 and the slope is 1; at x = 2 both are about 7.39. That property makes eˣ the natural model for anything that grows in proportion to its current size: populations, compound interest, the spread of an infection.
For other bases, a constant factor appears:
d/dx [aˣ] = aˣ ln a
So d/dx [2ˣ] = 2ˣ ln 2 ≈ 0.693 · 2ˣ. (Since ln e = 1, this formula reduces to eˣ for a = e.)
The natural logarithm has an equally clean derivative:
d/dx [ln x] = 1/x (for x > 0)
The slope of ln x at x = 1 is 1, at x = 10 it's 0.1, and at x = 100 just 0.01. The logarithm keeps rising forever, but ever more slowly.
Common confusion: the power rule does not apply to eˣ or 2ˣ. The power rule is for a variable base and a constant exponent (x³). Exponential functions have a constant base and a variable exponent (3ˣ). Writing d/dx [eˣ] = x eˣ⁻¹ mixes the two.
Step 7 of 14Learn
Sine and cosine
With x in radians, the trigonometric derivatives are:
- d/dx [sin x] = cos x
- d/dx [cos x] = −sin x
- d/dx [tan x] = sec² x
The first comes straight from the limit definition plus the two special limits from the computing-limits lesson, lim sin h/h = 1 and lim (1 − cos h)/h = 0.
You can check them against the graphs. At x = 0, sin x is rising with slope 1, and cos 0 = 1. At x = π/2, sin x reaches its peak (slope 0), and cos(π/2) = 0. Similarly, cos x starts at a peak at x = 0 (slope 0, and −sin 0 = 0), then falls, matching the minus sign.
Differentiating repeatedly cycles through four functions:
sin x → cos x → −sin x → −cos x → sin x
Why radians? In degrees, the special limit becomes lim sin h/h = π/180, and every trig derivative picks up an annoying factor of π/180. Radians make the formulas clean. If your calculator is in degree mode, your calculus answers will be wrong.
Signs are the main trap: the derivative of cos x is negative sine, but the derivative of sin x is positive cosine. A memory aid: derivatives of the "co-" functions (cosine, cotangent, cosecant) all carry a minus sign.
Step 8 of 14Practice · Chart
sin x and its slope, cos x
Tap the x where sin x is falling most steeply.
Tap the point that answers the question, then press Check.
| Item | sin x | cos x (slope of sin x) |
|---|---|---|
| 0 | 0 | 1 |
| π/4 | 0.71 | 0.71 |
| π/2 | 1 | 0 |
| 3π/4 | 0.71 | -0.71 |
| π | 0 | -1 |
| 5π/4 | -0.71 | -0.71 |
| 3π/2 | -1 | 0 |
| 7π/4 | -0.71 | 0.71 |
| 2π | 0 | 1 |
Step 9 of 14Practice · Match the pairs
Match each function to its derivative.
Tap an answer, then tap the place where it belongs (or drag it there).
- eˣ
- ln x
- sin x
- cos x
- 5ˣ
Step 10 of 14Learn
Higher derivatives and motion
The derivative of a derivative is the second derivative, written f''(x) or d²y/dx². You can keep going: f''' is the third derivative, and so on.
For f(x) = x⁴: f'(x) = 4x³, f''(x) = 12x², f'''(x) = 24x.
The clearest meaning of higher derivatives comes from motion along a line. If s(t) is position at time t:
- Velocity v(t) = s'(t): rate of change of position.
- Acceleration a(t) = v'(t) = s''(t): rate of change of velocity.
Example. A particle moves with s(t) = t³ − 6t² + 9t meters, t in seconds.
- v(t) = 3t² − 12t + 9 = 3(t − 1)(t − 3). The particle stops (v = 0) at t = 1 and t = 3. Between them v < 0, so it moves backward.
- a(t) = 6t − 12. At t = 1, a = −6 m/s²; at t = 3, a = +6 m/s².
Speed is the absolute value of velocity. An object is speeding up when velocity and acceleration have the same sign, and slowing down when they have opposite signs. At t = 0.5, v = 3.75 and a = −9: moving forward but slowing down. At t = 2, v = −3 and a = 0, so the backward speed is momentarily at its peak.
Negative acceleration doesn't automatically mean slowing down. A car moving backward with negative acceleration is speeding up.
Step 11 of 14Diagram
Each derivative is the rate of the one before
Tap a shape with to see more.
- Position s(t)
Where the object is, in meters.
- Velocity v = s′
How fast position changes, in m/s. Its sign gives direction.
- Acceleration a = v′ = s″
How fast velocity changes, in m/s2.
- Jerk = a′
How fast acceleration changes. Engineers limit it for comfortable elevators and trains.
Step 12 of 14Try the calculator
Position, velocity and acceleration
For position s(t) = p·t³ + q·t² + r·t, enter the coefficients and a time t. The defaults are the particle from the example: s(t) = t³ − 6t² + 9t.
- Position s(t)
- 2 m
- Velocity v(t) = 3pt² + 2qt + r
- -3 m/s
- Acceleration a(t) = 6pt + 2q
- 0 m/s²
Step 13 of 14Practice · Work it out
A particle has position s(t) = t³ − 6t² + 9t. What is its acceleration at t = 3?
Step 14 of 14Practice · Spot the mistake
A study sheet lists six derivatives. Tap the two that are wrong.
Lesson complete!