General math formulas require dollar signs around them. Single for inline and double for displayed (the below are displayed)
$1+2=3$
renders as:
$1+2=3$
$$1+2=3$$
renders as:
$$1+2=3$$
If you want integration:
Use \int
for regular integrals. It displays as
$$\int$$
If you want bounds, use \int_{a}^{b}
. It displays as
$$\int_a^b$$
To add stuff inside the integral, I recommend the format \int_{a}^{b} f(x)~dx
. It displays as
$$\int_{a}^{b} f(x)~dx$$
For double, triple, or quadruple integrals, everything above applies and use \iint,\iiint,\iiiint
, which respectively displays as
$$\iint,\iiint,\iiiint$$
For a closed line integral, use \oint
, which displays as
$$\oint$$
For a sum,
please use \sum
, not \Sigma
. The difference is shown below:
$$\text{\sum}:~\sum\qquad\text{\Sigma}:~\Sigma$$
To add bounds, the same procedure from above applies. For example, use \sum_{n=1}^{5} n^2
to get
$$\text{\sum}:~\sum_{n=1}^{5} n^2\qquad\text{\Sigma}:~\Sigma_{n=1}^{5} n^2$$
If one of your bounds happens to be infinity or negative infinity, use \infty
or -\infty
. For example, \sum_{n=0}^{\infty}
to get
$$\sum_{n=0}^{\infty}$$
And use \int_{-\infty}^{\infty}
to get
$$\int_{-\infty}^{\infty}$$