Math Support

    1 minute read    

You can enable math support through use_math: true front matter which enable the MathJax.js rendering.

After enable math support, use $$ ... $$ displaying math equation.

For inline mode
type your equation in line with other text
For display mode:
type your equation such that there is a blank line before your beginning $$ and there is a blank line after your ending $$


As an example, the following code:

The Pythagoras' theorem state that the square of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the other two sides. The theorem can be written as an equation relating the lengths of the sides $$a$$, $$b$$ and
$$c$$, often called the "Pythagorean equation":

$$a^2 + b^2 = c^2$$

where $$c$$ represents the length of the hypotenuse and $$a$$ and $$b$$ the lengths of the triangle's other two sides. `[source: wikipedia]`

This also implies that for any square with side length $$x$$, the length of its diagonal is $$\sqrt{2}x$$.

**_Proof:_**
Let the length of diagonal be $$d$$. Apply Pythagoras theorem on the right angle triangle that has the diagonal as hypotenuse, and side of square as the other two side, we have:

$$
\begin{align*}
x^2 + x^2 &= d^2 \\
d^2 &= 2x^2 \\
d &= \sqrt{2}x \tag*{$\blacksquare$}
\end{align*}
$$


produces:


The Pythagoras’ theorem state that the square of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the other two sides. The theorem can be written as an equation relating the lengths of the sides \(a\), \(b\) and \(c\), often called the “Pythagorean equation”:

\[a^2 + b^2 = c^2\]

where \(c\) represents the length of the hypotenuse and \(a\) and \(b\) the lengths of the triangle’s other two sides. [source: wikipedia]

This also implies that for any square with side length \(x\), the length of its diagonal is \(\sqrt{2}x\).

Proof: Let the length of diagonal be \(d\). Apply Pythagoras theorem on the right angle triangle that has the diagonal as hypotenuse, and side of square as the other two side, we have:

\[\begin{align*} x^2 + x^2 &= d^2 \\ d^2 &= 2x^2 \\ d &= \sqrt{2}x \tag*{$\blacksquare$} \end{align*}\]

Reference

Tags:

Updated: