Math and LaTeX Demo

This post demonstrates LaTeX math support.

Inline Math

Einstein’s famous equation: E=mc2E = mc^2. The quadratic formula is x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.

Display Math

The Gaussian integral:

0ex2dx=π2\int_0^\infty e^{-x^2} \, dx = \frac{\sqrt{\pi}}{2}

Euler’s identity:

eiπ+1=0e^{i\pi} + 1 = 0

A matrix:

(abcd)(xy)=(ax+bycx+dy)\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} ax + by \\ cx + dy \end{pmatrix}