[Tex/LaTex] Write several systems of linear equations in one line

equationsmath-mode

How to write several systems of linear equations in one line with automatic transfer?

\begin{multline*}
\begin{split}
\begin{cases}
- x + 8y = -15\\
4x -4y = 32\\
\end{cases}
\end{split}
\end{multline*}
%
\begin{multline*}
\begin{split}
\begin{cases}
y = \cfrac{x-15}{8}\\
4x -4y = 32\\
\end{cases}
\end{split}
\end{multline*}
%
\begin{multline*}
\begin{split}
\begin{cases}
y = \cfrac{x-15}{8}\\
4x -4(\cfrac{x-15}{8}) = 32\\
\end{cases}
\end{split}
\end{multline*}
%
\begin{multline*}
\begin{split}
\begin{cases}
y = \cfrac{x-15}{8}\\
7x = 49\\
\end{cases}
\end{split}
\end{multline*}
%
\begin{multline*}
\begin{split}
\begin{cases}
y = -1\\
x = 7\\
\end{cases}
\end{split}
\end{multline*}
%

I want to write down several systems of linear equations so that they go from left to right, top to bottom (an example of solving a system of linear equations), and not one under the other (by default).

Best Answer

Still another solution, which employs five side-by-side array environments.

enter image description here

\documentclass{article}
\usepackage[letterpaper,margin=1in]{geometry}
\usepackage{array}

\newcommand\myarray[1]{%
  \begingroup
  \renewcommand\arraystretch{1.33}
  \left\{ \begin{array}{@{}l@{}} #1 \end{array} \right.
  \endgroup}

\begin{document}
\[
\myarray{-x + 8y = -15\\4x -4y = 32}
\Rightarrow
\myarray{y = \frac{1}{8}(x-15)\\4x -4y = 32}
\Rightarrow
\myarray{y = \frac{1}{8}(x-15)\\4x -\frac{4}{8}(x-15) =32}
\Rightarrow
\myarray{y = \frac{1}{8}(x-15)\\7x = 49}
\Rightarrow
\myarray{y = \frac{1}{8}(-8)=-1\\x = 7}
\]
Alternatively, without any \verb+\frac+ terms:
\[
\myarray{-x + 8y = -15\\4x -4y = 32}
\Rightarrow
\myarray{-x + 8y = -15\\x = 8+y}
\Rightarrow
\myarray{-8-y+8y=-15\\x = 8+y}
\Rightarrow
\myarray{7y=-7\\x = 8+y}
\Rightarrow
\myarray{y = -1\\x = 8+(-1)=7}
\]
\end{document}
Related Question