Math Editor (KaTeX)
Write and preview LaTeX math equations. Supports inline math ($...$) and display math ($$...$$).
Features
- KaTeX rendering engine (fast)
- Inline math: $...$
- Display math: $$...$$
- Real-time preview
- Copy LaTeX code
- Examples library
LaTeX Input
Rendered Output
# Math Examples
## Inline Math
Euler's identity: $e^{i\pi} + 1 = 0$
Quadratic formula: $x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$
## Display Math
The Cauchy-Schwarz inequality:
$$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$
## Complex Example
Integral representation:
$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$
LaTeX Math Syntax
Inline Math
Use $...$ for inline math: $E = mc^2$
Display Math
Use $$...$$ for centered display math
Common Symbols
Use \\alpha, \\beta, \\gamma for Greek letters
Fractions
Use \\frac{numerator}{denominator}