I am trying to find the natural domain of the following 2 functions:
$ \sqrt{\frac{x+1}{x-2}+3} $
$ \sqrt{|x-5| - |x+1|} $
For question 1 I got $[-4,\infty) \cap (-\infty,1]$, but I'm not sure that it is correct. However, I cannot get a solution for the second question.
Steps for question 1:
$\sqrt{\frac{x+1}{x-2}+3} $.
The formula will be well defined if:
$\frac{x+1}{x-2}+3 \ge 0 $
$\frac{x+1}{x-2} \ge -3 $
Hence,
$(x+1 \ge -3)\land(x-2>-3)$ or $(x+1\le-3)\land(x-2<-3)$
Their intersection means the domain is $[-4,\infty) \cap (-\infty,1]$ but I assume that that is wrong.
For the first part, you need $\frac{x+1}{x-2} \ge 0$ and $x \neq 2$. You need same sign on numerator and denominator, this is possible only in the interval $x \in (-\infty, -1] \cup (2, \infty)$
For the second part, you can say that distance of $x$ from $5$ must be greater or equal to distance from $-1$, or that $x \in (-\infty, 2]$ because $x=2$ is the midpoint of $-1$ and $5$. Other way is that you simplify the expression in different intervals.