I'm using aligned
inside align
as follows
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
x =&22+2 \nonumber\\
=& \begin{aligned}[t]
&5+3\\
&-3+4\\
&+15-0
\end{aligned}
\end{align}
\end{document}
I want to have just one equation number after the very last line. However, I'm getting the number at the beginning of the first split line (after the second = ),
and I cannot figure out how to move this equation number to the bottom. Any help will be appreciated.
&=
, not=&
.aligned
can only put the equation number on the same line as the equals sign. At least one of them will be misplaced. See below for a solution.