SOLVER7 Study. Nothing Else.
Exercise 5.5 Q12

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

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

Imagine a seesaw perfectly balanced — that is what the equation \( x^y + y^x = 1 \) looks like. Both sides must always stay equal to 1, no matter how \( x \) changes. When \( x \) nudges a little, \( y \) secretly adjusts to keep the balance. We find how fast \( y \) adjusts by treating it like a hidden passenger riding along with \( x \). Logarithms help us unlock the hidden exponents, and the final answer tells us the exact rate at which \( y \) changes.

Answer: \[ \frac{dy}{dx} = -\,\frac{y\,x^{y-1} + y^x \ln y}{x^y \ln x + x\,y^{x-1}}. \]

📖 Differentiating x^y + y^x = 1

Detailed Explanation

Here we have an equation \( x^y + y^x = 1 \) where \( y \) is defined implicitly in terms of \( x \). Both terms have a variable in the base AND a variable in the exponent, so we cannot use the simple power rule \( \frac{d}{dx}(x^n) = n x^{n-1} \) (which needs a constant power) nor the exponential rule directly. The correct method is logarithmic differentiation: we treat each term separately, take logs to bring the exponent down, then differentiate. Let \( u = x^y \) and \( v = y^x \). We find \( \frac{du}{dx} \) and \( \frac{dv}{dx} \) separately, add them, and set the sum equal to \( 0 \) (since the right side is the constant \( 1 \)). Throughout, remember that \( y \) is a function of \( x \), so differentiating any expression in \( y \) produces a \( \frac{dy}{dx} \) factor by the chain rule.

Formula Used

\( \frac{d}{dx}(\ln u) = \frac{1}{u}\frac{du}{dx} \), \( \frac{d}{dx}(\ln x) = \frac{1}{x} \), and the product rule \( (fg)' = f'g + fg' \).

Solution

  1. Step 1: Split the equation into two parts. Let \( u = x^y \) and \( v = y^x \). Then the given equation is \( u + v = 1 \), so differentiating gives \[ \frac{du}{dx} + \frac{dv}{dx} = 0. \] We now compute each derivative separately using logarithms.
  2. Step 2: Differentiate \( u = x^y \). Take log on both sides: \[ \ln u = y \ln x. \] Differentiate with respect to \( x \), using the product rule on the right: \[ \frac{1}{u}\frac{du}{dx} = \frac{dy}{dx}\ln x + y \cdot \frac{1}{x}. \] Multiply by \( u = x^y \): \[ \frac{du}{dx} = x^y\left(\ln x \, \frac{dy}{dx} + \frac{y}{x}\right). \]
  3. Step 3: Differentiate \( v = y^x \). Take log on both sides: \[ \ln v = x \ln y. \] Differentiate with respect to \( x \), remembering \( y \) depends on \( x \): \[ \frac{1}{v}\frac{dv}{dx} = 1 \cdot \ln y + x \cdot \frac{1}{y}\frac{dy}{dx}. \] Multiply by \( v = y^x \): \[ \frac{dv}{dx} = y^x\left(\ln y + \frac{x}{y}\frac{dy}{dx}\right). \]
  4. Step 4: Add the two derivatives and set the sum to zero: \[ x^y\left(\ln x \, \frac{dy}{dx} + \frac{y}{x}\right) + y^x\left(\ln y + \frac{x}{y}\frac{dy}{dx}\right) = 0. \] Expand each term: \[ x^y \ln x \, \frac{dy}{dx} + y\,x^{y-1} + y^x \ln y + x\,y^{x-1}\frac{dy}{dx} = 0. \]
  5. Step 5: Collect all terms containing \( \frac{dy}{dx} \) on one side: \[ \left(x^y \ln x + x\,y^{x-1}\right)\frac{dy}{dx} = -\left(y\,x^{y-1} + y^x \ln y\right). \] Divide to isolate \( \frac{dy}{dx} \).

Final Answer

\[ \frac{dy}{dx} = -\,\frac{y\,x^{y-1} + y^x \ln y}{x^y \ln x + x\,y^{x-1}}. \]

Common Mistake

A very common error is applying the power rule to \( x^y \) as if the exponent were a constant, writing \( y\,x^{y-1} \) only, and forgetting the \( x^y \ln x \, \frac{dy}{dx} \) term. Because both base and exponent contain variables, you must use logarithmic differentiation and include the exponent's derivative.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Introduce two helper functions by writing \(u = x^y\) and \(v = y^x\), so the given equation becomes \(u + v = 1\). Differentiating both sides with respect to \(x\) gives \[\frac{du}{dx} + \frac{dv}{dx} = 0.\] Reason: Splitting the equation lets us handle each complicated term independently before combining the results.
  2. Step 2: To find \(\frac{du}{dx}\) where \(u = x^y\), take the natural log of both sides to get \(\ln u = y \ln x\). Reason: Taking logs converts the variable-exponent form into a product, which we know how to differentiate.
  3. Step 3: Differentiate \(\ln u = y \ln x\) with respect to \(x\). The left side gives \(\frac{1}{u}\frac{du}{dx}\). On the right, applying the product rule to \(y \ln x\) (remembering \(y\) depends on \(x\)) gives \(\frac{dy}{dx} \cdot \ln x + y \cdot \frac{1}{x}\). So \[\frac{1}{u}\frac{du}{dx} = \frac{dy}{dx}\ln x + \frac{y}{x}.\] Multiplying both sides by \(u = x^y\): \[\frac{du}{dx} = x^y\!\left(\ln x\,\frac{dy}{dx} + \frac{y}{x}\right) = x^y \ln x\,\frac{dy}{dx} + y\,x^{y-1}.\] Reason: Multiplying through by \(u\) isolates \(\frac{du}{dx}\) explicitly.
  4. Step 4: Now find \(\frac{dv}{dx}\) where \(v = y^x\). Take natural log: \(\ln v = x \ln y\). Differentiate both sides with respect to \(x\): the left side gives \(\frac{1}{v}\frac{dv}{dx}\), and the right side — using the product rule on \(x \ln y\) — gives \(\ln y + x \cdot \frac{1}{y}\frac{dy}{dx}\). So \[\frac{1}{v}\frac{dv}{dx} = \ln y + \frac{x}{y}\frac{dy}{dx}.\] Multiplying by \(v = y^x\): \[\frac{dv}{dx} = y^x \ln y + x\,y^{x-1}\frac{dy}{dx}.\] Reason: The same log-differentiation strategy applies to \(v = y^x\), with the chain rule generating a \(\frac{dy}{dx}\) factor whenever \(y\) is differentiated.
  5. Step 5: Substitute the expressions found in Steps 3 and 4 into the equation from Step 1: \[\left(x^y \ln x\,\frac{dy}{dx} + y\,x^{y-1}\right) + \left(y^x \ln y + x\,y^{x-1}\frac{dy}{dx}\right) = 0.\] Reason: This brings everything together into one equation that contains only \(\frac{dy}{dx}\) as the unknown.
  6. Step 6: Collect all terms involving \(\frac{dy}{dx}\) on one side and the remaining terms on the other: \[\frac{dy}{dx}\left(x^y \ln x + x\,y^{x-1}\right) = -\,y\,x^{y-1} - y^x \ln y.\] Reason: Grouping like terms isolates \(\frac{dy}{dx}\) so it can be solved for directly.
  7. Step 7: Divide both sides by \(\left(x^y \ln x + x\,y^{x-1}\right)\) to obtain the final result: \[\frac{dy}{dx} = -\,\frac{y\,x^{y-1} + y^x \ln y}{x^y \ln x + x\,y^{x-1}}.\] Reason: Dividing by the coefficient of \(\frac{dy}{dx}\) completes the implicit differentiation.

Final Answer

\[ \frac{dy}{dx} = -\,\frac{y\,x^{y-1} + y^x \ln y}{x^y \ln x + x\,y^{x-1}}. \]

Common Mistake

One common mistake: forgetting that \(y\) is a function of \(x\), so when differentiating \(x \ln y\) with the product rule, the term \(\frac{d}{dx}(\ln y) = \frac{1}{y}\frac{dy}{dx}\) must include a \(\frac{dy}{dx}\) factor — omitting it leads to an incorrect answer.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Let \\ \( u = x^y \) and \\ \( v = y^x \), so \\ \( u + v = 1 \) gives \\ \( \dfrac{du}{dx} + \dfrac{dv}{dx} = 0 \).
  2. Step 2: From \\ \( \ln u = y \ln x \): differentiating gives \\ \( \dfrac{1}{u}\dfrac{du}{dx} = \dfrac{dy}{dx}\ln x + \dfrac{y}{x} \), so \\ \( \dfrac{du}{dx} = x^y \ln x \dfrac{dy}{dx} + y\\, x^{y-1} \).
  3. Step 3: From \\ \( \ln v = x \ln y \): differentiating gives \\ \( \dfrac{1}{v}\dfrac{dv}{dx} = \ln y + \dfrac{x}{y}\dfrac{dy}{dx} \), so \\ \( \dfrac{dv}{dx} = y^x \ln y + x\\, y^{x-1}\dfrac{dy}{dx} \).
  4. Step 4: Substituting into \\ \( \dfrac{du}{dx} + \dfrac{dv}{dx} = 0 \) and solving for \\ \( \dfrac{dy}{dx} \): \\ \( \left(x^y \ln x + x\\, y^{x-1}\right)\dfrac{dy}{dx} = -\left(y\\, x^{y-1} + y^x \ln y\right) \).

Answer: \[ \frac{dy}{dx} = -\,\frac{y\,x^{y-1} + y^x \ln y}{x^y \ln x + x\,y^{x-1}}. \]

➕ More Examples

More Examples

Example 1

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

Solution: Let \( u = x^{2y} \) and \( v = y^{2x} \), so the equation is \( u + v = 4 \). Differentiating both sides with respect to \( x \): \[ \frac{du}{dx} + \frac{dv}{dx} = 0 \] Finding \( \frac{du}{dx} \): Take logarithm of \( u = x^{2y} \). \[ \ln u = 2y \ln x \] Differentiating both sides with respect to \( x \): \[ \frac{1}{u}\frac{du}{dx} = 2\frac{dy}{dx}\ln x + 2y \cdot \frac{1}{x} \] Therefore: \[ \frac{du}{dx} = x^{2y}\left(2\ln x \cdot \frac{dy}{dx} + \frac{2y}{x}\right) \] Finding \( \frac{dv}{dx} \): Take logarithm of \( v = y^{2x} \). \[ \ln v = 2x \ln y \] Differentiating both sides with respect to \( x \): \[ \frac{1}{v}\frac{dv}{dx} = 2\ln y + 2x \cdot \frac{1}{y}\frac{dy}{dx} \] Therefore: \[ \frac{dv}{dx} = y^{2x}\left(2\ln y + \frac{2x}{y}\frac{dy}{dx}\right) \] Substituting back into \( \frac{du}{dx} + \frac{dv}{dx} = 0 \): \[ x^{2y}\left(2\ln x \cdot \frac{dy}{dx} + \frac{2y}{x}\right) + y^{2x}\left(2\ln y + \frac{2x}{y}\frac{dy}{dx}\right) = 0 \] Collecting terms with \( \frac{dy}{dx} \): \[ \frac{dy}{dx}\left(2x^{2y}\ln x + \frac{2x \cdot y^{2x}}{y}\right) = -\frac{2y \cdot x^{2y}}{x} - 2y^{2x}\ln y \] Dividing numerator and denominator by 2: \[ \frac{dy}{dx} = -\frac{\dfrac{y \cdot x^{2y}}{x} + y^{2x}\ln y}{x^{2y}\ln x + \dfrac{x \cdot y^{2x}}{y}} \] Writing in a cleaner form: \[ \frac{dy}{dx} = -\frac{y \cdot x^{2y-1} + y^{2x}\ln y}{x^{2y}\ln x + x \cdot y^{2x-1}} \]

Answer: \( \dfrac{dy}{dx} = -\dfrac{y \cdot x^{2y-1} + y^{2x}\ln y}{x^{2y}\ln x + x \cdot y^{2x-1}} \)

Example 2

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

Solution: Let \( u = x^{\sin y} \) and \( v = y^{\cos x} \), so the equation is \( u + v = 2 \). Differentiating both sides with respect to \( x \): \[ \frac{du}{dx} + \frac{dv}{dx} = 0 \] Finding \( \frac{du}{dx} \): Take logarithm of \( u = x^{\sin y} \). \[ \ln u = \sin y \cdot \ln x \] Differentiating both sides with respect to \( x \): \[ \frac{1}{u}\frac{du}{dx} = \cos y \cdot \frac{dy}{dx} \cdot \ln x + \sin y \cdot \frac{1}{x} \] Therefore: \[ \frac{du}{dx} = x^{\sin y}\left(\ln x \cos y \cdot \frac{dy}{dx} + \frac{\sin y}{x}\right) \] Finding \( \frac{dv}{dx} \): Take logarithm of \( v = y^{\cos x} \). \[ \ln v = \cos x \cdot \ln y \] Differentiating both sides with respect to \( x \): \[ \frac{1}{v}\frac{dv}{dx} = -\sin x \cdot \ln y + \cos x \cdot \frac{1}{y}\frac{dy}{dx} \] Therefore: \[ \frac{dv}{dx} = y^{\cos x}\left(-\sin x \ln y + \frac{\cos x}{y}\frac{dy}{dx}\right) \] Substituting back into \( \frac{du}{dx} + \frac{dv}{dx} = 0 \): \[ x^{\sin y}\left(\ln x \cos y \cdot \frac{dy}{dx} + \frac{\sin y}{x}\right) + y^{\cos x}\left(-\sin x \ln y + \frac{\cos x}{y}\frac{dy}{dx}\right) = 0 \] Collecting terms with \( \frac{dy}{dx} \): \[ \frac{dy}{dx}\left(x^{\sin y}\ln x \cos y + \frac{y^{\cos x}\cos x}{y}\right) = -\frac{x^{\sin y}\sin y}{x} + y^{\cos x}\sin x \ln y \] Therefore: \[ \frac{dy}{dx} = \frac{y^{\cos x}\sin x \ln y - x^{\sin y - 1}\sin y}{x^{\sin y}\ln x \cos y + y^{\cos x - 1}\cos x} \]

Answer: \( \dfrac{dy}{dx} = \dfrac{y^{\cos x}\sin x \ln y - x^{\sin y - 1}\sin y}{x^{\sin y}\ln x \cos y + y^{\cos x - 1}\cos x} \)

🎯 Try a Similar Question

Try a Similar Question

Question: Find \( \frac{dy}{dx} \) for the function defined implicitly by \[ x^y + y^x = x + y. \]

Solution

  1. Step 1 — Separate the two variable-exponent terms: Let \( P = x^y \) and \( Q = y^x \), so the equation is \( P + Q = x + y \). We differentiate both sides with respect to \( x \): \nDifferentiating: \[ \frac{dP}{dx} + \frac{dQ}{dx} = 1 + \frac{dy}{dx}. \]
  2. Step 2 — Differentiate \( P = x^y \) using logarithmic differentiation: Take \( \ln \) of both sides of \( P = x^y \): \[ \ln P = y \ln x. \] \nDifferentiate both sides with respect to \( x \): \[ \frac{1}{P}\frac{dP}{dx} = \frac{dy}{dx}\ln x + \frac{y}{x}. \] \nHence \[ \frac{dP}{dx} = x^y\\!\left(\frac{dy}{dx}\ln x + \frac{y}{x}\right) = x^y \ln x\\,\frac{dy}{dx} + y\\,x^{y-1}. \]
  3. Step 3 — Differentiate \( Q = y^x \) using logarithmic differentiation: Take \( \ln \) of both sides of \( Q = y^x \): \[ \ln Q = x \ln y. \] \nDifferentiate both sides with respect to \( x \): \[ \frac{1}{Q}\frac{dQ}{dx} = \ln y + \frac{x}{y}\frac{dy}{dx}. \] \nHence \[ \frac{dQ}{dx} = y^x\\!\left(\ln y + \frac{x}{y}\frac{dy}{dx}\right) = y^x \ln y + x\\,y^{x-1}\frac{dy}{dx}. \]
  4. Step 4 — Substitute back and collect terms: Substituting the expressions from Steps 2 and 3 into the equation from Step 1: \[ x^y \ln x\\,\frac{dy}{dx} + y\\,x^{y-1} + y^x \ln y + x\\,y^{x-1}\frac{dy}{dx} = 1 + \frac{dy}{dx}. \] \nGroup all terms involving \( \frac{dy}{dx} \) on the left: \[ \left(x^y \ln x + x\\,y^{x-1} - 1\right)\frac{dy}{dx} = 1 - y\\,x^{y-1} - y^x \ln y. \]
  5. Step 5 — Solve for \( \frac{dy}{dx} \): Dividing both sides by \( \left(x^y \ln x + x\\,y^{x-1} - 1\right) \): \[ \frac{dy}{dx} = \frac{1 - y\\,x^{y-1} - y^x \ln y}{x^y \ln x + x\\,y^{x-1} - 1}. \]

Answer: \[ \frac{dy}{dx} = \frac{1 - y\\,x^{y-1} - y^x \ln y}{x^y \ln x + x\\,y^{x-1} - 1}. \]

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