SOLVER7 Study. Nothing Else.
2026 Board Paper Q30

If \((sin\ x)^y=y^{cos\ x},\)then find \(\dfrac{dy}{dx}.\)

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a mystery number hiding inside a power, like a secret tucked inside an envelope. Taking the logarithm is like opening that envelope — it brings the hidden number out where you can see it. Once the secret is out, you find how things change using normal rules. Both sides have a mix of two things, so you treat each mix carefully, the way you handle two ingredients in a recipe. At the end, you collect all the pieces and get the final answer.

Answer: \[ \frac{dy}{dx} = \frac{y\left(\sin x \, \log y + y\cot x\right)}{\cos x - y\log(\sin x)}. \] (This is obtained by multiplying the numerator and denominator of the Step 7 answer by \( -y \).)

📖 Differentiating (sin x)^y = y^(cos x) using Logarithms

Detailed Explanation

When a variable appears in the exponent (like \( a^{f(x)} \)) or when both base and exponent contain variables, we cannot use the ordinary power rule or exponential rule directly. The correct method is logarithmic differentiation: we take the natural logarithm of both sides, use the property \( \log(m^n) = n\log m \) to bring the exponents down, and then differentiate both sides with respect to \( x \). Since the equation is not solved explicitly for \( y \), we use implicit differentiation, treating \( y \) as a function of \( x \) and applying the chain rule whenever we differentiate a term containing \( y \).

Formula Used

\( \log(m^n) = n \log m \), \( \dfrac{d}{dx}(\log x) = \dfrac{1}{x} \), and the product rule \( \dfrac{d}{dx}(uv) = u'v + uv' \).

Solution

  1. Step 1: Start with the given equation \[ (\sin x)^y = y^{\cos x}. \] Take the natural logarithm on both sides to bring the exponents down: \[ \log\left((\sin x)^y\right) = \log\left(y^{\cos x}\right). \]
  2. Step 2: Apply the logarithm power rule \( \log(m^n) = n\log m \) to both sides: \[ y \log(\sin x) = \cos x \, \log y. \] This removes the awkward variable exponents and gives an equation we can differentiate easily.
  3. Step 3: Differentiate both sides with respect to \( x \), using the product rule on each side since both sides are products of two functions. For the left side \( y\log(\sin x) \): \[ \frac{dy}{dx}\log(\sin x) + y \cdot \frac{\cos x}{\sin x}. \] Here \( \dfrac{d}{dx}\log(\sin x) = \dfrac{\cos x}{\sin x} = \cot x. \)
  4. Step 4: For the right side \( \cos x \, \log y \), apply the product rule and remember to use the chain rule on \( \log y \) because \( y \) depends on \( x \): \[ -\sin x \, \log y + \cos x \cdot \frac{1}{y}\frac{dy}{dx}. \]
  5. Step 5: Equate the two differentiated sides: \[ \log(\sin x)\frac{dy}{dx} + y\cot x = -\sin x \, \log y + \frac{\cos x}{y}\frac{dy}{dx}. \]
  6. Step 6: Collect all terms containing \( \dfrac{dy}{dx} \) on one side and the remaining terms on the other side: \[ \log(\sin x)\frac{dy}{dx} - \frac{\cos x}{y}\frac{dy}{dx} = -\sin x \, \log y - y\cot x. \]
  7. Step 7: Factor out \( \dfrac{dy}{dx} \) and solve for it: \[ \frac{dy}{dx}\left(\log(\sin x) - \frac{\cos x}{y}\right) = -\left(\sin x \, \log y + y\cot x\right). \] Therefore \[ \frac{dy}{dx} = \frac{-\left(\sin x \, \log y + y\cot x\right)}{\log(\sin x) - \dfrac{\cos x}{y}}. \]

Final Answer

\[ \frac{dy}{dx} = \frac{y\left(\sin x \, \log y + y\cot x\right)}{\cos x - y\log(\sin x)}. \] (This is obtained by multiplying the numerator and denominator of the Step 7 answer by \( -y \).)

Common Mistake

A common mistake is forgetting the chain rule when differentiating \( \log y \); students write \( \dfrac{d}{dx}\log y = \dfrac{1}{y} \) instead of the correct \( \dfrac{1}{y}\dfrac{dy}{dx} \). Since \( y \) is a function of \( x \), the extra factor \( \dfrac{dy}{dx} \) must always be included.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Write down the given equation and take logarithms on both sides: We start with \[ (\sin x)^y = y^{\cos x}. \] Taking the natural logarithm of each side: \[ \log\!\left((\sin x)^y\right) = \log\!\left(y^{\cos x}\right). \] Reason: Both sides have variable bases AND variable exponents, so the ordinary power rule cannot be applied. Taking \( \log \) prepares us to use the power-log identity.
  2. Step 2: Apply the logarithm power rule to flatten the exponents: Using \( \log(m^n) = n\log m \) on both sides: \[ y\log(\sin x) = \cos x \cdot \log y. \] Reason: This single step converts the complicated exponential equation into a product equation, which we know how to differentiate using the product rule.
  3. Step 3: Differentiate the left-hand side with respect to \( x \): Treating \( y \) as a function of \( x \) and applying the product rule to \( y\log(\sin x) \): \[ \frac{d}{dx}\!\left[y\log(\sin x)\right] = \frac{dy}{dx}\cdot\log(\sin x) + y\cdot\frac{\cos x}{\sin x}. \] Simplifying \( \frac{\cos x}{\sin x} = \cot x \), the left-hand side derivative is \[ \frac{dy}{dx}\log(\sin x) + y\cot x. \] Reason: The product rule is needed because both \( y \) (a function of \( x \)) and \( \log(\sin x) \) vary with \( x \).
  4. Step 4: Differentiate the right-hand side with respect to \( x \): Applying the product rule to \( \cos x \cdot \log y \): \[ \frac{d}{dx}\!\left[\cos x \cdot \log y\right] = -\sin x \cdot \log y + \cos x \cdot \frac{1}{y}\frac{dy}{dx}. \] Reason: We use the product rule again; the chain rule gives \( \frac{d}{dx}(\log y) = \frac{1}{y}\frac{dy}{dx} \) because \( y \) is implicitly a function of \( x \).
  5. Step 5: Set the two sides equal and collect all \( \frac{dy}{dx} \) terms on one side: Equating Step 3 and Step 4: \[ \frac{dy}{dx}\log(\sin x) + y\cot x = -\sin x\log y + \frac{\cos x}{y}\frac{dy}{dx}. \] Moving every term containing \( \frac{dy}{dx} \) to the left: \[ \frac{dy}{dx}\log(\sin x) - \frac{\cos x}{y}\frac{dy}{dx} = -\sin x\log y - y\cot x. \] Reason: Isolating \( \frac{dy}{dx} \) terms is the first step toward solving for the derivative.
  6. Step 6: Factor out \( \frac{dy}{dx} \) and solve: Factoring the left side: \[ \frac{dy}{dx}\!\left(\log(\sin x) - \frac{\cos x}{y}\right) = -\sin x\log y - y\cot x. \] Dividing both sides by \( \left(\log(\sin x) - \frac{\cos x}{y}\right) \): \[ \frac{dy}{dx} = \frac{-\sin x\log y - y\cot x}{\log(\sin x) - \dfrac{\cos x}{y}}. \] Reason: This gives an explicit expression for \( \frac{dy}{dx} \), but it is neater to clear the fraction in the denominator.
  7. Step 7: Multiply numerator and denominator by \( -y \) to simplify: Multiplying the numerator and denominator by \( -y \): Numerator becomes \( (-y)(-\sin x\log y - y\cot x) = y(\sin x\log y + y\cot x) \). Denominator becomes \( (-y)\!\left(\log(\sin x) - \dfrac{\cos x}{y}\right) = -y\log(\sin x) + \cos x = \cos x - y\log(\sin x) \). So the derivative simplifies to \[ \frac{dy}{dx} = \frac{y\!\left(\sin x\log y + y\cot x\right)}{\cos x - y\log(\sin x)}. \] Reason: Multiplying by \( -y \) eliminates the compound fraction and presents the answer in a clean, standard form.

Final Answer

\[ \frac{dy}{dx} = \frac{y\left(\sin x \, \log y + y\cot x\right)}{\cos x - y\log(\sin x)}. \] (This is obtained by multiplying the numerator and denominator of the Step 7 answer by \( -y \).)

Common Mistake

One common mistake: Forgetting to apply the product rule on the right-hand side — students often differentiate \( \cos x \cdot \log y \) as just \( -\sin x \cdot \log y \), omitting the \( \cos x \cdot \frac{1}{y}\frac{dy}{dx} \) term that comes from differentiating \( \log y \) with respect to \( x \).

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Take log of both sides: Given \( (\sin x)^y = y^{\cos x} \), taking natural log: \[ y\log(\sin x) = \cos x \log y \]
  2. Step 2: Differentiate both sides using product rule: \[ \frac{dy}{dx}\log(\sin x) + y\cot x = -\sin x \log y + \frac{\cos x}{y}\frac{dy}{dx} \]
  3. Step 3: Collect terms in \( \frac{dy}{dx} \): \[ \frac{dy}{dx}\left(\log(\sin x) - \frac{\cos x}{y}\right) = -\sin x \log y - y\cot x \]
  4. Step 4: Solve for \( \frac{dy}{dx} \): \[ \frac{dy}{dx} = \frac{-\sin x \log y - y\cot x}{\log(\sin x) - \frac{\cos x}{y}} \]

Answer: \[ \frac{dy}{dx} = \frac{y\left(\sin x \, \log y + y\cot x\right)}{\cos x - y\log(\sin x)}. \] (This is obtained by multiplying the numerator and denominator of the Step 7 answer by \( -y \).)

➕ More Examples

More Examples

Example 1

Question: If \( (\cos x)^y = x^{\sin y} \), find \( \dfrac{dy}{dx} \).

Solution: We are given \( (\cos x)^y = x^{\sin y} \). Step 1: Take the natural logarithm of both sides. \[ y \ln(\cos x) = \sin y \cdot \ln x \] Step 2: Differentiate both sides with respect to \( x \) using the product rule and chain rule. Differentiating the left side: \[ \frac{d}{dx}\left[y \ln(\cos x)\right] = \frac{dy}{dx} \cdot \ln(\cos x) + y \cdot \frac{1}{\cos x} \cdot (-\sin x) \] which simplifies to \[ \frac{dy}{dx} \ln(\cos x) - y \tan x \] Differentiating the right side: \[ \frac{d}{dx}\left[\sin y \cdot \ln x\right] = \cos y \cdot \frac{dy}{dx} \cdot \ln x + \sin y \cdot \frac{1}{x} \] Step 3: Set the two derivatives equal. \[ \frac{dy}{dx} \ln(\cos x) - y \tan x = \cos y \cdot \ln x \cdot \frac{dy}{dx} + \frac{\sin y}{x} \] Step 4: Collect all terms involving \( \dfrac{dy}{dx} \) on one side. \[ \frac{dy}{dx} \ln(\cos x) - \cos y \cdot \ln x \cdot \frac{dy}{dx} = \frac{\sin y}{x} + y \tan x \] \[ \frac{dy}{dx} \left[\ln(\cos x) - \cos y \ln x\right] = \frac{\sin y}{x} + y \tan x \] Step 5: Solve for \( \dfrac{dy}{dx} \). \[ \frac{dy}{dx} = \frac{\dfrac{\sin y}{x} + y \tan x}{\ln(\cos x) - \cos y \ln x} \]

Answer: \( \dfrac{dy}{dx} = \dfrac{\dfrac{\sin y}{x} + y \tan x}{\ln(\cos x) - \cos y \ln x} \)

Example 2

Question: If \( (\tan x)^y = (\cot y)^x \), find \( \dfrac{dy}{dx} \).

Solution: We are given \( (\tan x)^y = (\cot y)^x \). Step 1: Take the natural logarithm of both sides. \[ y \ln(\tan x) = x \ln(\cot y) \] Step 2: Differentiate both sides with respect to \( x \). Differentiating the left side using the product rule: \[ \frac{d}{dx}\left[y \ln(\tan x)\right] = \frac{dy}{dx} \cdot \ln(\tan x) + y \cdot \frac{1}{\tan x} \cdot \sec^2 x \] which equals \[ \frac{dy}{dx} \ln(\tan x) + \frac{y \sec^2 x}{\tan x} \] Differentiating the right side using the product rule: \[ \frac{d}{dx}\left[x \ln(\cot y)\right] = \ln(\cot y) + x \cdot \frac{1}{\cot y} \cdot (-\csc^2 y) \cdot \frac{dy}{dx} \] which equals \[ \ln(\cot y) - \frac{x \csc^2 y}{\cot y} \cdot \frac{dy}{dx} \] Step 3: Set the derivatives equal. \[ \frac{dy}{dx} \ln(\tan x) + \frac{y \sec^2 x}{\tan x} = \ln(\cot y) - \frac{x \csc^2 y}{\cot y} \cdot \frac{dy}{dx} \] Step 4: Collect all \( \dfrac{dy}{dx} \) terms on the left side. \[ \frac{dy}{dx} \ln(\tan x) + \frac{x \csc^2 y}{\cot y} \cdot \frac{dy}{dx} = \ln(\cot y) - \frac{y \sec^2 x}{\tan x} \] \[ \frac{dy}{dx} \left[\ln(\tan x) + \frac{x \csc^2 y}{\cot y}\right] = \ln(\cot y) - \frac{y \sec^2 x}{\tan x} \] Step 5: Solve for \( \dfrac{dy}{dx} \). \[ \frac{dy}{dx} = \frac{\ln(\cot y) - \dfrac{y \sec^2 x}{\tan x}}{\ln(\tan x) + \dfrac{x \csc^2 y}{\cot y}} \]

Answer: \( \dfrac{dy}{dx} = \dfrac{\ln(\cot y) - \dfrac{y \sec^2 x}{\tan x}}{\ln(\tan x) + \dfrac{x \csc^2 y}{\cot y}} \)

🎯 Try a Similar Question

Try a Similar Question

Question: If \( (\cos x)^y = x^{\tan x} \), find \( \dfrac{dy}{dx} \).

Solution

  1. Step 1: Take logarithm on both sides: Taking natural logarithm on both sides of \( (\cos x)^y = x^{\tan x} \), we get \[ y \log(\cos x) = \tan x \cdot \log x. \]
  2. Step 2: Differentiate both sides with respect to x: Differentiating both sides with respect to \( x \), and applying the product rule on each side: \[ \frac{dy}{dx} \cdot \log(\cos x) + y \cdot \frac{1}{\cos x} \cdot (-\sin x) = \sec^2 x \cdot \log x + \tan x \cdot \frac{1}{x}. \]
  3. Step 3: Simplify the left-hand side: Note that \( \frac{\sin x}{\cos x} = \tan x \), so the left side becomes \[ \frac{dy}{dx} \cdot \log(\cos x) - y \tan x = \sec^2 x \cdot \log x + \frac{\tan x}{x}. \]
  4. Step 4: Isolate dy/dx: Rearranging: \[ \frac{dy}{dx} \cdot \log(\cos x) = \sec^2 x \cdot \log x + \frac{\tan x}{x} + y \tan x. \]
  5. Step 5: Solve for dy/dx: Dividing both sides by \( \log(\cos x) \): \[ \frac{dy}{dx} = \frac{\sec^2 x \cdot \log x + \dfrac{\tan x}{x} + y \tan x}{\log(\cos x)}. \]
  6. Step 6: Substitute back y: Since from the original equation \( y = \dfrac{\tan x \cdot \log x}{\log(\cos x)} \), substituting this expression for \( y \) into the numerator gives the final form. The complete answer in terms of \( x \) and \( y \) is \[ \frac{dy}{dx} = \frac{\sec^2 x \cdot \log x + \dfrac{\tan x}{x} + y \tan x}{\log(\cos x)}. \]

Answer: \[ \frac{dy}{dx} = \frac{\sec^2 x \cdot \log x + \dfrac{\tan x}{x} + y\tan x}{\log(\cos x)} \]

Everything you get with Solver7

More questions in Continuity and Differentiability

Chapter 5 Examples Q1 Chapter 5 Examples Q2 Chapter 5 Examples Q3 65/1/1 2024 / Section A Q3 Chapter 5 Examples Q4 65/2/1 2024 / Section A Q4 65/3/1 2024 / Section A Q4 Chapter 5 Examples Q5 65/4/1 2026 / Section A Q5 Chapter 5 Examples Q6 65(B) 2026 / Section A Q6 65/4/1 2023 / Section A Q6 65/4/2 2024 / Section A Q6 65/5/1 2026 / Section A Q6 Chapter 5 Examples Q7 65/3/1 2026 / Section A Q7 65/4/1 2023 / Section A Q7 65/4/1 2026 / Section A Q7 65/4/2 2024 / Section A Q7 Chapter 5 Examples Q8 65/4/1 2026 / Section A Q8 65/5/1 2026 / Section A Q8 Chapter 5 Examples Q9 Chapter 5 Examples Q10 Chapter 5 Examples Q11 65/2/2 2023 / Section A Q11 65/2/3 2026 / Section A Q11 Chapter 5 Examples Q12 65/2/2 2023 / Section A Q12 Chapter 5 Examples Q13 65/1/1 2023 / Section A Q13 65/1/1 2024 / Section A Q13 65/2/1 2024 / Section A Q13 Chapter 5 Examples Q14 65/3/1 2024 / Section A Q14 Chapter 5 Examples Q15 65/3/1 2023 / Section A Q15 Chapter 5 Examples Q16 65/3/1 2023 / Section A Q16 Chapter 5 Examples Q17 Chapter 5 Examples Q18 Chapter 5 Examples Q19 Chapter 5 Examples Q20 Chapter 5 Examples Q21 65/1/1 2024 / Section B Q21(a) 65/1/1 2026 / Section B Q21(a) 65/3/1 2026 / Section B Q21 Chapter 5 Examples Q22 65/1/1 2024 / Section B Q21(b) 65/1/1 2026 / Section B Q21(b) 65/3/1 2024 / Section B Q22(a) 65/4/1 2026 / Section B Q22(a) 65/5/1 2026 / Section B Q22(a) Chapter 5 Examples Q23 65/2/1 2024 / Section B Q22(a) 65/3/1 2024 / Section B Q22(b) 65/4/1 2023 / Section B Q22 65/4/1 2026 / Section B Q22(b) 65/5/1 2026 / Section B Q22(b) Chapter 5 Examples Q24