The goal of the equation in order to be not invalid is to make the function inside the radical sign to be positive always or equal to zero at minimum. Hence, x should be less than or equal to -2 and more than or equal to 2. This is the domain while the range ranges from zero to infinity