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
CBSE Class 12 Maths · Continuity and Differentiability
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 \]
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} \).
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' \).
\[ \frac{dy}{dx} = (\log x)^x \left( \log(\log x) + \frac{1}{\log x} \right) + 2\,x^{\log x - 1}\log x \]
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.
\[ \frac{dy}{dx} = (\log x)^x \left( \log(\log x) + \frac{1}{\log x} \right) + 2\,x^{\log x - 1}\log x \]
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.
Answer: \[ \frac{dy}{dx} = (\log x)^x \left( \log(\log x) + \frac{1}{\log x} \right) + 2\,x^{\log x - 1}\log x \]
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)\)
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)\)
Question: Differentiate the following function with respect to \( x \): \[ y = x^{\sin x} + (\sin x)^{\cos x} \]
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) \]