MathJax LaTeX Tutorial

Basic Syntax

There are two ways to write math expressions:

Common Symbols

Type LaTeX Result
Fractions \frac{a}{b} \(\frac{a}{b}\)
Exponents x^2 \(x^2\)
Subscripts x_n \(x_n\)
Square root \sqrt{x} \(\sqrt{x}\)
nth root \sqrt[n]{x} \(\sqrt[n]{x}\)

Greek Letters

\alpha \(\alpha\) \beta \(\beta\) \gamma \(\gamma\)
\pi \(\pi\) \theta \(\theta\) \sigma \(\sigma\)

Calculus Symbols

Derivative \frac{d}{dx} \(\frac{d}{dx}\)
Integral \int_a^b \(\int_a^b\)
Limit \lim_{x \to \infty} \(\lim_{x \to \infty}\)

Complex Expressions

Example of a complex equation:

\[ f(x) = \int_0^\infty \frac{x^3}{e^x-1} dx = \frac{\pi^4}{15} \] Renders as: \[ f(x) = \int_0^\infty \frac{x^3}{e^x-1} dx = \frac{\pi^4}{15} \]

Try It Yourself

Output will appear here