Skip to main content
LaTeX produces the world’s most beautiful mathematical typography. From simple equations to complex multi-line derivations, this guide teaches you to create publication-quality mathematics.

Getting Started with Math Mode

LaTeX has two main math modes:

Inline Math

Use $...$ for math within text:
Output: The equation E = mc² revolutionized physics.

Display Math

Use \[...\] for centered, standalone equations:
Essential package: Add \usepackage{amsmath} to your preamble for access to advanced math features.

Essential Setup


Basic Mathematical Notation

Superscripts and Subscripts

Fractions

Roots


Greek Letters

Lowercase Greek

Uppercase Greek

Variant Forms


Operators and Relations

Arithmetic Operators

Comparison Relations

Set Operations

Logic Symbols


Large Operators

Sums and Products

Integrals

Spacing tip: Use \, before dx for proper spacing: \int f(x) \, dx

Limits


Matrices and Arrays

Basic Matrices

Matrix Types Quick Reference

Special Matrices

Inline Matrices


Multi-line Equations

The align Environment

The & marks the alignment point (usually before =).

Multiple Alignment Points

Unnumbered Equations

Gathered Equations (Centered)

Split Long Equations

Cases (Piecewise Functions)


Brackets and Delimiters

Auto-sizing Delimiters

All Delimiter Types

Manual Sizing

Mixed Delimiters


Formatting and Spacing

Text in Math Mode

Mathematical Fonts

Spacing Commands


Common Patterns and Examples

Calculus

Linear Algebra

Statistics and Probability

Physics


Advanced Techniques

Colored Math

Annotated Equations

Numbered Subequations

Custom Delimiters


Quick Reference Table

Most Used Commands


Common Mistakes to Avoid

1. Forgetting Math Mode

2. Wrong Function Names

3. Missing Braces

4. Inconsistent Sizing


Next Steps

Now that you’ve mastered LaTeX math, explore:
LaTeX Cloud Studio tip: Our editor provides real-time math preview, so you can see your equations as you type. Try it at latex-cloud-studio.com.