Differentiate w.r.t. x the function in Exercises 1 to 11. \((sin\ x – cos\ x)^ {(sin x – cos x)},\dfrac{\pi}{4} < x < \dfrac{3\pi}{4}\)
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine a number that is both the base and the power at the same time — like a person wearing two hats. Normal rules cannot handle two hats at once. So mathematicians use a clever trick: take the logarithm of both sides, which pulls the top hat down and turns the problem into simple multiplication. After that, ordinary differentiation does the rest. The final answer tells us exactly how fast the original expression is changing at any point.
Answer: \[ \frac{dy}{dx} = (\sin x - \cos x)^{(\sin x - \cos x)}\,(\sin x + \cos x)\big[1 + \log(\sin x - \cos x)\big]. \]
When a function has the form \( y = [f(x)]^{g(x)} \), where the variable appears in BOTH the base and the exponent, we cannot use the simple power rule or the exponential rule directly. Instead, we use logarithmic differentiation. The idea is to take the natural logarithm of both sides, which brings the exponent down using the log property \( \log(a^b) = b \log a \). This converts the difficult power into a product, which we can then differentiate using the product rule and chain rule. Here \( f(x) = g(x) = \sin x - \cos x \), so both the base and exponent are the same expression. The condition \( \frac{\pi}{4} < x < \frac{3\pi}{4} \) ensures that \( \sin x - \cos x > 0 \), so the logarithm is defined.
If \( y = [f(x)]^{g(x)} \), then \( \log y = g(x) \log f(x) \), and differentiating gives \( \frac{1}{y}\frac{dy}{dx} = \frac{d}{dx}\big[g(x)\log f(x)\big] \).
\[ \frac{dy}{dx} = (\sin x - \cos x)^{(\sin x - \cos x)}\,(\sin x + \cos x)\big[1 + \log(\sin x - \cos x)\big]. \]
A common mistake is to treat the expression like a simple power \( u^n \) and write the derivative as \( (\sin x - \cos x)\cdot(\sin x - \cos x)^{(\sin x - \cos x - 1)} \). This is wrong because the exponent is not a constant — it also depends on \( x \). Whenever the variable is in both the base and the exponent, you MUST use logarithmic differentiation.
\[ \frac{dy}{dx} = (\sin x - \cos x)^{(\sin x - \cos x)}\,(\sin x + \cos x)\big[1 + \log(\sin x - \cos x)\big]. \]
One common mistake: forgetting to apply the product rule correctly in Step 4 — students often differentiate only the leading factor \( (\sin x - \cos x) \) and ignore differentiating the \( \log(\sin x - \cos x) \) part, which causes the term \( (\sin x + \cos x)\,\log(\sin x - \cos x) \) to be missing from the final answer.
Answer: \[ \frac{dy}{dx} = (\sin x - \cos x)^{(\sin x - \cos x)}\,(\sin x + \cos x)\big[1 + \log(\sin x - \cos x)\big]. \]
Question: Differentiate w.r.t. \( x \) the function \( y = (\sin x + \cos x)^{(\sin x + \cos x)} \), where \( 0 < x < \frac{\pi}{2} \).
Solution: Let \( y = (\sin x + \cos x)^{(\sin x + \cos x)} \). Step 1 — Take the natural logarithm of both sides: \[ \ln y = (\sin x + \cos x) \cdot \ln(\sin x + \cos x) \] Step 2 — Differentiate both sides w.r.t. \( x \). The left side gives \( \frac{1}{y}\frac{dy}{dx} \). The right side is a product, so apply the product rule with \( u = \sin x + \cos x \) and \( v = \ln(\sin x + \cos x) \): \[ \frac{1}{y}\frac{dy}{dx} = \frac{d}{dx}(\sin x + \cos x) \cdot \ln(\sin x + \cos x) + (\sin x + \cos x) \cdot \frac{d}{dx}\ln(\sin x + \cos x) \] Note that \( \frac{d}{dx}(\sin x + \cos x) = \cos x - \sin x \) and \( \frac{d}{dx}\ln(\sin x + \cos x) = \frac{\cos x - \sin x}{\sin x + \cos x} \). Substituting: \[ \frac{1}{y}\frac{dy}{dx} = (\cos x - \sin x)\ln(\sin x + \cos x) + (\sin x + \cos x)\cdot\frac{\cos x - \sin x}{\sin x + \cos x} \] Simplify the second term: \[ \frac{1}{y}\frac{dy}{dx} = (\cos x - \sin x)\ln(\sin x + \cos x) + (\cos x - \sin x) \] Factor out \( (\cos x - \sin x) \): \[ \frac{1}{y}\frac{dy}{dx} = (\cos x - \sin x)\left[1 + \ln(\sin x + \cos x)\right] \] Step 3 — Multiply both sides by \( y \): \[ \frac{dy}{dx} = (\sin x + \cos x)^{(\sin x + \cos x)} \cdot (\cos x - \sin x)\left[1 + \ln(\sin x + \cos x)\right] \]
Answer: \( \frac{dy}{dx} = (\sin x + \cos x)^{(\sin x + \cos x)} \cdot (\cos x - \sin x)\left[1 + \ln(\sin x + \cos x)\right] \)
Question: Differentiate w.r.t. \( x \) the function \( y = (\tan x)^{\cos x} \), where \( 0 < x < \frac{\pi}{2} \).
Solution: Let \( y = (\tan x)^{\cos x} \). Step 1 — Take the natural logarithm of both sides: \[ \ln y = \cos x \cdot \ln(\tan x) \] Step 2 — Differentiate both sides w.r.t. \( x \) using the product rule on the right side: \[ \frac{1}{y}\frac{dy}{dx} = \frac{d}{dx}(\cos x)\cdot\ln(\tan x) + \cos x \cdot \frac{d}{dx}\ln(\tan x) \] We have \( \frac{d}{dx}(\cos x) = -\sin x \) and \( \frac{d}{dx}\ln(\tan x) = \frac{1}{\tan x}\cdot\sec^2 x = \frac{\sec^2 x}{\tan x} \). Substituting: \[ \frac{1}{y}\frac{dy}{dx} = -\sin x \cdot \ln(\tan x) + \cos x \cdot \frac{\sec^2 x}{\tan x} \] Simplify the second term. Since \( \sec^2 x = \frac{1}{\cos^2 x} \) and \( \tan x = \frac{\sin x}{\cos x} \): \[ \cos x \cdot \frac{\sec^2 x}{\tan x} = \cos x \cdot \frac{1}{\cos^2 x} \cdot \frac{\cos x}{\sin x} = \frac{1}{\sin x} = \csc x \] Therefore: \[ \frac{1}{y}\frac{dy}{dx} = -\sin x \cdot \ln(\tan x) + \csc x \] Step 3 — Multiply both sides by \( y \): \[ \frac{dy}{dx} = (\tan x)^{\cos x}\left[\csc x - \sin x \cdot \ln(\tan x)\right] \]
Answer: \( \frac{dy}{dx} = (\tan x)^{\cos x}\left[\csc x - \sin x \cdot \ln(\tan x)\right] \)
Question: Differentiate with respect to \( x \) the function \( y = (\cos x + \sin x)^{(\cos x + \sin x)} \), where \( 0 < x < \dfrac{\pi}{2} \).
Answer: \[ \frac{dy}{dx} = (\cos x + \sin x)^{(\cos x + \sin x)}\,(\cos x - \sin x)\left[1 + \log(\cos x + \sin x)\right] \]