Find \(\dfrac{dy}{dx},\) if \(y^x+x^y+x^x=a^b.\)
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine you have a shape that changes size in two tricky ways at once — that is what happens when the base and the power are both unknowns, like \( y^x \). Normal shortcut rules break down here. The smart trick is to take the natural logarithm of each tricky piece, which turns the power into a simpler multiplication. After that, gentle differentiation untangles everything. Collecting all the pieces together then gives us how fast \( y \) changes with \( x \).
Answer: \[ \frac{dy}{dx} = -\frac{y^x \ln y + y\,x^{y-1} + x^x(1 + \ln x)}{x\,y^{x-1} + x^y \ln x} \]
When a term has a variable in BOTH the base and the exponent, like \( y^x \), \( x^y \) or \( x^x \), we cannot use the power rule \( \frac{d}{dx}(x^n) = nx^{n-1} \) (that rule needs a constant power) and we cannot use \( \frac{d}{dx}(a^x) = a^x \ln a \) (that rule needs a constant base). The correct tool is logarithmic differentiation: take natural logarithm of the term, use \( \ln(u^v) = v \ln u \), and then differentiate implicitly. Here \( a^b \) is a constant, so its derivative is \( 0 \). We handle each term separately and finally solve for \( \frac{dy}{dx} \).
For \( u = f^g \): take \( \ln u = g \ln f \), then \( \frac{1}{u}\frac{du}{dx} = g'\ln f + g\cdot\frac{f'}{f} \). Also \( \frac{d}{dx}(a^b) = 0 \) when \( a, b \) are constants.
\[ \frac{dy}{dx} = -\frac{y^x \ln y + y\,x^{y-1} + x^x(1 + \ln x)}{x\,y^{x-1} + x^y \ln x} \]
A very common error is treating \( x^x \) as \( x\cdot x^{x-1} \) (power rule) or as \( x^x \ln x \) (exponential rule). Both are wrong because base AND power vary. You must use logarithmic differentiation to correctly get \( \frac{d}{dx}(x^x) = x^x(1 + \ln x) \). Also remember \( a^b \) is a constant, so its derivative is \( 0 \), not \( a^b \ln a \).
\[ \frac{dy}{dx} = -\frac{y^x \ln y + y\,x^{y-1} + x^x(1 + \ln x)}{x\,y^{x-1} + x^y \ln x} \]
One common mistake: applying the ordinary power rule \( \frac{d}{dx}(x^n) = n x^{n-1} \) to terms like \( x^y \) or \( y^x \) — this is only valid when the exponent is a constant. When the exponent itself is a variable (or a function of \( x \)), you must use logarithmic differentiation.
Answer: \[ \frac{dy}{dx} = -\frac{y^x \ln y + y\,x^{y-1} + x^x(1 + \ln x)}{x\,y^{x-1} + x^y \ln x} \]
Question: Find \(\dfrac{dy}{dx}\) if \(y^x + x^y = c^2\), where \(c\) is a constant.
Solution: We have \(y^x + x^y = c^2\). Let \(P = y^x\) and \(Q = x^y\), so \(P + Q = c^2\). Differentiating both sides with respect to \(x\): \[\frac{dP}{dx} + \frac{dQ}{dx} = 0\] Step 1: Find \(\dfrac{dP}{dx}\) where \(P = y^x\). Taking log: \(\ln P = x \ln y\). Differentiating both sides with respect to \(x\): \[\frac{1}{P}\frac{dP}{dx} = \ln y + x \cdot \frac{1}{y}\frac{dy}{dx}\] Therefore \[\frac{dP}{dx} = y^x\left(\ln y + \frac{x}{y}\frac{dy}{dx}\right)\] Step 2: Find \(\dfrac{dQ}{dx}\) where \(Q = x^y\). Taking log: \(\ln Q = y \ln x\). Differentiating both sides with respect to \(x\): \[\frac{1}{Q}\frac{dQ}{dx} = \frac{dy}{dx}\ln x + y \cdot \frac{1}{x}\] Therefore \[\frac{dQ}{dx} = x^y\left(\ln x \cdot \frac{dy}{dx} + \frac{y}{x}\right)\] Step 3: Substitute back: \[y^x\left(\ln y + \frac{x}{y}\frac{dy}{dx}\right) + x^y\left(\ln x \cdot \frac{dy}{dx} + \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}\]
Answer: \[\frac{dy}{dx} = -\frac{x y^x \ln y + y \cdot x^{y-1}}{y^{x-1}\cdot x + x^y \ln x}\]
Question: Find \(\dfrac{dy}{dx}\) if \(x^x + y^y + x^y = k\), where \(k\) is a constant.
Solution: We have \(x^x + y^y + x^y = k\). Let \(P = x^x\), \(Q = y^y\), \(R = x^y\). Differentiating both sides with respect to \(x\): \[\frac{dP}{dx} + \frac{dQ}{dx} + \frac{dR}{dx} = 0\] Step 1: Find \(\dfrac{dP}{dx}\) where \(P = x^x\). Taking log: \(\ln P = x \ln x\). Differentiating: \[\frac{1}{P}\frac{dP}{dx} = \ln x + 1\] So \[\frac{dP}{dx} = x^x(1 + \ln x)\] Step 2: Find \(\dfrac{dQ}{dx}\) where \(Q = y^y\). Taking log: \(\ln Q = y \ln y\). Differentiating with respect to \(x\): \[\frac{1}{Q}\frac{dQ}{dx} = \frac{dy}{dx}\ln y + y \cdot \frac{1}{y}\frac{dy}{dx} = \frac{dy}{dx}(1 + \ln y)\] So \[\frac{dQ}{dx} = y^y(1 + \ln y)\frac{dy}{dx}\] Step 3: Find \(\dfrac{dR}{dx}\) where \(R = x^y\). Taking log: \(\ln R = y \ln x\). Differentiating with respect to \(x\): \[\frac{1}{R}\frac{dR}{dx} = \frac{dy}{dx}\ln x + \frac{y}{x}\] So \[\frac{dR}{dx} = x^y\left(\ln x \cdot \frac{dy}{dx} + \frac{y}{x}\right)\] Step 4: Substitute and collect \(\dfrac{dy}{dx}\) terms: \[x^x(1 + \ln x) + y^y(1 + \ln y)\frac{dy}{dx} + x^y\ln x \cdot \frac{dy}{dx} + \frac{y \cdot x^y}{x} = 0\] \[\frac{dy}{dx}\left[y^y(1 + \ln y) + x^y \ln x\right] = -x^x(1 + \ln x) - \frac{y \cdot x^y}{x}\] Therefore \[\frac{dy}{dx} = -\frac{x^x(1 + \ln x) + \dfrac{y \cdot x^y}{x}}{y^y(1 + \ln y) + x^y \ln x}\]
Answer: \[\frac{dy}{dx} = -\frac{x^x(1 + \ln x) + y \cdot x^{y-1}}{y^y(1 + \ln y) + x^y \ln x}\]
Question: Find \(\frac{dy}{dx}\) if \(x^y + y^x = c^k\), where \(c\) and \(k\) are constants.
Answer: \[\frac{dy}{dx} = -\frac{y \cdot x^{y-1} + y^x \ln y}{x^y \ln x + x \cdot y^{x-1}}\]