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
The range, R is given by