MATM1644 (Matrix)
MATM1644 (Matrix)
Matrices have a very wide range of applications in various disciplines inside as well as outside of
Mathematics.
Example 3:
1.
then
Definition 3: We say that two matrices A and B are equal and write A = B if they have the same
size and their corresponding entries are equal.
Example 4: 1. For two matrices to be equal, we must have
x = 2 and y = 3.
Definition 4: If A and B are two matrices of the same size, the sum A + B is the matrix obtained by
adding the corresponding entries of A and B.
If is also an m x n matrix.
Example 5. Let
Then
Definition 5: An m x n matrix in which all entries are nought or zero, is called the m x n zero
matrix and is usually denoted by O.
Definition 6: If A is any matrix, then the negative of A is the matrix in which all entries are the
negatives of the corresponding entries of A. The negative of A is denoted by - A.
Example 6:
1. is a 2 x 3 zero matrix.
2. If
Definition 6: If A and B are two matrices of the same size, the difference A – B is the matrix
obtained by subtracting the corresponding entries of A and B.
Example 7: If then
A–B=.
Properties of matrix addition: Let A, B, C and O be matrices of the same size.
1. A + B = B + A :
2. (A + B) + C = A + (B + C):
This rule is called the associative rule for matrix addition.
3. A+O=O+A
4. A + (-A) = -A + A = O
Definition 7: If A is a matrix and r is a scalar (real number), then we define the scalar product
i.
Properties of scalar multiplication: If A and B are matrices of the same size and r and s are
scalars, then the following rules (which we assume without proof) hold:
1. r(A+B) = rA + rB
2. (r+s)A = rA + sA
3. (rs)A = r(sA)
4. 1.A = A
Definition: (Identity matrix)
A square matrix with diagonal entries equal to one and other entries zero is called an identity
matrix and denoted by I.
Example 8:
1. is a 2 x 2 identity matrix.
2. is a 3 x 3 identity matrix.
Exercise:
(i)
2. Let A and B be 4 x 2 matrices and let C and D be 3 x 3 matrices. Which of the following
expressions are defined? If defined, give the size of the resulting matrix.
(a) A – 2B (b) 2C (c) 2A + 3C (d) –A +4C (e) B – C (f) A + (2B + C) (g) 2(A - B)
4. Let Calculate, if possible,
(a)
(b)
7. Every year a game reserve does a survey of the number of impala, blesbock, zebras and giraffes
in the reserve. In 2010 there were 75 impala ewes and 50 rams, 33 blesbok ewes and 21 rams, 12
zebra mares and 7 stallions, 8 giraffe cows and 5 bulls. A year later there were 85 impala ewes and
58 rams, 29 blesbock ewes and 24 rams, 15 zebra mares and 9 stallions, 8 giraffe cows and 6 bulls.
(a) Draw up two matrices A and B, for 2010 and 2011 respectively, in which the columns
represent the different kinds of animals and the rows the number of females, number of males
Examples:
1. Let .
Solution:
2. Let
Now
3. Let
Solution:
4. Let
Example: Let
But
i.e. if ab = ac and a 0 then b = c. But this rule is not true for matrices either:
Example: Let then
AB = Therefore, AB = AC and
Properties of matrix multiplication: Let A, B and C be matrices so that the products below are
defined. Let r be any scalar (real number) then
Then find
2. A(B+C) and AB + AC
3. (B + C)D and BD + CD
Solution: 1. A(BC) =
3.
and
were treated at school. We now study systems consisting of possibly more than two equations
or containing more than two unknowns and then consider a few applications.
Definition 1: An equation of the form and a and b are not both zero, is called a linear equation in
two unknowns x and y.
where and are not all zero is called a linear equation in the unknown
Examples: are examples of linear equations, but 2xy – 3z = 1,
Definition 3: A general system of m linear equations with n unknowns and coefficients can be
written as
Definition: A system of linear equations without solutions, is called an inconsistent system and a
system of linear equations with one or more solutions is said to be a consistent system.
Example: Consider the system . This system clearly has no solution, because the two
The method we shall follow, is to keep on substituting the given system by a system having the
same solution(s), but which is easier to solve.
Definition: Any of the following operations, called elementary row operations, when applied to a
system of linear equations, will leave the solutions of the system unchanged:
3. Substituting any equation by the sum of itself and a multiple or another equation in the
system.
Example: Solve
Solution: It is easier to work with a system where the coefficient of the first unknown, , in the
first equation is ”1”.
It is easier to work with a system where the coefficient of the second unknown, x2, in the second
equation is ”1”.
Now use the second equation to eliminate the unknown x2 from the third equation:
Now substitute x3 = 0 and x2 = - 4 into the first equation of the last system.
x1 = - 1 - x2 + 3x3 = -1 + 4 +3(0) = 3.
The objective of the process executed above, is to primarily ensure that the coefficient of
(that is, the number preceding) the first unknown is 1 by either changing the order of the given
equations or multiplying by a suitable number. Suitable multiples of this (new) first equation is
then subtracted from the other equations to eliminate the first unknown of each of them. The
first equation is then ignored, and the same process is repeated on the rest of the system until
each equation has at least one unknown less than the one above it. We will write a system of
linear equations as a matrix. The system in the previous example can be written as a
matrix called augmented matrix.
In the augmented matrix we only write down the coefficients and not the unknowns.
We do not use the equality signs either - the constants following the equality signs are simply filled in
after a vertical line.
Example: 1. Solve
As we have done before, we use the ”1” in the second row and second column to eliminate the
unknown x2 from the third equation (row).
We use back substitution to solve the system: from E3 follows that x3 = -1.
Substitution x3 = -1 in E2: x2 = -1 + x3 = -1 -1 = - 2.
Definition:(Row echelon form) A matrix is in row echelon form if it satisfies two conditions:
1. All rows containing only zeros appear below rows with nonzero entries.
2. The first nonzero entry in any row appears in a column to the right of the first nonzero entry
in any preceding row.
Examples:
is in row-echelon form.
2. Solve
This means that the system is consistent and has infinitely many solutions, for there is a different
set of values for the unknowns satisfying the system for each real number.
3. Solve
Solution:
Rewriting the final row in equation form again, it follows that 0 = - 3. Since this is false, it means
that there are no values of x1, x2 and x3 satisfying all equations, that is, the system is inconsistent.
Exercises:
(a) (b)
(c) (d)
(a) (b)