f(x) is a linear function that takes a numerical input x and returns 2x.
