Sometimes, your post will need some maths equations. This site has been set up with MathJax to let you use LaTex notation to generate arbitrary mathematical expressions.

MathJax lets you add maths formulae to your posts using the well established LATEX (pronounced ‘latek’) language. Special tags make is relatively easy to inset mathematical equations using a special markup language that is the basis for probably all the mathematical typesetting that you see on the web and in print. Equations can be arbitrarily complex with automatic numbering and referencing or they may be simple statements placed inline with your text.
E=mc2

Inline use

Equations can be placed inline with text for better flow like this: eiπ+1=0. This style works well where the equation is relatively simple. Even something like d=x2+y2 still fits within a line without too much disruptionand may not need calling out as a separate block in your text.

More complex equations like this one, f(x)=f^(ξ)e2πiξxdξ, or this one |abcd|=adbc may not work so well because the height has to be adjusted to accommodate the rendered equation and things can get a bit cramped. If this looks OK to you then it is fine. Both these equations look much better placed in separate areas using ‘display’ mode.

f(x)=f^(ξ)e2πiξxdξ

All LaTex equations need to be enclosed within delimiters. Unfortunately the standards for these delimiters are not so well defined. In this implementation, inline equations must be placed between \( and \) delimiters like this:

MarkdownRender
...calculated as \( v=r\omega \) will be ...…calculated as v=rω will be …

Separate Lines

It is often more convenient to have equations, or a series of equations, displayed in their own space on the page. You can do that with an inline style but in its own paragraph. By default, equations are use the display method and are centered on the page:

x=b±b24ac2a

The delimiter for block equations is different – the equation should be placed between a pair of $$ delimiters. Thus this markdown

$$q=\frac{1+y}{1+2z^2}$$

produces:

q=1+y1+2z2

because the block display mode puts the rendered equation in an image div centered on the layout, it is more tricky to put block equations into tables

Examples

You can get the Latex markup for any equation if you right-click and then select Show Math as TeX commands.

MarkdownRender
$$\int_0^\infty e^{-x^2} dx=\frac{\sqrt{\pi}}{2}$$0ex2dx=π2
$$\sum_{n=1}^{\infty} 2^{-n} = 1$$n=12n=1
$$x=\frac{1+\kappa}{1+2\zeta^2}$$x=1+κ1+2ζ2
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$x=b±b24ac2a
Matrix
$$<br>\begin{matrix}<br>1 & x & x^2 \\<br>1 & y & y^2 \\<br>1 & z & z^2 \\<br>\end{matrix}<br>$$
1xx21yy21zz2
Matrix with brackets
$$<br>\left[<br>\begin{matrix}<br>1 & x & x^2 \\<br>1 & y & y^2 \\<br>1 & z & z^2 \\<br>\end{matrix}<br>\right]<br>$$
[1xx21yy21zz2]
Conditional Equations
$$<br>|x| = \left\{ \begin{array}{rl}<br>-x &\mbox{ if $x<0$} \\<br>x &\mbox{ otherwise}<br>\end{array} \right.<br>$$
|x|={x if x<0x otherwise
Another way to do conditional equations:
$$<br>f(n) =<br>\begin{cases}<br>n/2, & \text{if $n$ is even} \\<br>3n+1, & \text{if $n$ is odd}<br>\end{cases}<br>$$
f(n)={n/2,if n is even3n+1,if n is odd
Aligned Equations:
$$<br>\begin{align}<br>\sqrt{37} & = \sqrt{\frac{73^2-1}{12^2}} \\<br>& = \sqrt{\frac{73^2}{12^2}\cdot\frac{73^2-1}{73^2}} \\<br>& = \sqrt{\frac{73^2}{12^2}}\sqrt{\frac{73^2-1}{73^2}} \\<br>& = \frac{73}{12}\sqrt{1 - \frac{1}{73^2}} \\<br>& \approx \frac{73}{12}\left(1 - \frac{1}{2\cdot73^2}\right)<br>\end{align}<br>$$
37=7321122=7321227321732=7321227321732=7312117327312(112732)
Systems of Equations:
$$<br>\left\{<br>\begin{aligned}<br>a_1x+b_1y+c_1z &=d_1+e_1 \\<br>a_2x+b_2y&=d_2 \\<br>a_3x+b_3y+c_3z &=d_3<br>\end{aligned}<br>\right.<br>$$
{a1x+b1y+c1z=d1+e1a2x+b2y=d2a3x+b3y+c3z=d3

Equations can be tagged (numbered). To refer to the equation later, use a label.
(20)x=1+y1+2z2
(21)x+y2x
(22)x+y2x

In equation (20), we find the value of an interesting integral (not really):
0x3ex1dx=π415

Equations can also be given some explanatory text:
(1)v+w=0Given(2)w=w+0additive identityw+0=w+(v+w)equations (1) and (2)


More Inspiration

These sites will give you some examples. The opening and closing tags may differ slightly from those supported on these pages. Remember that MathJax only renders stuff from the math sections.


Further Information

MathJax is enable on this site using the Simple MathJax plugin for WordPress

The MathJax documentation should tell you pretty well everything you need to know: