<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2002-2-1 (1.70)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Gaussian elimination procedure</TITLE>
<META NAME="description" CONTENT="Gaussian elimination procedure">
<META NAME="keywords" CONTENT="book1">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="book1.css">

<LINK REL="next" HREF="node3.html">
<LINK REL="previous" HREF="book1.html">
<LINK REL="up" HREF="book1.html">
<LINK REL="next" HREF="node2.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html20"
  HREF="node2.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="file:/usr/local/share/lib/latex2html/icons/next.gif"></A> 
<A NAME="tex2html18"
  HREF="book1.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="file:/usr/local/share/lib/latex2html/icons/up.gif"></A> 
<A NAME="tex2html12"
  HREF="book1.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="file:/usr/local/share/lib/latex2html/icons/prev.gif"></A>   
<BR>
<B> Next:</B> <A NAME="tex2html21"
  HREF="node2.html">Exercises</A>
<B> Up:</B> <A NAME="tex2html19"
  HREF="book1.html">book1</A>
<B> Previous:</B> <A NAME="tex2html13"
  HREF="book1.html">book1</A>
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION00100000000000000000">
Gaussian elimination procedure</A>
</H1>

<P>
There are two boxes - one with apples, the other with plums. It is
known that there are twice more apples than plums and total number
of fruits is 300. How many apples and how many plums are in those
two boxes?

<P>
Let us introduce notations: <BR>

<P>
<IMG
 WIDTH="12" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img1.gif"
 ALT="$x$"> - number of apples,

<P>
<IMG
 WIDTH="11" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img2.gif"
 ALT="$y$"> - number of plums.

<P>
<BR>
In terms of these new notations this problem takes
the following form. <BR>
<DIV ALIGN="RIGHT">

<!-- MATH
 \begin{equation}
\left\{ \begin{array}{ccc}
x & = & 2y\\
x+y & = & 300\end{array}\right.
\end{equation}
 -->
<TABLE WIDTH="100%" ALIGN="CENTER">
<TR VALIGN="MIDDLE"><TD ALIGN="CENTER" NOWRAP><A NAME="system1"></A><IMG
 WIDTH="122" HEIGHT="45" BORDER="0"
 SRC="img3.gif"
 ALT="\begin{displaymath}
\left\{ \begin{array}{ccc}
x &amp; = &amp; 2y\\
x+y &amp; = &amp; 300\end{array}\right.
\end{displaymath}"></TD>
<TD WIDTH=10 ALIGN="RIGHT">
(1.1)</TD></TR>
</TABLE>
<BR CLEAR="ALL"></DIV><P></P>
This is a simple example of a system of linear equations. This system
has two equations and two unknowns. After replacing <IMG
 WIDTH="12" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img1.gif"
 ALT="$x$"> with <IMG
 WIDTH="19" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img4.gif"
 ALT="$2y$">
in the second equation we obtain <BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
3y=300
\end{displaymath}
 -->

<IMG
 WIDTH="60" HEIGHT="27" BORDER="0"
 SRC="img5.gif"
 ALT="\begin{displaymath}
3y=300\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
which leads to <IMG
 WIDTH="61" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img6.gif"
 ALT="$y=100.$"> From the first equation we have <IMG
 WIDTH="62" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img7.gif"
 ALT="$x=200.$">

<P>
<BR>

<P>
Now consider more general system of linear equations.
<BR>
<DIV ALIGN="RIGHT">

<!-- MATH
 \begin{equation}
\left\{ \begin{array}{ccccccccc}
a_{11}x_{1}&+&a_{12}x_{2}&+&\ldots &+&a_{1n}x_{n} & = & b_{1},\\
a_{21}x_{1}&+&a_{22}x_{2}&+&\ldots &+&a_{2n}x_{n} & = & b_{2},\\
\vdots && \vdots &&  \ddots && \vdots &&  \vdots\\
a_{m1}x_{1}&+&a_{m2}x_{2}&+&\ldots &+&a_{mn}x_{n} & = & b_{m},
\end{array}\right.
\end{equation}
 -->
<TABLE WIDTH="100%" ALIGN="CENTER">
<TR VALIGN="MIDDLE"><TD ALIGN="CENTER" NOWRAP><A NAME="system2"></A><IMG
 WIDTH="371" HEIGHT="93" BORDER="0"
 SRC="img8.gif"
 ALT="\begin{displaymath}
\left\{ \begin{array}{ccccccccc}
a_{11}x_{1}&amp;+&amp;a_{12}x_{2}&amp;+...
...}x_{2}&amp;+&amp;\ldots &amp;+&amp;a_{mn}x_{n} &amp; = &amp; b_{m},
\end{array}\right.
\end{displaymath}"></TD>
<TD WIDTH=10 ALIGN="RIGHT">
(1.2)</TD></TR>
</TABLE>
<BR CLEAR="ALL"></DIV><P></P>
where <IMG
 WIDTH="23" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img9.gif"
 ALT="$a_{ij}$"> and <IMG
 WIDTH="15" HEIGHT="30" ALIGN="MIDDLE" BORDER="0"
 SRC="img10.gif"
 ALT="$b_{i}$"> are real numbers for all <IMG
 WIDTH="68" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img11.gif"
 ALT="$1\leq i\leq n$">
and <!-- MATH
 $1\leq j\leq m.$
 -->
<IMG
 WIDTH="79" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img12.gif"
 ALT="$1\leq j\leq m.$">

<P>
To solve (<A HREF="#system2"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]"
 SRC="file:/usr/local/share/lib/latex2html/icons/crossref.gif"></A>) we could follow the same idea that led us
to the solution of (<A HREF="#system1"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]"
 SRC="file:/usr/local/share/lib/latex2html/icons/crossref.gif"></A>). It is one of legitimate ways
of handling this type of problems and it has some valuable theoretical
aspects as we will see later. However, following this scenario we
would face many computational difficulties. That is one of the main
reason of adopting technique that is well known as &#34;<B>Gaussian
Elimination Procedure</B>&#34;<A NAME="tex2html1"
  HREF="footnode.html#foot63"><SUP>1.1</SUP></A>.

<P>
To describe Gaussian Elimination Procedure we write system (<A HREF="#system2"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]"
 SRC="file:/usr/local/share/lib/latex2html/icons/crossref.gif"></A>)
in a different way. We preserve only the information that is essential
for achieving our goal of finding solutions. This information is provided
only by coefficients <IMG
 WIDTH="23" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img9.gif"
 ALT="$a_{ij}$"> and <IMG
 WIDTH="15" HEIGHT="30" ALIGN="MIDDLE" BORDER="0"
 SRC="img10.gif"
 ALT="$b_{i}$"> with <IMG
 WIDTH="98" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img13.gif"
 ALT="$i=1,2,\dots,n$">
and <!-- MATH
 $j=1,2,\dots,m.$
 -->
<IMG
 WIDTH="108" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img14.gif"
 ALT="$j=1,2,\dots,m.$"> All other symbols in (<A HREF="#system2"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]"
 SRC="file:/usr/local/share/lib/latex2html/icons/crossref.gif"></A>) we can
drop and replace all &#34;<IMG
 WIDTH="15" HEIGHT="15" ALIGN="BOTTOM" BORDER="0"
 SRC="img15.gif"
 ALT="$=$">&#34; with a vertical
line. That leads us to the following table of numbers.

<P>
<BR>
<DIV ALIGN="RIGHT">

<!-- MATH
 \begin{equation}
\left(
\begin{array}{cccc}
a_{11} & a_{12} & \ldots & a_{1n} \\
a_{21} & a_{22} & \ldots & a_{2n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m1} & a_{m2} & \ldots & a_{mn}
\end{array}
\left|
\begin{array}{c}
b_{1},\\
b_{2},\\
\vdots \\
b_{m}
\end{array}
\right.
\right)
\end{equation}
 -->
<TABLE WIDTH="100%" ALIGN="CENTER">
<TR VALIGN="MIDDLE"><TD ALIGN="CENTER" NOWRAP><A NAME="augmented_matrix"></A><IMG
 WIDTH="228" HEIGHT="93" BORDER="0"
 SRC="img16.gif"
 ALT="\begin{displaymath}
\left(
\begin{array}{cccc}
a_{11} &amp; a_{12} &amp; \ldots &amp; a_{1n}...
..._{1},\\
b_{2},\\
\vdots \\
b_{m}
\end{array}\right.
\right)
\end{displaymath}"></TD>
<TD WIDTH=10 ALIGN="RIGHT">
(1.3)</TD></TR>
</TABLE>
<BR CLEAR="ALL"></DIV><P></P>
We need to work only with this table of numbers in order to find
solutions for (<A HREF="#system2"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]"
 SRC="file:/usr/local/share/lib/latex2html/icons/crossref.gif"></A>). This table of numbers is called <B>augmented
matrix</B> of system (<A HREF="#system2"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]"
 SRC="file:/usr/local/share/lib/latex2html/icons/crossref.gif"></A>). The following operations over
the rows of the augmented matrix do not change essentially the original system. In other words, they preserve the set of solutions.

<P>
<BR>

<P>
<DIV ALIGN="CENTER">
<B>Elementary Row Operations</B>
</DIV>
<DL COMPACT>
<DT> i.</DT>
<DD>Any two rows can be interchanged. 
</DD>
<DT> ii.</DT>
<DD>Any row can be multiplied by a non zero number. Multiplication is performed entry-wise, i.e. each entry in the row is multiplied by the same number.
</DD>
<DT> iii.</DT>
<DD>Any row can be replaced by its sum with any other row.  Addition between two rows is performed entry-wise. That means any two entries with the same second index <IMG
 WIDTH="10" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img17.gif"
 ALT="$j$"> are added to each other.
</DD>
</DL>
Now we play a game with augmented matrix (<A HREF="#augmented_matrix"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]"
 SRC="file:/usr/local/share/lib/latex2html/icons/crossref.gif"></A>).
Rules of this game are defined by elementary row operations. The goal
is to zero as many coefficients <IMG
 WIDTH="23" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img9.gif"
 ALT="$a_{ij}$"> as possible with <IMG
 WIDTH="41" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img18.gif"
 ALT="$i&lt;j.$">
Those coefficients are in the lower left corner of the augmented matrix.
There is abandon of strategies in playing this game. One of them is
based on <B>Gaussian Elimination Procedure</B>. Although it is not
the most efficient among the strategies it is very simple.

<P>
<DIV ALIGN="CENTER">
<B>Gaussian Elimination Procedure</B>
</DIV>
<DL COMPACT>
<DT> i.</DT>
<DD>By interchanging rows make sure that the leading element in the
first row is not zero, <IMG
 WIDTH="59" HEIGHT="30" ALIGN="MIDDLE" BORDER="0"
 SRC="img19.gif"
 ALT="$a_{11}\not=0.$">
</DD>
<DT> ii.</DT>
<DD>Multiply the first row with <!-- MATH
 $\frac{1}{a_{11}}.$
 -->
<IMG
 WIDTH="30" HEIGHT="35" ALIGN="MIDDLE" BORDER="0"
 SRC="img20.gif"
 ALT="$\frac{1}{a_{11}}.$">
</DD>
<DT> iii.</DT>
<DD>Replace each <IMG
 WIDTH="9" HEIGHT="14" ALIGN="BOTTOM" BORDER="0"
 SRC="img21.gif"
 ALT="$i$">-th row for <IMG
 WIDTH="38" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img22.gif"
 ALT="$i\geq2$"> by its sum with the first
row multiplied by <IMG
 WIDTH="39" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img23.gif"
 ALT="$-a_{ij},$"> where <IMG
 WIDTH="40" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img24.gif"
 ALT="$j=1$"> for the first invocation of the procedure.
</DD>
<DT>&nbsp;$$</DT>
<DD>iv. Repeat the previous steps (i, ii, iii) for the matrix in the lower
left corner defined by coefficient with indices <IMG
 WIDTH="32" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
 SRC="img25.gif"
 ALT="$\{ ij\}$"> where <IMG
 WIDTH="38" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img22.gif"
 ALT="$i\geq2$"> and <IMG
 WIDTH="44" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img26.gif"
 ALT="$j\geq 2.$">
</DD>
</DL>
Under Gaussian Elimination Procedure the augmented matrix becomes
&#34;triangular&#34; in the sense that coefficients in the
lower left corner are zeroes. Let us take a closer look at the transformations
of augmented matrix on different steps of Gaussian Elimination Procedure.

<P>
<BR>

<P>
After the first step of Gaussian Elimination Procedure we make sure that the leading element in the first row is not zero. Our matrix looks as in Fig.&nbsp;<A HREF="#fig:gaussian_elem_1"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]"
 SRC="file:/usr/local/share/lib/latex2html/icons/crossref.gif"></A>.

<P>

<DIV ALIGN="CENTER"><A NAME="fig:gaussian_elem_1"></A><A NAME="119"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure:</STRONG>
Leading element in the first row is not zero</CAPTION>
<TR><TD><IMG
 WIDTH="273" HEIGHT="235" BORDER="0"
 SRC="img27.gif"
 ALT="\begin{figure}\begin{center}
\psfig{file=images/gaussian_elem_1.eps,scale=0.7}
\end{center}\end{figure}"></TD></TR>
</TABLE>
</DIV>

<P>
Then we multiply the fist row by <!-- MATH
 $\frac{1}{a_{11}}$
 -->
<IMG
 WIDTH="25" HEIGHT="35" ALIGN="MIDDLE" BORDER="0"
 SRC="img28.gif"
 ALT="$\frac{1}{a_{11}}$"> (Fig.&nbsp;<A HREF="#fig:gaussian_elem_2"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]"
 SRC="file:/usr/local/share/lib/latex2html/icons/crossref.gif"></A>).

<DIV ALIGN="CENTER"><A NAME="fig:gaussian_elem_2"></A><A NAME="733"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure:</STRONG>
After multiplying the fist row by <!-- MATH
 $\frac{1}{a_{11}}$
 -->
<IMG
 WIDTH="25" HEIGHT="35" ALIGN="MIDDLE" BORDER="0"
 SRC="img28.gif"
 ALT="$\frac{1}{a_{11}}$"></CAPTION>
<TR><TD><IMG
 WIDTH="274" HEIGHT="182" BORDER="0"
 SRC="img29.gif"
 ALT="\begin{figure}\begin{center}
\psfig{file=images/gaussian_elem_2.eps,scale=0.7}
\end{center}\end{figure}"></TD></TR>
</TABLE>
</DIV>

<P>
Now we can "kill" all elements below "<IMG
 WIDTH="11" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img30.gif"
 ALT="$1$">" in the first column of the matrix. It is done by replacing each <IMG
 WIDTH="9" HEIGHT="14" ALIGN="BOTTOM" BORDER="0"
 SRC="img21.gif"
 ALT="$i$">-th <IMG
 WIDTH="50" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
 SRC="img31.gif"
 ALT="$(i&gt;1)$"> row by its sum with the first row multiplied by <IMG
 WIDTH="40" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img32.gif"
 ALT="$-a_{i1}.$"> Let us introduce notations, 
<!-- MATH
 $\bar a_{ij} = a_{ij} - a_{i1}\cdot \frac{a_{1j}}{a_{11}}.$
 -->
<IMG
 WIDTH="141" HEIGHT="34" ALIGN="MIDDLE" BORDER="0"
 SRC="img33.gif"
 ALT="$ \bar a_{ij} = a_{ij} - a_{i1}\cdot \frac{a_{1j}}{a_{11}}.$"> Then our new matrix will be of the following form. 

<P>

<DIV ALIGN="CENTER"><A NAME="fig:gaussian_elem_2"></A><A NAME="143"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure:</STRONG>
All elements below <IMG
 WIDTH="11" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img30.gif"
 ALT="$1$"> are zeroes</CAPTION>
<TR><TD><IMG
 WIDTH="274" HEIGHT="167" BORDER="0"
 SRC="img34.gif"
 ALT="\begin{figure}\begin{center}
\psfig{file=images/gaussian_elem_3.eps,scale=0.7}
\end{center}\end{figure}"></TD></TR>
</TABLE>
</DIV>

<P>
Now we repeat the same steps (i, ii, iii) for the matrix in the lower right corner,i.e., the matrix with entries <IMG
 WIDTH="27" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img35.gif"
 ALT="$a_{ij}, $"> where <IMG
 WIDTH="38" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img36.gif"
 ALT="$i&gt;1$"> and <IMG
 WIDTH="44" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img37.gif"
 ALT="$j&gt;1.$"> Let us illustrate Gaussian Elimination Procedure with examples.

<P>
<P>
<DIV><B>Example  1.1</B> &nbsp; </DIV><P></P>
Solve the system of linear equations.
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left\{
\begin{array}{ccccccc}
      2\cdot x_1 &+& 4\cdot x_2 &+& 8 \cdot x_3 &=& 16 \\
       x_1 &+&  x_2 &+&  x_3 &=& 1 \\
       x_1 &+& 3\cdot x_2 &+&  x_3 &=& 2 
\end{array}
\right.
\end{displaymath}
 -->

<IMG
 WIDTH="275" HEIGHT="64" BORDER="0"
 SRC="img38.gif"
 ALT="\begin{displaymath}
\left\{
\begin{array}{ccccccc}
2\cdot x_1 &amp;+&amp; 4\cdot x_2 &amp;+...
...=&amp; 1 \\
x_1 &amp;+&amp; 3\cdot x_2 &amp;+&amp; x_3 &amp;=&amp; 2
\end{array}\right.
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
<B>Solution.</B> First, we write the augmented matrix for this system.
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left(
\begin{array}{ccc}
     2 & 4 & 8  \\
     1 & 1 & 1  \\
     1 & 3 & 1 
\end{array}
\left|
\begin{array}{c}
14\\
3\\
5
\end{array}
\right.
\right)
\end{displaymath}
 -->

<IMG
 WIDTH="131" HEIGHT="64" BORDER="0"
 SRC="img39.gif"
 ALT="\begin{displaymath}
\left(
\begin{array}{ccc}
2 &amp; 4 &amp; 8 \\
1 &amp; 1 &amp; 1 \\
1 &amp;...
...\vert
\begin{array}{c}
14\\
3\\
5
\end{array}\right.
\right)
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>

<P>
After dividing each element in the first row by <IMG
 WIDTH="11" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img40.gif"
 ALT="$2$"> we get the following matrix.
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left(
\begin{array}{ccc}
     1 & 2 & 4  \\
     1 & 1 & 1  \\
     1 & 3 & 1 
\end{array}
\left|
\begin{array}{c}
7\\
3\\
5
\end{array}
\right.
\right)
\end{displaymath}
 -->

<IMG
 WIDTH="124" HEIGHT="64" BORDER="0"
 SRC="img41.gif"
 ALT="\begin{displaymath}
\left(
\begin{array}{ccc}
1 &amp; 2 &amp; 4 \\
1 &amp; 1 &amp; 1 \\
1 &amp;...
...t\vert
\begin{array}{c}
7\\
3\\
5
\end{array}\right.
\right)
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>

<P>
Now we replace the second and the first row by their sums with the first row multiplied by "<IMG
 WIDTH="23" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img42.gif"
 ALT="$-1$">". That lead to the matrix. 
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left(
\begin{array}{ccc}
     1 & 2 & 4  \\
     0 & -1 & -3  \\
     0 & 1 & -3 
\end{array}
\left|
\begin{array}{c}
7\\
-4\\
-2
\end{array}
\right.
\right)
\end{displaymath}
 -->

<IMG
 WIDTH="160" HEIGHT="64" BORDER="0"
 SRC="img43.gif"
 ALT="\begin{displaymath}
\left(
\begin{array}{ccc}
1 &amp; 2 &amp; 4 \\
0 &amp; -1 &amp; -3 \\
0...
...vert
\begin{array}{c}
7\\
-4\\
-2
\end{array}\right.
\right)
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
After replacing the third row by its sum with the second row the Gaussian Elimination Procedure is completed.
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left(
\begin{array}{ccc}
     1 & 2 & 4  \\
     0 & -1 & -3  \\
     0 & 0 & -6 
\end{array}
\left|
\begin{array}{c}
7\\
-4\\
-6
\end{array}
\right.
\right)
\end{displaymath}
 -->

<IMG
 WIDTH="160" HEIGHT="64" BORDER="0"
 SRC="img44.gif"
 ALT="\begin{displaymath}
\left(
\begin{array}{ccc}
1 &amp; 2 &amp; 4 \\
0 &amp; -1 &amp; -3 \\
0...
...vert
\begin{array}{c}
7\\
-4\\
-6
\end{array}\right.
\right)
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
We can put back variables <!-- MATH
 $(x_1, x_2, x_3)$
 -->
<IMG
 WIDTH="78" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
 SRC="img45.gif"
 ALT="$(x_1, x_2, x_3)$"> and solve the system "backwards" starting from the last equation. 

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left\{
\begin{array}{ccccccc}
      x_1 &+& 2\cdot x_2 &+& 4 \cdot x_3 &=& 7 \\
     &&  -  x_2 &-& 3\cdot  x_3 &=& -4 \\
     && &&   - 6 \cdot x_3 &=& -6 
\end{array}
\right.
\end{displaymath}
 -->

<IMG
 WIDTH="273" HEIGHT="64" BORDER="0"
 SRC="img46.gif"
 ALT="\begin{displaymath}
\left\{
\begin{array}{ccccccc}
x_1 &amp;+&amp; 2\cdot x_2 &amp;+&amp; 4 \cd...
...x_3 &amp;=&amp; -4 \\
&amp;&amp; &amp;&amp; - 6 \cdot x_3 &amp;=&amp; -6
\end{array}\right.
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
The last equation implies that <IMG
 WIDTH="53" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img47.gif"
 ALT="$x_3=1.$"> Then we are moving "backwards" in terms of the equations of this system. The second line gives us <IMG
 WIDTH="53" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img48.gif"
 ALT="$x_2 = 1,$"> and finally the first line leads us to <IMG
 WIDTH="53" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img49.gif"
 ALT="$x_1=1.$"> 
The system has the only solution 
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\begin{array}{ccc}
x_1&=&1\\
x_2&=&1\\
x_3&=&1
\end{array}
\end{displaymath}
 -->

<IMG
 WIDTH="66" HEIGHT="64" BORDER="0"
 SRC="img50.gif"
 ALT="\begin{displaymath}
\begin{array}{ccc}
x_1&amp;=&amp;1\\
x_2&amp;=&amp;1\\
x_3&amp;=&amp;1
\end{array}\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
In other words, the solution is the string of numbers <IMG
 WIDTH="58" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
 SRC="img51.gif"
 ALT="$(1,1,1).$"> If a linear system has at least one solution then it is called <B>consistent</B>.

<P>
<!-- MATH
 $\qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \diamond$
 -->
<IMG
 WIDTH="488" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img52.gif"
 ALT="$ \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \diamond $">

<P>
<P>
<DIV><B>Example  1.2</B> &nbsp; </DIV><P></P>
Solve the system of linear equations.
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left\{
\begin{array}{ccccccc}
      2\cdot x_1& +& 4\cdot x_2& +& 8 \cdot x_3 &=& 8 \\
       x_1 &+ & x_2& + & x_3 &=& 3 \\
       && 2\cdot x_2& +&  6 \cdot x_3 &=& 2
\end{array}
\right.
\end{displaymath}
 -->

<IMG
 WIDTH="267" HEIGHT="64" BORDER="0"
 SRC="img53.gif"
 ALT="\begin{displaymath}
\left\{
\begin{array}{ccccccc}
2\cdot x_1&amp; +&amp; 4\cdot x_2&amp; +...
... 3 \\
&amp;&amp; 2\cdot x_2&amp; +&amp; 6 \cdot x_3 &amp;=&amp; 2
\end{array}\right.
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
<B>Solution.</B> First, we write the augmented matrix for this system.

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left(
\begin{array}{ccc}
     2 & 4 & 8  \\
     1 & 1 & 1  \\
     0 & 2 & 6   
\end{array}
\left|
\begin{array}{c}
8\\
3\\
2
\end{array}
\right.
\right)
\end{displaymath}
 -->

<IMG
 WIDTH="124" HEIGHT="64" BORDER="0"
 SRC="img54.gif"
 ALT="\begin{displaymath}
\left(
\begin{array}{ccc}
2 &amp; 4 &amp; 8 \\
1 &amp; 1 &amp; 1 \\
0 &amp;...
...t\vert
\begin{array}{c}
8\\
3\\
2
\end{array}\right.
\right)
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>

<P>
After dividing each element in the first row by <IMG
 WIDTH="11" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img40.gif"
 ALT="$2$"> we get the following matrix.

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left(
\begin{array}{ccc}
     1 & 2 & 4  \\
     1 & 1 & 1  \\
     0 & 2 & 6
\end{array}
\left|
\begin{array}{c}
4\\
3\\
2
\end{array}
\right.
\right)
\end{displaymath}
 -->

<IMG
 WIDTH="124" HEIGHT="64" BORDER="0"
 SRC="img55.gif"
 ALT="\begin{displaymath}
\left(
\begin{array}{ccc}
1 &amp; 2 &amp; 4 \\
1 &amp; 1 &amp; 1 \\
0 &amp;...
...t\vert
\begin{array}{c}
4\\
3\\
2
\end{array}\right.
\right)
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
We replace the second row by its sum with the first row multiplied by "<IMG
 WIDTH="23" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img42.gif"
 ALT="$-1$">". 
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left(
\begin{array}{ccc}
     1 & 2 & 4  \\
     0 & -1 & -3  \\
     0 & 2 & 6
\end{array}  
\left|    
\begin{array}{c}
4\\
-1\\
2
\end{array}
\right.
\right)
\end{displaymath}
 -->

<IMG
 WIDTH="160" HEIGHT="64" BORDER="0"
 SRC="img56.gif"
 ALT="\begin{displaymath}
\left(
\begin{array}{ccc}
1 &amp; 2 &amp; 4 \\
0 &amp; -1 &amp; -3 \\
0...
...vert
\begin{array}{c}
4\\
-1\\
2
\end{array}\right.
\right)
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
After replacing the third row by its sum with the second row multiplied by "<IMG
 WIDTH="11" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img40.gif"
 ALT="$2$">" we get the matrix. 

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left(
\begin{array}{ccc}
     1 & 2 & 4  \\
     0 & -1 & -3  \\
     0 & 0 & 0 
\end{array}  
\left|      
\begin{array}{c}
4\\
-1\\
0
\end{array}
\right.
\right)
\end{displaymath}
 -->

<IMG
 WIDTH="160" HEIGHT="64" BORDER="0"
 SRC="img57.gif"
 ALT="\begin{displaymath}
\left(
\begin{array}{ccc}
1 &amp; 2 &amp; 4 \\
0 &amp; -1 &amp; -3 \\
0...
...vert
\begin{array}{c}
4\\
-1\\
0
\end{array}\right.
\right)
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
Gaussian Elimination Procedure is completed. We reduce the original system to the following form.
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left\{
\begin{array}{ccccccc}
      x_1 &+& 2\cdot x_2 &+& 4 \cdot x_3 &=& 4 \\
      && -  x_2 &-& 3\cdot  x_3 &=& -1
\end{array}
\right.
\end{displaymath}
 -->

<IMG
 WIDTH="257" HEIGHT="45" BORDER="0"
 SRC="img58.gif"
 ALT="\begin{displaymath}
\left\{
\begin{array}{ccccccc}
x_1 &amp;+&amp; 2\cdot x_2 &amp;+&amp; 4 \cd...
...3 &amp;=&amp; 4 \\
&amp;&amp; - x_2 &amp;-&amp; 3\cdot x_3 &amp;=&amp; -1
\end{array}\right.
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
This system has infinitely many solutions. Indeed, the variable <IMG
 WIDTH="19" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img59.gif"
 ALT="$x_3$"> can take any real value. Mathematical representation of this fact looks as follows.
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
x_3 =t, \mbox{ where } t \mbox{ can be any number.}
\end{displaymath}
 -->

<IMG
 WIDTH="248" HEIGHT="27" BORDER="0"
 SRC="img60.gif"
 ALT="\begin{displaymath}
x_3 =t, \mbox{ where } t \mbox{ can be any number.}
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
Now the second equation of our system implies that
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
x_2 = 1 - 3\cdot t.
\end{displaymath}
 -->

<IMG
 WIDTH="92" HEIGHT="26" BORDER="0"
 SRC="img61.gif"
 ALT="\begin{displaymath}
x_2 = 1 - 3\cdot t.
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
Finally, the first equation gives us.
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
x_1 = 4 - 2 \cdot (1 - 3\cdot t) - 4 \cdot t = 2 + 2 \cdot t.
\end{displaymath}
 -->

<IMG
 WIDTH="269" HEIGHT="28" BORDER="0"
 SRC="img62.gif"
 ALT="\begin{displaymath}
x_1 = 4 - 2 \cdot (1 - 3\cdot t) - 4 \cdot t = 2 + 2 \cdot t.
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>

<P>
Our system has infinitely many solutions presented as
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\begin{array}{ccc}
x_1&=&2 + 2 \cdot t\\
x_2&=&1 - 3\cdot t\\
x_3&=&t
\end{array}
\end{displaymath}
 -->

<IMG
 WIDTH="113" HEIGHT="64" BORDER="0"
 SRC="img63.gif"
 ALT="\begin{displaymath}
\begin{array}{ccc}
x_1&amp;=&amp;2 + 2 \cdot t\\
x_2&amp;=&amp;1 - 3\cdot t\\
x_3&amp;=&amp;t
\end{array}\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
where <IMG
 WIDTH="9" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img64.gif"
 ALT="$t$"> is an arbitrary number. This is called a <B>general solution</B> of the system. 

<P>
<!-- MATH
 $\qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \diamond$
 -->
<IMG
 WIDTH="488" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img52.gif"
 ALT="$ \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \diamond $">

<P>
<P>
<DIV><B>Example  1.3</B> &nbsp; </DIV><P></P>
Solve the system of linear equations.
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left\{
\begin{array}{ccccccc}
      2\cdot x_1 &+& 4\cdot x_2 &+& 8 \cdot x_3 &=& 8 \\
       x_1 &+&  x_2 &+&  x_3 &=& 3 \\
       && 2\cdot x_2 &+&  6 \cdot x_3 &=& 1
\end{array}
\right.
\end{displaymath}
 -->

<IMG
 WIDTH="267" HEIGHT="64" BORDER="0"
 SRC="img65.gif"
 ALT="\begin{displaymath}
\left\{
\begin{array}{ccccccc}
2\cdot x_1 &amp;+&amp; 4\cdot x_2 &amp;+...
... 3 \\
&amp;&amp; 2\cdot x_2 &amp;+&amp; 6 \cdot x_3 &amp;=&amp; 1
\end{array}\right.
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
<B>Solution.</B> First, we write the augmented matrix for this system.

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left(
\begin{array}{ccc}
     2 & 4 & 8  \\
     1 & 1 & 1  \\
     0 & 2 & 6
\end{array}
\left|
\begin{array}{c}
8\\
3\\
1
\end{array}
\right.
\right)
\end{displaymath}
 -->

<IMG
 WIDTH="124" HEIGHT="64" BORDER="0"
 SRC="img66.gif"
 ALT="\begin{displaymath}
\left(
\begin{array}{ccc}
2 &amp; 4 &amp; 8 \\
1 &amp; 1 &amp; 1 \\
0 &amp;...
...t\vert
\begin{array}{c}
8\\
3\\
1
\end{array}\right.
\right)
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
It is left as an exercise for the reader to follow the same steps as in the previous two examples. Upon completion of Gaussian Elimination Procedure we obtain the following augmented matrix.

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH
 \begin{displaymath}
\left(
\begin{array}{ccc}
     1 & 2 & 4  \\
     0 & -1 & -3  \\
     0 & 0 & 0
\end{array}
\left|
\begin{array}{c}
4\\
-1\\
-1
\end{array}
\right.
\right)
\end{displaymath}
 -->

<IMG
 WIDTH="160" HEIGHT="64" BORDER="0"
 SRC="img67.gif"
 ALT="\begin{displaymath}
\left(
\begin{array}{ccc}
1 &amp; 2 &amp; 4 \\
0 &amp; -1 &amp; -3 \\
0...
...vert
\begin{array}{c}
4\\
-1\\
-1
\end{array}\right.
\right)
\end{displaymath}">
</DIV>
<BR CLEAR="ALL">
<P></P>
According to the last line of the augmented matrix <IMG
 WIDTH="23" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
 SRC="img42.gif"
 ALT="$-1$"> is equal to <IMG
 WIDTH="11" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img68.gif"
 ALT="$0$"> which is nonsense. That means the system does not have any solutions. Such systems are called <B>inconsistent</B>.

<P>
<!-- MATH
 $\qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \diamond$
 -->
<IMG
 WIDTH="488" HEIGHT="13" ALIGN="BOTTOM" BORDER="0"
 SRC="img52.gif"
 ALT="$ \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \diamond $">

<P>
Any linear system falls in one of the following categories.

<P>
<DL COMPACT>
<DT></DT>
<DD>The system has the only solution.
  
</DD>
<DT></DT>
<DD>The system has infinitely many solutions.
  
</DD>
<DT></DT>
<DD>The system is inconsistent. That means it does not have any solutions.
</DD>
</DL>

<P>
Gaussian Elimination Procedure gives us a simple and effective way of dealing with a linear system. After a finite number of steps we are able to write the complete solution for a system or to conclude that the system is inconsistent.

<P>
<BR>

<P>
<BR><HR>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL>
<LI><A NAME="tex2html22"
  HREF="node2.html">Exercises</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<!--Navigation Panel-->
<A NAME="tex2html20"
  HREF="node2.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="file:/usr/local/share/lib/latex2html/icons/next.gif"></A> 
<A NAME="tex2html18"
  HREF="book1.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="file:/usr/local/share/lib/latex2html/icons/up.gif"></A> 
<A NAME="tex2html12"
  HREF="book1.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="file:/usr/local/share/lib/latex2html/icons/prev.gif"></A>   
<BR>
<B> Next:</B> <A NAME="tex2html21"
  HREF="node2.html">Exercises</A>
<B> Up:</B> <A NAME="tex2html19"
  HREF="book1.html">book1</A>
<B> Previous:</B> <A NAME="tex2html13"
  HREF="book1.html">book1</A>
<!--End of Navigation Panel-->
<ADDRESS>
Sergey Nikitin
2004-01-28
</ADDRESS>
</BODY>
</HTML>
