Loading...
 
Print

Wiki MathJax Syntax

This site supports MathJax to produce nicely formatted math notations in wiki pages.

Browser Setup

In addition to ASCIIMathML, this site also uses MathJax from http://www.mathjax.org/(external link) to display math notations. Although the syntax is a little more complicated than ASCIIMath, it is much more powerful and compatible with a variety of browsers. In order to properly display the math, your browser needs minimal support - no plug-ins are required. If your browser supports MathJax, then you should see MathJax in blue here: $MathJax$

MathJax Syntax

MathJax uses LaTeX syntax to display math notations on wiki pages. For inline math, enclose the LaTeX syntax in dollar signs (\$). For displayed math, enclose the syntax with two dollar signs (\$\$). For example, to display x squared inline ($ x^2 $) type \$ x^2 \$ or type \$\$ x^2 \$\$ for $$ x^2 $$
In order to display a dollar sign, escape it with a backslash: \\$

General notes

  • Braces {} are grouping symbols.
  • Use a tilde (~) for a forced space.

Various math symbols, operations, and relations

\leq $\leq$, \geq $\geq$, \neq $\neq$, \approx $\approx$, \pm $\pm$, \mp $\mp$, \in $\in$, \mathbb{R} $\mathbb{R}$ \mathbb{Z} $\mathbb{Z}$, \mathbb{N} $\mathbb{N}$

Greek letters

Use the name (Upper/lower case). For example, \alpha $\alpha$ \beta $\beta$ \delta $\delta$, \Delta $\Delta$, \epsilon $\epsilon$, \gamma $\gamma$, \theta $\theta$, \mu $\mu$, \pi $\pi$, \sigma $\sigma$, \Sigma $\Sigma$

Examples of syntax

LaTeX Syntax
.........................................
MathJax Display
.........................................
Comment
.........................................
\$\sin^{-1} \theta\$ $\sin^{-1} \theta$
\$\frac{1}{2}\$ $\frac{1}{2}$
\$\frac{dy}{dx}\$, \$\frac{\Delta y}{\Delta x}\$ $\frac{dy}{dx}$, $\frac{\Delta y}{\Delta x}$ Note the use of braces {} to group items
\$\dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}\$ $\dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}$ Large fractions (display)
\$\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1}}}\$ $\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1}}}$ Large (continued) fractions
\$\sqrt{a^2 + b^2}\$ $\sqrt{a^2 + b^2}$ Square root
\$\sqrt[3]{x}\$ $\sqrt[3]{x}$ Cube root
\$\sqrt[n]{x}\$ $\sqrt[n]{x}$ nth root
\$\lim\limits_{x \to \infty} f(x)\$ $\lim\limits_{x \to \infty} f(x)$
\$\int f(x)~dx\$ $\int f(x)~dx$
\$\int_a^b f(x)~dx\$ $\int_a^b f(x)~dx$
\$\sum\limits_{i=1}^n X_i\$ $\sum\limits_{i=1}^n X_i$
\$f(x) = \begin{cases}1 & -1 \le x < 0 \\ \frac{1}{2} & x = 0 \\ 1 - x^2 & \text{otherwise} \end{cases}\$ $f(x) = \begin{cases}1 & -1 \le x < 0 \\ \frac{1}{2} & x = 0 \\ 1 - x^2 & \text{otherwise} \end{cases}$ Piecewise (cases)
\$\begin{align} f(x) & = (a+b)^2 \\ & = a^2+2ab+b^2 \\ \end{align}\$ $\begin{align} f(x) & = (a+b)^2 \\ & = a^2+2ab+b^2 \\ \end{align}$ Multiline equations (aligned)
\$\begin{matrix} a & b \\ c & d \end{matrix}\$ $\begin{matrix} a & b \\ c & d \end{matrix}$ Matrices


Miscellaneous formulas

  1. $a^2 + b^2 = c^2$
  2. $ax^2 + bx + c = 0$
  3. $x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}$
  4. $m = \dfrac{y_2 - y_1}{x_2 - x_1} = \dfrac{\Delta y}{\Delta x}$
  5. $f'(x) = \lim\limits_{\Delta x \to 0} \dfrac{f(x+\Delta x)-f(x)}{\Delta x}$
  6. $\dfrac{d}{dx} \left [x^n \right ] = nx^{n - 1}$
  7. $\int_a^b f(x)~dx = \left [F(x) \right ]_a^b = F(b) - F(a)$
  8. $\int_a^b f(x)~dx = f(c)(b - a)$
  9. $\text{average value} = \dfrac{1}{(b-a)} \int_a^b f(x)~dx$
  10. $\dfrac{d}{dx} \left [\int_a^x f(t)~dt \right ] = f(x)$
Code for the above formulas
  1 . $a^2 + b^2 = c^2$
  2 . $ax^2 + bx + c = 0$
  3 . $x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}$
  4 . $m = \dfrac{y_2 - y_1}{x_2 - x_1} = \dfrac{\Delta y}{\Delta x}$
  5 . $f'(x) = \lim\limits_{\Delta x \to 0} \dfrac{f(x+\Delta x)-f(x)}{\Delta x}$
  6 . $\dfrac{d}{dx} \left [[x^n \right ] = nx^{n - 1}$
  7 . $\int_a^b f(x)~dx = \left [[F(x) \right ]_a^b = F(b) - F(a)$
  8 . $\int_a^b f(x)~dx = f(c)(b - a)$
  9 . $\text{average value} = \dfrac{1}{(b-a)} \int_a^b f(x)~dx$
 10 . $\dfrac{d}{dx} \left [[\int_a^x f(t)~dt \right ] = f(x)$


LaTeX Editor

This link http://www.codecogs.com/latex/eqneditor.php(external link) is an online WYSIWYG LaTeX editor that creates math expressions using templates. The LaTeX is automatically written and a preview is displayed. Just copy the code and paste it. Be sure to enclose the LaTeX in dollar signs (\$).

Additional references