Yesterday, nobody contributed anything. :-(
The official answer is:
-(e ^ x - 1 / x + 2 * x * cos(x) ^ 2)