The function f(x) takes a numerical input x and returns a value that is approximately linear with respect to x, with a scaling factor and shift that depend on the input value.

