Course scope. This topic is shared by Calculus AB and Calculus BC. Everything here is examinable for both.
A note on notation
This page has no equation renderer. d/dx f(x) and f′(x) both mean “the derivative of f with respect to x”. Limits are written as lim (h → 0) for “the limit as h approaches 0”. Powers of e are written eˣ, or e^(x + 3) when the power is longer. ln x is the natural logarithm, the logarithm with base e.
The four new rules
So far you can differentiate powers of x and combine them with sums and constant multiples. This topic adds four functions that appear on almost every page of calculus.
| Function | Derivative | Condition |
|---|---|---|
| sin x | cos x | x in radians |
| cos x | −sin x | x in radians |
| eˣ | eˣ | all real x |
| ln x | 1/x | x > 0 (ln x is only defined there) |
Two signs to watch: the derivative of cos x carries a minus, and the derivative of sin x does not. A memory aid: on the interval 0 < x < π/2, cos x is falling, so its slope must be negative. That is why −sin x, which is negative there, is its derivative.
These rules work alongside the rules from Topics 2.5 and 2.6. Differentiate a sum term by term, keep constant multiples in front, and remember that the derivative of any constant is 0.
Why the trig rules are true
The rules come straight from the definition of the derivative. Start with sin x and use the addition formula sin(x + h) = sin x cos h + cos x sin h:
[sin(x + h) − sin x]/h = sin x · (cos h − 1)/h + cos x · (sin h)/h
Now let h → 0. Here x is fixed, so sin x and cos x act as constants. From Topic 1.8 you know two limits:
- lim (h → 0) (sin h)/h = 1
- lim (h → 0) (cos h − 1)/h = 0
So the limit is sin x · 0 + cos x · 1 = cos x.
The same method with cos(x + h) = cos x cos h − sin x sin h gives
[cos(x + h) − cos x]/h = cos x · (cos h − 1)/h − sin x · (sin h)/h → cos x · 0 − sin x · 1 = −sin x
Why radians matter. The limit (sin h)/h = 1 holds only when h is measured in radians. If x were in degrees, every slope would pick up an extra factor of π/180 ≈ 0.01745. The clean rules on this page assume radians, so set your calculator to radians whenever you check a derivative.
The graph agrees
You can also check one value numerically: (sin 1.001 − sin 1)/0.001 ≈ 0.5399, and cos 1 ≈ 0.5403. The difference quotient is already close to cos 1 with h = 0.001.
Why eˣ is its own derivative
Use the definition again, and the law e^(x + h) = eˣ · eʰ:
[e^(x + h) − eˣ]/h = eˣ · (eʰ − 1)/h
Everything depends on the limit of (eʰ − 1)/h. For a general base b, the value of (bʰ − 1)/h at h = 0.001 is:
| Base b | (bʰ − 1)/h at h = 0.001 |
|---|---|
| 2 | 0.6934 |
| e ≈ 2.7183 | 1.0005 |
| 3 | 1.0992 |
For b = 2 the limit is a little below 1, and for b = 3 it is a little above 1. The number e is exactly the base that makes the limit equal to 1. So the derivative of eˣ is eˣ · 1 = eˣ.
Graphically: the slope of y = eˣ at any point equals the height of the graph at that point. Since eˣ > 0 for all x, the graph of eˣ always has a positive slope.
Why ln x has derivative 1/x (background)
The graph of y = ln x is the reflection of y = eˣ in the line y = x, because ln and exp are inverse functions. Reflecting in y = x swaps the x and y coordinates, so it also swaps rise and run. A slope m becomes a slope 1/m.
On y = eˣ, the point (a, eᵃ) has slope eᵃ. Its mirror image on y = ln x is (eᵃ, a), with slope 1/eᵃ. Write x for the x-coordinate of that mirror point, so x = eᵃ, and the slope of ln at x is 1/x. A full treatment of derivatives of inverse functions comes in Topic 3.3; here you only need the rule.
Numerical check: (ln 2.001 − ln 2)/0.001 ≈ 0.4999, which is close to 1/2.
Rewrite before you differentiate
In this topic the input of each function must be plain x. Some expressions can be rewritten into that form with algebra you already know:
| Expression | Rewrite | Derivative |
|---|---|---|
| ln(5x), x > 0 | ln 5 + ln x | 0 + 1/x = 1/x |
| ln(x³), x > 0 | 3 ln x | 3/x |
| e^(x + 3) | e³ · eˣ | e³ · eˣ = e^(x + 3) |
| e² + ln 4 + sin(π/6) | a constant | 0 |
The last row catches many students. e², ln 4 and sin(π/6) = 1/2 are fixed numbers, not functions of x, so each has derivative 0.
Expressions such as sin(3x), cos(x²) or e^(2x) cannot be handled yet. They need the chain rule (Topic 3.1).
Worked example 1: a tangent line to a trig combination
Question. Let f(x) = 2 sin x + cos x − 3. Find the equation of the tangent line to the graph of f at x = π/2.
-
Differentiate term by term. d/dx (2 sin x) = 2 cos x. d/dx (cos x) = −sin x. d/dx (−3) = 0. So f′(x) = 2 cos x − sin x.
-
Find the point. f(π/2) = 2 sin(π/2) + cos(π/2) − 3 = 2(1) + 0 − 3 = −1. The point is (π/2, −1).
-
Find the slope. f′(π/2) = 2 cos(π/2) − sin(π/2) = 0 − 1 = −1.
-
Write the line. Point–slope form: y − (−1) = −1(x − π/2), so
y = −1 − (x − π/2), or equivalently y = −x + π/2 − 1.
Check. At x = π/2 + 0.01, f ≈ −1.0101 and the tangent line gives −1.0100. Close to the point, the line and the curve agree, as a tangent line should.
Watch the sign. If you wrote d/dx cos x = +sin x, you would get slope 0 + 1 = +1 and a line sloping the wrong way.
Worked example 2: finding a point from a slope
Question. (a) At which point on y = ln x is the tangent line parallel to y = x/3? (b) At which point on y = eˣ is the slope of the tangent line equal to 5? (c) Is there any point on y = eˣ where the tangent line is horizontal?
(a)
- Parallel lines have equal slopes, so you need a slope of 1/3.
- The slope of y = ln x at x is 1/x. Solve 1/x = 1/3, which gives x = 3.
- The point is (3, ln 3), about (3, 1.0986). The tangent line there is y = ln 3 + (x − 3)/3.
(b)
- The slope of y = eˣ at x is eˣ. Solve eˣ = 5.
- Take ln of both sides: x = ln 5 ≈ 1.6094.
- The height is e^(ln 5) = 5, so the point is (ln 5, 5). On y = eˣ, slope and height are the same number.
(c) A horizontal tangent needs slope 0, so you would need eˣ = 0. But eˣ > 0 for every real x. No such point exists. The same reasoning shows that y = ln x never has a horizontal tangent either: 1/x is never 0.
Worked example 3: a limit that is really a derivative
The definition of the derivative says
f′(a) = lim (h → 0) [f(a + h) − f(a)]/h, or equivalently f′(a) = lim (x → a) [f(x) − f(a)]/(x − a).
Read the other way round, some limits are derivatives in disguise. If you can name f and a, and you already know f′, the limit is f′(a).
Question. Evaluate each limit.
(a) lim (h → 0) [cos(π/3 + h) − 1/2]/h (b) lim (x → 2) (eˣ − e²)/(x − 2) (c) lim (h → 0) ln(1 + h)/h
(a)
- Note that cos(π/3) = 1/2. So the limit has the shape [f(a + h) − f(a)]/h with f(x) = cos x and a = π/3.
- The limit is f′(π/3) = −sin(π/3) = −√3/2 ≈ −0.866.
(b)
- The shape is [f(x) − f(a)]/(x − a) with f(x) = eˣ and a = 2.
- The limit is f′(2) = e² ≈ 7.389.
(c)
- ln 1 = 0, so ln(1 + h) = ln(1 + h) − ln 1. The shape is [f(1 + h) − f(1)]/h with f(x) = ln x and a = 1.
- The limit is f′(1) = 1/1 = 1.
Check. ln(1.001)/0.001 ≈ 0.9995, close to 1.
Why this matters. Substitution in each limit gives 0/0, and none of the algebra from Topic 1.6 works easily. Recognising the derivative is the cleanest route. When you write the answer, name f and a so a reader can follow your reasoning.
Common misconceptions
- “d/dx cos x = sin x.” The sign is negative: −sin x. Check with a graph: cos x is falling just to the right of 0.
- “d/dx sin x = −cos x.” The sin rule has no minus sign.
- Using degrees. The rules assume radians. In degrees every slope is off by a factor of π/180.
- Treating eˣ as a power of x. The power rule needs a variable base and a constant power, as in xⁿ. eˣ has a constant base and a variable power. Writing d/dx eˣ = x·e^(x − 1) is wrong.
- Mixing up eˣ and xᵉ. d/dx xᵉ = e·x^(e − 1) by the power rule, while d/dx eˣ = eˣ.
- Differentiating a constant as if it were a function. d/dx e² = 0, not e². d/dx ln 4 = 0, not 1/4.
- Forgetting the domain of ln x. 1/x is defined for negative x, but ln x is not. The rule d/dx ln x = 1/x applies for x > 0.
- “d/dx sin(3x) = cos(3x).” The input is not plain x, so this needs the chain rule (Topic 3.1). The correct answer is not cos(3x).
- Ignoring the limit-as-derivative shortcut. If a 0/0 limit looks like a difference quotient of a familiar function, name f and a and use f′(a).
Where this leads
These four derivatives are the building blocks for the rest of differentiation. In Topic 2.8, the product rule, you will differentiate products such as x² sin x and eˣ ln x. Topic 2.9 adds the quotient rule, and Topic 2.10 uses it to find the derivatives of tan x, cot x, sec x and csc x from sin x and cos x. Unit 3 adds the chain rule, so you can handle sin(3x) and e^(x²). For the rules you are combining with here, see the Topic 2.6 study guide. For the trig limits behind the proof, see the Topic 1.8 study guide. Students in either course can return to the Calculus AB roadmap or the Calculus BC roadmap.
Try the practice questions now, then use the revision notes and the checklist to consolidate.
Quick questions
Is this page for Calculus AB or Calculus BC?
Both. Topic 2.7 is common content, so the same page serves AB and BC students.
Do I need to prove these rules on the exam?
You need to use them quickly and accurately. Knowing where they come from helps you remember the signs and lets you use the limit definition with confidence, which the course does expect.
What about sin(3x) or e^(2x)?
Those are compositions, so they need the chain rule from Topic 3.1. In this topic the input is always plain x, or something you can rewrite into plain x with algebra.