how to write a sum in latex code example
Example 1: how to do limits in latex
$\lim_{x \to +\infty} f(x)$
Example 2: latex sum
Inside text: $\sum_{n=1}^{\infty} 2^{-n} = 1$
On its own line: $$\sum_{n=1}^{\infty} 2^{-n} = 1$$
$\lim_{x \to +\infty} f(x)$
Inside text: $\sum_{n=1}^{\infty} 2^{-n} = 1$
On its own line: $$\sum_{n=1}^{\infty} 2^{-n} = 1$$