-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCh03_Matrices.tex
More file actions
1582 lines (1424 loc) · 61.5 KB
/
Ch03_Matrices.tex
File metadata and controls
1582 lines (1424 loc) · 61.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\chapter{Linear Systems and Matrices}
In this chapter we'll assume that you are familiar with the basics of linear algebra.
Hence, you can use the appropriate linked text from Section \ref{pref:resources} for any
necessary explanation on these problems. I highly suggest you use your notes from when
you first saw linear algebra. We will begin here with a few of the basic definitions and
we will recap some of the basics from systems of equations, row reduction, linear
combinations, and matrix operations. I highly suggest that you \underline{{\bf PUT YOUR
CALCULATOR DOWN}} and get used to doing all of these techniques by hand. There is a time
and place for technology and for the most part this chapter is not it.
\section{Matrix Operations and Definitions}
\begin{problem}
\begin{enumerate}
\item[(a)] Give an example of two matrices that are equal and then give several
examples of two matrices that are not equal.
\item[(b)] Give an example of two matrices where addition (or subtraction) does
not make sense.
\item[(c)] Write down a non-zero matrix $A$ and describe what it means to scalar
multiply the matrix by 5.
\item[(d)] Write down a $3\times 2$ matrix. If you swap the rows and columns of
the matrix, what matrix do you get and what size is it?
\item[(e)] Give two matrices, $A$ and $B$, that can be multiplied and find their
product.
\item[(f)] Give two matrices, $A$ and $B$, that cannot be multiplied.
\end{enumerate}
\end{problem}
\begin{definition}[Size of a Matrix]
If $A$ is a matrix with $m$ rows and $n$ columns then we say that $A$ has
size (or
dimensions) $m \times n$.
\end{definition}
\begin{definition}[Equality of Matrices]
Two matrices are equal if their corresponding entries are equal. Matrices can only be
equal if the sizes are equal.
\end{definition}
\begin{definition}[Addition and Subtraction of Matrices]
Matrix addition and subtraction and done by regular addition and subtraction on the
corresponding entries. Matrix addition and subtraction can only be performed on
matrices of the same size.
\end{definition}
\begin{definition}[Scalar Multiplication]
If $A$ is a matrix then $cA$ is a scalar multiple of the matrix. Multiplying a matrix
by a scalar multiplies every entry by the scalar.
\end{definition}
\begin{definition}[Transposition of a Matrix]
If $A$ is a matrix then $A^T$
is the transpose of the matrix found by interchanging
the rows and columns of $A$. If $A$ is $m \times n$ then $A^T$
is $n \times m$.
\end{definition}
\begin{definition}
If $A$ is an $m \times n$ matrix and $B$ is an $n \times p$ matrix then the product of
$A$ and $B$ is $C = AB$ where:
\begin{itemize}
\item The size of $AB$ is $m \times p$. The number of columns in $A$ must be the
same as the number of rows of $B$.
\item The entry in row $i$ and column $j$ of $C = AB$ is
\[ c_{ij} = a_{i1} b_{1j} + a_{i2}b_{2j} + \cdots + a_{in}b_{nj} =
\sum_{k=1}^n a_{ik}b_{kj}.\]
\end{itemize}
It is very important to note that in general $AB \ne BA$.
\end{definition}
\begin{problem}
Consider the matrices $A$ and $B$. Find the products $AB$ and $BA$ if they exist.
\[ A = \begin{pmatrix} 1 & 2 & -3 \\ 2 & 0 & 1 \end{pmatrix} \qquad B =
\begin{pmatrix} 5 & -2 \\ -1 & 0 \\ 1 & 3 \end{pmatrix} \]
\end{problem}
\solution{
\[ AB = \begin{pmatrix} 0 & -11 \\ 11 & -1 \end{pmatrix} \qquad BA = \begin{pmatrix} 1
& 10 & -17 \\ -1 & -2 & 3 \\ 7 & 2 & 0 \end{pmatrix} \]
}
\begin{problem}
Consider the matrices below.
\[ A = \begin{pmatrix} 2 & -1 & 4 \\ 3 & 0 & 1 \end{pmatrix} \quad B = \begin{pmatrix}
2 & 1 \\ 0 & -3 \\ 4 & -1 \end{pmatrix} \quad C = \begin{pmatrix} 0 & -1 \\ 3
& 2 \\ -3 & 1 \end{pmatrix} \quad \bx = \begin{pmatrix} 1 \\ 3 \\ -2
\end{pmatrix} \]
\begin{enumerate}
\item[(a)] Determine which products are possible:
\[ AB, \quad AC, \quad A\bx, \quad BA, \quad CA, \quad \bx A, \quad BC,
\quad B \bx, \quad CB, \quad C\bx. \]
For each of the products that is possible find the size of the result.
\item[(b)] Write the product $AB$ and the product $BA$. Does $AB = BA$?
\end{enumerate}
\end{problem}
\solution{
The matrix products that exist are: $AB: 2 \times 2$, $AC: 2 \times 2$, $A \bx: 2 \times
1$, $BA: 3 \times 3$, $CA: 3 \times 3$. None of the rest exist. \\
As expected, $AB \ne BA$.
}
\begin{problem}
Compute the product $Ab$ for
\[ A = \begin{pmatrix} 2 & 1 \\ 3 & 2 \end{pmatrix} \quad b = \begin{pmatrix} a \\ b
\end{pmatrix} \]
\end{problem}
\solution{
}
\begin{example}
Find the product of $A$ and $B$ where
\[ A = \begin{pmatrix} 1 & 4 & 0 \\ 3 & -1 & 2 \end{pmatrix} \quad B = \begin{pmatrix}
0 & 1 \\ 2 & 3 \\ -1 & 1 \end{pmatrix} \]
{\bf Solution:} \\
\begin{flalign*}
AB = \begin{pmatrix} 1 & 4 & 0 \\ 3 & -1 & 2 \end{pmatrix} \begin{pmatrix}
0 & 1 \\ 2 & 3 \\ -1 & 1 \end{pmatrix}
\end{flalign*}
The matrices are $2 \times 3$ and $3 \times 2$ so the resulting product will be $2
\times 2$.
\begin{itemize}
\item To find the entry in row 1 column 1 we find the dot product of row 1 from
matrix $A$ and column 1 from matrix $B$.
\[ \text{row 1 column 1: } (1)(0) + (4)(2) + (0)(-1) = 8 \]
\item To find the entry in row 1 column 2 we find the dot product of row 1 from
matrix $A$ and column 2 from matrix $B$.
\[ \text{row 1 column 2: } (1)(1) + (4)(3) + (0)(1) = 13 \]
\item To find the entry in row 2 column 1 we find the dot product of row 2 from
matrix $A$ and column 1 from matrix $B$.
\[ \text{row 2 column 1: } (3)(0) + (-1)(2) + (2)(-1) = -4 \]
\item To find the entry in row 2 column 2 we find the dot product of row 2 from
matrix $A$ and column 2 from matrix $B$.
\[ \text{row 2 column 2: } (3)(1) + (-1)(3) + (2)(1) = 2 \]
\end{itemize}
Therefore the product is
\[ AB = \begin{pmatrix} 8 & 13 \\ -4 & 2 \end{pmatrix}. \]
\end{example}
\newpage\section{Gaussian Elimination: Reduced Row Echelon Form}
Solving systems of equations is one of the most essential applications of linear algebra.
It is expected that you have experience solving systems with row reduction so as such we
will cover it quickly in this section.
\begin{problem}[Nickes and Dimes Problem]
Solve the following problem using any technique. Be able to clearly explain your
work.\\
Mr. Gauss has 20 coins consisting of nickels and imes. If his nickels were dimes and
his dimes were nickels he would have 70 cents more. How much are his coins worth?
\end{problem}
\begin{problem}
Consider the system of equations:
\[ \left\{ \begin{array}{cc} -x_1 + x_2 - x_3 &= -6 \\ x_1 + x_3 &= 15 \\ 2x_1 - x_2 +
x_3 &= 9 \end{array} \right. \]
We want to solve this system of equations using Gaussian elimination (row reduction).
We will do so using the following steps.
\begin{enumerate}
\item[(a)] For the sake of practice let's first write this system as a matrix
equation of the form $A \bx = \bb$. What are $A$, $\bx$, and $\bb$?
\solution{
\[ \begin{pmatrix} -1 & 1 & -1 \\ 1 & 0 & 1 \\ 2 & -1 & 1 \end{pmatrix}
\begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} = \begin{pmatrix} -6 \\ 15 \\
9 \end{pmatrix} \]
}
\item[(b)] Next write the system as an {\it augmented matrix}.
\[ \left( \begin{array}{ccc|c}
\underline{\hspace{0.25in}} & \underline{\hspace{0.25in}}
&\underline{\hspace{0.25in}} &\underline{\hspace{0.25in}} \\
\underline{\hspace{0.25in}} & \underline{\hspace{0.25in}}
&\underline{\hspace{0.25in}} &\underline{\hspace{0.25in}} \\
\underline{\hspace{0.25in}} & \underline{\hspace{0.25in}}
&\underline{\hspace{0.25in}} &\underline{\hspace{0.25in}} \end{array}
\right) \]
\solution{
\[ \left( \begin{array}{ccc|c} -1 & 1 & -1 & -6 \\ 1 & 0 & 1 & 15 \\ 2 &
-1 & 1 & 9 \end{array} \right) \]
}
\item[(c)] Our goal is to transform the augmented matrix $\left( A | \bb \right)$
to the matrix $\left( I | \bx \right)$ using only the following operations:
\begin{itemize}
\item multiply one row by a scalar quantity
\item add a multiple of one row to another row
\item interchange two rows
\end{itemize}
Discuss why we are allowed to use these operations.
\solution{These {\it moves} are legal since each row represents a linear
equation and we are simply manipulating the equations while making sure that
the equal sign remains true.}
\item[(d)] Starting with the top left corner of the augmented matrix,
systematically row reduce the matrix to the form $\left( I | \bx \right)$.
\solution{
\[ \left( \begin{array}{ccc|c} -1 & 1 & -1 & -6 \\ 1 & 0 & 1 & 15 \\ 2 &
-1 & 1 & 9 \end{array} \right)
\to \left( \begin{array}{ccc|c} 1 & -1 & 1 & 6 \\ 0 & 1 & 0 & 9 \\ 2 &
-1 & 1 & 9 \end{array} \right)
\to \left( \begin{array}{ccc|c} 1 & -1 & 1 & 6 \\ 0 & 1 & 0 & 9 \\ 0 &
1 & -1 & -3 \end{array} \right)
\]
\[
\to \left( \begin{array}{ccc|c} 1 & 0 & 1 & 15 \\ 0 & 1 & 0 & 9 \\ 0 &
1 & -1 & -3 \end{array} \right)
\to \left( \begin{array}{ccc|c} 1 & 0 & 1 & 15 \\ 0 & 1 & 0 & 9 \\ 0 &
0 & -1 & -12 \end{array} \right)
\to \left( \begin{array}{ccc|c} 1 & 0 & 0 & 3 \\ 0 & 1 & 0 & 9 \\ 0 &
0 & 1 & 12 \end{array} \right)
\]
}
\item[(e)] Once you have the row reduced matrix interpret your result.
\solution{
Our row reduction gives us
\[ \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} = \begin{pmatrix} 3 \\ 9 \\ 12
\end{pmatrix} \]
}
\end{enumerate}
\end{problem}
\begin{technique}[Practical Tips for Gaussian Elimination]
When performing Gaussian Elimination you should keep the following in mind:
\begin{itemize}
\item First try to get a 1 in the upper left-hand corner of the augmented matrix.
\item Next, use the new first row to eliminate all of the non-zero entries in the first
column. By the
time you're done with this you should have a column with a 1 on top and zeros below.
\item Next get a 1 in row 2 column 2.
\item Use your new second row to eliminate all of the non-zero entries in the second
column.
\item Proceed in a similar fashion until you have reached the final row
\end{itemize}
\end{technique}
\begin{example}
Let's row reduce an augmented matrix. Pay particular attention to the systematic way
that we work toward getting the identity matrix on the left-hand side of the augmented
matrix.
\begin{flalign*}
\left( \begin{array}{cc|c} 2 & -2 & 6 \\ 2 & 1 & 0 \end{array} \right) &\xrightarrow{R_1 \gets (1/2)R_1} \left( \begin{array}{cc|c} 1 &
-1 & 3 \\ 2 & 1 & 0 \end{array} \right) \\
&\xrightarrow{R_2 \gets R_2-2R_1} \left( \begin{array}{cc|c} 1 &
-1 & 3 \\ 0 & 3 & -6 \end{array} \right)\\
&\xrightarrow{R_2 \gets (1/3)R_2} \left( \begin{array}{cc|c} 1 &
-1 & 3 \\ 0 & 1 & -2 \end{array} \right) \\
&\xrightarrow{R_1 \gets R_2+R_1} \left( \begin{array}{cc|c} 1 &
0 & 1 \\ 0 & 1 & -2 \end{array} \right)
\end{flalign*}
Notice further that at each step we indicate which row operations were done. Finally
notice that there are no equal signs since the matrices that you create at each step
are definitely not equal; they are called ``row equivalent''.
\end{example}
I
leave it to you to make yourself familiar with examples of Gaussian Elimination from other
texts (see the linked materials in Section \ref{pref:resources} of these notes).
\begin{problem}
Consider the following three systems of equations and their row reduced forms.
Describe their solution sets geometrically. If the system has a solution then give
it. If the system has no solution then explain why. If the system has infinitely
many solutions then give them all in a parameterized form.
\begin{flalign*}
& \text{System \#1: } \quad \left( \begin{array}{cc|c} 1 & -1 & 3 \\ 2 & 1 & 0
\end{array} \right) \to \cdots \to \left( \begin{array}{cc|c} 1 & 0 & 1 \\ 0 & 1 &
-2 \end{array} \right) \\
& \text{System \#2: } \quad \left( \begin{array}{cc|c} 1 & -1 & 3 \\ -1 & 1 & 0
\end{array} \right) \to \cdots \to \left( \begin{array}{cc|c} 1 & -1 & 3 \\ 0 & 0 &
3 \end{array} \right) \\
& \text{System \#3: } \quad \left( \begin{array}{cc|c} 1 & -1 & 3 \\ -1 & 1 & -3
\end{array} \right) \to \cdots \to \left( \begin{array}{cc|c} 1 & -1 & 3 \\ 0 & 0 &
0 \end{array} \right) \\
\end{flalign*}
\end{problem}
\solution{
System \#1 has one unique solution $x_1 = 1, x_2 = -2$. System \#2 has no solution.
System \#3 has infinitely many solutions $x_1 = 3 + t, x_2 = t$ for $t \in \mathbb{R}$.
}
%
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.01.020}
% \end{itemize}
% Verify your answer with matrices.
% \end{problem}
% \solution{
% 2
% }
%
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.01.023}
% \end{itemize}
% \begin{center}
% \includegraphics[width=0.75\columnwidth]{ClickerQuestions/LA_00_01_023.eps}
% \end{center}
% \end{problem}
% \solution{
% b
% }
%
\begin{problem}
Create $3\times 3$ systems of equations that have
\begin{enumerate}
\item[(a)] exactly 1 solution
\item[(b)] no solutions
\item[(c)] infinitely many solutions
\end{enumerate}
\end{problem}
\begin{problem}
What is the value of $k$ so that the linear system represented by the following matrix
would have infinitely many solutions?
\[ \left( \begin{array}{cc|c} 2 & 6 & 8 \\ 1 & k & 4 \end{array} \right) \]
Choose from the following choices:\\
(a) $k=1$, \quad (b) $k=2$, \quad (c) $k=3$, \quad (d) $k=4$, \quad (e) not possible,
\quad (f) there are infnitely many ways to do this
\end{problem}
\solution{$k=3$}
%
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.03.040}
% \end{itemize}
% \end{problem}
% \solution{
% 3
% }
%
\begin{problem}
We have a system of three linear equations with two unknowns as plotted in the graph
\begin{minipage}{0.45\columnwidth}
How many solutions does the system have? Choose from the following: \\
(a) 0, \quad (b) 1, \quad (c) 2, \quad (d) 3, \quad (e) infinite
\end{minipage}
\begin{minipage}{0.5\columnwidth}
\begin{center}
\begin{tikzpicture}
\begin{axis}[axis lines=center, grid, domain=-4:4, xmin=-4, xmax=4,
ymin=-4, ymax=4]
\addplot[red, very thick] {2*x};
\addplot[blue, very thick] {0.5*x-2};
\addplot[black, very thick] {-0.5*x+1};
\end{axis}
\end{tikzpicture}
\end{center}
\end{minipage}
\end{problem}
\solution{No solution}
\begin{problem}
We have a system of two linear equations with two unknowns as plotted in the graph
\begin{minipage}{0.45\columnwidth}
How many solutions does the system have? Choose from the following: \\
(a) 0, \quad (b) 1, \quad (c) 2, \quad (d) 3, \quad (e) infinite
\end{minipage}
\begin{minipage}{0.5\columnwidth}
\begin{center}
\begin{tikzpicture}
\begin{axis}[axis lines=center, grid, domain=-4:4, xmin=-4, xmax=4,
ymin=-4, ymax=4]
\addplot[red, very thick] {2*x};
\addplot[blue, very thick] {0.5*x-2};
\end{axis}
\end{tikzpicture}
\end{center}
\end{minipage}
\end{problem}
\solution{One Solution}
\begin{problem}
We have a system of two linear equations with two unknowns as plotted in the graph
\begin{minipage}{0.45\columnwidth}
How many solutions does the system have? Choose from the following: \\
(a) 0, \quad (b) 1, \quad (c) 2, \quad (d) 3, \quad (e) infinite
\end{minipage}
\begin{minipage}{0.5\columnwidth}
\begin{center}
\begin{tikzpicture}
\begin{axis}[axis lines=center, grid, domain=-4:4, xmin=-4, xmax=4,
ymin=-4, ymax=4]
\addplot[red, very thick] {0.5*x+1};
\addplot[blue, very thick] {0.5*x-2};
\end{axis}
\end{tikzpicture}
\end{center}
\end{minipage}
\end{problem}
\solution{No Solutions}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.01.035}
% \end{itemize}
% \begin{center}
% \includegraphics[width=0.60\columnwidth]{ClickerQuestions/LA_00_01_035.eps}
% \end{center}
% \end{problem}
% \solution{
% 1 - no solution
% }
\begin{problem}
The following system has infinitely many solutions. Write an equation that expresses
all of them in a parameterized form.
\begin{flalign*}
x+y&=2 \\
-3x-3y&=-6\\
2x+2y&=4
\end{flalign*}
\end{problem}
\solution{
$x=t$ and $y=2-t$ for all $t \in \mathbb{R}$.
}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.01.054}
% \end{itemize}
% \end{problem}
% \solution{
% 2
% }
%
%
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.01.086}
% \end{itemize}
% \end{problem}
% \solution{
%
% }
%
%
%
%
\begin{problem}
A system of 8 linear equations and 6 variables could not have exactly
\underline{\hspace{0.5in}} solution(s). \\ (a) 0, \quad (b) 1, \quad (c) infinite, \quad
(d) more than one of these is possible, \quad (e) all of these are possible
\end{problem}
\solution{
Infinitely many solution or no solutions
}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.01.100}
% \end{itemize}
% \end{problem}
% \solution{
% 4
% }
%
%
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.02.020}
% \end{itemize}
% \end{problem}
%
%
\begin{problem}
What is the solution to the system of equations represented by this augmented matrix?
\[ \left( \begin{array}{ccc|c} 1 & 0 & 3 & 2 \\ 0 & 1 & 2 & 3 \\ 0 & 0 & 0 & 0
\end{array} \right) \]
Choose from:
\begin{enumerate}
\item[(a)] $x=2, y=3, z=4$
\item[(b)] $x=-2, y=1, z=1$
\item[(c)] There are infinitely many solutions
\item[(d)] There is no solution
\item[(e)] We can't tell without having the system of equations
\end{enumerate}
(If there are infinitely many solutions then write expression for all of them)
\end{problem}
\solution{
There are infinitely many
\[ \begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} 2 \\ 3 \\ 0 \end{pmatrix} +
\begin{pmatrix} -3 \\ -2 \\ 1 \end{pmatrix} t \quad t \in \mathbb{R} \]
}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.02.060}
% \end{itemize}
% If there are infinitely many solutions find them all.
% \end{problem}
% \solution{
% 3
% }
%
%
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.03.047}
% \end{itemize}
% \end{problem}
%
%
\begin{problem}
Solve the system of equations
\begin{flalign*}
x+2y+z &= 0 \\
x + 3y - 2z &= 0
\end{flalign*}
\end{problem}
\solution{
\[ \begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} -7 \\ 3 \\ 1
\end{pmatrix} t \quad t \in \mathbb{R} \]
}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.04.020}
% \end{itemize}
% \end{problem}
% \solution{
% 1
% }
%
%
\begin{problem}
Let $R$ be the reduced row echelon form of matrix $A$. True or False: the solutions
to $R \bx = \bo$ are the same as the solutions to $A \bx = \bo$.
\end{problem}
\solution{True}
\begin{problem}
Let $R$ be the reduced row echelon form of matrix $A$. True or False: the solutions
to $R \bx = \bb$ are the same as the solutions to $A \bx = \bb$.
\end{problem}
\solution{False}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.04.070}
% \end{itemize}
% \end{problem}
% \solution{
% 1
% }
%
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.04.080}
% \end{itemize}
% \end{problem}
% \solution{
% 3
% }
%
%
%
%
\newpage\section{Linear Combinations}
One of the most beautiful parts of linear algebra is the richness of the structure of
matrices. As you already know, every system of linear equations can be written several
different ways: as a system, as a matrix equation, as a vector equation, or as an
augmented system.
\begin{example}
For example, we can write the system of equations
\begin{flalign*}
2x_1 + 3x_2 &= 5 \\
4x_1 - 6x_2 &= 6
\end{flalign*}
equivalently in the following ways:
\begin{flalign*}
& \text{Algebraic System: } \quad \begin{array}{cc}
2x_1 + 3x_2 &= 5 \\
4x_1 - 6x_2 &= 6 \end{array} \\
& \text{Matrix Equation: } \quad \begin{pmatrix} 2 & 3 \\ 4 & -6 \end{pmatrix}
\begin{pmatrix} x_1 \\ x_2 \end{pmatrix} = \begin{pmatrix} 5 \\ 6 \end{pmatrix} \\
& \text{Vector Equation: } \quad x_1 \begin{pmatrix} 2 \\ 4 \end{pmatrix} + x_2
\begin{pmatrix} 3 \\ -6 \end{pmatrix} = \begin{pmatrix} 5 \\ 6 \end{pmatrix} \\
& \text{Augmented System: } \quad \left( \begin{array}{cc|c} 2 & 3 & 5 \\ 4 & -6 & 6
\end{array} \right).
\end{flalign*}
\end{example}
In this section we’ll look in particular at the vector equation. Hiding behind a vector
equation is one of the most fundamental ideas behind all of linear algebra: the linear
combination. The ``vector equation'' above really says ``some amount of $\begin{pmatrix}
2\\4\end{pmatrix}$ plus some amount of $\begin{pmatrix} 3\\-6\end{pmatrix}$ gives
$\begin{pmatrix} 5\\6\end{pmatrix}$ and our job is to find the amounts that make the
equality true.'' More generally, the vector equation is saying that $\begin{pmatrix}
5\\6\end{pmatrix}$ is a linear combination of the other two vectors.
Let's first start with a simple exercise.
\begin{problem}
Write the system of equations as a vector equation.
\begin{flalign*}
x_1 + 3x_2 - 5x_3 &= 9 \\
-x_1 + x_2 &= -3 \\
7x_1 + 2x_3 &= -\pi
\end{flalign*}
\end{problem}
\solution{
\[ x_1 \begin{pmatrix} 1 \\-1\\7\end{pmatrix} + x_2 \begin{pmatrix}
3\\1\\0\end{pmatrix} + x_3 \begin{pmatrix}-5\\0\\2\end{pmatrix} =
\begin{pmatrix} 9\\-3\\-\pi\end{pmatrix} \]
}
\begin{definition}[Linear Combination]
Let $\bv_1, \bv_2, \bv_3, \ldots, \bv_p$ be vectors in $n$-dimensional space and let
$c_1, c_2, c_3, \ldots, c_p$ be scalar quantities. The vector $\bu$ defined by
\[ \bu = c_1 \bv_1 + c_2 \bv_2 + c_3 \bv_3 + \cdots + c_p \bv_p = \sum_{j=1}^p c_j
\bv_j \]
is called a linear combination of the vectors $\bv_1, \bv_2, \bv_3, \ldots, \bv_p$
with weights $c_1, c_2, c_3, \ldots, c_p$.
\end{definition}
\begin{problem}
Open the GeoGebra applet:
\href{https://www.geogebra.org/m/WShmQvQU}{www.geogebra.org/m/WShmQvQU} in a browser window.
\begin{enumerate}
\item[(a)] Move the vectors $\bu$ and $\bv$ to $\bu = \begin{pmatrix} 1 \\
2\end{pmatrix}$ and $\bv = \begin{pmatrix} 2\\-1\end{pmatrix}$.
\item[(b)] Describe all of the possible vectors $\bw = c_1 \bu + c_2 \bv$ if $c_1
= 0$
\item[(c)] Describe all of the possible vectors $\bw = c_1 \bu + c_2 \bv$ if $c_2
= 0$
\item[(d)] Is it possible to find $c_1$ and $c_2$ such that $\bw = \begin{pmatrix} -6
\\ 0.5 \end{pmatrix}$. If so, what are $c_1$ and $c_2$.
\end{enumerate}
\end{problem}
\solution{
\begin{enumerate}
\item[(a)] -
\item[(b)] This will be a line pointing in the same direction of $\bv$
\item[(c)] This will be a line pointing in the same direction of $\bw$
\item[(d)] For this problem we want to find $c_1$ and $c_2$ such that $\bw = c_1
\bu + c_2 \bv$.
\begin{flalign*}
&c_1 \bu + c_2 \bv = \bw \\
\implies& \left( \begin{array}{cc|c} 1 & 2 & -6 \\ 2 & -1 & 0.5 \end{array}
\right) \to \left( \begin{array}{cc|c} 1 & 2 & -6 \\ 0 & -5 & 12.5 \end{array}
\right) \to \left( \begin{array}{cc|c} 1 & 2 & -6 \\ 0 & 1 & -2.5 \end{array}
\right) \to \left( \begin{array}{cc|c} 1 & 0 & -1 \\ 0 & 1 & -2.5 \end{array}
\right)
\end{flalign*}
so if we take $c_1 = -1$ and $c_2 = -2.5$ we get $\bw = - \bu - 2.5 \bv$
\end{enumerate}
}
%
\begin{problem}
Write $\bu = \begin{pmatrix} -5 \\ 3 \\ 16 \end{pmatrix}$ as a linear combination of
$\bv = \begin{pmatrix} 1 \\ -1 \\ 4 \end{pmatrix}$ and $\bw = \begin{pmatrix} -3
\\ 2 \\ 6 \end{pmatrix}$
\end{problem}
\solution{
$\bu$ cannot be written as a linear combination of these vectors.
}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.05.020}
% \end{itemize}
% \end{problem}
% \solution{
% 5
% }
%
%
\newpage\section{Inverses and Determinants}
Division is always a bit of a touchy subject. In the real numbers division is well defined
except when the denominator is zero. The same story is true in the rational numbers: a
fraction divided by a fraction is another fraction so long as the divisor is not zero.
What if we wanted to stay only in the integers? Can we divide two integers and get another
integer? Of course you can always divide by 1, but in most other cases division will move
you into the rational numbers. Hence, division on the integers doesn't really make
sense. Mathematically speaking we say that the integers are not closed under addition.
Similarly, if we try to define division on matrices we run into trouble. What does it mean
to divide by a matrix? In general, that phrase is meaningless! Let's expand our view a
bit.
When considering the operation of addition, we call $0$ the additive identity and we call
$(-a)$ the
additive inverse of $a$ since $a + (-a) = 0$. When considering multiplication, we call $1$ the
multiplicative
identity and $1/a$ is the multiplicative inverse of $a$ (when $a\ne 0$) since $a \cdot
\frac{1}{a} = 1$. To define the matrix inverses of a square matrix $A$ we seek the same
thing: find matrix $B$ such
that $AB = I$ and $BA = I$. Where $I$ is the identity matrix which is the multiplicative
identity for matrices.
\subsection{Inverses of Square Matrices}
\begin{problem}
\begin{enumerate}
\item[(a)] Consider the matrix $A = \begin{pmatrix}
1&2\\-4&-6\end{pmatrix}$ and the vector $\bb = \begin{pmatrix}
1\\0\end{pmatrix}$.
Find the vector $\bx$ such that $A\bx = \bb$ by hand using row reduction.
\item[(b)] Again consider the matrix $A = \begin{pmatrix}
1&2\\-4&-6\end{pmatrix}$ and the vector $\bb = \begin{pmatrix}
0\\1\end{pmatrix}$.
Find the vector $\bx$ such that $A\bx = \bb$ by hand using row reduction.
\item[(c)] Consider the matrix $A = \begin{pmatrix} 1 & 2 \\ -4 & -6
\end{pmatrix}$ one more time. Find a matrix $B$ such that $AB = I$ and $BA = I$. Use what
you did in parts (a) and (b) to help set up the problem. \\ (You may recall some sort
of ``shortcut'' that involves switching and negating some matrix entries \dots
you are forbidden to use this shortcut here!)
\end{enumerate}
\end{problem}
\solution{
Augment with the identity and row reduce.
\[ \left( \begin{array}{cc|cc} 1 & 2 & 1 & 0 \\ -4 & -6 & 0 & 1 \end{array} \right) \to
\left( \begin{array}{cc|cc} 1 & 2 & 1 & 0 \\ 0 & 2 & 4 & 1 \end{array} \right) \to
\left( \begin{array}{cc|cc} 1 & 2 & 1 & 0 \\ 0 & 1 & 2 & 1/2 \end{array} \right) \to
\left( \begin{array}{cc|cc} 1 & 0 & -3 & 1 \\ 0 & 1 & 2 & 1/2 \end{array} \right)
\]
}
\begin{problem}
Consider the following True / False questions.
\begin{enumerate}
\item[(a)] True or False: If $AB = I$ and $BA = I$ then $A$ is the inverse of $B$
and $B$ is the inverse of $A$. \solution{True}
\item[(b)] True or False: If $A\bx = \bb$ and $A$ has an inverse then $\bx =
A^{-1} \bb$.\solution{True}
\item[(c)] True or False: If $A \bx = \bb$ and $A^{-1}$ exists then to find $\bx$ we can augment $A$
with $\bb$ and row reduce. That is, $\begin{pmatrix} A & | & \bb
\end{pmatrix} \to \cdots \to \begin{pmatrix} I & | & \bx
\end{pmatrix}$.\solution{True}
\item[(d)] True or False: If $A \bx = \bb$ then $A = \bb \bx^{-1}$.
\solution{False}
\item[(e)] True or False: If $AB = I$ then we can find $B$ by augmenting $A$ with $I$ and row
reducing? That is, $\begin{pmatrix} A & | & I \end{pmatrix} \to \cdots \to
\begin{pmatrix} I & | & B \end{pmatrix}$. \solution{True}
\end{enumerate}
\end{problem}
\begin{technique}[Finding Matrix Inverses]
If $A$ is a square matrix of size $n \times n$ then if $A^{-1}$ exists we know that
$AA^{-1} = I$. Therefore, to find $A^{-1}$ we augment $A$ with $I$ and row reduce.
That is, $\begin{pmatrix} A & | & I \end{pmatrix} \to \cdots \to \begin{pmatrix} I & |
& B \end{pmatrix}$
If $A^{-1}$ does not exist then we will be unable to row reduce to the identity.
\end{technique}
\solution{
Augment with the identity and row reduce.
}
\begin{problem}
Give an example of a non zero $2 \times 2$ matrix that does not have an inverse.
\end{problem}
\solution{
\[ A = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix} \]
}
\begin{problem}
Which of the following matrices does not have an inverse?\\
% \begin{enumerate}
(a) $\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$, \quad (b)
$\begin{pmatrix} 2 & 2 \\ 4 & 4 \end{pmatrix}$, \quad (c)
$\begin{pmatrix} -1 & 0 \\ 0 & 3 \end{pmatrix}$, \quad (d)
$\begin{pmatrix} 0 & 4 \\ 2 & 0 \end{pmatrix}$, \quad (e)
More than one of these does not have an inverse, \quad (f)
All have inverses
% \end{enumerate}
\end{problem}
\solution{
(b)
}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.09.010}
% \end{itemize}
% \end{problem}
% \solution{
% 2
% }
\begin{problem}
When we put a matrix $A$ into row reduced echelon form, we get the following matrix.
What does this mean?
\[ A \to \begin{pmatrix} 1 & 2 \\ 0 & 0 \end{pmatrix} \]
\begin{enumerate}
\item[(a)] Matrix $A$ has no inverse
\item[(b)] The matrix we have found is the inverse of $A$
\item[(c)] Matrix $A$ has an inverse but this isn't it
\item[(d)] This tells us nothing about whether $A$ has an inverse.
\end{enumerate}
\end{problem}
\solution{(a)}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.09.020}
% \end{itemize}
% \end{problem}
% \solution{
% 1
% }
% \begin{problem}
%
% \end{problem}
%
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.09.025}
% \end{itemize}
% \end{problem}
% \solution{
% 4
% }
%
\begin{problem}
True or False: Suppose that $A$, $B$, and $C$ are square matrices and $CA = B$ and $A$
is invertible. This means that $C = A^{-1} B$.
\end{problem}
\solution{False}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.09.050}
% \end{itemize}
% \end{problem}
% \solution{
% 3
% }
%
\begin{problem}
$A$ and $B$ are invertible matrices. If $AB = C$ then what is the inverse of $C$? \\
(a) $C^{-1} = A^{-1} B^{-1}$, \quad
(b) $C^{-1} = B^{-1} A^{-1}$, \quad
(c) $C^{-1} = A B^{-1}$, \quad
(d) $C^{-1} = B A^{-1}$, \quad \\
(e) More than one of these is true, \quad \\ (f) Just because $A$ and $B$ have inverses
this doesn't mean that $C$ has an inverse
\end{problem}
\solution{
(b)
}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.09.070}
% \end{itemize}
% \end{problem}
% \solution{
% 2
% }
\begin{problem}
The {\it trick} that you might recall from a previous class for calculating $2\times 2$ inverses is
\[ \begin{pmatrix} a & b \\ c & d \end{pmatrix}^{-1} = \frac{1}{ad-bc} \begin{pmatrix} d &
-b \\ -c & a \end{pmatrix}. \]
Prove that this {\it trick} works by row reducing the system
\[ \left( \begin{array}{cc|cc} a & b & 1 & 0 \\ c & d & 0 & 1 \end{array} \right). \]
\end{problem}
\subsection{Determinants}
In the demoninator of the equation
\[ \begin{pmatrix} a & b \\ c & d \end{pmatrix}^{-1} = \frac{1}{ad-bc} \begin{pmatrix} d &
-b \\ -c & a \end{pmatrix}. \]
you find the expression $ad-bd$. For a $2 \times 2$ matrix this is called the
determinant. Clearly from this formula for the inverse of a $2\times 2$ matrix if the
determinant is zero then the inverse does not exist. What we'll find is that this is not
unique to $2\time 2$ matrices.
\begin{definition}[$2\times 2$ Determinant]
Let $A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$. The determinant of $A$ is
\[ \det(A) = ad - bc. \]
\end{definition}
\begin{problem}
What is the determinant of $A = \begin{pmatrix} 4 & -1 \\ -2 & 1 \end{pmatrix}$?
\end{problem}
\solution{
$\det(A) = 4-2=2$
}
%
\begin{problem}
Find the value of $k$ so that the matrix $A$ is not invertible.
\[ A = \begin{pmatrix} 2 & 4 \\ 3 & k \end{pmatrix} \]
\end{problem}
\begin{problem}
Given the matrix
\[ B = \begin{pmatrix} 2-x & 1 \\ 4 & 2-x \end{pmatrix} \]
find all of the values of $x$ that are solutions to the equation $\det(B) = 0$.
\end{problem}
\begin{problem}\label{prob:det_3}
Now consider the matrix
\[ A = \begin{pmatrix} 1 & 5 & 3 \\ 2 & 4 & -1 \\ 0 & -2 & 0 \end{pmatrix}. \]
\begin{itemize}
\item Cross out row 1 and column 1. Call the remaining $2 \times 2$ matrix
$A_{11}$.
\item Cross out row 1 and column 2. Call the remaining $2 \times 2$ matrix
$A_{12}$.
\item Cross out row 1 and column 3. Call the remaining $2 \times 2$ matrix
$A_{13}$.
\end{itemize}
The determinant of $A$ is
\[ \det(A) = 1 \cdot \det(A_{11}) - 5 \cdot \det(A_{12}) + 3 \cdot \det(A_{13}). \]
Perform this computation.
\end{problem}
When doing determinants of square matrices you can expand along any row or column you
like. The previous problem had you expand along the first row but arguably expanding
along the third row would have been easier since there are several zeros. Notice,
however, that there the signs on the determinant terms alternate. Hence, if you are going
to expand upon a given row or column you need to keep in mind that the signs on the terms
follow checkerboard pattern:
\[ \begin{pmatrix} + & - & + & - & \cdots \\
- & + & - & + & \cdots \\
+ & - & + & - & \cdots \\
\vdots & \vdots & \vdots & \vdots & \ddots \end{pmatrix} \]
\begin{problem}
Expand the matrix $A$ from problem \ref{prob:det_3} along the third row.
\end{problem}
\begin{problem}
Find the determinant of
\[ A = \begin{pmatrix} 1 & 5 & 3 \\ 2 & 0 & -5 \\ 0 & 0 & 3 \end{pmatrix} \]
\end{problem}
\solution{
Expand along the second column:
\[ \det(A) = -5 \det\left( \begin{pmatrix} 2 & -5 \\ 0 & 3 \end{pmatrix} \right) + 0 \det(
\cdot ) - 0 \det( \cdot ) = (-5)(6-0) = -30. \]
}
% \begin{problem}
% \begin{itemize}
% \input{ClickerQuestions/LA.00.10.004}
% \end{itemize}
% \end{problem}
% \solution{
% 3
% }
% \begin{problem}
% What is the determinant of the $n \times n$ identity matrix?
% \end{problem}
% \solution{
% $\det(I) = 1$
% }
\begin{example}
In this example we will work through the determinant of the $3 \times 3$ matrix
\[ A = \begin{pmatrix} 1 & 0 & 3 \\
0 & 2 & -5 \\
0 & 0 & 3 \end{pmatrix} \]
{\bf Solution:}
Let's expand along the first row:
\begin{flalign*}
\det(A) &= 1 \cdot \left| \begin{array}{cc} 2 & -5 \\ 0 & 3 \end{array} \right| - 0
\cdot \left| \begin{array}{cc} 0 & -5 \\ 0 & 3 \end{array} \right| + 3 \cdot \left|
\begin{array}{cc} 0 & 2 \\ 0 & 0 \end{array} \right| \\
&= 1 \cdot \left( (2)(3) - (0)(-5) \right) - 0 \cdot \left( (0)(3) - (0)(-5) \right) +
3 \cdot \left( (0)(0) - (0)(2) \right) \\
&= 1 \cdot 6 - 0 \cdot 0 + 3 \cdot 0 \\
&= 6.
\end{flalign*}
Also notice in this example that the entire lower triangle of the matrix is filled with
zeros. When this is the case you may observe the nice pattern that the determinant is
actually just the product of the entries on the main diagonal (you should prove that this
is true). Hence, in this problem we know that $\det(A) = 1 \cdot 2 \cdot 3 = 6$. Be
careful! If you don't have an entire triangle of zeros then this little {\it trick} will
not work.