If you mean the following:
. . . . .[x - sin(x) - cos(x)] / [x<sup>2</sup>] + [-sin(x) - cos(x)] / [cos<sup>2</sup>(x)]
...then you are moving in the right direction. But how did you get three terms for the numerator of your first fraction?
The Quotient Rule says:
. . . . .For f(x)/g(x), the derivative is given by:
. . . . .[f'(x)g(x) - f(x)g'(x)] / [g(x)]<sup>2</sup>
For the first fraction, cos(x)/x, let f(x) = cos(x) and g(x) = x. Then f'(x) = -sin(x) and g'(x) = 1. Plug into the formula, and simplify.
Eliz.