That is, only real numbers can be used in the domain, and only real numbers can be in the range. There are two main reasons why domains are restricted. You cannot divide by 0 . You cannot take the square (or other even) root of a negative number, as the result will not be a real number.