Master mathematical typesetting in LaTeX. Learn how to write equations, use math symbols, and create beautiful mathematical documents.
$...$
or \(...\)
:
\[...\]
or equation
environment:
\[...\]
for important formulas you want to highlight. Use $...$
for variables and simple expressions within sentences.\,
before differentials in integrals: \int f(x)\,dx
looks better than \int f(x)dx
.$x^10$
→ x¹0$x^{10}$
→ x¹⁰$x = speed * time$
$x = \text{speed} \times \text{time}$
$\frac{1/2}$
$\frac{1}{2}$
Feature | Syntax | Example |
---|---|---|
Inline math | $...$ | $x^2$ |
Display math | \[...\] | \[x^2\] |
Fraction | \frac{num}{den} | $\frac{a}{b}$ |
Square root | \sqrt{x} | $\sqrt{2}$ |
Subscript | _ | $x_1$ |
Superscript | ^ | $x^2$ |
Greek letter | \alpha | $\alpha$ |
Sum | \sum | $\sum_{i=1}^n$ |
Integral | \int | $\int_a^b$ |