f(x) is an affine function that takes a numerical input x and returns 2x + 1.
