Differentiate \(x^{sin\ x},x>0\ w.r.t. x.\)
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine you have a number that is raised to a power, but both the number and the power keep changing as x changes. Normal shortcuts do not work here. So we use a clever trick: take the logarithm of both sides, which turns the tricky power into a simple multiplication. Differentiating becomes much easier after that. Finally, we multiply both sides by the original function to get our answer. It is like untying a knot by loosening it gently instead of pulling hard.
Answer: \[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \, \ln x + \frac{\sin x}{x} \right) \]
When we differentiate a function of the form \( y = [f(x)]^{g(x)} \), where BOTH the base and the exponent depend on \( x \), we cannot use the simple power rule \( \frac{d}{dx}(x^n) = nx^{n-1} \) (which needs a constant power), nor the exponential rule \( \frac{d}{dx}(a^x) = a^x \ln a \) (which needs a constant base). Instead we use logarithmic differentiation. The idea is to take the natural logarithm of both sides. The log converts the awkward power into a product using the rule \( \log(a^b) = b \log a \), which is much easier to differentiate. Here the base is \( x \) and the exponent is \( \sin x \), so this method is exactly what we need.
Key rules used: \[ \ln(a^b) = b \ln a \] \[ \frac{d}{dx}(\ln y) = \frac{1}{y}\frac{dy}{dx} \] \[ \frac{d}{dx}(uv) = u'v + uv' \quad \text{(product rule)} \]
\[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \, \ln x + \frac{\sin x}{x} \right) \]
A very common mistake is applying the power rule directly and writing \( \frac{dy}{dx} = \sin x \cdot x^{\sin x - 1} \). This is wrong because the power rule only works when the exponent is a constant. Since the exponent \( \sin x \) is a function of \( x \), logarithmic differentiation is required. Another slip is forgetting to multiply back by \( y \) at the end.
\[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \, \ln x + \frac{\sin x}{x} \right) \]
One common mistake: Attempting to apply the power rule directly and writing \( \frac{dy}{dx} = \sin x \cdot x^{\sin x - 1} \), which is wrong because the power rule only works when the exponent is a constant — here \( \sin x \) varies with \( x \), so the derivative of the exponent itself must also be accounted for through logarithmic differentiation.
Answer: \[ \frac{dy}{dx} = x^{\sin x}\left( \cos x \, \ln x + \frac{\sin x}{x} \right) \]
Question: Differentiate \( y = x^{\cos x} \), where \( x > 0 \), with respect to \( x \).
Solution: We are given \( y = x^{\cos x} \). Since both the base and the exponent involve \( x \), we use logarithmic differentiation. Taking the natural logarithm on both sides: \[ \ln y = \cos x \cdot \ln x \] Differentiating both sides with respect to \( x \): \[ \frac{1}{y} \frac{dy}{dx} = \frac{d}{dx}(\cos x) \cdot \ln x + \cos x \cdot \frac{d}{dx}(\ln x) \] Applying the product rule on the right-hand side: \[ \frac{1}{y} \frac{dy}{dx} = (-\sin x)(\ln x) + \cos x \cdot \frac{1}{x} \] Multiplying both sides by \( y \): \[ \frac{dy}{dx} = y \left( -\sin x \ln x + \frac{\cos x}{x} \right) \] Substituting back \( y = x^{\cos x} \): \[ \frac{dy}{dx} = x^{\cos x} \left( \frac{\cos x}{x} - \sin x \ln x \right) \]
Answer: \( \dfrac{dy}{dx} = x^{\cos x} \left( \dfrac{\cos x}{x} - \sin x \ln x \right) \)
Question: Differentiate \( y = (\tan x)^{x} \), where \( 0 < x < \dfrac{\pi}{2} \), with respect to \( x \).
Solution: We are given \( y = (\tan x)^{x} \). Since both the base and the exponent depend on \( x \), we use logarithmic differentiation. Taking the natural logarithm on both sides: \[ \ln y = x \cdot \ln(\tan x) \] Differentiating both sides with respect to \( x \): \[ \frac{1}{y} \frac{dy}{dx} = \frac{d}{dx}(x) \cdot \ln(\tan x) + x \cdot \frac{d}{dx}(\ln(\tan x)) \] Now, \( \dfrac{d}{dx}(\ln(\tan x)) = \dfrac{1}{\tan x} \cdot \sec^2 x = \dfrac{\sec^2 x}{\tan x} \). Substituting: \[ \frac{1}{y} \frac{dy}{dx} = 1 \cdot \ln(\tan x) + x \cdot \frac{\sec^2 x}{\tan x} \] Multiplying both sides by \( y \): \[ \frac{dy}{dx} = y \left( \ln(\tan x) + \frac{x \sec^2 x}{\tan x} \right) \] Substituting back \( y = (\tan x)^{x} \): \[ \frac{dy}{dx} = (\tan x)^{x} \left( \ln(\tan x) + \frac{x \sec^2 x}{\tan x} \right) \]
Answer: \( \dfrac{dy}{dx} = (\tan x)^{x} \left( \ln(\tan x) + \dfrac{x \sec^2 x}{\tan x} \right) \)
Question: Differentiate \( y = x^{\cos x} \), \( x > 0 \), with respect to \( x \).
Answer: \[ \frac{dy}{dx} = x^{\cos x} \left( \frac{\cos x}{x} - \sin x \ln x \right) \]