I am trying to align brackets inside of cases. This is my equation:
\begin{align}
y(x)=
\begin{cases}
\bigg[ & 1+2 & \\
& +5+6 \bigg] & \text{if } x < 2, \\
\bigg[ & 11+12 & \\
& +15+16 \bigg] & \text{if }x > 2,\\
0 & & \text{otherwise.}
\end{cases}
\end{align}
When I compile this, I get the following error
! Extra alignment tab has been changed to \cr.
The same happens when I remove the align environment change it to equation instead.
\begin{equation}
y(x)=
\begin{cases}
\bigg[ & 1+2 & \\
& +5+6 \bigg] & \text{if } x < 2, \\
\bigg[ & 11+12 & \\
& +15+16 \bigg] & \text{if }x > 2,\\
0 & & \text{otherwise.}
\end{cases}
\end{equation}
I searched for this problem, but all the questions seem to be about table environments.
