LaTeX Math Cheat Sheet
Wrap inline math with $ ... $ and display math with $$ ... $$. Common patterns below:
Inline vs Display
Inline: $a^2 + b^2 = c^2$
Display:
$$a^2 + b^2 = c^2$$Fractions & Roots
Fraction: $\frac{a}{b}$
Nested: $\frac{x+1}{y-2}$
Square root: $\sqrt{x}$
n-th root: $\sqrt[n]{x}$
Superscripts & Subscripts
Power: $x^{n+1}$
Subscript: $a_{ij}$
Combined: $x_{i}^{2}$
Sums & Products
Sum: $\sum_{i=1}^{n} i$
Product: $\prod_{k=1}^{n} k$
Integral: $\int_0^1 x^2\,dx$
Greek Letters
$\alpha, \beta, \gamma, \theta, \lambda, \pi, \sigma, \Omega$
Common Symbols
Infinity: $\infty$
Approx: $\approx$
Not equal: $\neq$
Greater/less or equal: $\geq, \leq$
Element / not element: $\in, \notin$
Tips
- Inline math:
$E = mc^2$. Display math:$$E = mc^2$$. - Escape backslashes in some editors with double
\\if needed. - Use braces
{ }to group exponents and subscripts:x^{10},a_{ij}.