Differentiate log(sin x) Using Chain Rule

easy CBSE JEE-MAIN CBSE 2024 Board Exam 3 min read

Question

Find the derivative of log(sinx)\log(\sin x) with respect to xx.

This is a direct application of the chain rule — a function inside another function. We treat log\log as the outer function and sinx\sin x as the inner function.

Solution — Step by Step

Write y=log(sinx)y = \log(\sin x) and recognise it as y=log(u)y = \log(u) where u=sinxu = \sin x. The moment you see a function plugged inside another function, chain rule is the tool.

The derivative of log(u)\log(u) with respect to uu is 1u\dfrac{1}{u}. So:

dydu=1u=1sinx\frac{dy}{du} = \frac{1}{u} = \frac{1}{\sin x}

Now differentiate u=sinxu = \sin x with respect to xx:

dudx=cosx\frac{du}{dx} = \cos x

Chain rule says dydx=dydududx\dfrac{dy}{dx} = \dfrac{dy}{du} \cdot \dfrac{du}{dx}. Putting it together:

dydx=1sinxcosx=cosxsinx\frac{dy}{dx} = \frac{1}{\sin x} \cdot \cos x = \frac{\cos x}{\sin x}

We know cosxsinx=cotx\dfrac{\cos x}{\sin x} = \cot x. So:

ddx[log(sinx)]=cotx\frac{d}{dx}[\log(\sin x)] = \boxed{\cot x}

Why This Works

The chain rule handles composite functions by “peeling layers.” We first ask: what happens to log\log as its input changes? That gives us 1sinx\frac{1}{\sin x}. Then we ask: how fast is that input (sinx\sin x) itself changing? That’s cosx\cos x.

The product 1sinx×cosx\frac{1}{\sin x} \times \cos x captures both effects simultaneously — the rate of the outer function scaled by the rate of the inner function.

The clean cancellation into cotx\cot x is why this appears in CBSE 12 and JEE Main so often. Examiners love results that collapse into a standard trig function. Recognising cosxsinx\frac{\cos x}{\sin x} as cotx\cot x without hesitation is worth marks in a time-pressured exam.

Alternative Method

Use the general log-derivative formula directly:

ddx[log(f(x))]=f(x)f(x)\frac{d}{dx}[\log(f(x))] = \frac{f'(x)}{f(x)}

Here f(x)=sinxf(x) = \sin x, so f(x)=cosxf'(x) = \cos x. Substituting:

ddx[log(sinx)]=cosxsinx=cotx\frac{d}{dx}[\log(\sin x)] = \frac{\cos x}{\sin x} = \cot x

Memorise the pattern: derivative of log(anything)\log(\text{anything}) = derivative of anythinganything\dfrac{\text{derivative of anything}}{\text{anything}}. This direct formula saves 30 seconds per problem in board exams — and that adds up.

This formula is just the chain rule pre-packaged. Once you’ve done enough of these, skip the intermediate steps and write the answer in one line.

Common Mistake

The most frequent error: writing ddx[log(sinx)]=1sinx\dfrac{d}{dx}[\log(\sin x)] = \dfrac{1}{\sin x} and stopping there — forgetting to multiply by the derivative of sinx\sin x.

Students who write only 1sinx\frac{1}{\sin x} are differentiating log(x)\log(x) and then substituting sinx\sin x, which is NOT the same as differentiating the composite function. The chain rule requires that second multiplication step — without cosx\cos x, the answer is wrong and will lose full marks in CBSE.

A good self-check: if your answer contains sinx\sin x in the denominator with no cosx\cos x in sight, you’ve missed the chain rule step. The final answer for this type of question should always look like a clean trig expression — cotx\cot x here, not 1sinx\frac{1}{\sin x}.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next