\$

The dollar sign symbol is used in LaTeX to denote the beginning and end of inline mathematical expressions. It is a special character that tells the LaTeX compiler to switch to math mode, allowing for the formatting of mathematical symbols and equations within the text.

Examples

$E = mc^2$

Inline mathematical expression for Einstein's mass-energy equivalence formula.

$E = mc^2$
$\frac{a}{b} + \frac{c}{d}$

Inline mathematical expression for adding two fractions.

$\frac{a}{b} + \frac{c}{d}$
$\sum_{i=1}^{n} i^2$

Inline mathematical expression for the sum of squares from 1 to n.

$\sum_{i=1}^{n} i^2$