Lec7 Revision
Lec7 Revision
Lec7 Revision
Engineering
Math 1 –
Course Revision
Unique
Infinite number No solution
solution
of solutions
Two linear systems are called equivalent if they have the same solution set.
If the augmented matrices of two linear systems are row equivalent, then the two
systems have the same solution set.
If the number of independent equations = number of variables, Unique solution
Interpretation (n 2)
• The v1, v2, . . ., vn are linearly independent if non of them
can be written as a linear combination of the others.
• The v1, v2, . . ., vn are linearly dependent if at least one of
them can be written as a linear combination of the others.
T
Rn Rm
Domain x Codomain
T(x)
Range
Example
Prove that (A B C)T = CT BT AT
Solution
((A B) C)T = CT (A B)T = CT (BT AT) = CT BT AT
Proof of No. 2
17
Math 1 - LA (Fall 2022)
Testing linear independence (example)
To test the linear independence of the vectors v1, v2, . . ., vn:
1) Construct the matrix A = [v1, v2, . . ., vn].
2) Reduce A to echelon form.
3) If there is a pivot in each column,
then v1, v2, . . ., vn are LI,
else v1, v2, . . ., vn are LD.
1 4 2
1 4 2 A = 2 5 1
v1 = 2, v 2 = 5 , v3 = 1
3 6 0
3 6 0
1 0 −2
0 1 1
18 Math 1 - LA (Fall 2022)
0 0 0
Geometrical linear transformations in R2
Example (Contraction/dilation transformation)
Consider a linear transformation T: R2 → R2
defined by T(x) = r x, r is a scalar.
• Contraction when 0 ≤ r ≤ 1
• Dilation when r > 1
Find the standard matrix.
Example
1 2 −1 2 −3 0 1
Find B A + C A A= , B= , C=
0 −2 3 5 4 2 1
Solution
0 1 0 0 0 1 0 0 0 1
• b15 = 1 means that there is 1 directed 1 0 0 0 1 0 2 0 1 0
path of length 2 from node 1 to node 5. A = 0 1 0 0 1 , B = 1 1 0 1 1
• b42 = 2 means that there are 2 directed 0 0 1 0 1 0 2 0 1 1
0 1 0 1 0 1 0 1 0 2
paths of length 2 from node 4 to node 2.
➢ To determine the shortest path length between i and j, find Ak until the position (i, j) is non-zero.
22 Math 111 - LA (Fall 2022)
Determinants properties
• If A is triangular, then det A equals the product of the diagonal
elements.
2 −1 9
A = 0 3 5 det( A) = 2 3 −2 = −12
0 0 −2
• det (AB) = det A . det B
• A matrix A has an inverse if only if det A ≠ 0.
A–1 exists det A ≠ 0
• Computing cofactors is very time-consuming.
– Calculating the determinant of 5050 matrix on a computer that performs
1030 operations per second requires approximately 1027 years.
– Faster methods for finding det A will be given in the sequel.
Forward
elimination
backward
elimination
A–1
• To find the inverse of An×n, we solve n systems with
aug A = [A I].
• If each column is a pivot column, the solution is A–1.
25 Math 1 - LA (Fall 2021)
Encryption (cont’d)
http://aix1.uottawa.ca/~jkhoury/cryptography.htm
Matrix
form
Encryption
=
Transmission
The encrypted message
Decoding The
original
message