-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01-LinearAlgebra.Rmd
More file actions
2726 lines (1818 loc) · 60.7 KB
/
01-LinearAlgebra.Rmd
File metadata and controls
2726 lines (1818 loc) · 60.7 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
# (PART) Review {-}
# Functions and Linear Equations
## Lecture Content
[**Video: Functions**](https://www.youtube.com/watch?v=F29ldGgKw5w&list=PLhMAuJ_imnt6AOxSIelCyZRe05Ua2DrDY)
[**Video: Common Functions**](https://www.youtube.com/watch?v=YvBfQ_VJAbo&list=PLhMAuJ_imnt6AOxSIelCyZRe05Ua2DrDY&index=2)
[**Video: Two Equations in Two Unknowns**](https://www.youtube.com/watch?v=ZG_Wa-7jGcU&list=PLhMAuJ_imnt575FxvbQ3nE6ZxAKVbxsMx)
[**Video: Supply and Demand Models**](https://www.youtube.com/watch?v=ou1Yq-w2gMQ&list=PLhMAuJ_imnt6AOxSIelCyZRe05Ua2DrDY&index=4)
[**Video: Linear Functions and Models**](https://www.youtube.com/watch?v=YvBfQ_VJAbo&list=PLhMAuJ_imnt6AOxSIelCyZRe05Ua2DrDY&index=5)
---
## Lecture Notes
### Common Functions and Their Graphs
#### Horizontal Line {-}
**Equation:**
$$
y = c
$$
**Graph:**
A flat, horizontal line that crosses the y-axis at \( y = c \).
**Rule:**
The output is constant for every value of \( x \).
---
#### General Linear Equation {-}
**Equation:**
$$
y = mx + b
$$
**Graph:**
A straight line with slope \( m \) and y-intercept \( b \).
**Rule:**
Linear functions increase or decrease at a constant rate.
---
#### Quadratic Function (Parabola) {-}
**Equation:**
$$
y = ax^2 + bx + c
$$
**Graph:**
A U-shaped curve:
- Opens upward if \( a > 0 \)
- Opens downward if \( a < 0 \)
**Vertex:**
The turning point of the parabola.
**Axis of Symmetry:**
A vertical line through the vertex.
---
#### Cubic Function {-}
**Equation:**
$$
y = ax^3 + bx^2 + cx + d
$$
**Graph:**
An S-shaped curve that may have one or two turning points depending on coefficients.
**Rule:**
Cubic functions change curvature and direction.
---
#### Reciprocal Function {-}
**Equation:**
$$
y = \frac{1}{x}
$$
**Graph:**
- Two curved branches.
- Undefined at \( x = 0 \).
**Asymptotes:**
- Vertical: \( x = 0 \)
- Horizontal: \( y = 0 \)
---
#### Absolute Value Function {-}
**Equation:**
$$
y = |x|
$$
**Graph:**
A V-shaped graph with the vertex at the origin \( (0, 0) \).
**Rule:**
Negative inputs are reflected to positive outputs.
---
### Finding the Domain of a Function
#### Rational Functions {-}
**Example:**
$$
f(x) = \frac{1}{x - 3}
$$
**Rule:**
Exclude any value of \( x \) that makes the denominator zero.
**Domain:**
All real numbers except \( x = 3 \).
---
#### Square Root Functions {-}
**Example:**
$$
f(x) = \sqrt{x - 2}
$$
**Rule:**
The expression under the square root must be non-negative.
**Domain:**
All real numbers \( x \geq 2 \).
---
### Solving Systems Using the Elimination Method
**Steps:**
1. Multiply one or both equations so that one variable has the same (or opposite) coefficient.
2. Add or subtract the equations to eliminate one variable.
3. Solve for the remaining variable.
4. Substitute back to find the other variable.
**Example:**
$$
\begin{align*}
2x + 3y &= 12 \\
4x - 3y &= 6
\end{align*}
$$
Add the two equations:
$$
(2x + 3y) + (4x - 3y) = 12 + 6 \\
6x = 18 \Rightarrow x = 3
$$
Substitute \( x = 3 \) into the first equation:
$$
2(3) + 3y = 12 \Rightarrow 6 + 3y = 12 \Rightarrow y = 2
$$
**Solution:**
\( x = 3, \quad y = 2 \)
---
### Revenue, Cost, and Profit Functions
#### Revenue Function {-}
**Formula:**
$$
R(x) = p(x) \cdot x
$$
Where:
- \( R(x) \): Revenue
- \( p(x) \): Price per unit
- \( x \): Quantity sold
---
#### Cost Function {-}
**Formula:**
$$
C(x) = \text{Fixed Cost} + \text{Variable Cost} \cdot x
$$
- **Fixed Costs:** Constant (e.g., rent, salaries)
- **Variable Costs:** Depend on production level
---
#### Profit Function {-}
**Formula:**
$$
P(x) = R(x) - C(x)
$$
Profit is the difference between revenue and cost.
---
#### Demand Function {-}
A typical linear demand function:
$$
p(x) = a - bx
$$
- As quantity \( x \) increases, price \( p \) usually decreases.
- This represents an inverse relationship between price and demand.
---
## Examples
### Applications of Linear Equations
[**Video: Solutions**](https://www.youtube.com/watch?v=46bXxBQ0esI)
1. Find the final amount of money in an account if \$2700is deposited at 5.5% interest compounded quarterly (every 3 months) and the money is left for 5 years.
2. What present value amounts to $12,448.29 if it is invested for 2 years at 11% compounded monthly?
3. Suppose a calculator manufacturer has the total cost function \[C(x) = 43x + 11,000,\] and the total revenue function \[R(x) = 55x.\]
a. What is the equation of the profit function
b. What is the profit on 2100 units?
4. Suppose a stereo receiver manufacturer has the total cost function \[C(x) = 400x + 2490,\] and the total revenue function \[R(x) = 830x.\]
a. What is the equation of the profit function for this commodity?
b. What is the profit on 310 units?
5. Given: (q is number of items)
* Demand function: $P = 1040.4 - 0.4q^2$
* Supply function: $p = 0.5q^2
Find the equilibrium price and quantity.
6. If the demand for a pair of designer high heel shoes is given by \[4p + 5q = 825,\] and the supply function for the shoes is \[p - 6q = -35,\]
* The quantity demanded at $175 is?
* The quantity supplied at $175 is?
* At $175, do we have a surplus or a shortfall?
---
### Systems of Linear Equations
[**Video: Solutions**](https://www.youtube.com/watch?v=46bXxBQ0esI)
1. Solve the system of equations by graphing:
\begin{align*}
y - 26 &= -6x\\
y - 5x &= -29
\end{align*}
2. Solve the system of equations:
\begin{align*}
-4x - y &=14\\
-2x + y &= 4
\end{align*}
3. Solve the system of equations by graphing:
\begin{align*}
3x - 9y &= -15\\
-6x + 18y &= 30
\end{align*}
4. Solve the system of equations by graphing:
\begin{align*}
4x + 4y &= -4\\
2x + y &=2
\end{align*}
5. The admission fee at an amusement park is 1.5 dollars for children and 4 dollars for adults. On a certain day, 292 people entered the park, and the admission fees collected totaled 788 dollars. How many children and how many adults were admitted?
6. What quantity of 70% acid solution must be mixed with a 20% solution to produce 900 mL of a 50% solution?
7. Convert the equations in the system below into slope-intercept form and then classify the system.
\begin{align*}
-x - y &= -2\\
2x + 2y &= 4
\end{align*}
---
## Practice Problems
1. Find the equation of the straight line through the points (3,4) and (5,2).
2. Find the equation of the straight line through the point (3,4) and parallel to the line $2x - 3y = 4$.
3. If $f(x) = -3x + 7$, evaluate $f(-3)$ and determine the domain of $1/f(x)$ using interval notation.
<div style="page-break-after: always;"></div>
4. Solve the system:
\[
\begin{cases}
2x + y = 2 \\
-2x + y = 2
\end{cases}
\]
5. Solve the system:
\[
\begin{cases}
2x - 3y = 2 \\
6x - 9y = 3
\end{cases}
\]
<div style="page-break-after: always;"></div>
6. **(APPLIED)** A piano manufacturer has a daily fixed cost of \$1,200 and a marginal cost of \$1,500 per piano. Find the cost function \( C(x) \) for manufacturing \( x \) pianos in one day. Answer the following:
a. What is the cost of manufacturing 3 pianos?
b. What is the cost of manufacturing the 3rd piano that day?
c. What is the cost of manufacturing the 11th piano that day?
d. Graph \( C \) as a function of \( x \).
7. **(APPLIED)** Anthony Altino is mixing food for his young daughter and wants the meal to supply 1 gram of protein and 5 milligrams of iron. He mixes cereal (0.5 g protein and 1 mg iron per ounce) and fruit (0.2 g protein and 2 mg iron per ounce). What mixture will provide the desired nutrition?
<div style="page-break-after: always;"></div>
---
## Self-Assessment
Time yourself and try to solve the following within 20 minutes:
1. Find the equation of the straight line through (3,1) and parallel to \(6x - 2y = 11\).
2. Solve:
\[
\begin{cases}
\frac{-2x}{3} + \frac{y}{2} = \frac{-1}{6} \\
\frac{x}{4} - y = \frac{-3}{4}
\end{cases}
\]
3. If the addition or subtraction of two linear equations results in \(0 = 3\), what does this say about their graphs?
4. Determine the domain of \(f(x) = \sqrt{x-10}\). Express your answer in interval notation.
5. In 2005, the Las Vegas monorail charged \$3 per ride with an average ridership of 28,000 per day. After raising the fare to \$5, ridership dropped to 19,000. Determine a linear function that relates ridership \(q\) to fare \(p\).
---
## Lesson Checklist
This checklist is designed to help you keep track of what you need to work on. The main goal is to be aware of what you need to focus more attention on. Place an $X$ in the appropriate box beside the skill below.
\bigskip
\noindent
\begin{align*}
&\textbf{Developing (D):} &&\textrm{You still need to work on this skill.}\\
&\textbf{Consistent (CON):} &&\textrm{You use the skill correctly most of the time.}\\
&\textbf{Competent (COM):} &&\textrm{You show mastery of the skill.}
\end{align*}
| Skill | D | CON | COM |
|---------------------------------------------------|-----|-----|-----|
| Find the domain of a rational function in interval notation | | | |
| Find the domain of a square root function in interval notation | | | |
| Find the equation of a line given various information | | | |
| Use the elimination method to solve a 2x2 linear system | | | |
| Solve applied problems involving linear equations | | | |
---
# (PART) Matrix Algebra {-}
# Introduction to Matrices
## Lecture Content
[**Video: Using Matrices to Solve Systems**](https://www.youtube.com/watch?v=G7bdACybx6Y&list=PLhMAuJ_imnt575FxvbQ3nE6ZxAKVbxsMx&index=2)
[**Video: Applications of Linear Systems**](https://www.youtube.com/watch?v=Blkr167IwOU&list=PLhMAuJ_imnt575FxvbQ3nE6ZxAKVbxsMx&index=3)
---
## Lecture Notes
### Augmented Matrix
An **augmented matrix** is a compact representation of a system of linear equations, showing only the coefficients and constants. To create one:
1. Write the coefficients of the variables from each equation into rows.
2. Add a vertical line (conceptually) separating the coefficients from the constants on the right-hand side.
**Example:**
For the system
\begin{align*}x + 2y &= 5\\
3x - y &= 4
\end{align*}
The augmented matrix is:
\[
\begin{bmatrix}
1 & 2 & | & 5 \\
3 & -1 & | & 4
\end{bmatrix}
\]
---
### Elementary Row Operations
There are **three types of elementary row operations** used in row reduction:
1. **Row Swapping (Ri ↔ Rj)**
Swap two rows.
2. **Row Scaling (k·Ri)**
Multiply a row by a non-zero constant.
3. **Row Replacement (Ri + k·Rj → Ri)**
Add or subtract a multiple of one row to another row.
These operations are used to transform a matrix into a simpler form without changing the solution to the system.
---
### Gauss-Jordan Elimination Steps
**Gauss-Jordan Elimination** is a method to solve a system of linear equations by transforming the augmented matrix into **reduced row echelon form (RREF)**.
#### Steps: {-}
1. **Write the augmented matrix** for the system.
2. Use **elementary row operations** to get a leading 1 (pivot) in the top-left corner.
3. **Create zeros** below and above the pivot.
4. Move to the next row and repeat the process for the next pivot (diagonal).
5. Continue until you have 1s down the diagonal and 0s elsewhere in the coefficient part.
6. Read the solution directly from the matrix.
**Goal:**
Transform the matrix into:
\[
\begin{bmatrix}
1 & 0 & \cdots & 0 & | & a \\
0 & 1 & \cdots & 0 & | & b \\
\vdots & \vdots & \ddots & \vdots & | & \vdots \\
0 & 0 & \cdots & 1 & | & c
\end{bmatrix}
\]
Which corresponds to the solution \( x = a \), \( y = b \), etc.
---
## Examples
[**Video: Solutions**](https://www.youtube.com/watch?v=Pttai87GRtA)
1. When is a matrix in **Row Echelon Form**?
2. Is this matrix in row echelon form?
\[
\begin{bmatrix}
5 & 6 \\
0 & 2\\
0&0
\end{bmatrix}
\]
3. Is this matrix in row echelon form?
\[
\begin{bmatrix}
5 & -5 & -4 &|& 1 \\
3 & 0 & -10 &|& -2\\
0 & 0 & 2 &|& -3
\end{bmatrix}
\]
4. Find the augmented coefficient matrix corresponding to the system:
\[
\begin{align*}
-3x + 4 &= 4y \\
-9x - 6y &= -4 \\
2x + 1 &= 5y
\end{align*}
\]
5. Find the reduced row echelon form (RREF) of this augmented matrix:
\[
\begin{bmatrix}
-2 & 0 & 5&|&250\\
10 & 1 & -26&|&400\\
3 & 0 & -8&|&150
\end{bmatrix}
\]
6. Solve the system by row reduction:
\[
\begin{align*}
x_1 + 3x_2 + 3x_3 + &= -6 \\
-x_1 - 2x_2 - 6x_3 &= -5 \\
x_1 + 3x_2 + 4x_3 &= 5
\end{align*}
\]
7. Solve the system by row reduction:
\[
\begin{align*}
7w - 16x + 3y + 8z &=-6\\
w + 3x + 2y &= 4\\
2w - 4x + y + 2 &= 1\\
-2w + 3x - y - z &= 4
\end{align*}
\]
8. Given the following augmented matrix, give a parameterized set of solutions for the system.
\[
\begin{bmatrix}
14 & -8 & 2 &|& 128\\
2 & -1 & 1 &|& 17
\end{bmatrix}
\]
---
## Practice Problems
1. Use Gauss-Jordan to solve:
\[
\begin{cases}
2x + y = 2 \\
-2x + y = 2
\end{cases}
\]
2. Use Gauss-Jordan to solve:
\[
\begin{cases}
2x - 3y = 1 \\
6x - 9y = 3
\end{cases}
\]
3. Use Gauss-Jordan to solve:
\[
\begin{cases}
x + y = 1 \\
3x - 2y = -1 \\
5x - y = \frac{1}{5}
\end{cases}
\]
4. Use Gauss-Jordan to solve:
\[
\begin{cases}
x - y + z - u + v = 1 \\
y + z + u + v = 2 \\
z - u + v = 1 \\
u + v = 1 \\
v = 1
\end{cases}
\]
5. Use Gauss-Jordan to solve:
\[
\begin{cases}
x + 2y + 3z + 4w + t = 6 \\
2x + 3y + 4z + 5w + t = 5 \\
3x + 4y + 5z + w + 2t = 4 \\
4x + 5y + z + 2w + 3t = 3 \\
5x + y + 2z + 3w + 4t = 2
\end{cases}
\]
6. **(APPLIED)** You own a hamburger franchise and want to use leftover ingredients to make burgers.
- Plain burgers: 1 beef patty, 1 bread roll
- Double cheeseburgers: 2 beef patties, 1 bread roll, 2 cheese slices
- Regular cheeseburgers: 1 beef patty, 1 bread roll, 1 cheese slice
You have 13 bread rolls, 19 beef patties, and 15 cheese slices. How many of each type can you make?
---
## Self-Assessment
Time yourself and solve within 20 minutes:
1. Use Gauss-Jordan to solve:
\[
\begin{cases}
4x - 2y = 1 \\
-2x + y = 4
\end{cases}
\]
2. Use Gauss-Jordan to solve:
\[
\begin{cases}
\frac{-2x}{3} + \frac{y}{2} = \frac{-1}{6} \\
\frac{x}{4} - y = \frac{-3}{4}
\end{cases}
\]
3. Explain why \(3R_3 - 2R_1 \to R_3\) is not an elementary row operation.
4. In 2007, total revenues from sales of country music, children’s music, and soundtracks were \$1.5 billion. Country music brought in 12 times soundtracks, children’s music 3 times soundtracks. How much revenue for each?
---
## Lesson Checklist
This checklist is designed to help you keep track of what you need to work on. The main goal is to be aware of what you need to focus more attention on. Place an $X$ in the appropriate box beside the skill below.
\bigskip
\noindent
\begin{align*}
&\textbf{Developing (D):} &&\textrm{You still need to work on this skill.}\\
&\textbf{Consistent (CON):} &&\textrm{You use the skill correctly most of the time.}\\
&\textbf{Competent (COM):} &&\textrm{You show mastery of the skill.}
\end{align*}
---
# Matrix Operations
## Lecture Content
[**Video: Matrix Addition, Scalar Multiplication and Transpose**](https://www.youtube.com/watch?v=6N3etzk1Jm0&list=PLhMAuJ_imnt43L1iOSF8un53latpLCmjM&index=1)
[**Video: Matrix Multiplication**](https://www.youtube.com/watch?v=Zsrhf3MEaFs&list=PLhMAuJ_imnt43L1iOSF8un53latpLCmjM&index=2)
---
## Lecture Notes
### Matrix Notation: $A_{m \times n}$
- A matrix is a rectangular array of numbers arranged in **rows** and **columns**.
- The notation $A_{m \times n}$ refers to a matrix with:
- $m$ rows
- $n$ columns
- Example:
$$
A_{2 \times 3} = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}
$$
---
### Notation for Matrix Entries: $a_{ij}$
- Each element in a matrix is denoted as $a_{ij}$:
- $i$ is the **row number**
- $j$ is the **column number**
- Example:
$$
A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix},
$$
then
$$
a_{23} = 6 \;\;\;\;\; \text{and} a_{12} = 2.
$$
---
### Matrix Addition and Subtraction
- Two matrices **can only be added or subtracted** if they have the **same dimensions**.
- Add/subtract corresponding elements:
$$
A + B = \begin{bmatrix} a_{ij} + b_{ij} \end{bmatrix}
$$
- Example:
$$
\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} +
\begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} =
\begin{bmatrix} 6 & 8 \\ 10 & 12 \end{bmatrix}
$$
---
### Scalar Multiplication
- Multiply each element of a matrix by a scalar value $c$:
$$
cA = \begin{bmatrix} c \cdot a_{ij} \end{bmatrix}
$$
- Example:
$$
3 \cdot \begin{bmatrix} 2 & -1 \\ 0 & 4 \end{bmatrix} =
\begin{bmatrix} 6 & -3 \\ 0 & 12 \end{bmatrix}
$$
---
### Matrix Multiplication
- To multiply $A_{m \times n}$ by $B_{n \times p}$, the **number of columns of A** must equal the **number of rows of B**.
- The result is a matrix $C_{m \times p}$.
- Each element $c_{ij}$ is computed by the **dot product** of row $i$ of $A$ and column $j$ of $B$:
$$
c_{ij} = \sum_{k=1}^n a_{ik} b_{kj}
$$
- Example:
$$
\begin{bmatrix} 2 & -1 \\ 0 & 4 \end{bmatrix} \cdot
\begin{bmatrix} 6 & -3 \\ 0 & 12 \end{bmatrix} =
\begin{bmatrix} 2 \cdot 6 + (-1) \cdot 0 & 2 \cdot (-3) + (-1) \cdot 12 \\ 0 \cdot 6 + 4 \cdot 0 & 0 \cdot (-3) + 4 \cdot 12 \end{bmatrix} =
\begin{bmatrix} 6 & -18 \\ 0 & 48 \end{bmatrix}
$$
---
### Matrix Transpose
- The **transpose** of a matrix $A$ is denoted $A^T$.
- Rows become columns and columns become rows:
$$
A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \quad \Rightarrow \quad A^T = \begin{bmatrix} 1 & 3 \\ 2 & 4 \end{bmatrix}
$$
---
### $a_{ij}$ Notation for Operations
- This is used to define operations element by element:
- Addition: $(A + B)_{ij} = a_{ij} + b_{ij}$
- Scalar multiplication: $(cA)_{ij} = c \cdot a_{ij}$
- Transpose: $(A^T)_{ij} = a_{ji}$
---
## Examples
### Addition and Subtraction
[**Video: Solutions**](https://www.youtube.com/watch?v=GJSIoFkdWag)
1. Evaluate:
$$
\begin{bmatrix} 15 & -10 \\ 11 & -2 \end{bmatrix}
\quad + \quad
\begin{bmatrix} 18 & 2 \\ 5 & -4 \end{bmatrix}
$$
2. Given the matrices, find \( A + B \):
$$
A =
\begin{bmatrix}
0 & 4 \\
4 & 0
\end{bmatrix}
\quad\text{and}\quad
B =
\begin{bmatrix}
5 & 5 \\
1 & 4
\end{bmatrix}
$$
3. Add:
$$
\begin{bmatrix}
7 & 4 & 5 \\
-6 & -3 & 3 \\
-1 & 8 & 3
\end{bmatrix}
\quad + \quad
\begin{bmatrix}
6 & 3 & 0 \\
-2 & -5 & 2 \\
-5 & 7 & 7
\end{bmatrix}
$$
4. Evaluate:
$$
\begin{bmatrix} -7 & -4 \\ -9 & 4 \end{bmatrix}
-
\begin{bmatrix} x & y \\ z & w \end{bmatrix}
=
\begin{bmatrix} -16 & -12 \\ 1 & -2 \end{bmatrix}
$$
5. Let:
$$
D =
\begin{bmatrix}
3 & 1 & -7 & 2 \\
4 & -4 & 10 & -1 \\
-5 & -9 & 6 & -10
\end{bmatrix}.
$$
Find \( 2D \).
6. Given:
$$
A =
\begin{bmatrix}
-11 & -2 & -3 \\
-5 & -1 & 0 \\
5 & 1 & 1
\end{bmatrix},
$$
find \( A^T \) (the transpose of \( A \)).
---
### Multiplication
[**Video: Solutions**](https://www.youtube.com/watch?v=iHC-GgnMYRg)
1. Suppose matrix $P$ is $2 \times 3$, $C$ is $2 \times 2$, and $A$ is $2 \times 3$.
Which of the following may be possible to compute?
a. $P(A + C)$
b. $PA$
c. $AP$
d. $PC$
e. $A^T$
f. $CA$
g. $P(AC)$
h. $A^{-1}$
2. Compute:
\[
\begin{bmatrix}
2 & 1 \\
5 & 1
\end{bmatrix}
\begin{bmatrix}
0 & 5 \\
5 & -1
\end{bmatrix}
\]
3. Compute:
\[
\begin{bmatrix}
-3 & 1 & -3 \\
-2 & -2 & 2 \\
-5 & -3 & 1
\end{bmatrix}
\begin{bmatrix}
4 & 0 & -2 \\
3 & -1 & 2 \\
-3 & -1 & -3
\end{bmatrix}
\]
4. Find $AB$, given
\[
A =
\begin{bmatrix}
1 & -2 \\
-5 & -2 \\
0 & 1 \\
-4 & -2
\end{bmatrix},
\quad \text{and} \quad
B =
\begin{bmatrix}
-4 & -5 & 3 & 1 \\
2 & 5 & 0 & 4
\end{bmatrix}
\]
5. Find $AB$ and $BA$, given
\[