A small place to keep useful LaTeX snippets that are easy to forget and worth reusing.
Table of Contents
Rendered Formula Examples


Notes
When saving LaTeX snippets in WordPress, keep the source expression beside the rendered output whenever possible. That makes the post easier to maintain if a rendering plugin, CDN, or image export changes later.
For inline math, use a compact form such as:
$E = mc^2$
For displayed equations, use a block form:
\[
E = mc^2
\]
For aligned multi-line equations, use aligned inside display math:
\[
\begin{aligned}
a^2 + b^2 &= c^2 \\
x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
\end{aligned}
\]
If the equation does not render correctly, first check that braces are balanced, commands are spelled correctly, and the WordPress LaTeX plugin or MathJax configuration is still enabled.
