- Practice
- About 20 min
- 5 practice questions
Rules of differentiation and derivatives of elementary functions
Use the sum, constant multiple, product, quotient and chain rules, and the standard derivatives of powers, logarithms, exponentials, trigonometric and inverse trigonometric functions.
If something looks wrong, please tell us.
By the end of this lesson you can
- State and apply the sum, constant multiple, product and quotient rules.
- State the chain rule for a function of a function.
- Recall the derivatives of xⁿ, log x, logₐx, aˣ, eˣ, the six trigonometric and the six inverse trigonometric functions.
- Differentiate combinations of these functions without going back to first principles.
Finding every derivative from the limit definition is slow. Instead, we find the derivatives of the basic elementary functions once, prove a few rules for combining functions, and then differentiate almost anything mechanically. The textbook proves each rule from the definition; the key ideas of those proofs are given below.
The rules for combining functions
| Rule | Statement | Idea of the proof |
|---|---|---|
| Sum | (u + v)′ = u′ + v′; extends to any finite sum, and to differences | Split Δ(u + v)/Δx into Δu/Δx + Δv/Δx and take limits |
| Constant multiple | (k f)′ = k f′ | The constant k comes out of the limit |
| Product | (uv)′ = u v′ + v u′ | Add and subtract u(x)v(x + Δx); use continuity of v |
| Quotient | (u/v)′ = (v u′ − u v′) / v², where v ≠ 0 | Combine u(x + Δx)/v(x + Δx) − u(x)/v(x) over one denominator |
| Chain | If y = f(u) and u = g(x), then dy/dx = (dy/du)(du/dx) = f′(g(x)) g′(x) | Write Δy/Δx = (Δy/Δu)(Δu/Δx); Δu → 0 as Δx → 0 |
For three factors, (uvw)′ = u′vw + uv′w + uvw′: differentiate one factor at a time and add. In the chain rule, g is the inner function, f the outer function, and u is the intermediate argument: differentiate the outside, keep the inside unchanged, then multiply by the derivative of the inside.
Product: (uv)′ = uv′ + vu′. Quotient: (u/v)′ = (vu′ − uv′)/v². Chain: d/dx f(g(x)) = f′(g(x)) · g′(x).
Derivatives of the basic elementary functions
Powers. The derivative of a constant is 0, since f(x + Δx) − f(x) = k − k = 0. For f(x) = xⁿ with n a positive integer, the difference quotient becomes [(x + Δx)ⁿ − xⁿ]/[(x + Δx) − x], whose limit is the standard limit nxⁿ⁻¹. The same rule holds for rational and, in fact, all real exponents α: d/dx(x^α) = αx^(α−1).
Logarithm. For log x (natural logarithm, base e): [log(x + Δx) − log x]/Δx = log(1 + Δx/x)/Δx, and the standard limit lim (α → 0) log(1 + kα)/α = k gives 1/x. Since logₐx = logₐe × log x, d/dx(logₐx) = 1/(x log a). Exponential. For aˣ: [a^(x + Δx) − aˣ]/Δx = aˣ (a^Δx − 1)/Δx, and lim (a^Δx − 1)/Δx = log a gives aˣ log a; for a = e this is eˣ, so eˣ is its own derivative.
Sine. sin(x + Δx) − sin x = 2 cos(x + Δx/2) sin(Δx/2). Dividing by Δx gives cos(x + Δx/2) × [sin(Δx/2)/(Δx/2)], which tends to cos x × 1. The other five follow from the rules: cos x = sin(π/2 + x) by the chain rule; tan x = sin x/cos x by the quotient rule; sec x = (cos x)⁻¹ and cosec x = (sin x)⁻¹ by the chain rule; cot x = cos x/sin x by the quotient rule.
| f(x) | f′(x) | f(x) | f′(x) |
|---|---|---|---|
| k (constant) | 0 | xⁿ | n xⁿ⁻¹ |
| log x | 1/x | logₐx | 1/(x log a) |
| eˣ | eˣ | aˣ | aˣ log a |
| sin x | cos x | cos x | −sin x |
| tan x | sec² x | cot x | −cosec² x |
| sec x | sec x tan x | cosec x | −cosec x cot x |
| sin⁻¹x | 1/√(1 − x²) | cos⁻¹x | −1/√(1 − x²) |
| tan⁻¹x | 1/(1 + x²) | cot⁻¹x | −1/(1 + x²) |
| sec⁻¹x | 1/(x√(x² − 1)) for x > 1 | cosec⁻¹x | −1/(x√(x² − 1)) for x > 1 |
For the inverse functions, write y = sin⁻¹x so that x = sin y with −π/2 ≤ y ≤ π/2. Then dy/dx = 1/(dx/dy) = 1/cos y = 1/√(1 − sin² y) = 1/√(1 − x²), taking the positive root because cos y ≥ 0 on that interval. Differentiating the identity sin⁻¹x + cos⁻¹x = π/2 gives the cos⁻¹ result, and tan⁻¹x + cot⁻¹x = π/2 gives the cot⁻¹ result from the tan⁻¹ one. The textbook states the sec⁻¹ and cosec⁻¹ results in the form shown, which is correct for x > 1; for x < −1 the x in front is replaced by |x|.
Worked example 1: sums and powers
Differentiate y = 4x³ − 7x + 2/x + 9. Write 2/x = 2x⁻¹. Then y′ = 4(3x²) − 7(1) + 2(−1)x⁻² + 0 = 12x² − 7 − 2/x².
Worked example 2: product rule
Differentiate y = x² sin x. Take u = x², v = sin x. Then y′ = u v′ + v u′ = x² cos x + sin x · 2x = x² cos x + 2x sin x. Similarly, for y = eˣ log x: y′ = eˣ · (1/x) + log x · eˣ = eˣ(log x + 1/x).
Worked example 3: quotient rule
Differentiate y = (x² + 1)/(x − 3), x ≠ 3. Take u = x² + 1 (u′ = 2x) and v = x − 3 (v′ = 1). Then y′ = [(x − 3)(2x) − (x² + 1)(1)]/(x − 3)² = (2x² − 6x − x² − 1)/(x − 3)² = (x² − 6x − 1)/(x − 3)². Check at x = 4: the formula gives (16 − 24 − 1)/1 = −9, and from first principles near x = 4, y(4) = 17 and y(4.001) = 17.008001/1.001 ≈ 16.9910, a change of about −0.0090 over 0.001, a slope of about −9.
Worked example 4: exponentials and logarithms to other bases
Differentiate y = 3ˣ + log₂x. By the table, y′ = 3ˣ log 3 + 1/(x log 2). Note that log 3 and log 2 here are natural logarithms; they are just constants (about 1.0986 and 0.6931).
Choosing the rule
- Look at the outermost operation Is the whole expression a sum, a product, a quotient, or a function of something?
- Apply that rule Sum → term by term; product → uv′ + vu′; quotient → (vu′ − uv′)/v²; function of a function → chain rule.
- Differentiate each piece Use the table of standard derivatives, repeating the choice for any piece that is itself built up.
- Simplify Collect terms and use identities such as sin²x + cos²x = 1.
Key takeaways: learn the five rules and the table of standard derivatives; they replace first principles in almost every problem. In the quotient rule the order matters: the denominator times the derivative of the numerator comes first. Logarithms and exponentials to base a bring in the constant log a.
Check your understanding
-
1. What is d/dx (x⁵ − 3√x)?
- 5x⁴ − 3/(2√x)
- 5x⁴ − 3√x/2
- x⁴ − 3/(2√x)
- 5x⁴ − 6√x
Show answer
Answer: A. √x = x^(1/2), whose derivative is (1/2)x^(−1/2) = 1/(2√x). So the derivative is 5x⁴ − 3 × 1/(2√x) = 5x⁴ − 3/(2√x).
-
2. What is the derivative of x cos x?
- −sin x
- cos x + x sin x
- cos x − x sin x
- −x sin x
Show answer
Answer: C. Product rule with u = x, v = cos x: u v′ + v u′ = x(−sin x) + cos x · 1 = cos x − x sin x. Forgetting the minus sign on the derivative of cos x gives the wrong option cos x + x sin x.
-
3. What is d/dx [sin x / (1 + cos x)]?
- cos x / (1 + cos x)
- 1 / (1 + cos x)
- −1 / (1 + cos x)
- cos x / (−sin x)
Show answer
Answer: B. Quotient rule: [(1 + cos x)cos x − sin x(−sin x)]/(1 + cos x)² = (cos x + cos²x + sin²x)/(1 + cos x)² = (1 + cos x)/(1 + cos x)² = 1/(1 + cos x).
-
4. What is the derivative of 5ˣ?
- x · 5ˣ⁻¹
- 5ˣ
- 5ˣ / log 5
- 5ˣ log 5
Show answer
Answer: D. d/dx(aˣ) = aˣ log a, so d/dx(5ˣ) = 5ˣ log 5. The power rule x · 5ˣ⁻¹ does not apply because the variable is in the exponent, not the base.
-
5. What is the value of d/dx (tan⁻¹x) at x = 1?
- 1
- π/4
- 1/2
- −1/2
Show answer
Answer: C. d/dx(tan⁻¹x) = 1/(1 + x²). At x = 1 this is 1/(1 + 1) = 1/2. π/4 is the value of tan⁻¹1 itself, not its derivative.
Sign in to keep track of the lessons you finish.