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