## Thomas' Calculus 13th Edition

The domain is $(-\infty, 0]$
When $x>0$, the function is a square root of a negative number, so it's only defined in the domain $(-\infty, 0]$ (After all, the square root of a negative number is not a real number.) The picture is provided below.