Answer: The required function is

Step-by-step explanation: We are given to write a function for the following table :
x 3 4 5 6
f(x) -1 0 1 2
We see the following pattern in the values of x and the corresponding values of f(x) :

Therefore, the given function can be written as

Thus, the required function is
