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