Linear Algebra MODULE 1 Linear Equations and Matrices
Linear Algebra MODULE 1 Linear Equations and Matrices
• A system of linear equation is a collection of one or more linear equations involving the same variable.
Example: 𝑥 − 3𝑦 = −3
2𝑥 + 𝑦 = 8
• The solution of a linear equation is defined as the points, in which the lines represent the intersection of two
linear equations. In other words, the solution set of the systems of linear equations is the set of all possible
values to the variables that satisfies the given linear equation.
Example 1. 𝑥 − 3𝑦 = −3
2𝑥 + 𝑦 = 8
a. Multiple 2 to the 1st equation
𝑥 − 3𝑦 = −3 → 2𝑥 − 6𝑦 = −6
b. Subtract 2nd equation to the equation derived in (a)
2𝑥 − 6𝑦 = −6
2𝑥 + 𝑦 = 8
−7𝑦 = −14
c. Solve for y.
−7𝑦 = −14
𝑦=2
d. Solve for x using any of the given equations given that y is equal to 2.
𝑥 − 3𝑦 = −3
𝑥 − 3(2) = −3
𝑥 = −3 + 6
𝑥=3
Example 2. 2𝑥 − 3𝑦 + 4𝑧 = −12
𝑥 − 2𝑦 + 𝑧 = −5
3𝑥 + 𝑦 + 2𝑧 = 1
1. 𝑥 + 2𝑦 = 8
3𝑥 + 4𝑦 = 4 5. 𝑥 + 2𝑦 + 3𝑧 = 6
2𝑥 − 3𝑦 + 2𝑧 = 14
2. 𝑥 + 𝑦 = 5 3𝑥 + 𝑦 − 𝑧 = −2
3𝑥 + 3𝑦 = 10
6. 2𝑥 + 𝑦 − 3𝑧 = −11
3. 𝑧 = 4 𝑥 − 2𝑦 + 𝑧 = −3
3𝑦 + 𝑧 = 7 −𝑥 + 3𝑦 − 4𝑧 = −6
2𝑥 + 𝑦 − 2𝑦 = −5
7. 3𝑥 + 2𝑦 + 𝑧 = 2
4. 𝑥 − 5𝑦 = 6 4𝑥 + 2𝑦 + 2𝑧 = 8
3𝑥 + 2𝑦 = 1 𝑥−𝑦+𝑧 =4
5𝑥 + 2𝑦 = 1
B. Matrices
If a matrix 𝐴 has 𝒎 rows and 𝒏 columns, we say that 𝐴 is an 𝑚 by 𝑛 matrix (written 𝑚 × 𝑛). Then, the matrix
below is a 3x4 matrix. If 𝑚 = 𝑛, we say that 𝐴 is a square matrix of order n.
C. Matrix Operations
1. Matrix Addition
If 𝐴 = [𝑎𝑖𝑗 ] and 𝐵 = [𝑏𝑖𝑗 ] are both 𝑚 × 𝑛 matrices, then the sum 𝐴 + 𝐵 is an 𝑚 × 𝑛 matrix 𝐶 = [𝑐𝑖𝑗 ].
Thus, 𝐴 + 𝐵 is a matrix whose element is the sum of the corresponding elements of matrix 𝐴 𝑎𝑛𝑑 𝐵.
Example:
2. Matrix Subtraction
If A and B are two matrices of the same order, then we define 𝐴 − 𝐵 = 𝐴 + (−𝐵)
Consider the two matrices, A and B, of order 2 x 2. Then, the difference is given by:
Example:
4. Matrix Multiplication
If 𝐴 = [𝑎𝑖𝑗 ] is an 𝑚 × 𝑛 matrix and 𝐵 = [𝑏𝑖𝑗 ] is an 𝑛 × 𝑝 matrix, then the product of 𝐴 𝑎𝑛𝑑 𝐵, 𝐴𝐵 = 𝐶 =
[𝑐𝑖𝑗 ] , is an 𝑚 × 𝑝 matrix defined by
𝑐𝑖𝑗 = ∑𝑛𝑘=1 𝑎𝑖𝑘 𝑏𝑘𝑗 = 𝑎𝑖1 𝑏1𝑗 + 𝑎𝑖2 𝑏2𝑗 + ⋯ + 𝑎𝑖𝑛 𝑏𝑛𝑗 𝑖 = 1,2, … 𝑚
𝑗 = 1,2, … 𝑝
Note that 𝐴𝐵 is defined only when the number of columns of 𝐴 is the same as the rows of 𝐵. We also
observe that the (i,j) entry in 𝐶 is obtained by using the ith row of 𝐴 and the jth column of B.
Example:
a. 𝑟(𝑠𝐴) = (𝑟𝑠)𝐴
b. (𝑟 + 𝑠)𝐴 = 𝑟𝐴 + 𝑠𝐴
c. 𝑟(𝐴 + 𝐵) = 𝑟𝐴 + 𝑟𝐵
d. 𝐴(𝑟𝐵) = 𝑟(𝐴𝐵) = (𝑟𝐴)𝐵
E. Transpose of a Matrix
𝑇
If 𝐴 = [𝑎𝑖𝑗 ] is an 𝑚 × 𝑛 matrix, then the transpose of 𝐴 , 𝐴𝑇 = [𝑎𝑖𝑗 ] is the 𝑛 × 𝑚 matrix defined by
𝑇
𝑎𝑖𝑗 = 𝑎𝑖𝑗 . Thus, the transpose of 𝐴 is obtained from 𝐴 by interchanging the rows and columns of 𝐴.
Example:
1 −3
1 2 −1
𝐴=[ ] and 𝐴𝑇 = [ 2 2]
−3 2 7
−1 7
Augmented Coefficient
2 −1 3 4 2 −1 3
[ | ] [ ]
3 0 2 5 3 0 2
1 0 0 2 0 0 1 0 0
𝐴 = [0 2 0 ], 𝐵 = [0 2 0], 𝐼3 = [0 2 0]
0 0 3 0 0 2 0 0 3
From the given matrices above, 𝐴, 𝐵, 𝑎𝑛𝑑 𝐼3 are diagonal matrices; 𝐵, 𝑎𝑛𝑑 𝐼3 are scalar matrices; and
𝐼3 is the 3 × 3 identity matrix.
3. Triangular Matrix
A square matrix is said to be a triangular matrix if the elements above or below the principal diagonal are
zero, and there are of two types:
a. Upper Triangular Matrix
A square matrix [𝑎𝑖𝑗 ] is called an upper triangular matrix, if 𝑎𝑖𝑗 = 0, when 𝑖 > 𝑗.
3 1 2
[0 4 3] is an upper triangular matrix of order 3 × 3.
0 0 6
4. Symmetric Matrices
A square matrix 𝐴 = [𝑎𝑖𝑗 ] is called a symmetric matrix if 𝑎𝑖𝑗 = 𝑎𝑗𝑖 for all 𝑖, 𝑗 values. In simpler term matrix
A is a symmetric matrix is 𝐴𝑇 = 𝐴.
1 2 3 1 2 3
𝐴 = [2 4 5] is a symmetric matrix because 𝐴𝑇 = [2 4 5]
3 5 2 3 5 2
0 2 4 0 −2 −4
𝐴 = [−2 𝑇
0 3] is a skew symmetric matrix because 𝐴 = [2 0 −3]
−4 −3 0 4 3 0