Page history Edit this page How do I edit this website?

Math Expressions

This page demonstrates how to include mathematical expressions.

Individual pages can opt-in to supporting mathematical notation using MathJax, so that you can write expressions with LaTeX syntax, either inline or as a block.

Processing a page with MathJax can take a few seconds, so it is not enabled by default on all pages.If you want to use MathJax, you must enable it in the front matter of your page:

usemathjax: true

In your page content, math expressions are delineated by $$ tags before and after the expression.

Block equation example


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


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

Inline equation example


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


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.