Mathematics

Mathematics typesetting is done using MathJax. The feature is off by default for performance reason. You must enable MathJax by inserting the line

1
math: true

in the front matter of your Markdown file.

Inline maths

Inline some mathematics by single dollar signs $. This inlining $y = f(x)$ would render as y=f(x).

Donec et odio pellentesque y=mx+b diam volutpat commodo sed egestas. Eget dolor morbi non arcu risus quis varius quam. Lorem donec massa sapien faucibus et molestie ac feugiat. Aliquam purus sit amet luctus venenatis lectus. In ante metus dictum at 3x1+(1+x)2 tempor commodo ullamcorper a. Purus in t3+pt+q=0 massa tempor nec feugiat. Nam libero justo cos(3θ)=3q2p3p laoreet sit amet cursus. Nunc pulvinar sapien et ligula ullamcorper malesuada proin.

Block maths

Use double dollar signs to typeset a block of mathematics. This code

1
2
3
4
5
6
7
8
9
$$
x
=
\frac{
  -b \pm \sqrt{b^2 - 4ac}
}{
  2a
}
$$

would render as:

x=b±b24ac2a

The Cauchy-Schwarz inequality:

(k=1nakbk)2(k=1nak2)(k=1nbk2).

Equation numbering

Consider the integral:

(1)exp(x2)dx=π.

The integral (1) has a closed form solution, i.e. π.

Standard normal distribution:

12πexp(x2/2)dx=1.

A matrix:

(2)O=[cosϕsinϕsinϕcosϕ].

The matrix (2) is 2×2. The general m×n matrix is:

Amn=(a11a12a1na21a22a2nam1am2amn).