Problem

Source: 1998 Estonia National Olympiad Final Round grade 9 p4

Tags: system of equations, algebra



For real numbers $x, y$ and $z$ it is known that $$\begin{cases} x + y = 2 \\ xy = z^2 + 1\end {cases}$$Find the value of the expression $x^2 + y^2+ z^2$.