MathJax documentation: http://www.mathjax.org/docs/2.0/tex.html#supported-latex-commands Many examples: http://www.onemathematicalcat.org/MathJaxDocumentation/TeXSyntax.htm /MathJaxFonts has more information about fonts, alphabets, and special characters. Any tutorial on the math macros of TeX or LaTeX is likely to be helpful, but expect some differences.

\...\ delimits inline formulas (which are inserted directly into the normal text). \...\ delimits display formulas (which are automatically in a new paragraph, and centered).

Some things are formatted differently in inline formulas, to make them smaller. \ \sum_{i=1}^{n} i \ \ \sum_{i=1}^{n} i \

\sum_{i=1}^{n} i \sum_{i=1}^{n} i

But you can also specify the style you want to use. \ { \sum \limits_{i=1}^{n} i } \ \ { \displaystyle \sum_{i=1}^{n} i } \ \ { \displaystyle \sum \nolimits_{i=1}^{n} i } \ \ { \sum \nolimits_{i=1}^{n} i } \ \ { \textstyle \sum_{i=1}^{n} i } \ \ { \textstyle \sum \limits_{i=1}^{n} i } \

{ \sum \limits_{i=1}^{n} i } { \displaystyle \sum_{i=1}^{n} i } { \displaystyle \sum \nolimits_{i=1}^{n} i } { \sum \nolimits_{i=1}^{n} i } { \textstyle \sum_{i=1}^{n} i } { \textstyle \sum \limits_{i=1}^{n} i }

Several other macros behave similarly to \sum. (These examples are actually separated with \qquad to add space.) \ \prod_{i=1}^{n}   \lim_{x \to \infty}   \int_{a}^{b}  \intop_{a}^{b}  \frac{\partial a}{\partial b}\ \ \prod_{i=1}^{n}   \lim_{x \to \infty}   \int_{a}^{b}  \intop_{a}^{b}  \frac{\partial a}{\partial b}\

\prod_{i=1}^{n} \qquad \lim_{x \to \infty} \qquad \int_{a}^{b} \qquad \intop_{a}^{b} \qquad \frac{\partial a}{\partial b} \prod_{i=1}^{n} \qquad \lim_{x \to \infty} \qquad \int_{a}^{b} \qquad \intop_{a}^{b} \qquad \frac{\partial a}{\partial b}

Spaces within formulas are usually ignored, or collapsed into a single space. Notice that spaces around a vertical bar are collapsed. But\mid and : get equal space on each side, while \colon gets just a little space after it.

a ba | ba \mid ba:ba \colon b
a b a | b a \mid b a:b a \colon b

A tilde, ~, will add a space character (same as , \space, or \nobreakspace). Other special commands are provided to add space, or remove space Add space:  \,  or \thinspace  \:  \;  \quad  \qquad Remove space:  \! or \negthinspace  \negmedspace  \negthickspace An invisible character, {}, may sometimes help solve alignment problems.

Spacing can also be changed arbitrarily with \lower, \raise, and \kern: \ l \lower 0.25em {owe} r  \qquad h \raise 0.25em {ighe} r \qquad a \kern 0.5em {b} c d \ l \lower 0.25em {owe} r \qquad h \raise 0.25em {ighe} r \qquad a \kern 0.5em {b} c d

\hphantom \vphantom and \phantom add space for given characters, without actually displaying them: \ a \hphantom {bcd} e \hphantom {fgh} i \ a \hphantom {bcd} e \hphantom {fgh} i

The macros that control size simply remain in effect until you use a different one, or until the end of the formula. \ \tiny AAA \Tiny ABC \small DEF \normalsize GHI \large JKL \Large MNO \LARGE PQR \huge STU \Huge VWX \ \tiny AAA \Tiny ABC \small DEF \normalsize GHI \large JKL \Large MNO \LARGE PQR \huge STU \Huge VWX

The \text macros can be used to add text to math formulas. Notice that spaces collapse to a single space. \ {  See Spot run.  }   \text {  See Spot run.  }  \textit {  See Spot run.  } \textbf {  See Spot run.  }\ { See Spot run. } \text { See Spot run. } \textit { See Spot run. } \textbf { See Spot run. }

Addition and Subtraction
+a-a|a|a + ba - ba \pm ba \mp b
+a -a |a| a + b a - b a \pm b a \mp b
Multiplication and Division
aba \times ba \cdot ba/ba \div b\frac {a} {b}\dfrac {a} {b}
ab a \times b a \cdot b a/b a \div b \frac {a} {b} \dfrac {a} {b}
Equations and inequalities
a = ba \ne ba \approx ba \equiv b \mod ca \propto b
a = b a \ne b a \approx b a \equiv b \mod c a \propto b
a \lt ba \leq ba \gt ba \geq ba \gg b \qquad c \ll d
a \lt b a \leq b a \gt b a \geq b a \gg b \qquad c \ll d
Geometry
\parallel\perp\sim\simeq\cong
\parallel \perp \sim \simeq \cong
\triangle\angle\measuredangle\Box{\huge \circ}
\triangle \angle \measuredangle \Box {\huge \circ}
Powers, Roots, Superscripts, and Subscripts
\sqrt{4} \sqrt{4}
\sqrt[3]{4} \sqrt[3]{4}
a\^{2} + b\^{2} = c\^{2} a^{2} + b^{2} = c^{2}
c = \sqrt{a\^{2} + b\^{2}} c = \sqrt{a^{2} + b^{2}}
a_{i}\^{2} + a_{i+1}\^{2} + \cdots + a_{i+n}\^2 a_{i}^{2} + a_{i+1}^{2} + \cdots + a_{i+n}^2
30\^\circ \negthickspace - 60\^\circ \negthickspace - 90\^\circ 30^\circ \negthickspace - 60^\circ \negthickspace - 90^\circ
Logic
ANDORNOTXORiffimpliesimplied byexistsfor all
\land\lor\lnot\otimes\iff\implies\impliedby\exists\forall
\land \lor \lnot \otimes \iff \implies \impliedby \exists \forall
Set Theory
\in\emptyset\subset\supset\subseteq\supseteq
\in \emptyset \subset \supset \subseteq \supseteq
\notin\{ a , \ldots , z \}\cup\cap\nsubseteq\nsupseteq
\notin \{ a , \ldots , z \} \cup \cap \nsubseteq \nsupseteq

Matrices are created by \array or \matrix, which are identical. & separates elements in each row. \\ or \cr starts a new row. \ \array { a & b \\ c & d } \ \array { a & b \\\ c & d }

\hline or \hdashline can be used to insert a horizontal line: \ \array { a & b \\ \hline c & d } \ \array { a & b \\\ \hline c & d }

\strut can be used to add vertical space: \ \array { a & b \\ \hline c & d } \ \ \array { a & b \strut \\ \hline c & d } \ \ \array { a & b \strut \\ \hline \strut c & d } \ \array { a & b \\\ \hline c & d } \array { a & b \strut \\\ \hline c & d } \array { a & b \strut \\\ \hline \strut c & d }

\ldots, \vdots, and \ddots can be used to "fill in" a matrix. (Note: I had to collapse this into a single line.)

 \array {
a_{11} & a_{12} & \ldots & a_{1n} \
a_{21} & a_{22} & \ldots & a_{2n} \
\vdots & \vdots & \ddots & \vdots \
a_{m1} & a_{m2} & \ldots & a_{mn} } 

\array { a_{11} & a_{12} & \ldots & a_{1n} \\\ a_{21} & a_{22} & \ldots & a_{2n} \\\ \vdots & \vdots & \ddots & \vdots \\\ a_{m1} & a_{m2} & \ldots & a_{mn} }

Parentheses, brackets, and other grouping symbols, for any expression, including matrices.
(x)[x]\{ x \}| x|\| x \|\lgroup x \rgroup\langle x \rangle
(x) [x] \{ x \} |x| \| x \| \lgroup x \rgroup \langle x \rangle
To make these stretch to fit the expression, they must be prefixed with \left ... \right These examples all enclose a column matrix, \array { a \\ b \\ c }.
\left( \right)\left[ \right]\left\{ \right\}\left| \right|\left\| \right\|\left\lgroup \right\rgroup\left\langle \right\rangle
\left( \array { a \\ b \\ c } \right) \left[ \array { a \\ b \\ c } \right] \left\{ \array { a \\ b \\ c } \right\} \left| \array { a \\ b \\ c } \right| \left\| \array { a \\ b \\ c } \right\| \left\lgroup \array { a \\ b \\ c } \right\rgroup \left\langle \array {a \\ b \\ c} \right\rangle
If you only want one bracket, close off the other side with a period: \left. or \right.
\left( \right.\left[ \right.\left\{ \right.\left| \right.\left\| \right.\left\lgroup \right.\left\langle \right.
\left( \array { a \\ b \\ c } \right. \left[ \array { a \\ b \\ c } \right. \left\{ \array { a \\ b \\ c } \right. \left| \array { a \\ b \\ c } \right. \left\| \array { a \\ b \\ c } \right. \left\lgroup \array { a \\ b \\ c } \right. \left\langle \array {a \\ b \\ c} \right.
\left. \right)\left. \right]\left. \right\}\left. \right|\left. \right\|\left. \right\rgroup\left. \right\rangle
\left. \array { a \\ b \\ c } \right) \left. \array { a \\ b \\ c } \right] \left. \array { a \\ b \\ c } \right\} \left. \array { a \\ b \\ c } \right| \left. \array { a \\ b \\ c } \right\| \left. \array { a \\ b \\ c } \right\rgroup \left. \array {a \\ b \\ c} \right\rangle