LaTeX Example

Result 1:

(1)   \begin{equation*}  P_{N-1}(x)=\sum_{j=0}^{N-1}{a_jx^j}\end{equation*}

Result 2:

    \[\sum_{g=1}^{G}{\sum_{i=1}^{M-1}{\sum_j>i}^{M}{{d}_{ij}{x}_{ig}{x}_{jg}}}}\]

The Code: