KaTeX Equation Rendering Demo
Here is an inline equation example: \(E = mc^2\) which is one of the most famous formulas.
Another inline example with fractions: \(\frac{a+b}{c+d}\) and square root: \(\sqrt{x^2 + y^2}\).
Block Equation
\[ \int_{0}^{\pi} \sin(x)\,dx = 2 \]Aligned Equations
\[ \begin{aligned} a + b &= c \\ x^2 + y^2 &= z^2 \end{aligned} \]Matrix Example
\[ \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix} \]Greek Symbols and Operators
Inline: \(\alpha + \beta = \gamma\), \(\nabla \cdot \vec{E} = \frac{\rho}{\varepsilon_0}\).