Differentiate the functions given in Exercises 1 to 11 \(w.r.t. x.\) \(x^x – 2^{sin\ x}\)
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine you have two separate machines, and you want to know how fast each one changes. The function \( y = x^x - 2^{\sin x} \) has two parts. The first part, \( x^x \), is tricky because both the base and the power change together — like a number raising itself to its own power. A clever trick called logarithmic differentiation untangles this. The second part, \( 2^{\sin x} \), is like a fixed base with a changing power, so a simple rule handles it. Subtract the two results to get the final answer.
Answer: \[ \frac{dy}{dx} = x^x(1 + \ln x) - 2^{\sin x}(\cos x)(\ln 2) \]
We need to differentiate \( y = x^x - 2^{\sin x} \). Notice this has two separate terms joined by subtraction, so we differentiate each term and then subtract. The first term \( x^x \) has a variable in BOTH the base and the exponent, so ordinary power rule or exponential rule alone will not work. We use logarithmic differentiation: take log, differentiate implicitly, then solve for the derivative. The second term \( 2^{\sin x} \) is a constant base raised to a function of \( x \), so we use the rule for \( a^{u} \), which brings down a factor of \( \ln a \) and the derivative of the exponent.
For logarithmic differentiation: if \( u = f(x)^{g(x)} \), then \( \ln u = g(x)\ln f(x) \) and differentiate both sides. For a constant base: \( \frac{d}{dx}\left(a^{u}\right) = a^{u}\,(\ln a)\,\frac{du}{dx} \).
\[ \frac{dy}{dx} = x^x(1 + \ln x) - 2^{\sin x}(\cos x)(\ln 2) \]
A frequent error is treating \( x^x \) with the power rule as \( x \cdot x^{x-1} \) or with the exponential rule as \( x^x \ln x \). Since BOTH the base and exponent contain \( x \), you must use logarithmic differentiation, which gives the extra \( +1 \) term: \( x^x(\ln x + 1) \).
\[ \frac{dy}{dx} = x^x(1 + \ln x) - 2^{\sin x}(\cos x)(\ln 2) \]
One common mistake: forgetting to apply the product rule when differentiating \( x \ln x \) on the right-hand side — students often write \( \frac{d}{dx}(x \ln x) = \ln x \) instead of the correct \( \ln x + 1 \), missing the second term that comes from differentiating the factor \( x \).
Answer: \[ \frac{dy}{dx} = x^x(1 + \ln x) - 2^{\sin x}(\cos x)(\ln 2) \]
Question: Differentiate the following function with respect to \(x\): \[y = x^{\sin x} + 3^{\cos x}\]
Answer: \[\frac{dy}{dx} = x^{\sin x}\left(\cos x \cdot \ln x + \frac{\sin x}{x}\right) - 3^{\cos x}(\sin x)(\ln 3)\]