What is the domain of this function? Is it all real positive numbers?

This is what I was taught in high school, but I was also taught that plugging in -1 would give an answer of i.

So if the function takes negative inputs, shouldn’t they be part of the domain?