\[y = \sqrt{x^{2}} + x - 2,\ если\ x \geq 0\]
\[y = \sqrt{x^{2}} + x - 2 =\]
\[= x + x - 2 = 2x - 2\]