[Tex/LaTex] Two sets of aligned equations in two columns

alignequationsmath-modetwo-column

Say I have a set of equations:

(1)

\begin{align}
wx&=u\\
wy&=v\\
w&=10
\end{align}

(2)

\begin{align}
x&=u/w\\
y&=v/w\\
\end{align}

How can I do the following: put (1) and (2) in the same line but in two separate columns,
and add a \leftrightarrow between them? i.e., something like

enter image description here

I tried putting (1) (2) and arrow in three minipage environments, but the width of minipage is hard to tune when (1) (2) have different width and looks quite ugly as above.

Best Answer

Try the aligned environment from the amsmath package.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\begin{aligned}[c]
wx&=u\\
wy&=v\\
w&=10
\end{aligned}
\qquad\Longleftrightarrow\qquad
\begin{aligned}[c]
x&=u/w\\
y&=v/w\\
\end{aligned}
\end{equation*}
\end{document}
Related Question