Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download

📚 The CoCalc Library - books, templates and other resources

Views: 96159
License: OTHER
1
<?xml version="1.0" encoding="UTF-8" ?>
2
3
<!-- Sage and Linear Algebra Worksheets -->
4
<!-- Robert A. Beezer -->
5
<!-- Copyright 2017-2019 License: CC BY-SA -->
6
<!-- See COPYING for more information -->
7
8
<pretext xmlns:xi="http://www.w3.org/2001/XInclude">
9
10
<article xml:id="overview">
11
<title>Sage and Linear Algebra Worksheets</title>
12
<subtitle>Overview</subtitle>
13
14
<!-- header inclusion needs -xinclude switch on xsltproc -->
15
<frontmatter>
16
<xi:include href="./header.xml" />
17
</frontmatter>
18
19
<paragraphs>
20
<title>Introduction</title>
21
22
<p>This is an overview, and Table of Contents, for the worksheets distributed here. This work is licensed under a <url href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</url></p>.
23
</paragraphs>
24
25
<paragraphs>
26
<title>Section RREF: Reduced Row-Echelon Form</title>
27
28
<p>Construct two matrices, learning Sage syntax. Row-reduce each.</p>
29
30
<p>Short: 5-10 minutes, 2 exercises. [<url href="RREF/RREF.html">HTML</url>]<nbsp />[<url href="RREF/RREF.pdf">PDF</url>]</p>
31
</paragraphs>
32
33
<paragraphs>
34
<title>Section NM: Reduced Row-Echelon Form</title>
35
36
<p>Demonstrate Definition NM, Theorem NMRRI, Definition NSM, Theorem NMUS. Experiment with random vectors of constants. Foreshadow the column space of a matrix. Preliminary work with vector spaces (membership).</p>
37
38
<p>Medium to Long: 20 minutes, 6 exercises. [<url href="NM/NM.html">HTML</url>]<nbsp />[<url href="NM/NM.pdf">PDF</url>]</p>
39
</paragraphs>
40
41
<paragraphs>
42
<title>Section SS: Spanning Sets</title>
43
44
<p>For Section LC, I illustrate Theorem VFSLS by writing the row-reduced version of an augmented matrix with white chalk for the pivot columns (first columns of an identity matrix), white chalk for the zero rows, and then different colors for each of the remaining columns. Then the vectors that describe the solution get the same numbers, or their negatives, in the same colors. But first I place the <q>pattern of zeros and ones</q> in place in white. Part of the entries in white is that they are known from just knowledge of the sets <m>D</m> and <m>F</m>. This example gets recycled in this Sage worksheet on the following day. This is similar to Example VFSAI.</p>
45
46
<p>Null spaces, spans and membership round out the topics. There is some foreshadowing of bases for subspaces.</p>
47
48
<p>Medium: 15 minutes, 2 exercises. [<url href="SS/SS.html">HTML</url>]<nbsp />[<url href="SS/SS.pdf">PDF</url>]</p>
49
</paragraphs>
50
51
<paragraphs>
52
<title>Section MISLE: Matrix Inverses and Systems of Linear Equations</title>
53
54
<p>A computational illustration of Theorem CINM and its proof. A nonsingular matrix versus a singular matrix.</p>
55
56
<p>Medium: 15 minutes, 4 exercises. [<url href="MISLE/MISLE.html">HTML</url>]<nbsp />[<url href="MISLE/MISLE.pdf">PDF</url>]</p>
57
</paragraphs>
58
59
<paragraphs>
60
<title>Section CRS: Column and Row Space</title>
61
62
<p>A detailed demonstration of Theorem CSCS, in both directions. You could do this quickly, or you could linger a while and drive the point home.</p>
63
64
<p>Short to Medium: 10 minutes, 2 exercises. [<url href="CRS/CRS.html">HTML</url>]<nbsp />[<url href="CRS/CRS.pdf">PDF</url>]</p>
65
</paragraphs>
66
67
<paragraphs>
68
<title>Section FS: Four Subspaces</title>
69
70
<p>Computations of all the constituent matrices of extended echelon form, and exercises exploring the matrices <m>J</m> and <m>L</m> for an <m>8\times 10</m> matrix.</p>
71
72
<p>Medium: 15 minutes, 2 exercises. [<url href="FS/FS.html">HTML</url>]<nbsp />[<url href="FS/FS.pdf">PDF</url>]</p>
73
</paragraphs>
74
75
<paragraphs>
76
<title>Section B: Bases</title>
77
78
<p>Theme: express vectors from <m>\mathbb{C}^n</m> as (unique) linear combinations of basis vectors. Techniques include solving systems, inverting matrices, obtaining a <term>coordinatization</term> from Sage, and Theorem COB for an orthonormal basis. The second and fourth exercises each has several parts.</p>
79
80
<p>Long: 20-25 minutes, 4 exercises. [<url href="B/B.html">HTML</url>]<nbsp />[<url href="B/B.pdf">PDF</url>]</p>
81
</paragraphs>
82
83
<paragraphs>
84
<title>Section PDM: Properties of Determinants</title>
85
86
<p>This worksheet is different from all the others. It uses elementary matrices and triangular matrices to construct the <term>LU decomposition</term> of a <m>5\times 5</m> matrix. It follows the logic of a constructive proof of the existence of such a decomposition, and uses some properties of determinants as checks along the way. The conclusion discusses how to solve a linear system by first constructing an LU decomposition, then <term>forward-solving</term> and <term>back-solving</term> .</p>
87
88
<p>This topic is not in the textbook, though all the prerequisites are. It is meant as a demonstration of the utility of elementary matrices and a glimpse at topics that might be part of a more advanced course.</p>
89
90
<p>Long: 20 minutes, no exercises. [<url href="PDM/PDM.html">HTML</url>]<nbsp />[<url href="PDM/PDM.pdf">PDF</url>]</p>
91
</paragraphs>
92
93
<paragraphs>
94
<title>Section EE: Eigenvalues and Eigenvectors</title>
95
96
<p>Just two exercises to experiment with, but lots of other things to demonstrate. The theme of this worksheet is really just to show all the computational tools for various computations related to eigenvalues and eigenvectors that we would never want to do by hand. The later sections have some impressive examples of how fast Sage can be, for both exact and numerical linear algebra.</p>
97
98
<p>Long: 15-20 minutes, two exercises. [<url href="EE/EE.html">HTML</url>]<nbsp />[<url href="EE/EE.pdf">PDF</url>]</p>
99
</paragraphs>
100
101
<paragraphs>
102
<title>Section SD: Similarity and Diagonalization</title>
103
104
<p>A similarity check, diagonalization of a diagonalizable matrix, an attempt to diagonalize a defective matrix, Jordan canonical form, and rational canonical form. The two canonical forms can be skipped, they are present just to help answer the question of what is possible for a matrix that does not diagonalize.</p>
105
106
<p>Medium: 15 minutes, four exercises. [<url href="SD/SD.html">HTML</url>]<nbsp />[<url href="SD/SD.pdf">PDF</url>]</p>
107
</paragraphs>
108
109
<paragraphs>
110
<title>Section LT: Linear Transformations</title>
111
112
<p>Three ways to create linear transformations from <m>\mathbb{Q}^n</m> to <m>\mathbb{Q}^m</m>, in addition to basic queries and operations for Sage linear transformations.</p>
113
114
<p>I do not present any of the four linear transformation worksheets in class, but instead suggest students work through them themselves, if they are interested. So they are mostly not organized with exercises.</p>
115
116
<p>Medium: no exercises. [<url href="LT/LT.html">HTML</url>]<nbsp />[<url href="LT/LT.pdf">PDF</url>]</p>
117
</paragraphs>
118
119
<paragraphs>
120
<title>Section ILT: Injective Linear Transformations</title>
121
122
<p>Two linear transformations, one injective, the other non-injective. Checks on injectiveness and images, along with a demonstration of the non-injective linear transformation failing the definition.</p>
123
124
<p>Short: no exercises. [<url href="ILT/ILT.html">HTML</url>]<nbsp />[<url href="ILT/ILT.pdf">PDF</url>]</p>
125
</paragraphs>
126
127
<paragraphs>
128
<title>Section SLT: Surjective Linear Transformations</title>
129
130
<p>Two linear transformations, one surjective, the other non-surjective. Checks on surjectiveness and images, along with a demonstration of the non-injective linear transformation failing the definition.</p>
131
132
<p>Some work with pre-images, including three exercises.</p>
133
134
<p>Medium: three exercises. [<url href="SLT/SLT.html">HTML</url>]<nbsp />[<url href="SLT/SLT.pdf">PDF</url>]</p>
135
</paragraphs>
136
137
<paragraphs>
138
<title>Section IVLT: Invertible Linear Transformations</title>
139
140
<p>An invertible linear transformation, its inverse, and the composition of the two. Twice. There is some work with the rank and nullity of a Sage linear transformation.</p>
141
142
<p>Medium: no exercises. [<url href="IVLT/IVLT.html">HTML</url>]<nbsp />[<url href="IVLT/IVLT.pdf">PDF</url>]</p>
143
</paragraphs>
144
145
<paragraphs>
146
<title>Section VR: Vector Representations</title>
147
148
<p>Two examples, one in <m>\mathbb{Q}^6</m>, and the other in <m>P_3</m>.</p>
149
150
<p>Short, 10 minutes: no exercises. [<url href="VR/VR.html">HTML</url>]<nbsp />[<url href="VR/VR.pdf">PDF</url>]</p>
151
</paragraphs>
152
153
<paragraphs>
154
<title>Section MR: Matrix Representations</title>
155
156
<p>A random linear transformation from <m>\mathbb{Q}^6</m> to <m>\mathbb{Q}^4</m> is used to build a matrix representation with random bases of the domain and codomain. The first construction mirrors Definition MR, and uses it to demonstrate Theorem FTMR. The second construction is semi-automatic with the right linear transformation commands in Sage. Everthing is then in place for a sneak preview of Theorem MRCB of Section CB, so we go ahead and do the relevant computation.</p>
157
158
<p>Medium, 15 minutes: no exercises. [<url href="MR/MR.html">HTML</url>]<nbsp />[<url href="MR/MR.pdf">PDF</url>]</p>
159
</paragraphs>
160
161
<paragraphs>
162
<title>Section CB: Change of Basis</title>
163
164
<p>One random linear transformation (from <m>\mathbb{Q}^3</m> to <m>\mathbb{Q}^7</m>), four random bases, two matrix representations, and two change-of-basis matrices, all rolled into a demonstration of Theorem MRCB.</p>
165
166
<p>Then an engineered linear transformation from <m>\mathbb{Q}^8</m> to <m>\mathbb{Q}^8</m> provides a diagonal representation with a basis of eigenvectors. Eigenvalues and eigenvectors are investigated as properties of the linear transformation (rather than as properties of a matrix). The connections to similarity and Section SD are made explicit.</p>
167
168
<p>Medium, 20 minutes: one simple exercise. [<url href="MR/MR.html">HTML</url>]<nbsp />[<url href="MR/MR.pdf">PDF</url>]</p>
169
</paragraphs>
170
171
<xi:include href="./legal.xml" />
172
173
</article>
174
</pretext>
175
176
177