Today I found out the existence of the aligned environment of the amsmath package. However, I can't see the advantage of using it instead of the array environment from the example provided in amsldoc.pdf, Sec.3.7. In particular, as I can just get almost the same result by using the array environment:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\left.\begin{aligned}
B'&=-\partial\times E,\\
E'&=\partial\times B - 4\pi j,
\end{aligned}
\right\}
\qquad \text{Maxwell’s equations}
\end{equation*}
\begin{equation*}
\left.\begin{array}{l}
B'=-\partial\times E,\\
E'=\partial\times B - 4\pi j,
\end{array}
\right\}
\qquad \text{Maxwell’s equations}
\end{equation*}
\end{document}
giving the output

What are the differences, and why should one be preferred over the other in this context?

\!, an equation with width of linewidth issues a warning (and maybe sticks out to the right that amount)? – jjdb May 02 '13 at 10:06aligned? I can't find it in the documentation. – jjdb May 02 '13 at 16:01arrayoraligned? I was just wondering again which one I should use. – Zelphir Kaltstahl Sep 16 '16 at 14:04arrayis for, well, arrays; for aligning different equations,alignedor similar environments are better. – egreg Sep 16 '16 at 14:52alignedis clear for me then, butarrayis not so clear for me. When would you usearrayinstead of somematrixthen? Isn't an array a matrix? I don't know how to distinguish those yet. In mathematics itself I've never heard of arrays, only of matrices so far. However, I didn't study mathematics, might be I am missing something. – Zelphir Kaltstahl Sep 17 '16 at 23:40array(but it's better to use the appropriateamsmathspecial environments);arrayis more general and can come handy in case some complex alignment is needed. – egreg Sep 18 '16 at 08:12