Question:medium

Find \(\dfrac{dy}{dx}\), if \((\cos x)^{y} = (\cos y)^{x}\).

Show Hint

Take logs to get y log(cos x) = x log(cos y), then differentiate both sides and collect the dy/dx terms.
Updated On: Nov 20, 2026
Show Solution

Solution and Explanation

Step 1: Remove the variable exponents.
Write $u = (\cos x)^{y}$ and $v = (\cos y)^{x}$. Both are equal, so their logarithms are equal.
$\ln u = y\ln(\cos x)$ and $\ln v = x\ln(\cos y)$.
So the given relation becomes $y\ln(\cos x) = x\ln(\cos y)$.

Step 2: Differentiate the left side.
By the product rule, $\dfrac{d}{dx}\left[y\ln(\cos x)\right] = y^{\prime}\ln(\cos x) + y\cdot\dfrac{-\sin x}{\cos x}$.
This equals $y^{\prime}\ln(\cos x) - y\tan x$, where $y^{\prime} = \dfrac{dy}{dx}$.

Step 3: Differentiate the right side.
By the product rule, $\dfrac{d}{dx}\left[x\ln(\cos y)\right] = \ln(\cos y) + x\cdot\dfrac{-\sin y}{\cos y}\cdot y^{\prime}$.
This equals $\ln(\cos y) - x\tan y\cdot y^{\prime}$.

Step 4: Equate and isolate y prime.
\[ y^{\prime}\ln(\cos x) - y\tan x = \ln(\cos y) - x\tan y\cdot y^{\prime} \] Move the terms with $y^{\prime}$ to the left and the others to the right:
\[ y^{\prime}\left[\ln(\cos x) + x\tan y\right] = \ln(\cos y) + y\tan x \]

Final Answer:
\[ \boxed{\dfrac{dy}{dx} = \dfrac{\ln(\cos y) + y\tan x}{\ln(\cos x) + x\tan y}} \]
Was this answer helpful?
0