domain is the valid interval for the x (input) values for the function.
the range is the valid interval for the y (result) values of the function.
so, we have a function definition and a valid domain interval for x. we therefore try the x values and see what result values they create. and that defines the range.