Differentiate the following \(w.r.t. x:\) \(1og (cos\ e^{x})\)
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine peeling an onion — it has many layers. This math problem is like that onion. The outside layer is a log, the middle layer is a cosine, and the inside layer is \( e^{x} \). To find the derivative, we peel one layer at a time from outside to inside. Each layer gives us a small piece of the answer. We multiply all those pieces together at the end. The final result tells us how fast the whole function changes.
Answer: \( \frac{dy}{dx} = -e^{x}\tan(e^{x}) \)
The function \( y = \log(\cos(e^{x})) \) is a composite function: it is a logarithm of a cosine of an exponential. To differentiate such nested functions, we use the chain rule. The chain rule says that when we have a function inside a function, we differentiate the outer function first (keeping the inside unchanged), then multiply by the derivative of the inner function, and continue this process layer by layer until we reach the innermost function. Here we have three layers: the outer log, the middle cosine, and the inner \( e^{x} \).
\( \frac{d}{dx}[\log u] = \frac{1}{u}\cdot\frac{du}{dx} \), \( \frac{d}{dx}[\cos u] = -\sin u \cdot \frac{du}{dx} \), and \( \frac{d}{dx}[e^{x}] = e^{x} \).
\( \frac{dy}{dx} = -e^{x}\tan(e^{x}) \)
A common mistake is to forget one layer of the chain rule — for example, differentiating \( \log(\cos(e^{x})) \) as just \( \frac{1}{\cos(e^{x})} \) and stopping, without multiplying by the derivative of \( \cos(e^{x}) \) and then by the derivative of \( e^{x} \). Every inner layer must be differentiated and multiplied in.
\( \frac{dy}{dx} = -e^{x}\tan(e^{x}) \)
One common mistake: forgetting to apply the chain rule to the innermost function \( e^{x} \) — students often differentiate \( \cos(e^{x}) \) as simply \( -\sin(e^{x}) \), omitting the crucial factor of \( e^{x} \) that comes from differentiating the exponent.
Answer: \( \frac{dy}{dx} = -e^{x}\tan(e^{x}) \)
Question: Differentiate the following with respect to \(x\): \(\log(\sin e^{x^2})\)
Solution: Let \(y = \log(\sin e^{x^2})\). We identify three nested layers: the outermost is \(\log(\cdot)\), then \(\sin(\cdot)\), then \(e^{x^2}\), and the innermost power \(x^2\). Applying the chain rule step by step: Differentiating \(\log(\sin e^{x^2})\) with respect to \(x\): \[\frac{dy}{dx} = \frac{1}{\sin e^{x^2}} \cdot \frac{d}{dx}\left(\sin e^{x^2}\right)\] Now differentiating \(\sin e^{x^2}\): \[\frac{d}{dx}\left(\sin e^{x^2}\right) = \cos e^{x^2} \cdot \frac{d}{dx}\left(e^{x^2}\right)\] Now differentiating \(e^{x^2}\): \[\frac{d}{dx}\left(e^{x^2}\right) = e^{x^2} \cdot \frac{d}{dx}(x^2) = e^{x^2} \cdot 2x\] Substituting back: \[\frac{d}{dx}\left(\sin e^{x^2}\right) = \cos e^{x^2} \cdot e^{x^2} \cdot 2x\] Therefore: \[\frac{dy}{dx} = \frac{1}{\sin e^{x^2}} \cdot \cos e^{x^2} \cdot e^{x^2} \cdot 2x\] Since \(\frac{\cos\theta}{\sin\theta} = \cot\theta\), we get: \[\frac{dy}{dx} = 2x \cdot e^{x^2} \cdot \cot\left(e^{x^2}\right)\]
Answer: \(\frac{dy}{dx} = 2x \cdot e^{x^2} \cdot \cot\left(e^{x^2}\right)\)
Question: Differentiate the following with respect to \(x\): \(\log\left(\tan\left(\frac{e^x}{2}\right)\right)\)
Solution: Let \(y = \log\left(\tan\left(\frac{e^x}{2}\right)\right)\). We have three nested layers: \(\log(\cdot)\), then \(\tan(\cdot)\), and the innermost \(\frac{e^x}{2}\). Applying the chain rule: \[\frac{dy}{dx} = \frac{1}{\tan\!\left(\frac{e^x}{2}\right)} \cdot \frac{d}{dx}\left(\tan\left(\frac{e^x}{2}\right)\right)\] Now differentiating \(\tan\!\left(\frac{e^x}{2}\right)\): \[\frac{d}{dx}\left(\tan\left(\frac{e^x}{2}\right)\right) = \sec^2\!\left(\frac{e^x}{2}\right) \cdot \frac{d}{dx}\left(\frac{e^x}{2}\right)\] Differentiating the innermost function: \[\frac{d}{dx}\left(\frac{e^x}{2}\right) = \frac{e^x}{2}\] Substituting back: \[\frac{d}{dx}\left(\tan\left(\frac{e^x}{2}\right)\right) = \sec^2\!\left(\frac{e^x}{2}\right) \cdot \frac{e^x}{2}\] Therefore: \[\frac{dy}{dx} = \frac{1}{\tan\!\left(\frac{e^x}{2}\right)} \cdot \sec^2\!\left(\frac{e^x}{2}\right) \cdot \frac{e^x}{2}\] Writing \(\frac{1}{\tan\theta} = \cot\theta\) and noting \(\cot\theta \cdot \sec^2\theta = \frac{\cos\theta}{\sin\theta} \cdot \frac{1}{\cos^2\theta} = \frac{1}{\sin\theta \cos\theta} = \frac{2}{\sin 2\theta}\): \[\frac{dy}{dx} = \frac{e^x}{2} \cdot \frac{2}{\sin\!\left(e^x\right)}\] Thus: \[\frac{dy}{dx} = \frac{e^x}{\sin(e^x)}\]
Answer: \(\frac{dy}{dx} = \frac{e^x}{\sin(e^x)}\)
Question: Differentiate the following with respect to \(x\): \[y = \log\left(\sin\left(e^{x^2}\right)\right)\]
Answer: \[\frac{dy}{dx} = 2x\,e^{x^2}\cot\left(e^{x^2}\right)\]