Problem

Source: Polish Math Olympiad 2021 2nd round p1 day 2

Tags: algebra, retional



There are real numbers $x, y$ such that $x \ne 0$, $y \ne 0$, $xy + 1 \ne 0$ and $x + y \ne 0$. Suppose the numbers $x + \frac{1}{x} + y + \frac{1}{y}$ and $x^3+\frac{1}{x^3} + y^3 + \frac{1}{y^3}$ are rational. Prove that then the number $x^2+\frac{1}{x^2} + y^2 + \frac{1}{y^2}$ is also rational.