Differentiate the functions given in Exercises 1 to 11 \(w.r.t. x.\) \( x^{sin x} + (sin x)^{cos\ x}\)
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine you have a special number machine where the dial and the power button are both changing at the same time. Normal rules for buttons do not work here. So we use a clever trick: we take the logarithm of both sides, which brings the moving power down as a multiplier. Think of it like unfolding a tightly wrapped gift so you can see inside. We do this for each piece of the sum separately, then add the results together to get the final answer.
Answer: \[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \, \ln x + \frac{\sin x}{x} \right) + (\sin x)^{\cos x}\left( \cos x \cot x - \sin x \, \ln(\sin x) \right) \]
When a function has the variable in both its base and its exponent, like \( x^{\sin x} \), we cannot use the simple power rule or the exponential rule directly. Instead we use logarithmic differentiation: take the natural logarithm of both sides, use log properties to bring the exponent down as a coefficient, and then differentiate implicitly. Since the given expression is a sum of two such functions, we treat each part separately. 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} \), so we find each derivative using logarithmic differentiation.
If \( u = f(x)^{g(x)} \), then \( \ln u = g(x)\ln f(x) \) and \( \frac{1}{u}\frac{du}{dx} = \frac{d}{dx}\big(g(x)\ln f(x)\big) \). Also \( \frac{d}{dx}(\ln x) = \frac{1}{x} \) and \( \frac{d}{dx}(\ln \sin x) = \cot x \).
\[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \, \ln x + \frac{\sin x}{x} \right) + (\sin x)^{\cos x}\left( \cos x \cot x - \sin x \, \ln(\sin x) \right) \]
A common mistake is trying to differentiate \( x^{\sin x} \) using the power rule as \( \sin x \cdot x^{\sin x - 1} \), or using the exponential rule as \( x^{\sin x}\ln x \). Neither works because BOTH the base and the exponent are functions of \( x \). You must use logarithmic differentiation for each term.
\[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \, \ln x + \frac{\sin x}{x} \right) + (\sin x)^{\cos x}\left( \cos x \cot x - \sin x \, \ln(\sin x) \right) \]
One common mistake: forgetting to apply the product rule when differentiating \( \sin x \cdot \ln x \) or \( \cos x \cdot \ln(\sin x) \) — students often differentiate only one factor and ignore the other, which gives an incomplete (and incorrect) expression for \( \frac{1}{u}\frac{du}{dx} \) or \( \frac{1}{v}\frac{dv}{dx} \).
Answer: \[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \, \ln x + \frac{\sin x}{x} \right) + (\sin x)^{\cos x}\left( \cos x \cot x - \sin x \, \ln(\sin x) \right) \]
Question: Differentiate the following with respect to \(x\): \[y = x^{\cos x} + (\cos x)^{\sin x}\]
Solution: Let \(u = x^{\cos x}\) and \(v = (\cos x)^{\sin x}\), so \(y = u + v\). Step 1: Differentiate \(u = x^{\cos x}\). Taking the natural log: \[\ln u = \cos x \cdot \ln x\] Differentiating both sides with respect to \(x\): \[\frac{1}{u}\frac{du}{dx} = -\sin x \cdot \ln x + \cos x \cdot \frac{1}{x}\] Multiplying both sides by \(u\): \[\frac{du}{dx} = x^{\cos x}\left(\frac{\cos x}{x} - \sin x \ln x\right)\] Step 2: Differentiate \(v = (\cos x)^{\sin x}\). Taking the natural log: \[\ln v = \sin x \cdot \ln(\cos x)\] Differentiating both sides with respect to \(x\): \[\frac{1}{v}\frac{dv}{dx} = \cos x \cdot \ln(\cos x) + \sin x \cdot \frac{-\sin x}{\cos x}\] Simplifying: \[\frac{1}{v}\frac{dv}{dx} = \cos x \cdot \ln(\cos x) - \frac{\sin^2 x}{\cos x}\] Multiplying both sides by \(v\): \[\frac{dv}{dx} = (\cos x)^{\sin x}\left(\cos x \cdot \ln(\cos x) - \frac{\sin^2 x}{\cos x}\right)\] Step 3: Add the results. \[\frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx}\] \[\frac{dy}{dx} = x^{\cos x}\left(\frac{\cos x}{x} - \sin x \ln x\right) + (\cos x)^{\sin x}\left(\cos x \cdot \ln(\cos x) - \frac{\sin^2 x}{\cos x}\right)\]
Answer: \(\dfrac{dy}{dx} = x^{\cos x}\!\left(\dfrac{\cos x}{x} - \sin x \ln x\right) + (\cos x)^{\sin x}\!\left(\cos x \cdot \ln(\cos x) - \dfrac{\sin^2 x}{\cos x}\right)\)
Question: Differentiate the following with respect to \(x\): \[y = (\tan x)^{x} + x^{\tan x}\]
Solution: Let \(p = (\tan x)^{x}\) and \(q = x^{\tan x}\), so \(y = p + q\). Step 1: Differentiate \(p = (\tan x)^{x}\). Taking the natural log: \[\ln p = x \cdot \ln(\tan x)\] Differentiating both sides with respect to \(x\): \[\frac{1}{p}\frac{dp}{dx} = 1 \cdot \ln(\tan x) + x \cdot \frac{\sec^2 x}{\tan x}\] Note that \(\dfrac{\sec^2 x}{\tan x} = \dfrac{1}{\sin x \cos x}\). Multiplying both sides by \(p\): \[\frac{dp}{dx} = (\tan x)^{x}\left(\ln(\tan x) + \frac{x}{\sin x \cos x}\right)\] Step 2: Differentiate \(q = x^{\tan x}\). Taking the natural log: \[\ln q = \tan x \cdot \ln x\] Differentiating both sides with respect to \(x\): \[\frac{1}{q}\frac{dq}{dx} = \sec^2 x \cdot \ln x + \tan x \cdot \frac{1}{x}\] Multiplying both sides by \(q\): \[\frac{dq}{dx} = x^{\tan x}\left(\sec^2 x \cdot \ln x + \frac{\tan x}{x}\right)\] Step 3: Add the results. \[\frac{dy}{dx} = \frac{dp}{dx} + \frac{dq}{dx}\] \[\frac{dy}{dx} = (\tan x)^{x}\left(\ln(\tan x) + \frac{x}{\sin x \cos x}\right) + x^{\tan x}\left(\sec^2 x \cdot \ln x + \frac{\tan x}{x}\right)\]
Answer: \(\dfrac{dy}{dx} = (\tan x)^{x}\!\left(\ln(\tan x) + \dfrac{x}{\sin x \cos x}\right) + x^{\tan x}\!\left(\sec^2 x \cdot \ln x + \dfrac{\tan x}{x}\right)\)
Question: Differentiate the following function with respect to x: \[y = x^{\cos x} + (\cos x)^{\sin x}\]
Answer: \[\frac{dy}{dx} = x^{\cos x}\left(\frac{\cos x}{x} - \sin x \ln x\right) + (\cos x)^{\sin x}\left(\cos x \ln(\cos x) - \sin x \tan x\right)\]