AP Calculus AB and BC
Derivative of ln(tan x): Answer, Proof, Simplification
The derivative of ln(tan x) is 1 divided by sin x cos x, which is also written 2 csc(2x). The chain rule gives sec^2 x over tan x, and the deciding step is simplifying that quotient, because the raw version hides where the derivative is small and where it grows without bound.
Chain rule, then clean up
Outer function , inner function . Differentiating the outer gives and the inner derivative is , so the first form of the answer is a quotient of trig functions.
Convert everything to sines and cosines and the quotient collapses. and , so one power of cancels.
Why the simplified form is worth the extra line
needs , so take the interval . Written as , the derivative is transparent: runs from up to and back to across that interval.
So the derivative is never smaller than , hits exactly at , and blows up at both ends of the interval. The blow-up at is invisible in , where both parts run to infinity at once and the quotient's behaviour is not readable off the page, and nothing in that form shows the minimum value of .
The derivative is also positive everywhere on the interval, which confirms that is increasing throughout, running from at the left end to at the right.
The mistakes students make
Three of the four below produce a wrong answer outright. The other produces a correct answer in a form that costs marks whenever the question goes on to ask about behaviour.
- Reporting , that is , after applying the logarithm rule and forgetting to multiply by the inner derivative .
- Cancelling inside down to . The cancellation that is legal is , which leaves , not . The discarded is the whole difference, and is just again.
- Leaving the answer as . It is correct, but it hides that the derivative never drops below and blows up at both ends of , which is exactly what a follow-up part will ask about.
- Reading as and using the product rule, which produces , an answer for a different function entirely.
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(tan x)?
It is . The chain rule gives , and rewriting in sines and cosines reduces it to that.
Why is the derivative of ln(tan x) equal to 2 csc(2x)?
Because the double angle identity says , so . All three forms are the same function.
What is the domain of ln(tan x)?
Wherever , such as and . The derivative formula applies on those intervals only.