[Tex/LaTex] Varying number of columns in multi-equation environment

alignamsmathcolumnsequations

Consider the following document:

\documentclass{article}
\usepackage{amsmath}
\newcommand{\expr}[1]{\begin{pmatrix}x_#1\\y_#1\end{pmatrix}}
\begin{document}
\begin{equation}
  c = a \cdot b
\end{equation}
\begin{align*}
  a&=\expr{a} & b&=\expr{b}
\end{align*}
\end{document}

which displays like this:

equation + align* environments

I.e. the first (part of the) equation is centered, the second part is set in two columns with a third of the free space located before, in between and after.

I would like to have the same setup, but with the equation(s) in one environment.

I have tried several combinations of multi-equation environments in amsmath, but without luck. For instance:

\begin{align}
  \begin{aligned}
    c = a \cdot b
  \end{aligned} \\
  \nonumber
  \begin{aligned}a&=\expr{a}\end{aligned} & & \begin{aligned}b&=\expr{b}\end{aligned}
\end{align}

displays like this:

align environment

with the two "sub-equations" being fine, but the main equation at the top is not centered. The following:

\begin{gather}
  c = a \cdot b \\
  \begin{aligned}
    \nonumber
    a&=\expr{a} & b&=\expr{b}
  \end{aligned}
\end{gather}

results in the two "sub-equations" being set too tight:

gather environment

Best Answer

How about

enter image description here

\documentclass{article}
\usepackage{amsmath}
\newcommand{\expr}[1]{\begin{pmatrix}x_#1\\y_#1\end{pmatrix}}

\begin{document}

\begin{align}
        &           &   c   &= a \cdot b\\
    a   &=\expr{a}  &       &           & b &=\expr{b}\nonumber
\end{align}

\end{document}