Skip to content
Question

Q.If (sin⁡x)y=ycos⁡x(\sin x)^y = y^{\cos x}, then find dydx\frac{dy}{dx}.

CBSECBSE Class XII Board 2026Subjective· 3mImportance★★★★★
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

To find dydx\frac{dy}{dx} for (sin⁡x)y=ycos⁡x(\sin x)^y = y^{\cos x}, we use logarithmic differentiation, taking the natural logarithm of both sides and then differentiating implicitly with respect to xx. The result is dydx=y(sin⁡xln⁡y+ycot⁡x)cos⁡x−yln⁡(sin⁡x)\frac{dy}{dx} = \frac{y(\sin x \ln y + y \cot x)}{\cos x - y \ln(\sin x)}.

When you encounter an equation where both the base and the exponent are functions of xx (or involve yy, which is implicitly a function of xx), direct differentiation can be very complicated or even impossible. For example, differentiating f(x)g(x)f(x)^{g(x)} directly is not straightforward using standard power rule or exponential rule.

The key insight here is that logarithms have the property ln⁡(ab)=bln⁡a\ln(a^b) = b \ln a. This property allows us to bring down the exponent, transforming a variable-in-exponent problem into a product problem, which can then be handled using the product rule for differentiation. This technique is called logarithmic differentiation.

Let's apply this method step-by-step.

  1. Apply Natural Logarithm to Both Sides Given the equation (sin⁡x)y=ycos⁡x(\sin x)^y = y^{\cos x}, take the natural logarithm (ln⁡\ln) on both sides. This is a valid operation because ln⁡\ln is a one-to-one function, and we assume sin⁡x>0\sin x > 0 and y>0y > 0 for the logarithms to be defined.

ln⁡((sin⁡x)y)=ln⁡(ycos⁡x)\ln((\sin x)^y) = \ln(y^{\cos x})

Using the logarithm property $\ln(a^b) = b \ln a$, we can rewrite the equation:

yln⁡(sin⁡x)=cos⁡xln⁡yy \ln(\sin x) = \cos x \ln y

  1. Differentiate Implicitly with Respect to xx

    Now, differentiate both sides of the transformed equation with respect to xx. Remember that yy is a function of xx, so we will need to use the chain rule for terms involving yy and the product rule for terms that are products of functions of xx.

    The product rule states that ddx(uv)=u′v+uv′\frac{d}{dx}(uv) = u'v + uv'.

    Let's differentiate the left-hand side (LHS): yln⁡(sin⁡x)y \ln(\sin x).

    Here, u=yu = y and v=ln⁡(sin⁡x)v = \ln(\sin x).

    u′=dydxu' = \frac{dy}{dx}

    v′=ddx(ln⁡(sin⁡x))=1sin⁡x⋅ddx(sin⁡x)=1sin⁡x⋅cos⁡x=cot⁡xv' = \frac{d}{dx}(\ln(\sin x)) = \frac{1}{\sin x} \cdot \frac{d}{dx}(\sin x) = \frac{1}{\sin x} \cdot \cos x = \cot x.

    So, ddx(yln⁡(sin⁡x))=dydxln⁡(sin⁡x)+ycot⁡x\frac{d}{dx}(y \ln(\sin x)) = \frac{dy}{dx} \ln(\sin x) + y \cot x.

    Now, differentiate the right-hand side (RHS): cos⁡xln⁡y\cos x \ln y.

    Here, u=cos⁡xu = \cos x and v=ln⁡yv = \ln y.

    u′=ddx(cos⁡x)=−sin⁡xu' = \frac{d}{dx}(\cos x) = -\sin x.

    v′=ddx(ln⁡y)=1y⋅dydxv' = \frac{d}{dx}(\ln y) = \frac{1}{y} \cdot \frac{dy}{dx}.

    So, ddx(cos⁡xln⁡y)=(−sin⁡x)ln⁡y+cos⁡x(1ydydx)=−sin⁡xln⁡y+cos⁡xydydx\frac{d}{dx}(\cos x \ln y) = (-\sin x) \ln y + \cos x \left(\frac{1}{y} \frac{dy}{dx}\right) = -\sin x \ln y + \frac{\cos x}{y} \frac{dy}{dx}.

    Equating the derivatives of the LHS and RHS: …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.