Demo Rendering LaTeX Mathematics

The examples on this page should render as mathematics

If you see lots of backslashes ('\'), it's not working!

Some inline math: \( x = \frac{-b \pm \sqrt{b^2 -4ac}}{2a}\), followed by the same in display mode: \[ x = \frac{-b \pm \sqrt{b^2 -4ac}}{2a}\]

Other examples: \[ \sum_{i=0}^n (x_i + i) = \left(\sum_{i=0}^n x_i \right) + \left(\sum_{i=0}^n i\right) = (n \bar{x}) + \left(\frac{n(n+1)}{2}\right) \]

\[ \mbox{Let } f(n) = \left\{ \begin{array}{ll} n/2 & \mbox{if n is even} \\ (-n-1) & \mbox{if n is odd} \\ \end{array} \right. \]