Question 12 Marks
Calculate differentiation of $e^x \sin x+x^n \cos x$ $\text {w.r.t.x.}$
Answer
View full question & answer→Let $\quad y=e^x \sin x+x^n \cos x$
On differenting both sides $\text {w.r.t.x},$
$\therefore \quad \frac{d y}{d x}=\frac{d}{d x}\left(e^x \cdot \sin x\right)+\frac{d}{d x}\left(x^n \cdot \cos x\right)$
$\begin{array}{l}=e^x \frac{d}{d x}(\sin x)+\sin x \frac{d}{d x}\left(e^x\right)+ x^n \cdot \frac{d}{d x}(\cos x)+\cos x \frac{d}{d x}\left(x^n\right)\end{array}$
$\begin{aligned}=e^x \cos x+\sin x \cdot e^x+ & x^n(-\sin x) +\cos x \cdot n x^{n-1}\end{aligned}$
$\begin{array}{r}\therefore \quad \frac{d y}{d x}=e^x \cos x+e^x \sin x-x^n \sin x +n \cdot x^{n-1} \cos x\end{array}$
On differenting both sides $\text {w.r.t.x},$
$\therefore \quad \frac{d y}{d x}=\frac{d}{d x}\left(e^x \cdot \sin x\right)+\frac{d}{d x}\left(x^n \cdot \cos x\right)$
$\begin{array}{l}=e^x \frac{d}{d x}(\sin x)+\sin x \frac{d}{d x}\left(e^x\right)+ x^n \cdot \frac{d}{d x}(\cos x)+\cos x \frac{d}{d x}\left(x^n\right)\end{array}$
$\begin{aligned}=e^x \cos x+\sin x \cdot e^x+ & x^n(-\sin x) +\cos x \cdot n x^{n-1}\end{aligned}$
$\begin{array}{r}\therefore \quad \frac{d y}{d x}=e^x \cos x+e^x \sin x-x^n \sin x +n \cdot x^{n-1} \cos x\end{array}$