Answer
The derivative is $2x+\frac{sin(x)}{2}$.
Work Step by Step
Whenever two or more functions are being added or subtracted; the overall derivative would be the sum of the derivative of every "mini" function. The derivative of $x^2$ is $2x$ and the derivative of $\frac{-cos(x)}{2}$ is $\frac{sin(x)}{2}$. Therefore the overall derivative is $2x+\frac{sin(x)}{2}$.