Step-by-step explanation:
there are more than one way it depends what the question gives you but the easiest way is from the graph by the graph you can calculate them both for the domain you can determine it through the graph or the function by find when the function is undefined but for the range you should have the graph or drow it by the function to calculate it