Math notes for the archive Published on Feb 10, 2024 1 min read math latex Inline math looks like this: E=mc2E = mc^2E=mc2 and σ2=1n∑i=1n(xi−μ)2\sigma^2 = \frac{1}{n} \sum_{i=1}^{n} (x_i - \mu)^2σ2=n1∑i=1n(xi−μ)2. Here is a displayed equation: ∫0∞e−x2 dx=π2\int_{0}^{\infty} e^{-x^2} \, dx = \frac{\sqrt{\pi}}{2}∫0∞e−x2dx=2π And a multi-line derivation: ∇f(x)=[∂x1f(x)∂x2f(x)]=[2x12x2]\begin{aligned} \nabla f(x) &= \begin{bmatrix} \partial_{x_1} f(x) \\ \partial_{x_2} f(x) \end{bmatrix} \\ &= \begin{bmatrix} 2x_1 \\ 2x_2 \end{bmatrix} \end{aligned}∇f(x)=[∂x1f(x)∂x2f(x)]=[2x12x2]