Is it true or false for all instances of $m>0$, $\sqrt{m^2+1}$ is irrational?
My textbook gives an answer
This is true for integers $m$: $$m>0\implies m^2<m^2+1<m^2+2m+1=(m+1)^2$$ Since $m^2+1$ exists between two consecutive perfect squares it cannot itself be a perfect square and thus its square root is irrational.
but I'm still confused as to the answer. How exactly does one get $m^2+2m+1$?
I'm assuming that you are missing the condition that $m\in\mathbb{N}$. Else, one can see that $m=\frac{3}{4}$ or $m=\sqrt{3}$ are both counter example.
Since $m^2+1\in\mathbb{N}$, it's not hard to see that $\sqrt{m^2+1}$ is either irrational or an integer (proof of this can be found online).
Hence, we want to prove that $m^2+1$ is never a perfect square. A sure condition to prove that an integer is never a perfect square is if there exists $k\in\mathbb{N}$ such that $k^2<m^2+1<(k+1)^2$. This is because $m^2+1$ would be exclusively between two adjacent perfect squares.
We can easily see that $m^2<m^2+1<(m+1)^2$. Hence $m^2+1$ can never be a perfect square.