MathJax Basic: Quick Reference

Cartesian Theatre
3 min readJul 3, 2022

--

Source: mathjax.org/

MathJax is an open-source library for rendering popular mathematics formats (LaTeX, MathML, AsciiMath) in browsers. We can use it to introduce various mathematical notations on our web pages. The mathematical symbols will be processed using JavaScript to produce HTML, SVG, or MathML equations for viewing.

MathJax has very good documentation. And I also recommend everyone to look into this nice Stack Exchange thread to know more about the cool stuff we can do with MathJax.

In this article, I am going to write only a few essential MathJax tools for quick reference purposes.

Fractions:

$\frac{n(n+1)}{2}$

Superscripts and Subscripts:

$x_i^3+3x_i^2x_j+3x_ix_j^2+x_j^3$

Logarithm:

$log_{b}m$

Summation:

$\sum_{i=0}^n i^2$

Product:

$\prod_{i=0}^n i^2$

Limit:

$\lim\limits_{x\mapsto 1}\dfrac1x$

Matrix:

$\begin{bmatrix}
i&j&k\\x_1&y_1&z_1\\x_2&y_2&z_2\\x_3&y_3&z_3
\end{bmatrix}$

Determinant:

\begin{vmatrix}
1 & x_{0} & x_{0}^{2} & \dots & x_{0}^{n} \\
1 & x_{1} & x_{1}^{2} & \dots & x_{1}^{n} \\
\hdotsfor{5} \\
1 & x_{n} & x_{n}^{2} & \dots & x_{n}^{n}
\end{vmatrix}

Derivative(s):

$\displaystyle \frac{d\hat{\mathbf r}}{d\theta}$

Partial Derivative:

$\displaystyle \frac{\partial^2 f}{\partial x\partial y}$

Integral(s):

$\displaystyle \int_{y_0}^{y_1} \int_{x_0}^{x_1} f(x, y) \,dx\,dy$

Closed-loop integrals:

$\oint_C {\mathbf F}\cdot d{\mathbf x}$

Definitions by cases (piecewise functions):

$f(n) = 
\begin{cases}
n/2, &\text{if $n$ is even} \\
3n+1, &\text{if $n$ is odd}
\end{cases}$

Thanks for reading. Please contact me if you have any queries or concerns regarding this article.

Email: roy.sourov98@gmail.com

--

--