Given that \(x^y+y^x=a^b,\) where a and b are positive constants, find \(\dfrac{dy}{dx}.\)
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine two friends always sharing a fixed number of sweets between them. If one friend takes more, the other must take less. Here, \( x^y \) and \( y^x \) are like those two friends — their sum never changes. To find how fast \( y \) changes with \( x \), we peel off the exponents using logarithms. This turns a tricky power into a simpler multiplication. We then collect all the \( \frac{dy}{dx} \) pieces on one side and divide to get the answer.
Answer: \[ \frac{dy}{dx} = -\frac{y\,x^{y-1} + y^x\ln y}{x^y\ln x + x\,y^{x-1}}. \]
Here \( x^y \) and \( y^x \) both have a variable in the base AND in the exponent, so we cannot use the simple power rule or the exponential rule directly. The trick is to write each such term as \( u = e^{\ln u} \), or equivalently take logarithm before differentiating. Since \( a^b \) is a constant (both \( a \) and \( b \) are constants), its derivative is \( 0 \). We treat \( y \) as a function of \( x \), so every time we differentiate a term involving \( y \) we must apply the chain rule and bring in a factor \( \dfrac{dy}{dx} \). We handle the two terms separately, then combine.
If \( u = f(x)^{g(x)} \), then \( \ln u = g(x)\,\ln f(x) \) and \( \dfrac{1}{u}\dfrac{du}{dx} = g'(x)\ln f(x) + g(x)\cdot\dfrac{f'(x)}{f(x)} \).
\[ \frac{dy}{dx} = -\frac{y\,x^{y-1} + y^x\ln y}{x^y\ln x + x\,y^{x-1}}. \]
A very common error is treating \( a^b \) as if it were a variable and differentiating it, or forgetting that \( a^b \) is a constant so its derivative is \( 0 \). Another frequent slip is differentiating \( x^y \) as \( y\,x^{y-1} \) (power rule) or as \( x^y\ln x \) (exponential rule) alone, instead of using logarithmic differentiation which gives BOTH terms.
\[ \frac{dy}{dx} = -\frac{y\,x^{y-1} + y^x\ln y}{x^y\ln x + x\,y^{x-1}}. \]
One common mistake: When differentiating \( v = y^x \), students often forget that \( y \) is a function of \( x \) and treat \( \ln y \) as a constant, omitting the term \( \frac{x}{y}\frac{dy}{dx} \) from the product rule — this leads to an incorrect expression for \( \frac{dv}{dx} \).
Answer: \[ \frac{dy}{dx} = -\frac{y\,x^{y-1} + y^x\ln y}{x^y\ln x + x\,y^{x-1}}. \]
Question: Given that \( x^y \cdot y^x = c^5 \), where \( c \) is a positive constant, find \( \dfrac{dy}{dx} \).
Solution: We are given \( x^y \cdot y^x = c^5 \). Taking the natural logarithm of both sides: \[ \ln(x^y \cdot y^x) = \ln(c^5) \] Using log properties: \[ y \ln x + x \ln y = 5 \ln c \] Now differentiate both sides with respect to \( x \). Note that \( 5\ln c \) is a constant, so its derivative is zero. Differentiating the left side using the product rule on each term: For \( y \ln x \): \[ \frac{d}{dx}(y \ln x) = \frac{dy}{dx} \cdot \ln x + y \cdot \frac{1}{x} \] For \( x \ln y \): \[ \frac{d}{dx}(x \ln y) = 1 \cdot \ln y + x \cdot \frac{1}{y} \cdot \frac{dy}{dx} \] So the full differentiated equation is: \[ \frac{dy}{dx} \ln x + \frac{y}{x} + \ln y + \frac{x}{y} \frac{dy}{dx} = 0 \] Collecting terms with \( \dfrac{dy}{dx} \) on the left: \[ \frac{dy}{dx} \left( \ln x + \frac{x}{y} \right) = -\ln y - \frac{y}{x} \] Therefore: \[ \frac{dy}{dx} = \frac{-\ln y - \dfrac{y}{x}}{\ln x + \dfrac{x}{y}} \] Multiplying numerator and denominator by \( xy \): \[ \frac{dy}{dx} = \frac{-xy \ln y - y^2}{xy \ln x + x^2} \] This can be written as: \[ \frac{dy}{dx} = -\frac{y(x \ln y + y)}{x(y \ln x + x)} \]
Answer: \( \dfrac{dy}{dx} = -\dfrac{y(x \ln y + y)}{x(y \ln x + x)} \)
Question: If \( y^x + x^y = k^3 \), where \( k \) is a positive constant, find \( \dfrac{dy}{dx} \).
Solution: We are given \( y^x + x^y = k^3 \). Let \( u = y^x \) and \( v = x^y \), so \( u + v = k^3 \). Differentiating both sides with respect to \( x \): \[ \frac{du}{dx} + \frac{dv}{dx} = 0 \] Finding \( \dfrac{du}{dx} \): Taking log of \( u = y^x \): \[ \ln u = x \ln y \] Differentiating both sides with respect to \( x \): \[ \frac{1}{u} \frac{du}{dx} = \ln y + x \cdot \frac{1}{y} \cdot \frac{dy}{dx} \] So: \[ \frac{du}{dx} = y^x \left( \ln y + \frac{x}{y} \frac{dy}{dx} \right) \] Finding \( \dfrac{dv}{dx} \): Taking log of \( v = x^y \): \[ \ln v = y \ln x \] Differentiating both sides with respect to \( x \): \[ \frac{1}{v} \frac{dv}{dx} = \frac{dy}{dx} \cdot \ln x + y \cdot \frac{1}{x} \] So: \[ \frac{dv}{dx} = x^y \left( \frac{dy}{dx} \ln x + \frac{y}{x} \right) \] Substituting back into \( \dfrac{du}{dx} + \dfrac{dv}{dx} = 0 \): \[ y^x \left( \ln y + \frac{x}{y} \frac{dy}{dx} \right) + x^y \left( \frac{dy}{dx} \ln x + \frac{y}{x} \right) = 0 \] Expanding: \[ y^x \ln y + \frac{x \cdot y^x}{y} \frac{dy}{dx} + x^y \ln x \cdot \frac{dy}{dx} + \frac{y \cdot x^y}{x} = 0 \] Collecting \( \dfrac{dy}{dx} \) terms: \[ \frac{dy}{dx} \left( \frac{x \cdot y^x}{y} + x^y \ln x \right) = -y^x \ln y - \frac{y \cdot x^y}{x} \] Therefore: \[ \frac{dy}{dx} = \frac{-y^x \ln y - \dfrac{y \cdot x^y}{x}}{\dfrac{x \cdot y^x}{y} + x^y \ln x} \] Multiplying numerator and denominator by \( xy \): \[ \frac{dy}{dx} = -\ \frac{xy^x \ln y \ \cdot y + y^2 x^y}{x^2 y^x + xy \ \cdot x^y \ln x} \] This simplifies to: \[ \frac{dy}{dx} = -\frac{y\left(y \ y^x \ln y + y \ x^y\right)}{x\left(x \ y^x + y \ x^y \ln x\right)} \] Written in a clean standard form: \[ \frac{dy}{dx} = -\frac{x y^x \ln y + y \ x^y / x \cdot x}{x y^x / y \cdot y + x^y \ln x \cdot y} \] The cleanest final form (after multiplying top and bottom by \( xy \)) is: \[ \frac{dy}{dx} = -\frac{xy \cdot y^x \ln y + y^2 \cdot x^y}{x^2 \cdot y^x + xy \cdot x^y \ln x} \]
Answer: \( \dfrac{dy}{dx} = -\dfrac{xy \cdot y^x \ln y + y^2 \cdot x^y}{x^2 \cdot y^x + xy \cdot x^y \ln x} \)
Question: If \( x^y \cdot y^x = c \), where \( c \) is a positive constant, find \( \dfrac{dy}{dx} \).
Answer: \[ \frac{dy}{dx} = -\frac{y\left(x \ln y + y\right)}{x\left(y \ln x + x\right)} \]