Differentiate the functions given in Exercises 1 to 11 \(w.r.t. x.\) \((x\ cos\ x)^x+(x\ sin\ x)^{\dfrac{1}{x}} \)
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine you have two mystery boxes, each with a power that changes as you move. To find out how fast each box changes, you use a clever trick: take the logarithm, which is like unwrapping the box to see inside. This turns a tricky power problem into a simpler multiplication problem. After unwrapping both boxes and finding each rate of change, you simply add the two results together. That combined sum gives you the final answer for how fast the whole expression is changing.
Answer: \[ \frac{dy}{dx} = (x \cos x)^x\left[\ln(x \cos x) + 1 - x\tan x\right] + (x \sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x \sin x)}{x^2}\right]. \]
When a function has a variable in both the base and the exponent, like \( (x \cos x)^x \), we cannot use the simple power rule or the exponential rule directly. Instead we use logarithmic differentiation: take the natural log of the function, use log properties to bring the exponent down, then differentiate both sides implicitly. Since the given expression is a sum of two such functions, we split it as \( y = u + v \) where \( u = (x \cos x)^x \) and \( v = (x \sin x)^{1/x} \), differentiate each separately, and add the results.
If \( u = f(x)^{g(x)} \), then \( \ln u = g(x)\ln f(x) \) and \( \dfrac{1}{u}\dfrac{du}{dx} = g'(x)\ln f(x) + g(x)\dfrac{f'(x)}{f(x)} \). Also \( \ln(ab) = \ln a + \ln b \) and product rule \( (fg)' = f'g + fg' \).
\[ \frac{dy}{dx} = (x \cos x)^x\left[\ln(x \cos x) + 1 - x\tan x\right] + (x \sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x \sin x)}{x^2}\right]. \]
A common mistake is trying to differentiate \( (x \cos x)^x \) using the power rule as \( x(x\cos x)^{x-1} \), or the exponential rule as \( (x\cos x)^x \ln(x\cos x) \). Both are wrong because the base AND the exponent contain \( x \); you must use logarithmic differentiation on each term separately.
\[ \frac{dy}{dx} = (x \cos x)^x\left[\ln(x \cos x) + 1 - x\tan x\right] + (x \sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x \sin x)}{x^2}\right]. \]
One common mistake: Students forget to use the product rule when differentiating \( x(\ln x + \ln\cos x) \), or they apply the power rule directly to \( (x\cos x)^x \) as if the exponent were a constant — both errors lead to an incorrect derivative.
Answer: \[ \frac{dy}{dx} = (x \cos x)^x\left[\ln(x \cos x) + 1 - x\tan x\right] + (x \sin x)^{1/x}\left[\frac{1}{x^2} + \frac{\cot x}{x} - \frac{\ln(x \sin x)}{x^2}\right]. \]
Question: Differentiate \( y = (x \sin x)^x + (x \cos x)^{1/x} \) with respect to \( x \).
Solution: Let \( y = u + v \), where \( u = (x \sin x)^x \) and \( v = (x \cos x)^{1/x} \). Step 1: Differentiate \( u = (x \sin x)^x \). Taking the natural log of both sides: \[ \ln u = x \ln(x \sin x) \] Differentiating both sides with respect to \( x \): \[ \frac{1}{u}\frac{du}{dx} = \ln(x \sin x) + x \cdot \frac{\sin x + x \cos x}{x \sin x} \] Simplifying: \[ \frac{1}{u}\frac{du}{dx} = \ln(x \sin x) + \frac{\sin x + x \cos x}{\sin x} \] \[ \frac{1}{u}\frac{du}{dx} = \ln(x \sin x) + 1 + x\cot x \] Therefore: \[ \frac{du}{dx} = (x \sin x)^x \left[1 + x\cot x + \ln(x \sin x)\right] \] Step 2: Differentiate \( v = (x \cos x)^{1/x} \). Taking the natural log of both sides: \[ \ln v = \frac{1}{x}\ln(x \cos x) \] Differentiating both sides with respect to \( x \): \[ \frac{1}{v}\frac{dv}{dx} = -\frac{1}{x^2}\ln(x \cos x) + \frac{1}{x} \cdot \frac{\cos x - x\sin x}{x \cos x} \] \[ \frac{1}{v}\frac{dv}{dx} = -\frac{\ln(x \cos x)}{x^2} + \frac{\cos x - x\sin x}{x^2 \cos x} \] \[ \frac{1}{v}\frac{dv}{dx} = \frac{1}{x^2}\left[-\ln(x \cos x) + \frac{\cos x - x\sin x}{\cos x}\right] \] \[ \frac{1}{v}\frac{dv}{dx} = \frac{1}{x^2}\left[1 - x\tan x - \ln(x \cos x)\right] \] Therefore: \[ \frac{dv}{dx} = (x \cos x)^{1/x} \cdot \frac{1}{x^2}\left[1 - x\tan x - \ln(x \cos x)\right] \] Step 3: Combine the results. \[ \frac{dy}{dx} = (x \sin x)^x \left[1 + x\cot x + \ln(x \sin x)\right] + \frac{(x \cos x)^{1/x}}{x^2}\left[1 - x\tan x - \ln(x \cos x)\right] \]
Answer: \( \frac{dy}{dx} = (x \sin x)^x \left[1 + x\cot x + \ln(x \sin x)\right] + \frac{(x \cos x)^{1/x}}{x^2}\left[1 - x\tan x - \ln(x \cos x)\right] \)
Question: Differentiate \( y = (\cos x)^{\sin x} + (\sin x)^{\cos x} \) with respect to \( x \).
Solution: Let \( y = u + v \), where \( u = (\cos x)^{\sin x} \) and \( v = (\sin x)^{\cos x} \). Step 1: Differentiate \( u = (\cos x)^{\sin x} \). Taking the natural log of both sides: \[ \ln u = \sin x \cdot \ln(\cos x) \] Differentiating both sides with respect to \( x \): \[ \frac{1}{u}\frac{du}{dx} = \cos x \cdot \ln(\cos x) + \sin x \cdot \frac{-\sin x}{\cos x} \] \[ \frac{1}{u}\frac{du}{dx} = \cos x \cdot \ln(\cos x) - \tan x \cdot \sin x \] Therefore: \[ \frac{du}{dx} = (\cos x)^{\sin x}\left[\cos x \cdot \ln(\cos x) - \sin x \tan x\right] \] Step 2: Differentiate \( v = (\sin x)^{\cos x} \). Taking the natural log of both sides: \[ \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 \cdot \ln(\sin x) + \cos x \cot x \] Therefore: \[ \frac{dv}{dx} = (\sin x)^{\cos x}\left[\cos x \cot x - \sin x \cdot \ln(\sin x)\right] \] Step 3: Combine the results. \[ \frac{dy}{dx} = (\cos x)^{\sin x}\left[\cos x \cdot \ln(\cos x) - \sin x \tan x\right] + (\sin x)^{\cos x}\left[\cos x \cot x - \sin x \cdot \ln(\sin x)\right] \]
Answer: \( \frac{dy}{dx} = (\cos x)^{\sin x}\left[\cos x \cdot \ln(\cos x) - \sin x \tan x\right] + (\sin x)^{\cos x}\left[\cos x \cot x - \sin x \cdot \ln(\sin x)\right] \)
Question: Differentiate the following function with respect to \( x \): \[ y = (x \sin x)^x + (x \cos x)^{1/x} \]
Answer: \[\frac{dy}{dx} = (x \sin x)^x\bigl[\ln(x \sin x) + 1 + x\cot x\bigr] + (x \cos x)^{1/x}\left[\frac{1 - x\tan x - \ln(x \cos x)}{x^2}\right]\]