The function f(x) scales the input x by 2, but flips the sign of the output for negative inputs.

