Ahoy,
so basically, I have a three-line set of equations. I want the first two lines to be aligned at the first = sign, and the last line's right end to be at the second-to last line's right end.
I tried to make sense of the alignat environment for this purpose, but I found it very difficult to actually understand what the commands do. My minimum (not-)working example is as follows:
\documentclass[10pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{alignat}{2}
a &= b + c &\\
G (y_k^n) &= G((y_k^n)_0 + \delta y_k^n) = (G)_0 + \delta G = 0, & \\
& k=0,\ldots 3; n=0,\ldots, N-1 & \nonumber
\end{alignat}
\end{document}
How do I persuade it to put the last line at the right edge of the second line?