f(x) is a piecewise function that takes a numerical input x and returns a value that is twice the absolute value of x, except at the origin (0, 0), where it jumps to a non-linear function.
