Professional Documents
Culture Documents
Introduction
Linear Algebra is a branch of mathematics rich in theory and applications. The study of
linear algebra demands familiarity with algebra, analytic geometry, and trigonometry.
OBJECTIVES:
At end of this module, you should be able to:
1. solve different kinds of linear systems using elimination method.
2. correctly identify different kinds of matrices
3. add and multiply matrices
4. prove the different properties of matrix addition and matrix multiplication
5. solve linear systems using Gauss-Jordan Reduction Method
6. nd the inverse of the matrix using different methods
A solution of a system of linear equations is a sequence of numbers s1, s2, s3, …, sn that
is a solution of each of the linear equations in the system.
It is possible for a system of linear equations to have exactly one solutions, an in nite
number of solutions, or no solution. A system of linear equation is called consistent if it has
at least one solution and inconsistent if it has no solution.
The graph below represents the three possible solutions to a linear system with two
unknowns.
The steps for more than 2 unknowns can be done by repeating steps 1 to 3 using
combination of equations to generate separate equations having 2 unknowns left to solve one
of the variables and substitute backward to the equations generated upon elimination. Let us
work out these steps in the example that follows.
{4x + 6y = 9 (2)
2x + 3y = 6 (1)
Example 1. Solve the linear system
{4x + 6y = 9 ⇒ 4x + 6y = 9
2(2x + 3y = 6) ⇒ 4x + 6y = 12 Multiply (1) by 2
Step 1. Multiply (1) by 2
(2)
4x + 6y = 12
−(4x + 6y = 9)
Step 2. Subtract the second equation from the rst.
0+0=3
Step 3. Solve the new equation for the variable left. We have no variable left, how can we
have 0 = 3? This means that the system has no solution and is an inconsistent.
{3x + 2y = 7 (2)
2x + 3y = 8 (1)
Example 2. Solve
6x + 9y = 24
−(6x + 4y = 14)
Step 2. Subtract the second equation from the rst.
5y = 10
2x + 3(2) = 8
2x + 6 = 8
2x = 8 − 6
2x = 2
x =1
Solution: x = 1, y = 2 , or (1, 2).
This system has exactly one solution and is called consistent.
1.2 Matrices
Matrices are rectangular arrays of scalars (A scalar is a complex number unless otherwise
stated) that are used in a great variety of ways, such as to solve linear systems, model linear
behavior, and approximate nonlinear behavior. It is surrounded by a pair of brackets. Each
has rows and columns and this de nes the size of the matrix. If a matrix [ A] has m rows n
columns, the size of the matrix is denoted by “mxn”. The matrix [ A] may also be denoted by
[ A]m xn to show that [ A] is a matrix with m row and n column.
Matrices are often identi ed with italized or bold capital letters. So A, B, C or A, B, C can
be used as labels to identify matrices. The corresponding small letter is used to identify
individual elements of the matrix, with subscripts indicating the row and column where term
is located.
2 1
[−1 5 0] [ 1 + i] [3 1 ]
3 −2 4 i
[3 7i 0] 0 −1
Kinds of Matrices
Rectangular matrix is a matrix with the number of row and columns are not equal.
Square matrix is a matrix with the number of rows equals the number of columns.
A square matrix has two diagonals — Upper Triangular and Lower Triangular. Upper
diagonal extending from the upper left hand corner to the lower right-hand corner. It is called
principal diagonal or main diagonal and its elements are called diagonal elements.
Upper Triangular Matrix is a matrix, in which all the elements below the
diagonal entries are zero.
a11 a12 a13
0 a22 a23
0 0 a33
Lower Triangular Matrix is a matrix, in which all the elements above the
diagonal entries are zero.
a11 0 0
a21 a22 0
a31 a32 a33
Diagonal Matrix is a square matrix with all non-diagonal elements equal to
zero.
a11 0 0
0 a22 0
0 0 a33
Unit Matrix or Identity Matrix is a square matrix with all diagonal elements
equal to one and non-diagonal elements are equal to zero.
1 0 0
[0 0 1]
0 1 0
5x − y + 9z = 2
Example 4. This linear system 4x + 2y − z = 18 have the following augmented and
x + y + 3z = 6
5 −1 9
coef cient matrix. coef cient matrix of the linear system A = 4 2 −1
1 1 3
5 −1 9 ⋮ 2
augmented matrix is A = 4 2 −1 ⋮ 18 .
1 1 3 ⋮ 6
The dash line before the coef cients of the bis can be eliminated or a space is applicable
5 −1 9 2
and can be written this way A = 4 2 −1 18 .
1 1 3 6
2 0 1 −2 3 −1
[ ]
b) 2A - 3B = 2A + (- 3B) = 2 4 3 −1 + (−3) 3 5 6
−3 6 5 4 2 1
4 0 2 6 −9 3 10 −9 5
= 8 6 −2 + −9 −15 −18 = −1 −9 −20
−6 12 10 −12 −6 −3 −18 6 7
∑
u ⋅ v = u1v1 + u2 v2 + … + un vn = ui vi
i=1
2 −5
[−1] [4]
Example 6. Find the dot product of u = −3 and v = 1
2 −5
[−1] [ 4 ]
Solution: u ⋅ v = (2)(−5) + (−3)(1) + (−1)(4) = − 17 or −3 ⋅ 1 = [−17]
[−2 1 ] [3]
1 −1 1
Example 2. Find the product of B = and v =
∑
vector of B, so that (A B)ij = ai1b1j + ai2 b2 j + … + ain bnj = aik bkj
k=1
Example 7. Find AB and BA using the following matrices
[ 0 1] [−2 1 ]
−1 2 1 −1
A= and B =
[ 0 1] [−2 1 ] [ c d] [g h ]
−1 2 1 −1 a b e f
AB = ⋅ A= and B =
[ 0 1] [−2 1 ] [c d] [g h ] [ ce + dg cf + dh]
−1 2 1 −1 a b e f ae + bg a f + bh
AB = ⋅ AB = ⋅ =
[−2 1]
−5 3
AB =
[2 0 −1]
0 10 −1
AB =
2x3
BA = (3x3) x (2x3) cannot be multiplied since the column of the rst matrix is not the
same with the row of the second matrix, thus, the product cannot be determined.
Proof
Show that the matrices A(B+C) and AB+AC are equal by showing that their
corresponding entries are equal. Assume A has size m x n, B has size n xp, and C has size n xp.
Using the de nition of matrix multiplication, the entry in the ith row and jth column of
A(B+C) is ai1(bij + cij ) + … + ain(bnj + cnj ). Moreover, the entry in the ith row and jth
column of AB+AC is (ai1b1j + … + ain bnj ) + (ai1c1j + … + aincnj ). By distributing and
regrouping, you can see that these two i jth entries are equal. thus, A(B+C)= AB+AC.
1 2 0
[0 0 1] [1 4 −1]
T 0 2 1
c) C = 2 1 0 d) DT =
[3 4] [1 −1]
1 2 3 5
Example 10. Let A = and B = . Calculate (A B)T, A T B T, and B T A T.
*Make a conjecture about the transpose of a product of two square matrices. Select two other
square matrices to check your conjecture.
Proof. We start by showing that the products involved are all de ned. Since AC is m xp, then
(AC )T is px m. As C T is px n and A T is m x n, then C T A T is also px m. So the sizes of the
products agree. Now to show that the products are equal, we apply the de nitions of
multiplication and transpose to obtain
N
(C T A T )ij = (C T )ik (A T )kj
∑
k=1
n n
∑ ∑
cki ajk = ajk cki = (AC )ji
k=1 k=1
((AC )T )ij
[ 21 a22]
a11 a12
Solution: Let A = a . Then A is symmetric if and only if
[ 12 a22]
a11 a12
symmetric if and only if the matrix has the form a .
Exercises 01-04
1. Which of the following equations are linear and not linear equations?
A. x − y − z = 3 F. x = 3y
−b ± b 2 − 4ac
B. x +y +z =6 G. x =
2a
C. cos(x) + sin(y) = 1 H. π x + y + ez = 5
1
D. e x+y+z = 1 I. 2x + y + z = 0
2
E. x = 2y + 5z = 3 J. sinh (x) = ln | x + x 2 + 1 |
−1
3. Using elimination method, how would you know that a system has exactly one solution?
in nitely many solution? no solution?
4. Write the following systems into an augmented and coef cient matrices
x +y +z =3
{x − y = 0
x +y =2
A. B. x−y−z =−1
2x + y + 5z = 8
5. Describe how are the following matrices look like and give example, a) diagonal matrix, b)
triangular matrix (upper or lower), c) echelon matrix, d) reduced row echelon matrix, and e)
identity matrix.
6. Perform the operations on the matrices
−3 1
[−1 5] [ 2 5 −3 1] [1 6 −2 4]
−1 1 −1 3 3 2 −2 1
A= 2 2 B= C=