Edit page History How do I edit this website?

Math Expressions

This page demonstrates how to include mathematical expressions.

This site supports mathematical notation using MathJax, so that you can write expressions with LaTeX syntax, either inline or as a block.

Expressions are delineated by $$ tags before and after the expression.

Block equation example

Code

$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$

Result

\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\]

Inline equation example

Code

When $$a \ne 0$$, there are two solutions
to $$(ax^2 + bx + c = 0)$$.

Result

When \(a \ne 0\) , there are two solutions to \((ax^2 + bx + c = 0)\).

Further reading

See this excellent guide for a comprehensive introduction to MathJax with lots of examples.