split
environment to align them properly. However the equations are either getting to far left or far right side of the page on compiling. How to put these equations in center?here is the code i used
Code: Select all
\begin{equation}
\begin{split}
\frac{\partial }{\partial c_k}SSE& =\frac{\partial }{\partial c_k}\sum_{i=1}^{K}\sum_{x\epsilon C_i }(c_i-x)^2\\
&=\sum_{i=1}^{K}\sum_{x\epsilon C_i }\frac{\partial }{\partial c_k}(c_i-x)^2\\
&=\sum_{x\epsilon C_k }2\ast (c_k-x_k)=0\\
\sum_{x\epsilon C_k }2\ast (c_k-x_k)=0\Rightarrow m_kc_k=\sum_{x\epsilon C_k }x_k=c_k=\frac{1}{m_k}\sum_{x\epsilon C_k }x_k
\end{split}
\end{equation}