SOLVER7 Study. Nothing Else.
Exercise 5.5 Q14

Find \(\dfrac{dy}{dx}\) of the functions given in Exercises 12 to 15. \((cos\ x)^y = (cos\ y)^x\)

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

Imagine two seesaws that are perfectly balanced. One side has \( (\cos x)^y \) and the other has \( (\cos y)^x \). Taking the logarithm is like using a magic tool that brings numbers stuck in the sky (as exponents) back down to earth. Once they are down, we can compare how both sides change together as \( x \) changes. Collecting the \( \frac{dy}{dx} \) pieces on one side gives us the final answer showing exactly how \( y \) responds to changes in \( x \).

Answer: \[ \frac{dy}{dx} = \frac{y \tan x + \log(\cos y)}{x \tan y + \log(\cos x)}. \]

📖 Differentiating (cos x)^y = (cos y)^x

Detailed Explanation

When a variable appears in the exponent, ordinary power or exponential rules do not directly apply. The trick is to take the natural logarithm of both sides, which brings the exponents down as multipliers using the property \( \log(a^b) = b \log a \). After that, we differentiate both sides with respect to \( x \), treating \( y \) as a function of \( x \) (implicit differentiation) and applying the product rule and chain rule. Finally, we collect the \( \frac{dy}{dx} \) terms and solve for it.

Formula Used

Key tools: \( \log(a^b) = b \log a \), \( \frac{d}{dx}(\log(\cos x)) = -\tan x \), product rule \( (uv)' = u'v + uv' \), and chain rule for \( y \) as a function of \( x \).

Solution

  1. Step 1: Start with the given equation \[ (\cos x)^y = (\cos y)^x. \] Take the natural logarithm of both sides to bring the exponents down: \[ y \log(\cos x) = x \log(\cos y). \]
  2. Step 2: Differentiate both sides with respect to \( x \). Each side is a product, so apply the product rule. For the left side, treat \( y \) as a function of \( x \): \[ \frac{d}{dx}\left(y \log(\cos x)\right) = \frac{dy}{dx}\log(\cos x) + y \cdot \frac{d}{dx}\big(\log(\cos x)\big). \] Since \( \frac{d}{dx}\log(\cos x) = \frac{-\sin x}{\cos x} = -\tan x \), the left side becomes \[ \frac{dy}{dx}\log(\cos x) - y \tan x. \]
  3. Step 3: Differentiate the right side \( x \log(\cos y) \) using the product rule. Here \( \frac{d}{dx}\log(\cos y) = \frac{-\sin y}{\cos y}\cdot \frac{dy}{dx} = -\tan y \, \frac{dy}{dx} \). So \[ \frac{d}{dx}\left(x \log(\cos y)\right) = \log(\cos y) - x \tan y \, \frac{dy}{dx}. \]
  4. Step 4: Equate the two differentiated sides: \[ \frac{dy}{dx}\log(\cos x) - y \tan x = \log(\cos y) - x \tan y \, \frac{dy}{dx}. \]
  5. Step 5: Collect all terms containing \( \frac{dy}{dx} \) on one side and the rest on the other: \[ \frac{dy}{dx}\log(\cos x) + x \tan y \, \frac{dy}{dx} = \log(\cos y) + y \tan x. \] Factor out \( \frac{dy}{dx} \): \[ \frac{dy}{dx}\left(\log(\cos x) + x \tan y\right) = \log(\cos y) + y \tan x. \]
  6. Step 6: Solve for \( \frac{dy}{dx} \) by dividing: \[ \frac{dy}{dx} = \frac{\log(\cos y) + y \tan x}{\log(\cos x) + x \tan y}. \]

Final Answer

\[ \frac{dy}{dx} = \frac{y \tan x + \log(\cos y)}{x \tan y + \log(\cos x)}. \]

Common Mistake

A frequent error is forgetting the chain rule when differentiating \( \log(\cos y) \); students write \( -\tan y \) instead of \( -\tan y \, \frac{dy}{dx} \). Remember \( y \) depends on \( x \), so every derivative of a \( y \)-expression must carry a factor of \( \frac{dy}{dx} \).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Write the given equation and take log on both sides: Start with the given equation \[ (\cos x)^y = (\cos y)^x. \] Take the natural logarithm of both sides and use the logarithm power property \( \log(a^b) = b \log a \) to pull the exponents down: \[ y \log(\cos x) = x \log(\cos y). \] Reason: The variable \( y \) is stuck in the exponent, so logarithms convert it into a multiplier, making differentiation possible.
  2. Step 2: Set up differentiation of the left side: Differentiate the left side \( y \log(\cos x) \) with respect to \( x \) using the product rule, where \( u = y \) and \( v = \log(\cos x) \): \[ \frac{d}{dx}\bigl(y \log(\cos x)\bigr) = \frac{dy}{dx} \cdot \log(\cos x) + y \cdot \frac{d}{dx}\bigl(\log(\cos x)\bigr). \] Reason: Both \( y \) and \( \log(\cos x) \) depend on \( x \), so the product rule is required — forgetting either term is a common error.
  3. Step 3: Evaluate the derivative of log(cos x) and simplify the left side: Using the chain rule, \( \frac{d}{dx}\log(\cos x) = \frac{-\sin x}{\cos x} = -\tan x \). Substituting this result, the left-side derivative becomes \[ \frac{dy}{dx} \log(\cos x) - y \tan x. \] Reason: This chain rule result is a standard result worth memorising for this class of problems.
  4. Step 4: Differentiate the right side: Differentiate the right side \( x \log(\cos y) \) with respect to \( x \) using the product rule, where \( u = x \) and \( v = \log(\cos y) \): \[ \frac{d}{dx}\bigl(x \log(\cos y)\bigr) = 1 \cdot \log(\cos y) + x \cdot \frac{d}{dx}\bigl(\log(\cos y)\bigr). \] For \( \frac{d}{dx}\log(\cos y) \), apply the chain rule since \( y \) is a function of \( x \): \[ \frac{d}{dx}\log(\cos y) = \frac{-\sin y}{\cos y} \cdot \frac{dy}{dx} = -\tan y \cdot \frac{dy}{dx}. \] So the right-side derivative is \[ \log(\cos y) - x \tan y \cdot \frac{dy}{dx}. \] Reason: The chain rule introduces \( \frac{dy}{dx} \) whenever we differentiate an expression involving \( y \) with respect to \( x \).
  5. Step 5: Equate both differentiated sides: After differentiating both sides with respect to \( x \), set them equal: \[ \frac{dy}{dx} \log(\cos x) - y \tan x = \log(\cos y) - x \tan y \cdot \frac{dy}{dx}. \] Reason: This single equation now contains \( \frac{dy}{dx} \) on both sides, so the next goal is to isolate it.
  6. Step 6: Collect all dy/dx terms on one side: Bring every term containing \( \frac{dy}{dx} \) to the left and every other term to the right: \[ \frac{dy}{dx} \log(\cos x) + x \tan y \cdot \frac{dy}{dx} = \log(\cos y) + y \tan x. \] Factor out \( \frac{dy}{dx} \) on the left: \[ \frac{dy}{dx} \bigl(\log(\cos x) + x \tan y\bigr) = y \tan x + \log(\cos y). \] Reason: Factoring groups all \( \frac{dy}{dx} \) together so it can be isolated in the final step.
  7. Step 7: Solve for dy/dx: Divide both sides by \( \bigl(\log(\cos x) + x \tan y\bigr) \) to isolate \( \frac{dy}{dx} \): \[ \frac{dy}{dx} = \frac{y \tan x + \log(\cos y)}{x \tan y + \log(\cos x)}. \] Reason: This is the final expression for the derivative, obtained by straightforward division once \( \frac{dy}{dx} \) has been fully factored out.

Final Answer

\[ \frac{dy}{dx} = \frac{y \tan x + \log(\cos y)}{x \tan y + \log(\cos x)}. \]

Common Mistake

One common mistake: When differentiating \( x \log(\cos y) \), students forget to apply the chain rule to \( \log(\cos y) \) and omit the factor \( \frac{dy}{dx} \), writing \( -\tan y \) instead of \( -\tan y \cdot \frac{dy}{dx} \). This leads to a missing term on the right side and an incorrect final answer.

✍️ Exam-ready Answer

Exam-ready Answer

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

Answer: \[ \frac{dy}{dx} = \frac{y \tan x + \log(\cos y)}{x \tan y + \log(\cos x)}. \]

➕ More Examples

More Examples

Example 1

Question: Find \( \frac{dy}{dx} \) if \( (\sin x)^y = (\sin y)^x \).

Solution: We are given \( (\sin x)^y = (\sin y)^x \). Taking the natural logarithm of both sides: \[ y \ln(\sin x) = x \ln(\sin y) \] Now differentiating both sides with respect to \( x \) using the product rule on each side. Differentiating the left side: \[ \frac{d}{dx}\left[ y \ln(\sin x) \right] = \frac{dy}{dx} \cdot \ln(\sin x) + y \cdot \frac{\cos x}{\sin x} \] Differentiating the right side: \[ \frac{d}{dx}\left[ x \ln(\sin y) \right] = 1 \cdot \ln(\sin y) + x \cdot \frac{\cos y}{\sin y} \cdot \frac{dy}{dx} \] Setting the two sides equal: \[ \frac{dy}{dx} \ln(\sin x) + y \cot x = \ln(\sin y) + x \cot y \cdot \frac{dy}{dx} \] Collecting all \( \frac{dy}{dx} \) terms on one side: \[ \frac{dy}{dx} \ln(\sin x) - x \cot y \cdot \frac{dy}{dx} = \ln(\sin y) - y \cot x \] Factoring out \( \frac{dy}{dx} \): \[ \frac{dy}{dx} \left( \ln(\sin x) - x \cot y \right) = \ln(\sin y) - y \cot x \] Therefore: \[ \frac{dy}{dx} = \frac{\ln(\sin y) - y \cot x}{\ln(\sin x) - x \cot y} \]

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

Example 2

Question: Find \( \frac{dy}{dx} \) if \( (\tan x)^y = (\tan y)^x \).

Solution: We are given \( (\tan x)^y = (\tan y)^x \). Taking the natural logarithm of both sides: \[ y \ln(\tan x) = x \ln(\tan y) \] Differentiating both sides with respect to \( x \). For the left side, applying 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 \] This simplifies to: \[ \frac{dy}{dx} \cdot \ln(\tan x) + y \cdot \frac{\sec^2 x}{\tan x} \] For the right side, applying the product rule: \[ \frac{d}{dx}\left[ x \ln(\tan y) \right] = \ln(\tan y) + x \cdot \frac{1}{\tan y} \cdot \sec^2 y \cdot \frac{dy}{dx} \] This simplifies to: \[ \ln(\tan y) + \frac{x \sec^2 y}{\tan y} \cdot \frac{dy}{dx} \] Setting both sides equal: \[ \frac{dy}{dx} \ln(\tan x) + \frac{y \sec^2 x}{\tan x} = \ln(\tan y) + \frac{x \sec^2 y}{\tan y} \cdot \frac{dy}{dx} \] Collecting \( \frac{dy}{dx} \) terms on the left: \[ \frac{dy}{dx} \left( \ln(\tan x) - \frac{x \sec^2 y}{\tan y} \right) = \ln(\tan y) - \frac{y \sec^2 x}{\tan x} \] Therefore: \[ \frac{dy}{dx} = \frac{\ln(\tan y) - \dfrac{y \sec^2 x}{\tan x}}{\ln(\tan x) - \dfrac{x \sec^2 y}{\tan y}} \]

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

🎯 Try a Similar Question

Try a Similar Question

Question: Find \(\frac{dy}{dx}\) for the implicit function \((\sin x)^y = (\sin y)^x\).

Solution

  1. Step 1: Take the natural logarithm of both sides: Starting with \((\sin x)^y = (\sin y)^x\), take \(\ln\) on both sides: \[y \ln(\sin x) = x \ln(\sin y)\]
  2. Step 2: Differentiate both sides with respect to x: Differentiate the left side using the product rule: \[\frac{d}{dx}\bigl[y \ln(\sin x)\bigr] = \frac{dy}{dx}\ln(\sin x) + y \cdot \frac{\cos x}{\sin x}\] which equals \(\frac{dy}{dx}\ln(\sin x) + y\cot x\). Differentiate the right side using the product rule: \[\frac{d}{dx}\bigl[x \ln(\sin y)\bigr] = \ln(\sin y) + x \cdot \frac{\cos y}{\sin y}\cdot\frac{dy}{dx}\] which equals \(\ln(\sin y) + x\cot y\,\frac{dy}{dx}\).
  3. Step 3: Set the two derivatives equal: Equating both sides: \[\frac{dy}{dx}\ln(\sin x) + y\cot x = \ln(\sin y) + x\cot y\,\frac{dy}{dx}\]
  4. Step 4: Collect terms involving dy/dx on one side: Rearrange: \[\frac{dy}{dx}\ln(\sin x) - x\cot y\,\frac{dy}{dx} = \ln(\sin y) - y\cot x\] Factor out \(\frac{dy}{dx}\): \[\frac{dy}{dx}\bigl[\ln(\sin x) - x\cot y\bigr] = \ln(\sin y) - y\cot x\]
  5. Step 5: Solve for dy/dx: Divide both sides by \(\bigl[\ln(\sin x) - x\cot y\bigr]\): \[\frac{dy}{dx} = \frac{\ln(\sin y) - y\cot x}{\ln(\sin x) - x\cot y}\]

Answer: \[\frac{dy}{dx} = \frac{\ln(\sin y) - y\cot x}{\ln(\sin x) - x\cot y}\]

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