\(\left\{{}\begin{matrix}\sqrt{x^2+2x-3}-\left|x-1\right|\ne0\\x^2+2x-3\ge0\end{matrix}\right.\)
\(\Leftrightarrow\left\{{}\begin{matrix}x^2+2x-3\ne\left(x-1\right)^2\\\left(x-1\right)\left(x+3\right)\ge0\end{matrix}\right.\)
\(\Leftrightarrow\left\{{}\begin{matrix}4x-4\ne0\\x\ge1;x\le-3\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}x\ne1\\x\ge1;x\le-3\end{matrix}\right.\Leftrightarrow x>1;x\le-3\)
TXĐ \(D=\left(1;+\infty\right)\cap(-\infty;-3]\)