← Back to learning objective

Derivative of ln(sin(x))

Let f(x)=ln⁡(sin⁡(x))f(x) = \ln(\sin(x)) for xx on the interval (0,π)(0, \pi). Find f′(x)f'(x).

Hint

This is a composite function with outer function ln⁡(u)\ln(u) and inner function u=sin⁡(x)u = \sin(x). Apply the chain rule: ddxln⁡(u)=1u⋅dudx\frac{d}{dx}\ln(u) = \frac{1}{u}\cdot \frac{du}{dx}.

Step-by-step solution

Identify the outer function as ln⁡(u)\ln(u) with u=sin⁡(x)u = \sin(x) as the inner function. Since dduln⁡(u)=1u\frac{d}{du}\ln(u) = \frac{1}{u}, the chain rule gives f′(x)=1sin⁡(x)⋅ddx[sin⁡(x)]f'(x) = \frac{1}{\sin(x)} \cdot \frac{d}{dx}[\sin(x)].

Since ddx[sin⁡(x)]=cos⁡(x)\frac{d}{dx}[\sin(x)] = \cos(x), substituting gives f′(x)=cos⁡(x)sin⁡(x)f'(x) = \frac{\cos(x)}{\sin(x)}. This can also be written as f′(x)=cot⁡(x)f'(x) = \cot(x), valid on (0,π)(0,\pi) since sin⁡(x)≠0\sin(x) \neq 0 there.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap