I tried to illustrate how to solve a system of linear equations but I don't come along with the different approaches to position the equations. They are shifted at some slides, e.g. if an arrow is displayed or even if some variables are only colored!
Here's my simple but not so minimal looking example:
\documentclass[dvipsnames,mathserif]{beamer}
\usepackage{tikz}
\RequirePackage{color}
\usepackage{amsmath}
\newcommand{\ma}[1]{\textcolor[named]{Magenta}{#1}}
\newcommand{\cy}[1]{\textcolor[named]{Cyan}{#1}}
\begin{document}
\tikzstyle{every picture}+=[remember picture]
%%%%%%%% Folie %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame
{
\frametitle{LGS (without anything)}
%===========================
\begin{alignat*}{4}
x_1\ &+\ 2x_2\ & &+\ x_4\ &=\ 1\\
x_1\ &+\ 2x_2\ &+\ 2x_3\ &+\ 3x_4\ &=\ 5\\
2x_1\ &+\ 4x_2\ & &+\ 3x_4\ &=\ 5\\
& & 3x_3\ &+\ 2x_4\ &=\ 3
\end{alignat*}
}
\frame
{
\frametitle{LGS (with arrow)}
%===========================
\begin{alignat*}{5}
& & 3x_3\ &+\ 2x_4\ &=\ 3 &\tikz{\node (n1){};} \\
x_1\ &+\ 2x_2\ &+\ 2x_3\ &+\ 3x_4\ &=\ 5 \\
2x_1\ &+\ 4x_2\ & &+\ 3x_4\ &=\ 5 \\
x_1\ &+\ 2x_2\ &+\ x_4\ &=\ 1 &\tikz{\node (n2){};}
\end{alignat*}
\begin{tikzpicture}[overlay]
\path<2>[blue,<->,thick] (n1.east) edge [out= 330, in= 30] (n2.east);
\end{tikzpicture}
}
%%%%%%%% Folie %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame
{
\frametitle{LGS (colored variables and with arrow)}
%===========================
%\normalsize
\begin{alignat*}{5}
& &\cy{3x_3}\ &+\ \cy{2x_4}\ &=\ \cy{3} &\tikz{\node (n3){};} \\
x_1\ &+\ 2x_2\ &+\ 2x_3\ &+\ 3x_4\ &=\ 5 \\
2x_1\ &+\ 4x_2\ & &+\ 3x_4\ &=\ 5 \\
\ma{x_1}\ &+\ \ma{2x_2}\ & &+\ \ma{x_4}\ &=\ \ma{1} &\tikz{\node (n4){};}
\end{alignat*}
\begin{tikzpicture}[overlay]
\draw[blue,<->,thick] (n3.east) to [out= 330, in= 30] (n4.east);
\end{tikzpicture}
}
%%%%%%%% Folie %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame
{
\frametitle{LGS (colored variables)}
%===========================
\begin{alignat*}{4}
\ma{x_1}\ &+\ \ma{2x_2}\ & &+\ \ma{x_4}\ &=\ \ma{1}\\
x_1\ &+\ 2x_2\ &+\ 2x_3\ &+\ 3x_4\ &=\ 5 \\
2x_1\ &+\ 4x_2\ & &+\ 3x_4\ &=\ 5 \\
& &\cy{3x_3}\ &+\ \cy{2x_4}\ &=\ \cy{3} \\
\end{alignat*}
}
\frame
{
\frametitle{LGS (again without anything)}
%===========================
\begin{alignat*}{4}
x_1\ &+\ 2x_2\ & &+\ x_4\ &=\ 1\\
x_1\ &+\ 2x_2\ &+\ 2x_3\ &+\ 3x_4\ &=\ 5\\
2x_1\ &+\ 4x_2\ & &+\ 3x_4\ &=\ 5\\
& & 3x_3\ &+\ 2x_4\ &=\ 3
\end{alignat*}
}
\end{document}


