AP Calculus AB and BC
Derivative of ln(sin x): Answer, Proof, Mistakes
The derivative of ln(sin x) with respect to x is cot x. The chain rule gives 1/(sin x) times cos x, which is cos x over sin x, and that ratio is the definition of cot x. The formula holds wherever sin x is positive, for instance on the interval from 0 to pi, since a logarithm needs a positive input.
The proof: chain rule on ln(sin x)
The outer function is and the inner function is . Differentiate the outer to , leave the inner untouched inside it, then multiply by the inner derivative .
The ratio is the definition of , so a two step chain rule (Topic 3.1) collapses into one named function.
Where ln(sin x) is defined
A logarithm accepts positive inputs only, so this function needs . That gives the intervals , , and every shift of those by . Outside them the function does not exist, so neither does a slope.
On the graph climbs from to a maximum of at , then falls back to . The derivative agrees: is positive on , zero at , and negative on .
The same fact read backwards: the integral of cot x
Since differentiating produces , an antiderivative of is a logarithm of sine. The absolute value in the standard form covers the intervals where is negative.
The substitution behind it is with , which turns into .
Common mistakes
- Answering . That is , the outer part alone, with the inner derivative never applied.
- Answering by flipping the ratio. Cosine lands on top, so the quotient is .
- Confusing with , whose derivative is .
- Using the formula where , for example at . The original function is undefined there.
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(sin x)?
It is . The chain rule gives , which is .
Why is the answer not csc x?
is only the outer derivative. The chain rule multiplies it by the inner derivative , and the product simplifies to .
What is the derivative of ln(cos x)?
It is , by the same chain rule: .