L2 Matrices Slides
L2 Matrices Slides
The numbers (or functions) are called entries or, less commonly, elements of the matrix.
Matrix – Notations
Matrices are denoted by capital boldface letters A, B, C, … , or by writing the general entry in
brackets.
A = [ajk]
b1
b 4
For column vectors, b 2 , b 0 .
7
bm
A matrix of any size n x n is called a square matrix;
• Two matrices A = [ajk] and B = [bjk] are equal, written A = B, if and only if
1. they have the same size and
2. the corresponding entries are equal, that is, a11 = b11, a12 = b12, and so on.
• Matrices that are not equal are called different. Thus, matrices of different sizes
are always different.
Algebra of Matrices
Addition of Matrices
The sum of two matrices A = [ajk] and B = [bjk] of the same size is written A + B and has the entries ajk + bjk
obtained by adding the corresponding entries of A and B. Matrices of different sizes cannot be added.
The product C = AB (in this order) of an m × n matrix A = [ajk] times an r × p matrix B = [bjk] is defined if and
only if r = n and is then the m × p matrix C = [cjk] with entries
The condition r = n means that the second factor, B, must have as many rows as the first factor has columns,
namely n. A diagram of sizes that shows when matrix multiplication is possible is as follows:
A B = C
[m × n] [n × p] = [m × p].
Examples:
Examples:
Matrix Multiplication - Rules
Matrix multiplication with a scalar is a simple operation where each element of a matrix is multiplied by a constant
(scalar). This is a fundamental concept in linear algebra and has applications in various fields such as computer
graphics, physics, and engineering. Here's a brief explanation of its application:
In geometry, dilation and contraction refer to transformations that change the size of a shape. Dilation enlarges
a shape, while contraction shrinks it. These transformations can be represented using matrix multiplication.
------------(1)
• The system is called linear because each variable xj appears in the first power one.
• a11, … , amn are given numbers, called the coefficients of the system
• b1, … , bm on the right are also given numbers.
• If all the bj are zero, then the system is called a homogeneous system otherwise called nonhomogeneous system.
Linear System, Coefficient Matrix, Augmented Matrix
Matrix Form of the Linear System (1) : From the definition of matrix multiplication we see that the m equations
of (1) may be written as a single vector equation Ax = b where the coefficient matrix A = [ajk] is the m × n
matrix , X and b are are column vectors.
A solution of (1) is a set of numbers x1, x2, …..xn, that satisfies all the m equations.
A solution vector of (1) is a vector x whose components form a solution of (1).
If the system (1) is homogeneous, it always has at least the trivial solution x1 = x2=……..= xn =0
unity 1 2 3 2
0 1 2 9
Zero rows if any, write below the non- zero rows
0 0 0 0
The elements below the non – zero element should
1 2 3 2
be zero’s 0 0 1 2
0 0 0 1
and Reduced Row Echelon Form
Row Echelon Form
1. Can you add: A row and a column vector with different numbers of compo nents? With the same number of
components? Two row vectors with the same number of components but different numbers of zeros? A vector and
a scalar? A vector with four components and a matrix?
2.
Exercise
Using the elementary transformations, reduce each of the following matrices to the
row echelon form and row reduced echelon form.
1 2 0 1
1) 3 4 1 2
2 1 1 2 4 3 1 0
2 3 2 5 3 1 1 1 2 1 4 2
3)
4 1 1 0 1 1 3 1
1 3 2
1 1 1 4 7 4 4 5
2) 2 1 4
1 11 14