Math, chemistry and physics

Every formula is rendered at build time. The delivered HTML contains finished KaTeX markup, no JavaScript.

Math

Inline: the mass–energy relation E=mc2E = mc^2. As a block, the Gaussian integral:

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

And a sum:

k=1nk=n(n+1)2\sum_{k=1}^{n} k = \frac{n(n+1)}{2}

Physics

The time-dependent Schrödinger equation in standard notation:

itψ=H^ψi\hbar\,\frac{\partial}{\partial t}\lvert\psi\rangle = \hat{H}\lvert\psi\rangle

Maxwell, differential form:

×E=Bt\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}

Chemistry

Via the mhchem extension with \ce{}:

CHX4+2OX2COX2+2HX2O\ce{CH4 + 2 O2 -> CO2 + 2 H2O}

2HX2+OX22HX2O\ce{2 H2 + O2 <=> 2 H2O}