f(x) is a linear function that multiplies the input by 2.
