f(x) is a linear function that maps positive numbers to twice their input, and maps negative numbers to twice their absolute value minus 2.

