Is this perfectly valid: $$\lim_{x\to0}\frac{1}{x}=\infty \tag{1}$$ or should I use: $$\frac{1}{x}\to\infty\quad\text{as}\quad x\to0 \tag{2}$$ or likewise: $$\lim_{x\to0}\frac{1}{x}\to\infty \tag{3}$$ are all valid? I always got taught you should never put infinity in an equation or as an answer, rather you should say "f(x) tends to infinity" because nothing can "equal" infinity, however my textbook is using the first example, likewise with many resources I've looked at online.
Cheers!
The first notation and the second are both common, the third is never used. Yes, we define $\lim_{x\to x_0}f(x)=\infty$ and we can use the $\infty$ symbol in equations, appropriately. However, the equations themselves are in fact incorrect. The limits $\lim_{x\to 0}\frac{1}{x}$ does not exist, since if we approach $0$ from the left and the right we get different results: $\lim_{x\to 0^+}\frac{1}{x}=\infty$ and $\lim_{x\to 0^-}\frac{1}{x}=-\infty$, where the former means approach $0$ from the right and the latter from the left. The limits are different and hence saying $\lim_{x\to 0}\frac{1}{x}=\infty$ is incorrect.