Derivative Rules: Formulas, Examples, and Basic Integrals
Updated on November 12, 2026
A derivative measures how fast a function changes — it is the slope of the function’s graph at each point. You rarely need the limit definition: a short list of derivative rules lets you differentiate almost any function. This guide collects those rules with worked examples, including the derivatives of 1/x and arctan x, and then shows the basic integrals that reverse them, such as the integral of sin(2x).
What Is a Derivative?
The derivative of f(x), written f′(x) or dy/dx, is defined as a limit:
f′(x) = limh→0 [f(x + h) − f(x)] / h
Geometrically, f′(a) is the slope of the tangent line at x = a. Physically, if f(t) is position, f′(t) is velocity.
Basic Derivative Rules
|
Rule |
Formula |
Example |
|---|---|---|
|
Constant rule |
d/dx [c] = 0 |
d/dx [7] = 0 |
|
Power rule |
d/dx [xn] = n·xn−1 |
d/dx [x5] = 5x4 |
|
Constant multiple |
d/dx [c·f] = c·f′ |
d/dx [4x3] = 12x2 |
|
Sum / difference |
(f ± g)′ = f′ ± g′ |
d/dx [x2 + 3x] = 2x + 3 |
|
Product rule |
(fg)′ = f′g + fg′ |
d/dx [x2 sin x] = 2x sin x + x2 cos x |
|
Quotient rule |
(f/g)′ = (f′g − fg′)/g2 |
see example below |
|
Chain rule |
d/dx [f(g(x))] = f′(g(x))·g′(x) |
d/dx [(3x2 + 1)5] = 30x(3x2 + 1)4 |
Power rule
The power rule works for any real exponent n, including negative and fractional ones. Rewrite roots and fractions as powers first:
- d/dx [√x] = d/dx [x1/2] = (1/2)x−1/2 = 1/(2√x)
- d/dx [x−3] = −3x−4 = −3/x4
Quotient rule example
- d/dx [x / (x2 + 1)]
- f = x, f′ = 1; g = x2 + 1, g′ = 2x
- = [1·(x2 + 1) − x·2x] / (x2 + 1)2 = (1 − x2) / (x2 + 1)2
Chain rule example
Differentiate the outside function, keep the inside the same, then multiply by the derivative of the inside.
- d/dx [(3x2 + 1)5]
- Outside: u5 → 5u4. Inside: u = 3x2 + 1 → u′ = 6x
- = 5(3x2 + 1)4 · 6x = 30x(3x2 + 1)4
Expert Math Tutors for Every Level
Connect with professional and certified educators who provide specialized support for every grade level, from elementary school basics to advanced algebra
Derivatives of Common Functions
|
Function |
Derivative |
|---|---|
|
xn |
n·xn−1 |
|
1/x |
−1/x2 |
|
ex |
ex |
|
ax |
ax ln a |
|
ln x |
1/x |
|
sin x |
cos x |
|
cos x |
−sin x |
|
tan x |
sec2 x |
|
arcsin x |
1/√(1 − x2) |
|
arccos x |
−1/√(1 − x2) |
|
arctan x (tan−1 x) |
1/(1 + x2) |
Derivative of 1/x
Rewrite 1/x as a power and use the power rule:
- 1/x = x−1
- d/dx [x−1] = −1 · x−2 = −1/x2
You can confirm it with the limit definition:
- [1/(x + h) − 1/x] / h = [(x − (x + h)) / (x(x + h))] / h = −1 / (x(x + h))
- As h → 0, this approaches −1/x2 ✓
The same idea gives d/dx [1/x2] = −2/x3 and, with the chain rule, d/dx [1/(2x + 1)] = −2/(2x + 1)2. Don’t confuse 1/x with ln x: the derivative of ln x is 1/x.
Derivative of tan−1x (arctan x)
The derivative of the inverse tangent is d/dx [tan−1 x] = 1/(1 + x2). Here is why, using implicit differentiation:
- Let y = tan−1 x, so tan y = x (with −π/2 < y < π/2)
- Differentiate both sides: sec2 y · dy/dx = 1
- dy/dx = 1 / sec2 y = 1 / (1 + tan2 y)
- Since tan y = x: dy/dx = 1 / (1 + x2)
With the chain rule: d/dx [tan−1(2x)] = 2/(1 + 4x2), and d/dx [tan−1(x2)] = 2x/(1 + x4). This is a special case of the rule for the derivative of an inverse function.
Basic Integrals: Reversing the Derivative Rules
An integral (antiderivative) reverses differentiation: if F′(x) = f(x), then ∫f(x) dx = F(x) + C. The constant C appears because constants disappear when you differentiate.
|
Integral |
Result |
|---|---|
|
∫xn dx (n ≠ −1) |
xn+1/(n + 1) + C |
|
∫(1/x) dx |
ln|x| + C |
|
∫ex dx |
ex + C |
|
∫sin x dx |
−cos x + C |
|
∫cos x dx |
sin x + C |
|
∫sec2 x dx |
tan x + C |
|
∫1/(1 + x2) dx |
arctan x + C |
Integral of sin(2x)
Use u-substitution — the chain rule in reverse:
- ∫sin(2x) dx. Let u = 2x, so du = 2 dx and dx = du/2
- = (1/2)∫sin u du = −(1/2) cos u + C
- = −(1/2) cos(2x) + C
- Check: d/dx [−(1/2) cos(2x)] = −(1/2)(−sin(2x))·2 = sin(2x) ✓
Shortcut: ∫sin(kx) dx = −(1/k) cos(kx) + C and ∫cos(kx) dx = (1/k) sin(kx) + C. You might also see the answer written as sin2x + C, using sin(2x) = 2 sin x cos x. Both answers are correct: −(1/2)cos(2x) = sin2x − 1/2, so they differ only by a constant.
Integral of sin²x
If you meant sin2x (sine squared), use the identity sin2x = (1 − cos 2x)/2:
∫sin2x dx = ∫(1 − cos 2x)/2 dx = x/2 − sin(2x)/4 + C
Common Mistakes
- Forgetting the chain rule: d/dx [sin(3x)] = 3cos(3x), not cos(3x).
- Treating the product rule like a sum: (fg)′ ≠ f′g′.
- Mixing up 1/x and ln x: the derivative of 1/x is −1/x2; the integral of 1/x is ln|x|.
- Forgetting + C on indefinite integrals.
- Using the power rule for ∫x−1 dx: it would divide by zero — the answer is ln|x| + C.
Practice Problems
- d/dx [6x4 − 2x + 9].
- d/dx [3/x].
- d/dx [x ex].
- d/dx [tan−1(3x)].
- ∫(4x3 + 2) dx.
- ∫cos(5x) dx.
Frequently Asked Questions
What are the basic derivative rules?
The constant, power, constant multiple, sum, product, quotient, and chain rules. Together with the derivatives of common functions, they let you differentiate almost any expression.
What is the derivative of 1/x?
The derivative of 1/x is −1/x2. Write 1/x as x−1 and apply the power rule.
What is the derivative of tan inverse x?
d/dx [tan−1 x] = 1/(1 + x2). It is found by differentiating tan y = x implicitly.
How do you integrate sin(2x)?
Substitute u = 2x: ∫sin(2x) dx = −(1/2) cos(2x) + C.
What is the difference between a derivative and an integral?
A derivative gives the rate of change (slope) of a function; an integral reverses that process and also measures the area under a curve.