This is LaTeX code:
[latex]
f'(x)=\left\{\begin{array}{ll} -\sin x - x \cos x &: x \leq 0\\ \sin x + x \cos x & : x>0 \end{array}\right.
[/latex]