Mathjax

This post is used for testing mathjax(latex) support.

Inline math

Use $...$, example:

1
$\lim_{x \to \infty} \exp(-x) = 0$

Writing LaTex like:

Displayed formulas

Use $$...$$ , example:

1
$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$
1
2
3
4
5
6
7
$$
\begin{matrix}
1 & x & x^2 \\
1 & y & y^2 \\
1 & z & z^2 \\
\end{matrix}
$$
1
2
3
4
5
6
7
\begin{align}
\sqrt{37} & = \sqrt{\frac{73^2-1}{12^2}} \\
& = \sqrt{\frac{73^2}{12^2}\cdot\frac{73^2-1}{73^2}} \\
& = \sqrt{\frac{73^2}{12^2}}\sqrt{\frac{73^2-1}{73^2}} \\
& = \frac{73}{12}\sqrt{1 - \frac{1}{73^2}} \\
& \approx \frac{73}{12}\left(1 - \frac{1}{2\cdot73^2}\right)
\end{align}
1
2
3
4
5
6
7
\begin{array}{c|lcr}
n & \text{Left} & \text{Center} & \text{Right} \\
\hline
1 & 0.24 & 1 & 125 \\
2 & -1 & 189 & -8 \\
3 & -20 & 2000 & 1+10i
\end{array}

More information can be found Here.

To know how to let hexo support Matjax, you can read this.