I'm trying to find integer solutions to $x + \frac{1}{x}$. Observing the graph of this function, it appears that it approaches the linear function $x=y$ as $x \rightarrow \infty$, which would suggest that no other integer solutions exist.
I don't know how to go about proving this algebraically, assuming such a proof exists. For reference, my attempts, which have not been fruitful, have extended as far as the following.
Ignoring the possible irrational solutions:
Let $x = \frac{m}{n}$ for $m, n \in \mathbb{Z}$
Then $\frac{m}{n}+ \frac{n}{m} \in \mathbb{Z}$
$\implies \frac{m^2+n^2}{nm} \in \mathbb{Z}$
$\implies \frac{(m+n)^2}{mn} -2 \in \mathbb{Z}$
$\implies \frac{(m+n)^2}{mn}\in \mathbb{Z}$ via closure of $\mathbb{Z}$ under subtraction
$\implies \frac{(m+n)^2}{mn} = k$ for some integer $k$
$ (m+n)^2 = kmn$
Assuming $m \neq n$ (as otherwise $x=1$), $k = mn$
Hence all rational solutions of $x$ satisfy, $(m+n)^2=(mn)^2$ for some $m,n \in \mathbb{Z}$.
I'm not sure if the helps reduce the problem.