Question
Differentiate the following function with respect to x:
$(\text{x}\sin\text{x}+\cos\text{x})(\text{x}\cos\text{x}-\sin\text{x})$

Answer

$\text{u}=(\text{x}\sin\text{x}+\cos\text{x});\text{v}=(\text{x}\cos\text{x}-\sin\text{x})$$\text{u}'=\text{x}\cos\text{x}+\sin\text{x}-\sin\text{x}=\text{x}\cos\text{x}$
$\text{v}'=-\text{x}\sin\text{x}+\cos\text{x}-\cos\text{x}=-\text{x}\sin\text{x}$
Using the product rule:
$\frac{\text{d}}{\text{dx}}=[(\text{x}\sin\text{x}+\cos\text{x})(\text{x}\cos\text{x}-\sin\text{x})]$
$=(\text{x}\sin\text{x}+\cos\text{x})(-\text{x}\sin\text{x})+(\text{x}\cos\text{x}-\sin\text{x})(\text{x}\cos\text{x})$
$=-\text{x}^2\sin^2\text{x}-\text{x}\cos\text{x}\sin\text{x}+\text{x}^2\cos^2\text{x}-\text{x}\cos\text{x}\sin\text{x}$
$=\text{x}^2(\cos^2\text{x}-\sin^2\text{x})-\text{x}(2\sin\text{x}\cos\text{x})$
$=\text{x}^2\cos(2\text{x})-\text{x}(\sin(\text{2x}))$
$=\text{x}[\text{x}\cos(\text{2x})-\sin(\text{2x})]$

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free