Mat 211 - Linear Algebra Week 2 / Distance Education
Mat 211 - Linear Algebra Week 2 / Distance Education
As an example
2 x1 3x2 5x3 7
is a linear equation; the coefficients of x1, x2, and x3 are ‘2’, ‘-3’, and ‘5’, and
the constant term is ‘7’.
Other examples to the linear equation;
1
y x 3z 1
2
x 2y 3z 9
Note that each variable in a linear equation occurs to the first power only.
Some non-linear equation examples;
x y z2 4 is not a linear equation since z2 is not in first-degree.
x z 2 12 is not a linear equation, because the value of 𝑧 2 will be
z ≥ 0 for ‘z’ and will be z ≤ 0 for ‘-z’.
This graphical method has its limitations: when more than three variables
are involved, no physical image of the graphs is possible. It is necessary to
turn to a more “algebraic” method of solution.
Matrix
A matrix is a set of elements, organized into rows and columns;
rows
columns
ATU, Industrial Engineering Department
INTRODUCTION TO MATRICES
4
Elements 1 & 2 of column ‘2’ X( [1 2], 2)
5
Prime diagonals of matrix (X) a11 = 1, a22 = 5, a33 = 9
Row Matrix
If the matrix consists of only a row, it is called the row matrix.
Example: A = [1, 7, -2, 3] is a ‘1 x 4 row matrix’.
Column Matrix
If the matrix consists of only a column, it is called the column matrix.
3
Example: A 4 is a ‘3 x 1 column matrix’
1
Augmented Matrix
Consider the following system;
3x1 2 x2 x3 x4 1
2 x1 x3 2 x 4 0
3x1 x2 2 x3 5x4 2
of three equations in four variables. The array of numbers;
3 2 1 1 1
2 0 1 2 0
3 1 2 5 2
occurring in the system is called the augmented matrix of the system. Each
row of the matrix consists of the coefficients of the variables (in order) from
the corresponding equation, together with the constant term.
For clarity, the constants are separated by a vertical line. The augmented
matrix is just a different way of describing the system of equations. The array
of coefficients of the variables;
3 2 1 1
2 0 1 2 is called the coefficient matrix of the system.
3 1 2 5
1
0 is called the constant matrix of the system.
2
Elementary Operations
The algebraic method for solving systems of linear equations is described as
follows. Two such systems are said to be equivalent if they have the same
set of solutions.
A system is solved by writing a series of systems, one after the other, each
equivalent to the previous system. Each of these systems has the same set
of solutions as the original one; the aim is to end up with a system that is
easy to solve. As an illustration, we solve the system x + 2y = -2, 2x + y = 7 in
this manner.
First, subtract twice the first equation from the second. The resulting system is;
x 2y 2 1 2 2
3y 11 0 3 11
which is equivalent to the original. At this stage we obtain y = -11/3 by
multiplying the second equation by -1/3. The result is the equivalent system;
x 2y 2 1 2 2
11
11 0 1
y
3 3
Finally, we subtract twice the second equation from the first to get another
equivalent system.
16 16
x
3 1 0 3
11 0 1 11
y
3 3
ATU, Industrial Engineering Department
INTRODUCTION TO MATRICES
Elementary Operations
Example: