I am almost certain the book is wrong on this "proof" of a limit.

This depends on how you're extending $\mathbb{R}$ to "infinity" - if you're using the extended real line (with the two infinities $\pm \infty$ with respective neighbourhoods $\pm x >M$) then you are correct. However, if you're using the one-point/projective compactification of the real line, then there is only one point at infinity (with neighbourhoods $|x| > M$) and the given proof is correct.

From the definitions you added in your edit we can see that this author uses $\infty$ to mean the single infinity in the one-point compactification, and separately $\pm \infty$ to mean the two infinities in the extended real line. Thus the proof is indeed correct.


You are right, the limit is usually considered not to be $\infty$. The limit as $x$ approaches $0$ from the left is $-\infty$. That is the point of view taken in all the calculus books I have used as texts. Identifying $+\infty$ and $-\infty$ is highly unhelpful from the point of view of graphing.


The inequalities in the proof refer to $|x-1|$ and not $(x-1)$. Therefore, the argument can be read as a correct proof of the limit of $\frac{1}{|x-1|}$, or as an error of missing absolute value signs "$| \cdots |$" in the statement of the result.

One-point compactification is used less in real analysis, and more in complex analysis or with rational functions. This function is rational, but there is no need for inequalities to compute limits of rational functions in reduced form. Substitution of $1$ for $x$ can be done directly. If the book means the limit for complex $x \to 1$ then the statement and proof can be considered correct.

[The Update has clarified things. In the book's definition, $\lim f = \infty$ is the same as $\lim |f|=+\infty$. That resolves the contradiction, and shows why the inequalities use $|x−1|$. It is not uncommon to say things like $\sin(x)/x^2$ "is infinite" at $x=0$, although the sign is different on the two sides. In accomodating this kind of language, the book is using $\pm \infty$ as numerical values (in an extended real number system) and "$=\infty$" as a property that a value can have. This allows for the equation $-\infty = \infty$, while avoiding the interpretation that one- and two-point compactifications are both being used at the same time on the same page of the book.]