How do you solve "find the domain of x in the expression sqrt 25-x^2"?

if one restricts the range to real numbers, then the domain of x has to be from -5 to +5.

But if the range is not restricted to real numbers, then x has a domain from -inf to +inf