I would like to align the equation like this but instead have the label (40.a) and (40.b) for the last two lines. I don't know how to do this with subequations because of the \times\left{ that should be aligned with the =.
The code (moved from comment):
\documentclass{article}
\begin{document}
\begin{eqnarray}
\begin{array}{cl} a & =b(x)\[10pt] & \times\left\{ \begin{matrix} c&\text{if }x<1, \[10pt] d&\text{if }x>1.
\end{matrix} \right.
\end{array}
\end{eqnarray}.
\end{document}


\begin{subequations} ...<equations>...\end{subequations}. – Zarko Jun 12 '16 at 14:57\end{matrix} \right. \end{array} \end{eqnarray}.
I don't know how to do this using subequations. – user107878 Jun 12 '16 at 14:58