AP Calculus AB and BC
Derivative of ln x: Answer, Proof, and Mistakes
The derivative of ln x is 1/x, valid for x > 0. In prime notation, if f(x) = ln x then f'(x) = 1/x. For a composite ln(u), the chain rule gives u'/u, not 1/u. This follows because ln x is the inverse of e^x: writing e^y = x and differentiating gives dy/dx = 1/x.
How to prove the derivative of ln x
Start from . Because is the inverse of the natural exponential, this is the same statement as , which already forces (the exponential is always positive).
Differentiate both sides with respect to . The right side is just 1; the left side needs the chain rule, since depends on .
Solve for and substitute back in.
Watch the domain
exists only for , so the derivative is stated on that domain. The related function has derivative for every , and that is the version that appears when you antidifferentiate .
Where ln x's derivative shows up on the AP exam
The rule is introduced in Unit 2, Topic 2.7 (Derivatives of , , , and ). It is one of the basic derivatives the College Board expects you to recall without deriving, and Unit 2 carries a weighting of 10 to 15 percent on AB and 5 to 10 percent on BC.
It most often appears inside a composite , where the chain rule (Unit 3, Topic 3.1) applies and you differentiate the inside and divide by it. It also turns up bare, or folded into a product or quotient such as .
The proof above is implicit differentiation (Topic 3.2): you write , differentiate both sides, and solve for . It works because is the inverse of , the relationship that Topic 3.3 (Differentiating Inverse Functions) is built on. That topic's own rule, , reaches the same answer directly: with and , . So this one derivative ties four CED topics together.
| CED topic | How the derivative of ln x appears |
|---|---|
| 2.7 Derivatives of , , , and | The rule itself, memorized in Unit 2 |
| 3.1 The Chain Rule | Composites such as |
| 3.2 Implicit Differentiation | Differentiating to prove the rule |
| 3.3 Differentiating Inverse Functions | The inverse-function theorem gives the same |
Common mistakes with the derivative of ln x
- Dropping the chain rule. , not . The inside's derivative belongs on top.
- Using it where is undefined. There is no value of for , so " for all " is wrong; write , or if you mean .
- Confusing with . The exponential keeps itself, , while turns into a power. They are inverses, not the same rule.
- Treating every logarithm like the natural log. For a general base, . Only base gives , which is why produces the clean .
- Half-applying the chain rule on . The power rule and chain rule combine to ; keep both the leftover and the .
Worked chain-rule examples
Example 1. Differentiate . Let , so ; apply .
Example 2. Differentiate . Now and , so the quotient simplifies to .
Example 3. Differentiate . Here and , and the constant cancels.
Why the constant vanished
, and is a constant, so and share the same derivative . Any positive constant multiplier inside the log drops out.
Check yourself, not just the answer
Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.
Frequently asked questions
Is the derivative of ln x always 1/x?
On the domain of , yes: for , . If you instead use , its derivative is for every . The rule only changes when the base is not or the inside is not just .
What is the derivative of ln(u)?
Use the chain rule: , the derivative of the inside divided by the inside. For instance, .
Why is the derivative of ln x equal to 1/x?
Because is the inverse of . Rewrite as , differentiate both sides to get , then solve: .
What is the derivative of log base b of x?
. For base 10 that is . Only the natural log, where , gives the clean , since .