Debian Codegraph @

texmf-dist/doc/latex/gauss/gauss-ex.tex

raw
1 %
2 % This file is part of the gauss package by Manuel Kauers.
3 % Its purpose is to demonstrate the usage of the package.
4 % See the gauss-doc.dvi file for further information.
5 %
6 \documentclass{article}
7 \usepackage{amsmath}
8 \usepackage{gauss}
9 \usepackage{amssymb} % to import \leadsto
10
11 \begin{document}
12
13 \section{An Example for Gaussian Elimination}
14
15 Consider the real matrix
16 \[
17 A(t):=\begin{pmatrix}
18 1 & 1 & 1 \\
19 t & 2t & 2 \\
20 t+1 & 0 & 2t
21 \end{pmatrix},
22 \]
23 which depends on a real valued parameter~$t$.
24 We want to find all solutions of the homogenous linear system defined by $A$
25 depending on the parameter~$t$.
26
27 Therefore, we use the Algorithm Gauss:
28 \begin{alignat*}1
29 A(t)=\begin{gmatrix}[p]
30 1 & 1 & 1 \\
31 t & 2t & 2 \\
32 t+1 & 0 & 2t
33 \rowops
34 \add[-t]{0}{1}
35 \add[-(t+1)]{0}{2}
36 \end{gmatrix}\kern-6.23pt\leadsto&
37 \begin{gmatrix}[p]
38 1 & 1 & 1 \\
39 0 & t & 2-t \\
40 0 & -t-1 & t-1
41 \rowops
42 \add12
43 \mult{2}{\cdot(-1)}
44 \end{gmatrix}\\
45 \leadsto&\begin{gmatrix}[p]
46 1 & 1 & 1 \\
47 0 & t & 2-t \\
48 0 & 1 & -1
49 \rowops
50 \swap12
51 \add[-t]12
52 \mult2{:2}
53 \end{gmatrix}\\
54 \leadsto&\begin{pmatrix}
55 1 & 1 & 1 \\
56 0 & 1 & -1 \\
57 0 & 0 & 1
58 \end{pmatrix}.
59 \end{alignat*}
60
61 \subsection*{Conclusion}
62
63 We have learned that the matrix $A$ defined above is regular for all real
64 valued~$t$, and we hopefully also have learned how to use the gauss package.
65
66 \end{document}