Matrices Part 1
Matrices Part 1
Vectors – Part 1
Matrices
• A matrix is a rectangular array of numbers or
functions which we will enclose in brackets.
Linear Systems
• Linear systems is a major application of matrices,
example:
Linear Systems
• We form another matrix, the augmented matrix of
the system “”:
, remember:
• column vector:
9 [email protected] June 9, 2024
Matrix Multiplication
• The entry cjk is obtained by multiplying each entry in
the row of A by the corresponding entry in the
column of B and then adding these n products.
15 [email protected] June 9, 2024
Matrix Multiplication
• Matrix multiplication means multiplication of matrices
by matrices.
16 [email protected] June 9, 2024
Matrix Multiplication
• Matrix multiplication means multiplication of matrices
by matrices.
17 [email protected] June 9, 2024
>> b=[1 0; 1 0]
b=
1 0
1 0
>> a*b
ans =
3 0
7 0
22 [email protected] June 9, 2024
>> b*a
ans =
1 2
1 2
23 [email protected] June 9, 2024
>> a*c
ans =
7 10 3 0
15 22 7 0
>> c*a
??? Error using ==> mtimes
Inner matrix dimensions must agree.
24 [email protected] June 9, 2024
Motivation of Multiplication
by Linear Transformations
• Let us now motivate the matrix multiplication by its
use in linear transformations. For variables these
transformations are of the form:
Motivation of Multiplication
by Linear Transformations
• Now suppose further that the x1x2-system is related to
a w1w2-system by another linear transformation:
Motivation of Multiplication
by Linear Transformations
• Substituting x into y:
C=AB
31 [email protected] June 9, 2024
Transposition
• It provides a transition from row vectors to column
vectors and vice versa.
32 [email protected] June 9, 2024
Examples: Transposition
33 [email protected] June 9, 2024
Rules of Transposition
• Example:
35 [email protected] June 9, 2024
Triangular Matrices
• Upper triangular matrices: square matrices with
nonzero entries only on and above the main diagonal.
• Lower triangular matrices: square matrices with
nonzero entries only on and below the main diagonal.
• Any entry on the main diagonal of a triangular matrix
may be zero or not.
• Example:
36 [email protected] June 9, 2024