## latex help, why does this formula not work?

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

edit , it works now,