How to write LaTeX

LaTeX's math mode provides an intuitive way to write math using plain text. Normally in LaTeX, you must use one of several commands to enter math mode (e.g. the dollar signs in "$$ E = mc^2 $$" to get ). In LaTeX Math's math macros, this is done for you. Only the math itself must be entered.

Here are a few examples of math in LaTeX to get you started. For a much more thorough guide, see https://en.wikibooks.org/wiki/LaTeX/Mathematics.

LaTeXOutput
E = mc^2

\pi = \frac c d

\frac{a + b}{2}

e = \lim_{x\to\infty} \left(1+\dfrac{1}{n}\right)^n

\begin{matrix}
a & b & c \\
d & e & f \\
g & h & i
\end{matrix}

\begin{align*}
 f(x) &= (x+a)(x+b) \\
      &= x^2 + (a+b)x + ab
\end{align*}