I am quite new to TeX. I want that each line in the following equation be centered, but I cannot find how to do it.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{split}
a & = \frac{M_{20}}{M_{00}} - x^{2}_{c}, \;\;\;
b = 2(\frac{M_{11}}{M_{00}} - x_{c}y_{c}), \;\;\;
c = \frac{M_{02}}{M_{00}} - y^{2}_{c}, \\
&\quad x_{c} = \frac{M_{10}}{M_{00}}, \;\;\;
y_{c} = \frac{M_{01}}{M_{00}}, \\
&\quad M_{ij} = \displaystyle\sum\limits_{x} \displaystyle\sum\limits_{y} x^i y^j I(x,y)
\end{split}
\end{equation}
\end{document}
Also, it would be awesome if I could write "and" after the first line ;)
Thanks in advance
gathered
inequation
puts one centered equation number nexts to centered equations. The accepted answer forces the equation number onto the last line and a large number of\notag
commands.