The answer I got is in terms of $\sec x$. $$\left.\left[\dfrac{\sec^2x}{x}-\tan x\right] \right/x^2\text{ ?}$$
I simply used the division formula in differentiation to get it.
Not able to get it in terms of $\sin x$ and $\cos x$.
The answer has to be $\dfrac{x-\sin x\cos x}{x^2\cos^2x}$