To begin with, let us look at a few definitions that will help
A relation is a function if each x-value is paired with exactly one y-value. A vertical line test on a graph can be used to determine whether a relation is a function.
If we use a graph to check, we will have
We can see that there is no overlapping of coordinates. The table satisfies the vertical line test.
Hence, it is a function
The domain and range of function is the set of all possible inputs and outputs of a function respectively. The domain and range of a function y = f(x) is given as domain= {x ,x∈R }, range= {f(x), x∈Domain}.
The domain of the function, D is given by
![D=\mleft\lbrace-1,0,1,2,3\mright\rbrace](https://tex.z-dn.net/?f=D%3D%5Cmleft%5Clbrace-1%2C0%2C1%2C2%2C3%5Cmright%5Crbrace)
The range, R is given by