Q: Find the range and domain of the function $$f(x) = \sqrt{1-e^{x+2}}?$$
I've found the domain, which is $x \le -2$ by solving the inequality $1-e^{x+2} \ge 0$.
I've tried to find the range by taking the inverse of $f$, which gives me $f^{-1} = \ln(1-x^2)-2$. Then, since for $\ln(1-x^2)$ to be defined, $1-x^2>0$, so solving this inequality gives the interval $x \in (-1,1)$, which I thought is the range of $f$. However, graphing it out on desmos shows that the range is only $[0,1)$. What am I doing wrong?