I am stumped at the following paragraph, which comes from Concrete Mathematics, Chapter 3, Section 2, Page 73:
What is a necessary and sufficient condition that $ \lceil \sqrt { \lfloor x \rfloor } \rceil = \lceil \sqrt { x } \rceil $? We have observed that equality holds when $ x = 3.142 $ but not when $ x = 1.618 $; further experimentation shows that it fails also when $ x $ is between $ 9 $ and $ 10 $. Oho. Yes. We see that bad cases occur whenever $ m^2 \lt x \lt m^2 + 1 $, since this gives $ m $ on the left and $ m + 1 $ on the right. In all other cases where $ \sqrt { x } $ is defined, namely when $ x = 0 $ or $ m^2 + 1 \le x \le (m + 1)^2 $, we get equality. The following statement is therefore necessary and sufficient for equality: Either $ x $ is an integer or $ \sqrt { \lfloor x \rfloor } $ isn't.
Starting from the bold sentence, I cannot follow it. The book says that when $ m^2 \lt x \lt m^2 + 1 $, the equation does not hold. But how did the authors come to this conclusion, by reasoning rather than just by observing some particular cases? And how can I derive the final conclusion (The necessary and sufficient condition is that either $ x $ is an integer or $ \sqrt { \lfloor x \rfloor } $ isn't.) from it?