Question:medium

If \(x^{y} = e^{x-y}\), then prove that \(\dfrac{dy}{dx} = \dfrac{\log x}{(1+\log x)^2}\).

Show Hint

Take logs to get \(y\log x = x - y\), so \(y = \dfrac{x}{1+\log x}\). Differentiate with the quotient rule.
Updated On: Nov 19, 2026
Show Solution

Solution and Explanation

Step 1: Take logs and keep $y$ implicit.
Instead of solving for $y$ first, we differentiate the logged relation implicitly. Taking $\ln$ of $x^{y} = e^{x-y}$ gives
\[ y\ln x = x - y \]

Step 2: Differentiate both sides with respect to $x$.
The left side is a product of $y$ and $\ln x$, so by the product rule it gives $\dfrac{dy}{dx}\ln x + \dfrac{y}{x}$. The right side gives $1 - \dfrac{dy}{dx}$.
\[ \frac{dy}{dx}\ln x + \frac{y}{x} = 1 - \frac{dy}{dx} \]

Step 3: Collect $\dfrac{dy}{dx}$.
Move the $\dfrac{dy}{dx}$ terms to the left and the rest to the right.
\[ \frac{dy}{dx}\,(1+\ln x) = 1 - \frac{y}{x} \]

Step 4: Find $y/x$ from the original relation.
From $y\ln x = x - y$ we get $y(1+\ln x) = x$, so
\[ \frac{y}{x} = \frac{1}{1+\ln x} \]

Step 5: Substitute and simplify.
\[ 1 - \frac{y}{x} = 1 - \frac{1}{1+\ln x} = \frac{\ln x}{1+\ln x} \]
Therefore
\[ \frac{dy}{dx}\,(1+\ln x) = \frac{\ln x}{1+\ln x} \]
Divide both sides by $(1+\ln x)$.
\[ \frac{dy}{dx} = \frac{\ln x}{(1+\ln x)^2} \]

Final Answer:
The required result is proved. \[ \boxed{\frac{dy}{dx} = \frac{\ln x}{(1+\ln x)^2}} \]
Was this answer helpful?
0