[Tex/LaTex] Moving part of equation to next line

equationsformatting

I have an equation:

\begin{equation}
MMAV1 = \frac{1}{N} \sum_{n=1}^N \omega_n|x_n|, \\
\omega_n =
\begin{cases}
1 & if 0.25N \leq n \leq 0.75N \\
0.5 & otherwise \\
\end{cases}
\label{equ:MMAV1}
\end{equation}

and I want the cases to be displayed on the next line.
I have tried using \begin{align} but that splits it into two equations with two reference numbers.

Does somebody know how to do this?

Best Answer

You can use aligned instead of align environment

\begin{equation}
\begin{aligned}
\text{MMAV1} &= \frac{1}{N} \sum_{n=1}^N \omega_n|x_n|\,, \\
\omega_n &=
\begin{cases}
1 & \text{if $0.25N \leq n \leq 0.75N$} \\
0.5 & \text{otherwise}
\end{cases}\,.
\end{aligned}
\label{equ:MMAV1}
\end{equation}

Of course, you can ommit the \\ after \omega_n, if you do not want only the cases to be in a different line.

Also the split environment can do the trick (same use).

Both of the above need the amsmath package.