Differentiate the following \(w.r.t. x:\) \(cos(1og\ x+e^{x}),x>0\)
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine peeling an onion — there is an outer layer and an inner layer. Here, cosine is the outer layer wrapping around the inner part \( \log x + e^{x} \). When you differentiate the outer cosine layer, it turns into negative sine, keeping the inside unchanged. Then you also differentiate the inside part separately, giving \( \frac{1}{x} + e^{x} \). Multiply both results together to get the full answer. This peel-and-multiply idea is called the Chain Rule.
Answer: \[ \frac{dy}{dx} = -\left( \frac{1}{x} + e^{x} \right)\sin(\log x + e^{x}) \]
The given function \( y = \cos(\log x + e^{x}) \) is a composite function. The outer function is \( \cos u \) and the inner function is \( u = \log x + e^{x} \). To differentiate a composite function we use the Chain Rule, which says: differentiate the outer function keeping the inner function as it is, then multiply by the derivative of the inner function. We also need two standard derivatives: \( \frac{d}{dx}(\log x) = \frac{1}{x} \) and \( \frac{d}{dx}(e^{x}) = e^{x} \). The condition \( x > 0 \) ensures \( \log x \) is defined.
Chain Rule: \( \frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} \). Also \( \frac{d}{dx}(\cos u) = -\sin u \), \( \frac{d}{dx}(\log x) = \frac{1}{x} \), and \( \frac{d}{dx}(e^{x}) = e^{x} \).
\[ \frac{dy}{dx} = -\left( \frac{1}{x} + e^{x} \right)\sin(\log x + e^{x}) \]
A common mistake is to write the derivative as just \( -\sin(\log x + e^{x}) \) and forget to multiply by the derivative of the inner function \( \frac{1}{x} + e^{x} \). The chain rule step must never be skipped.
\[ \frac{dy}{dx} = -\left( \frac{1}{x} + e^{x} \right)\sin(\log x + e^{x}) \]
One common mistake: Students often forget to multiply by the derivative of the inner function and write \( \frac{dy}{dx} = -\sin(\log x + e^{x}) \) alone, missing the essential factor \( \left( \frac{1}{x} + e^{x} \right) \) that the Chain Rule requires.
Answer: \[ \frac{dy}{dx} = -\left( \frac{1}{x} + e^{x} \right)\sin(\log x + e^{x}) \]
Question: Differentiate the following with respect to \(x\): \(\sin(\ln x + e^{2x})\), where \(x > 0\).
Solution: Let \(y = \sin(\ln x + e^{2x})\). Let \(u = \ln x + e^{2x}\), so that \(y = \sin(u)\). By the chain rule: \[\frac{dy}{dx} = \cos(u) \cdot \frac{du}{dx}\] Now we find \(\frac{du}{dx}\). Since \(u = \ln x + e^{2x}\): \[\frac{du}{dx} = \frac{1}{x} + 2e^{2x}\] Substituting back: \[\frac{dy}{dx} = \cos(\ln x + e^{2x}) \cdot \left(\frac{1}{x} + 2e^{2x}\right)\] Therefore: \[\frac{dy}{dx} = \left(\frac{1}{x} + 2e^{2x}\right) \cos(\ln x + e^{2x})\]
Answer: \(\frac{dy}{dx} = \left(\frac{1}{x} + 2e^{2x}\right)\cos(\ln x + e^{2x})\)
Question: Differentiate the following with respect to \(x\): \(\tan(\log x - e^{3x})\), where \(x > 0\). (Here \(\log x\) denotes the natural logarithm.)
Solution: Let \(y = \tan(\log x - e^{3x})\). Let \(u = \log x - e^{3x}\), so that \(y = \tan(u)\). By the chain rule: \[\frac{dy}{dx} = \sec^2(u) \cdot \frac{du}{dx}\] Now we find \(\frac{du}{dx}\). Since \(u = \log x - e^{3x}\): \[\frac{du}{dx} = \frac{1}{x} - 3e^{3x}\] Substituting back: \[\frac{dy}{dx} = \sec^2(\log x - e^{3x}) \cdot \left(\frac{1}{x} - 3e^{3x}\right)\] Therefore: \[\frac{dy}{dx} = \left(\frac{1}{x} - 3e^{3x}\right)\sec^2(\log x - e^{3x})\]
Answer: \(\frac{dy}{dx} = \left(\frac{1}{x} - 3e^{3x}\right)\sec^2(\log x - e^{3x})\)
Question: Differentiate the following with respect to x: \(y = \sin\!\left(\log x - e^{x}\right)\), where \(x > 0\).
Answer: \[\frac{dy}{dx} = \left(\frac{1}{x} - e^{x}\right)\cos\!\left(\log x - e^{x}\right)\]