MathJAX - Writing Equations in the standard Markdown Files

"Leverage the power of equations to make your post most effective, and more comprehensive!"



Photo by Pranit Bhujel

MathJax Basics


Write math equations into your blogs.

A little less exhaustive list of symbols! || Detailed one to waste all of your time!

Just remeber that you can write these equations in inline mode or display mode.

Inline Mode: $...$

Display Mode: $$...$$

Text Inside the Equation

$\text {x \epsilon s | x is prime!}$ - $\text {\{x $\epsilon$ s | x is prime!\}}$

Inline Ones

$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$

To calculate the sum of squares of a number we use this $\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$ formula

Display Mode

$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$

$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$

Greek Letters

$\alpha$ - $\alpha$

$\beta$ - $\beta$

$\omega$ - $\omega$

Capital Greek Letters

$\sigma$ - $\sigma$

$\Gamma$ - $\Gamma$

$\Delta$ - $\Delta$

Superscripts

$x^2 + y^2$ - $x^2 + y^2$

Subscripts

$log_2 x + log_2 y$ - $log_2 x + log_2 y$

Groups

Here's the side effect.

$10^10$ - $10^10$

So, to remove this unintended side effect, we use groups - {...}

$10^{10}$ - $10^{10}$

Parenthesis

$(...)$ - $(...)$

$\{...\}$ - $\{...\}$

$[...]$ - $[...]$

These are fixed sized parenthesis, if we continue to make the ones that auto-adjusts itself. However, these only apply to () and [].

$\left(...\right)$ - $\left(...\right)$

$|x|$ - $|x|$

$\vert x \vert $ - $\vert x \vert $

$\Vert x \Vert $ - $\Vert x \Vert $

$\langle x \rangle $ - $\langle x \rangle $

$\lceil x \rceil $ - $\lceil x \rceil $

$\lfloor x \rfloor $ - $\lfloor x \rfloor $

In case we need manual sizes for the parenthesis, we can give it this way

$\Biggl(\biggl(\Bigl(\bigl((x)\bigr)\Bigr)\biggr)\Biggr)$ - $\Biggl(\biggl(\Bigl(\bigl((x)\bigr)\Bigr)\biggr)\Biggr)$

Sums and Integrals

$\sum_{i=0}^\infty i^2$ - $\sum_{i=0}^\infty i^2$

$\prod$ - $\prod$

$\int $ - $\int $

$\bigcup$ - $\bigcup$

$\bigcap$ - $\bigcap$

$\iint$ - $\iint$

$\iiint$ - $\iiint$

$\idotsint $ - $\idotsint $

Fractions

$\frac ab$ - $\frac ab$

$\frac {a+b+c}{c+d+e}$ - $\frac {a+b+c}{c+d+e}$

For more complicated ones

${\sum_{i=0}^\infty i^2}\over{x}$ - ${\sum_{i=0}^\infty i^2}\over{x}$

Square Roots

$\sqrt[3]{\frac xy}$- $\sqrt[3]{\frac xy}$

Fonts

$\mathbf \sum_{i=0}^\infty$ - $\mathbf \sum_{i=0}^\infty$

Special Fucntions

$\sin x$ - $\sin x$

$\cos x$ - $\cos x$

$\lim_{x\to0} x$ - $\lim_{x\to0} x$