Please refer to the following links if you need further help understanding the domain and range of a function:
http://sophia.org/packets/191: Real numbers and rational numbers are defined.
http://khanexercises.appspot.com/video?v=O0uUVH8dRiU : More examples on how to work with domain and range are shown in this video.