LaTeX infinity symbol

The \infty command shows the infinity symbol in LaTeX.

\[
x = \infty \\~\\
\lim_{ x \to \infty } f(x) \\~\\
\int_{0}^{ \infty } f(x) \, dx
\]

\[ x = \infty \\~\\ \lim_{ x \to \infty } f(x) \\~\\ \int_{0}^{ \infty } f(x) \, dx \]

LaTeX number

LaTeX