Math Equations

Inline Math

The Pythagorean theorem is given by a2+b2=c2a^2 + b^2 = c^2.

Block Math

Here is the equation for the area of a circle:

A=πr2A = \pi r^2

And here is a more complex equation:

E=mc2E = mc^2

Math with Fractions and Roots

The quadratic formula is:

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

The square root of xx is:

x\sqrt{x}

Math with Matrices

Here is an example of a matrix:

[abcd]\begin{bmatrix} a & b \\ c & d \end{bmatrix}

Math with Summations

The sum of the first nn natural numbers is:

i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n + 1)}{2}