SOLVER7 Study. Nothing Else.
Exercise 5.5 Q7

Differentiate the functions given in Exercises 1 to 11 \(w.r.t. x.\) \((log\ x)^x + x^{log\ x}\)

CBSE Class 12 Maths · Continuity and Differentiability

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have two strange towers stacked with blocks, where the height and the number of floors both keep changing. To find how fast either tower grows, you use a clever trick — take a "log" of the tower to bring the top number down to a friendlier place. Each tower is handled separately, like solving two small puzzles. Once you figure out each tower's growth rate, you simply add them together. That combined result is the final answer for how fast the whole expression changes.

Answer: \[ \frac{dy}{dx} = (\log x)^x \left( \log(\log x) + \frac{1}{\log x} \right) + 2\,x^{\log x - 1}\log x \]

📖 Differentiating (log x)^x + x^(log x)

Detailed Explanation

When a function has a variable in both the base and the exponent, like \( (\log x)^x \), we cannot use the simple power rule or the exponential rule directly. Instead we use logarithmic differentiation: take the natural logarithm of the term, use log properties to bring the exponent down, and then differentiate implicitly. We treat the given expression as a sum of two such terms, \( u = (\log x)^x \) and \( v = x^{\log x} \), differentiate each separately, and add the results because \( \frac{d}{dx}(u+v) = \frac{du}{dx} + \frac{dv}{dx} \).

Formula Used

If \( y = f(x)^{g(x)} \), then \( \log y = g(x)\log f(x) \) and \( \frac{1}{y}\frac{dy}{dx} = \frac{d}{dx}\big(g(x)\log f(x)\big) \). Also \( \frac{d}{dx}(\log x) = \frac{1}{x} \) and product rule \( (pq)' = p'q + pq' \).

Solution

  1. Step 1: Let \( y = (\log x)^x + x^{\log x} \). Write it as \( y = u + v \) where \( u = (\log x)^x \) and \( v = x^{\log x} \). We will find \( \frac{du}{dx} \) and \( \frac{dv}{dx} \) separately, then add them.
  2. Step 2: For \( u = (\log x)^x \), take natural log of both sides: \[ \log u = x \cdot \log(\log x) \] This brings the exponent \( x \) down as a multiplier so we can differentiate.
  3. Step 3: Differentiate both sides with respect to \( x \). The left side gives \( \frac{1}{u}\frac{du}{dx} \). For the right side use the product rule on \( x \cdot \log(\log x) \): \[ \frac{1}{u}\frac{du}{dx} = 1 \cdot \log(\log x) + x \cdot \frac{1}{\log x}\cdot \frac{1}{x} \] Here \( \frac{d}{dx}\log(\log x) = \frac{1}{\log x}\cdot\frac{1}{x} \) by the chain rule.
  4. Step 4: Simplify and multiply by \( u = (\log x)^x \): \[ \frac{du}{dx} = (\log x)^x \left( \log(\log x) + \frac{1}{\log x} \right) \]
  5. Step 5: For \( v = x^{\log x} \), take natural log of both sides: \[ \log v = \log x \cdot \log x = (\log x)^2 \] The exponent \( \log x \) times \( \log x \) gives a squared term, which is easy to differentiate.
  6. Step 6: Differentiate both sides with respect to \( x \): \[ \frac{1}{v}\frac{dv}{dx} = 2\log x \cdot \frac{1}{x} \] Using the chain rule on \( (\log x)^2 \).
  7. Step 7: Multiply by \( v = x^{\log x} \): \[ \frac{dv}{dx} = x^{\log x} \cdot \frac{2\log x}{x} = 2\,x^{\log x - 1}\log x \]
  8. Step 8: Add the two derivatives to get the final result: \[ \frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx} \]

Final Answer

\[ \frac{dy}{dx} = (\log x)^x \left( \log(\log x) + \frac{1}{\log x} \right) + 2\,x^{\log x - 1}\log x \]

Common Mistake

A very common error is trying to differentiate \( (\log x)^x \) using the power rule as \( x(\log x)^{x-1} \), or using the exponential rule as \( (\log x)^x \log(\log x) \) only. Since BOTH the base and the exponent contain \( x \), neither rule alone works — you must use logarithmic differentiation and apply the product rule after taking logs.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Split the function into two manageable parts. Write \( y = u + v \) where \( u = (\log x)^x \) and \( v = x^{\log x} \). Then \( \frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx} \). — Reason: Differentiating a sum term by term lets us handle each complicated piece on its own before combining.
  2. Step 2: Take the natural log of \( u = (\log x)^x \) to get \[ \log u = x \cdot \log(\log x). \] — Reason: Taking the log converts the variable exponent x into a multiplier, making the expression differentiable using the product rule.
  3. Step 3: Differentiate both sides of \( \log u = x \cdot \log(\log x) \) with respect to x. The left side gives \( \frac{1}{u}\frac{du}{dx} \). For the right side apply the product rule to \( x \cdot \log(\log x) \): \[ \frac{1}{u}\frac{du}{dx} = \log(\log x) + x \cdot \frac{1}{\log x} \cdot \frac{1}{x}. \] Simplifying the second term: \[ \frac{1}{u}\frac{du}{dx} = \log(\log x) + \frac{1}{\log x}. \] — Reason: Implicit differentiation on the left and the product rule on the right; the chain rule handles the nested log.
  4. Step 4: Multiply both sides by \( u = (\log x)^x \) to isolate \( \frac{du}{dx} \): \[ \frac{du}{dx} = (\log x)^x \left(\log(\log x) + \frac{1}{\log x}\right). \] — Reason: We need \( \frac{du}{dx} \) explicitly, so we multiply both sides by u and substitute back its original expression.
  5. Step 5: Now work on \( v = x^{\log x} \). Take the natural log of both sides: \[ \log v = \log x \cdot \log x = (\log x)^2. \] — Reason: Again, logging the term converts the variable exponent into a product of two logs, which is easier to differentiate.
  6. Step 6: Differentiate both sides of \( \log v = (\log x)^2 \) with respect to x. The left side gives \( \frac{1}{v}\frac{dv}{dx} \). For the right side apply the chain rule to \( (\log x)^2 \): \[ \frac{1}{v}\frac{dv}{dx} = 2\log x \cdot \frac{1}{x}. \] Multiplying both sides by \( v = x^{\log x} \): \[ \frac{dv}{dx} = x^{\log x} \cdot \frac{2\log x}{x} = 2\,x^{\log x - 1}\log x. \] — Reason: The chain rule differentiates the composite \( (\log x)^2 \), and then multiplying by v and simplifying \( \frac{x^{\log x}}{x} = x^{\log x - 1} \) gives the final form.
  7. Step 7: Add the two derivatives to obtain \( \frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx} \): \[ \frac{dy}{dx} = (\log x)^x \left(\log(\log x) + \frac{1}{\log x}\right) + 2\,x^{\log x - 1}\log x. \] — Reason: Since y = u + v, the derivative of y is simply the sum of the individual derivatives found in Steps 4 and 6.

Final Answer

\[ \frac{dy}{dx} = (\log x)^x \left( \log(\log x) + \frac{1}{\log x} \right) + 2\,x^{\log x - 1}\log x \]

Common Mistake

One common mistake: Students often forget to apply the chain rule when differentiating \( \log(\log x) \), writing \( \frac{1}{\log x} \) without the extra factor \( \frac{1}{x} \) — this causes the product rule step in Step 3 to give a wrong result.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Let \( u = (\log x)^x \) and \( v = x^{\log x} \), so \( y = u + v \). Take \( \log u = x \log(\log x) \) and differentiate: \[\frac{1}{u}\frac{du}{dx} = \log(\log x) + \frac{1}{\log x}\] hence \[\frac{du}{dx} = (\log x)^x \left(\log(\log x) + \frac{1}{\log x}\right)\]
  2. Step 2: Take \( \log v = (\log x)^2 \) and differentiate: \[\frac{1}{v}\frac{dv}{dx} = \frac{2\log x}{x}\] hence \[\frac{dv}{dx} = x^{\log x} \cdot \frac{2\log x}{x} = 2\,x^{\log x - 1}\log x\]
  3. Step 3: Add the two results: \[\frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx}\]

Answer: \[ \frac{dy}{dx} = (\log x)^x \left( \log(\log x) + \frac{1}{\log x} \right) + 2\,x^{\log x - 1}\log x \]

➕ More Examples

More Examples

Example 1

Question: Differentiate with respect to \(x\): \[y = x^{\sin x} + (\sin x)^{\cos x}\]

Solution: Let \(u = x^{\sin x}\) and \(v = (\sin x)^{\cos x}\), so \(y = u + v\). Step 1: Differentiate \(u = x^{\sin x}\). Taking logarithm: \(\ln u = \sin x \cdot \ln x\). Differentiating both sides with respect to \(x\): \[\frac{1}{u}\frac{du}{dx} = \cos x \cdot \ln x + \sin x \cdot \frac{1}{x}\] Therefore: \[\frac{du}{dx} = x^{\sin x}\left(\cos x \ln x + \frac{\sin x}{x}\right)\] Step 2: Differentiate \(v = (\sin x)^{\cos x}\). Taking logarithm: \(\ln v = \cos x \cdot \ln(\sin x)\). Differentiating both sides with respect to \(x\): \[\frac{1}{v}\frac{dv}{dx} = -\sin x \cdot \ln(\sin x) + \cos x \cdot \frac{\cos x}{\sin x}\] \[\frac{1}{v}\frac{dv}{dx} = -\sin x \ln(\sin x) + \frac{\cos^2 x}{\sin x}\] Therefore: \[\frac{dv}{dx} = (\sin x)^{\cos x}\left(-\sin x \ln(\sin x) + \frac{\cos^2 x}{\sin x}\right)\] Step 3: Add the two results. \[\frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx}\] \[\frac{dy}{dx} = x^{\sin x}\left(\cos x \ln x + \frac{\sin x}{x}\right) + (\sin x)^{\cos x}\left(\frac{\cos^2 x}{\sin x} - \sin x \ln(\sin x)\right)\]

Answer: \(\frac{dy}{dx} = x^{\sin x}\left(\cos x \ln x + \frac{\sin x}{x}\right) + (\sin x)^{\cos x}\left(\frac{\cos^2 x}{\sin x} - \sin x \ln(\sin x)\right)\)

Example 2

Question: Differentiate with respect to \(x\): \[y = (\ln x)^{\tan x} + x^{\cos x}\]

Solution: Let \(p = (\ln x)^{\tan x}\) and \(q = x^{\cos x}\), so \(y = p + q\). Step 1: Differentiate \(p = (\ln x)^{\tan x}\). Taking logarithm: \(\ln p = \tan x \cdot \ln(\ln x)\). Differentiating both sides with respect to \(x\): \[\frac{1}{p}\frac{dp}{dx} = \sec^2 x \cdot \ln(\ln x) + \tan x \cdot \frac{1}{\ln x} \cdot \frac{1}{x}\] \[\frac{1}{p}\frac{dp}{dx} = \sec^2 x \ln(\ln x) + \frac{\tan x}{x \ln x}\] Therefore: \[\frac{dp}{dx} = (\ln x)^{\tan x}\left(\sec^2 x \ln(\ln x) + \frac{\tan x}{x \ln x}\right)\] Step 2: Differentiate \(q = x^{\cos x}\). Taking logarithm: \(\ln q = \cos x \cdot \ln x\). Differentiating both sides with respect to \(x\): \[\frac{1}{q}\frac{dq}{dx} = -\sin x \cdot \ln x + \cos x \cdot \frac{1}{x}\] Therefore: \[\frac{dq}{dx} = x^{\cos x}\left(-\sin x \ln x + \frac{\cos x}{x}\right)\] Step 3: Add the two results. \[\frac{dy}{dx} = \frac{dp}{dx} + \frac{dq}{dx}\] \[\frac{dy}{dx} = (\ln x)^{\tan x}\left(\sec^2 x \ln(\ln x) + \frac{\tan x}{x \ln x}\right) + x^{\cos x}\left(\frac{\cos x}{x} - \sin x \ln x\right)\]

Answer: \(\frac{dy}{dx} = (\ln x)^{\tan x}\left(\sec^2 x \ln(\ln x) + \frac{\tan x}{x \ln x}\right) + x^{\cos x}\left(\frac{\cos x}{x} - \sin x \ln x\right)\)

🎯 Try a Similar Question

Try a Similar Question

Question: Differentiate the following function with respect to \( x \): \[ y = x^{\sin x} + (\sin x)^{\cos x} \]

Solution

  1. Step 1: Split into two parts: Let \( y = u + v \), where \( u = x^{\sin x} \) and \( v = (\sin x)^{\cos x} \). Then \( \frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx} \).
  2. Step 2: Differentiate \( u = x^{\sin x} \) using logarithmic differentiation: Taking logarithm on both sides: \( \ln u = \sin x \cdot \ln x \). Differentiating both sides w.r.t. \( x \): \[ \frac{1}{u} \frac{du}{dx} = \cos x \cdot \ln x + \sin x \cdot \frac{1}{x} \] Therefore: \[ \frac{du}{dx} = x^{\sin x} \left( \cos x \ln x + \frac{\sin x}{x} \right) \]
  3. Step 3: Differentiate \( v = (\sin x)^{\cos x} \) using logarithmic differentiation: Taking logarithm on both sides: \( \ln v = \cos x \cdot \ln(\sin x) \). Differentiating both sides w.r.t. \( x \): \[ \frac{1}{v} \frac{dv}{dx} = -\sin x \cdot \ln(\sin x) + \cos x \cdot \frac{\cos x}{\sin x} \] Simplifying: \[ \frac{1}{v} \frac{dv}{dx} = -\sin x \ln(\sin x) + \frac{\cos^2 x}{\sin x} \] Therefore: \[ \frac{dv}{dx} = (\sin x)^{\cos x} \left( -\sin x \ln(\sin x) + \frac{\cos^2 x}{\sin x} \right) \]
  4. Step 4: Combine the results: Adding both derivatives: \[ \frac{dy}{dx} = x^{\sin x} \left( \cos x \ln x + \frac{\sin x}{x} \right) + (\sin x)^{\cos x} \left( \frac{\cos^2 x}{\sin x} - \sin x \ln(\sin x) \right) \]

Answer: \[ \frac{dy}{dx} = x^{\sin x} \left( \cos x \ln x + \frac{\sin x}{x} \right) + (\sin x)^{\cos x} \left( \frac{\cos^2 x}{\sin x} - \sin x \ln(\sin x) \right) \]

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