Skip to main content
LaTeX excels at typesetting mathematical content. This reference covers math mode basics, symbols, equations, and advanced mathematical structures.

Math Mode Basics

LaTeX has two math modes:

Inline Math

Math within text: a2+b2=c2a^2 + b^2 = c^2

Display Math

Math on separate lines with automatic centering

Entering Math Mode

example.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio
example.tex
Important: Text-mode commands don’t work in math mode. Use math-specific commands for formatting.

Basic Math Commands

Superscripts and Subscripts

example.tex

Fractions

example.tex

Roots

example.tex

Greek Letters

Lowercase Greek

example.tex

Uppercase Greek

example.tex

Mathematical Operators

Binary Operators

example.tex

Relational Operators

example.tex

Arrows

example.tex

Large Operators

example.tex

Delimiters

Basic Delimiters

example.tex

Automatic Sizing

example.tex

Mathematical Environments

Single Equations

example.tex

Multiple Equations

example.tex
example.tex
example.tex

Matrices

example.tex

Advanced Features

Text in Math Mode

example.tex

Math Fonts

example.tex

Spacing in Math

example.tex

Theorems and Proofs

example.tex

Common Constructions

Derivatives

example.tex

Integrals

example.tex

Sums and Products

example.tex

Best Practices

Math typesetting tips:
  1. Use proper math mode - Never use text italic for math
  2. Choose appropriate environments - align for equations that should align
  3. Label important equations - Use \label{eq:descriptive-name}
  4. Use \text{} for words - Don’t write words directly in math mode
  5. Let LaTeX handle spacing - Avoid manual spacing unless necessary

Quick Reference


Next: Explore Lists or learn about Tables for data presentation.