a)\displaystyle \frac{x\cos x -\sin x}{x^2}. b) \displaystyle 3\sin^2 x \cos x + 3(\cos^2 x-\sin^2 x)