[Tex/LaTex] Having two braces which refer to a set of equations and its initial conditions on the same line

equationspositioning

Say I have;

\usepackage{amsmath}
  \begin{equation}
    \begin{cases}
     \dot x = 2z + xy \\
     \dot y  = 4xy - z\\
     \dot z = -5z
    \end{cases}
  \end{equation}

  \begin{equation}
    \begin{cases}
     x(0) = 0 \\
     y(0)  = 0\\
     z(0) = 1
    \end{cases}
  \end{equation}

How would I write this so that both equations are on the same line?

Best Answer

Just set the two cases in the same equation environment, separating them using something like \quad:

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{equation}
  \begin{cases}
    \dot{x} = 2z + xy \\
    \dot{y} = 4xy - z \\
    \dot{z} = -5z
  \end{cases}
  \qquad
  \begin{cases}
    x(0) = 0 \\
    y(0) = 0 \\
    z(0) = 1
  \end{cases}
\end{equation}

\end{document}

Remember to not leave a blank line in equation.

Related Question