MathJax

MathJax allows you to include mathematics in your web pages, either using LaTeX, MathML, or AsciiMath notation, and the mathematics will be processed using JavaScript to produce HTML, SVG, or MathML equations for viewing in any modern browser.

<head>
...
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/latest.js?config=TeX-MML-AM_CHTML' async></script>
...
</head>

\begin{equation}
\begin{pmatrix}
M&m_1&m_2&0 \\
0&m_{1}&-m_2&0 \\
2&-1&-1&0
\end{pmatrix}
\begin{pmatrix}
A \\ a\\ b\\ T
\end{pmatrix}
=
\begin{pmatrix}
F-Mg-(m_1+m_2)g \\ (m_2-m_{1})g \\ 0
\end{pmatrix}
\end{equation}

\begin{equation}
H_c=\frac{1}{2n} \sum^n_{l=0}(-1)^{l}(n-l)^{p-2}
\end{equation}

\begin{equation}
\left.\begin{aligned}
B’&=-\partial\times E, \\
E’&=\partial \times B – 4\pi j,
\end{aligned}
\right\}
\qquad \text{Maxwell’s equations}
\end{equation}