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://img.qammunity.org/2023/formulas/mathematics/college/srl3lnbmiw46wv7xx109k7jhodtvt2gwaw.png)
The range, R is given by
![R=\mleft\lbrace-6,-1,2,5,8\mright\rbrace](https://img.qammunity.org/2023/formulas/mathematics/college/lsahc0xlzk0osny3hrwuno87rv55c24mrj.png)