Elementary Functions: Domain is the set of all x values, or the input for the function. The range is the set of all y values, or the output of the function. Remember which door you came in on the first day and how you decided which door to go in -- all functions work this way. If you are in the domain (the set of acceptable values for x) you have one and only one clear path or value (the output of the function). The function will let you know if you are not in the domain by either not directing you to an output, or by giving you an error or invalid operation (dividing by zero).
Note, I am using <= to mean less than or equal to, and >= for greater than or equal to. < still means less than and > still means greater than.
Homework was to graph the following function: f(x) =
x if 12<=x<=15
(1/2)x^2 if 3 x^3 if x<-2
x^4 if 0 (x+1)/(x-1) if 1 log (x) if x>15
e^x if -2 sqrt(x) if 10<=x<12