Matrices 1
Matrices 1
Matrices
Definition: A matrix is a rectangular array of numbers. The number in the array
are called the elements of the matrix.
The elements of a square matrix A where the subscripts are equal namely
a 11 , a22 , … , ann form the main diagonal, see Figure 2.2
[ ][ ]
a11 a12 ⋯ a1 n a11 a12 ⋯ a1 n
a a22 … a2 n a a 22 … a2 n
A= 21 A= 21
⋮ ⋮ ⋱ ⋮ ⋮ ⋮ ⋱ ⋮
a m 1 am 2 ¿ amn a n1 an 2 ¿ a nn
2.1Addition of matrix
Definition: Let A and B be matrices of the same size. The sum A+ B is the
matrix obtained by adding together the corresponding elements of A and B.
The matrix A+ B will be the same size as A and B. If A and B are not the same
size, they cannot be added, and we say that the sum does not exist.
1
2.2Scolar multiplication of Matrices
If the number of columns in A does not equal the number of rows in B; we say
that the product is not exist.
Let A have n columns and B has n rows the ith row of A is [ a i1 ai 2 … a ¿ ] and
[]
b1 j
b
the jth column of B is ⋮2 j .
bnj
5. Special matrices
Definition : A zero matrix is A matrix in which all the elements are zeros.
A diagonal matrix is a square matrix in which all the element not on the main
diagonal are zero. An identity matrix is A diagonal matrix in which every
diagonal element is 1. See figure 2.3
2
[ ] [ ][ ]
0 0… 0 0 0 ⋯ 0 1 0… 0
0 0 0 a22 … 0 0 0
O= 0… , A= A= , I n= 1…
⋮ ⋮ ⋮ ⋮ ⋱ ⋮ ⋮ ⋮
0 0… 0 0 0 ¿ ann 0 0… 1
Theorem 1
Let A , B and C be a matrices and a , b and c be scalars. Assume that the sizes of
the matrices are such that the operations can be performed.
3
[ ][ ]
a11 x 1 +…+ a1 n x n b1
⋮⋯ = ⋮
a m1 x 1 +…+ amn x n bm
The left matrix can be written as a product of the matrix of coefficients A and a
column matrix of Variables X . Let the column matrix of constants be B.
AX B
[ ][ ] [ ]
a11 + …+a 1n x1 b1
⋮ ⋯⋮ ⋮ = ⋮
a m1+ …+a mn x n bm
For example
3 x 1+2 x 2−5 x 3=7
x 1−8 x 2+ 4 x 3=9
2 x1 +6 x 2−7 x 3=−2
Can be written
[ ][ ] [ ]
3 2 −5 x 1 7
1 −8 4 x 2 = 9
2 6 −7 x3 −2
2 x1 +3 x 2 + x3 =3
4
[ ][ ]
1 1 1 1 1 1 2
2 3 1 2 3 1 3
1 −1 −2 1 −1 −2 −6
Elementary Transformations
Eliminations of the method, side by side in the following example. The reader
should note that the way in wihich the variables are eliminated in the equations
5
in the left column. At the same time observe how this is accomplished in tems
of matrices in the right column by creating zero in certain locations.
Gauss-Jordan Elimination
We will now discuss the Method in its more general setting, where the number
of equations can differ from the Number of variables and where there can be a
unique solution, many solutions, or no Solutions. Our approach again will be to
start from the augmented matrix of the given System and to perform a sequence
of elementary row operations that will result in a Simpler matrix (the reduced
echelon form), which leads directly to the solution.
We now give the general definition of reduced echelon form. The reader will
observe that the reduced echelon forms discussed in the previous section all
conform to This definition. Gauss-Jordan Elimination.
DEFINITION
1. Any rows consisting entirely of zeros are grouped at the bottom of the
matrix.
2. The first nonzero element of each other row is 1. This element is called a
leading 1.
3. The leading 1 of each row after the first is positioned to the right of the
leading1ofthe previous row.
4. All other elements in a column that contains a leading 1 are zero.
The following matrices are all in reduced echelon form.
[ ][ ][ ][ ]
1 0 8 1 0 0 7 1 4 0 0 1 2 3 0
0 1 2 0 1 0 3 0 0 1 0 0 0 0 1
0 0 0 0 0 1 9 0 0 0 1 0 0 0 0
[ ][ ][ ]
1 2 0 4 1 2 0 3 0 1 0 0 2
0 0 0 0 0 0 3 4 0 0 0 1 4
0 0 1 3 0 0 0 0 1 0 1 0 3
6
There are usually many sequences of row operations that can be used to
transform a given matrix to reduced echelon form--they all, however, lead to the
same reduced echelon form. We say that the reduced echelon form of a matrix
is unique, The method of Gauss-Jordan elimination is an important systematic
way (called an algorithm) for arriving at the reduced echelon form. It can be
programmed on a computer. We now Summarize the method, then give
examples of its implementation.
Gauss-Jordan Elimination
−2 x 1−3 x 2 +6 x 3=0
Observe that x 1=0 , x 2=0 , x3 =0 is a solution to this system. It is apparent that this
result can be extended as follows to any homogeneous system of equations.
THEOREM
7
A system of homogenous linear equations in n variables always has the solution
X 1 =0 , x 2=0 ,=..=x n=0. This solution is called the trivial solution.