Find \(f'(x)\) if \( f(x) = (sin x)^{sin\ x}\) for all \(0 < x <\pi.\)
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine you want to find how fast something is changing, but the thing is built in a tricky way — like a number raised to itself. Taking the logarithm is like unwrapping a gift slowly so you can see what is inside. Once unwrapped, the maths becomes much friendlier to work with. We gently peel apart the expression, find the rate of change, and then wrap everything back up. The final answer tells us exactly how fast our original tricky function is growing at any point.
Answer: \[ f'(x) = (\sin x)^{\sin x}\,\cos x\,\big(1 + \ln(\sin x)\big) \]
When a function has a variable in both the base and the exponent, like \( (\sin x)^{\sin x} \), we cannot use the simple power rule \( \frac{d}{dx}(x^n) = n x^{n-1} \) (that needs a constant exponent), nor the exponential rule \( \frac{d}{dx}(a^x) = a^x \ln a \) (that needs a constant base). Instead we use logarithmic differentiation: we take the natural logarithm of both sides, which converts the power into a product using the property \( \ln(a^b) = b \ln a \). This makes the expression easier to differentiate. Then we differentiate both sides with respect to \( x \), using implicit differentiation on the left side and the product rule on the right side.
Key properties used: \[ \ln(a^b) = b \ln a \] \[ \frac{d}{dx}\big(\ln y\big) = \frac{1}{y}\frac{dy}{dx} \] Product rule: \[ \frac{d}{dx}(uv) = u\,\frac{dv}{dx} + v\,\frac{du}{dx} \]
\[ f'(x) = (\sin x)^{\sin x}\,\cos x\,\big(1 + \ln(\sin x)\big) \]
A common mistake is treating the exponent as a constant and writing \( f'(x) = \sin x\,(\sin x)^{\sin x - 1}\cos x \) using the power rule. This is wrong because the exponent is not a constant here. Logarithmic differentiation must be used whenever the variable appears in both the base and the exponent.
\[ f'(x) = (\sin x)^{\sin x}\,\cos x\,\big(1 + \ln(\sin x)\big) \]
One common mistake: Trying to apply the ordinary power rule \( \frac{d}{dx}(u^n) = n u^{n-1} \) by treating the exponent sin x as if it were a constant — the power rule only works when the exponent is a fixed number, not a function of x. Always use logarithmic differentiation when both base and exponent vary with x.
Answer: \[ f'(x) = (\sin x)^{\sin x}\,\cos x\,\big(1 + \ln(\sin x)\big) \]
Question: Find \( f'(x) \) if \( f(x) = (\cos x)^{\cos x} \) for all \( 0 < x < \dfrac{\pi}{2} \).
Solution: Let \( y = (\cos x)^{\cos x} \). Taking the natural logarithm of both sides: \[ \ln y = \cos x \cdot \ln(\cos x) \] Differentiating both sides with respect to \( x \) (using implicit differentiation on the left and the product rule on the right): \[ \frac{1}{y} \cdot \frac{dy}{dx} = \frac{d}{dx}[\cos x] \cdot \ln(\cos x) + \cos x \cdot \frac{d}{dx}[\ln(\cos x)] \] Now, \( \frac{d}{dx}[\cos x] = -\sin x \) and \( \frac{d}{dx}[\ln(\cos x)] = \frac{-\sin x}{\cos x} = -\tan x \). Substituting: \[ \frac{1}{y} \cdot \frac{dy}{dx} = (-\sin x)\ln(\cos x) + \cos x \cdot (-\tan x) \] Simplifying the second term, \( \cos x \cdot (-\tan x) = \cos x \cdot \frac{-\sin x}{\cos x} = -\sin x \): \[ \frac{1}{y} \cdot \frac{dy}{dx} = -\sin x \cdot \ln(\cos x) - \sin x \] Multiplying both sides by \( y = (\cos x)^{\cos x} \): \[ \frac{dy}{dx} = (\cos x)^{\cos x} \left[ -\sin x \cdot \ln(\cos x) - \sin x \right] \] Factoring out \( -\sin x \): \[ \frac{dy}{dx} = -(\cos x)^{\cos x} \cdot \sin x \left[1 + \ln(\cos x)\right] \]
Answer: \( f'(x) = -(\cos x)^{\cos x} \cdot \sin x \left[1 + \ln(\cos x)\right] \)
Question: Find \( \dfrac{dy}{dx} \) if \( y = x^{\tan x} \) for \( x > 0 \).
Solution: Let \( y = x^{\tan x} \). Taking the natural logarithm of both sides: \[ \ln y = \tan x \cdot \ln x \] Differentiating both sides with respect to \( x \) using the product rule on the right: \[ \frac{1}{y} \cdot \frac{dy}{dx} = \frac{d}{dx}[\tan x] \cdot \ln x + \tan x \cdot \frac{d}{dx}[\ln x] \] Now, \( \frac{d}{dx}[\tan x] = \sec^2 x \) and \( \frac{d}{dx}[\ln x] = \dfrac{1}{x} \). Substituting: \[ \frac{1}{y} \cdot \frac{dy}{dx} = \sec^2 x \cdot \ln x + \tan x \cdot \frac{1}{x} \] Multiplying both sides by \( y = x^{\tan x} \): \[ \frac{dy}{dx} = x^{\tan x} \left[ \sec^2 x \cdot \ln x + \frac{\tan x}{x} \right] \]
Answer: \( \dfrac{dy}{dx} = x^{\tan x} \left[ \sec^2 x \cdot \ln x + \dfrac{\tan x}{x} \right] \)
Question: Find \( f'(x) \) if \( f(x) = (\cos x)^{\cos x} \) for all \( 0 < x < \dfrac{\pi}{2} \).
Answer: \[ f'(x) = -(\cos x)^{\cos x}\,\sin x\,\big(1 + \ln(\cos x)\big) \]