discrete sum latex code example Example 1: limit in latex $\lim_{x\to\infty} f(x)$ Example 2: integral latex $\int_0^{2a}{\cos(x)dx}$