\begin{equation}
\begin{aligned}
E&=\frac{1}{2}\sum_{j=1}^{2}(z_j-f_j(x_k))^2 \\
&=\frac{1}{2}(z_1-f_1(x_k))^2+\frac{1}{2}(z_2-f_2(x_k))^2\nonumber
\end{aligned}
\end{equation}
\nonumber的位置是在公式中,第一行和第二行都可以
换行 \begin{aligned}…\end{aligned} 之\
对齐 &=