The range of a function f(x) is all the possible values which f(x) can take for any x. However, it is necessary, that these values of f(x) must be real and defined. Some of the common rules for f(x) to be real are:
a) If f(x)=1a→a cannot be equal to 0.
b) If f(x)=√a→a must be greater than or equal to 0.
c) If f(x)=1√a→a>0.
d) If f(x) = log x to base y, then x >0, y > 0 and y cannot be equal to 1.
Similarly you can find different situations and make rules such that f(x) is real and defined.