AP Calculus AB and BC
Derivative of ln(cos x): Answer, Proof, Mistakes
The derivative of ln(cos x) with respect to x is -tan x. By the chain rule with inner function cos x, the derivative is (1/cos x) times -sin x, which equals -sin x over cos x, that is -tan x. This is valid only where cos x is positive, since ln is defined for positive inputs.
The proof: chain rule on ln(cos x)
The outer function is and the inner is . Differentiate the outer to , then multiply by the inner derivative .
The quotient is the definition of , and the minus sign comes straight from the derivative of the inner . This same pattern gives the standard result when read in reverse.
Where the domain restricts the formula
The logarithm only accepts positive inputs, so is defined only where , on intervals like . The sample points all sit inside that interval, where is positive.
On that interval is negative for and positive for , so rises toward its peak at and falls after it. That peak matches the maximum of at .
Common mistakes
- Answering with no minus sign. The inner derivative of is , and that minus carries all the way to the final .
- Answering and forgetting the chain rule. Differentiating gives , but you still multiply by .
- Writing but not recognizing it as , then mis-simplifying it to .
- Confusing with . The order of composition is different, and so is the derivative.
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
What is the derivative of ln(cos x)?
It is . The chain rule gives .
Why is there a negative sign?
The inner function is , whose derivative is . That minus sign multiplies through the chain rule and survives in the final answer .
What is the domain of the derivative?
It matches the domain of , namely the intervals where , such as . There is defined and finite.