Académique Documents
Professionnel Documents
Culture Documents
4. Triangular Matrix
A matrix is a rectangular array of elements - A square matrix having zero or
arranged into rows and columns, generally non-zero elements values on
enclosed in brackets. The following above or below the major
examples describes the types of matrices: diagonal elements while the rest
(Hoffman, 2001) of the elements are zero.
As discussed above,
det(M) = 20
5 4 3
MT = �6 −3 −2�
3 2 1
a11 = 1
SOLVING ALGEBRAIC EQUATIONS 3. Find the inverse matrix A.
1 −12 21
USING MATRICES 1
A-1 = �2 −4 2 �
20
1 28 −39
Simultaneous algebraic equation can also be
solved using matrices. 4. Find the product of A-1 and D.
𝑥𝑥 1 1 −12 21 −4
Steps: �𝑦𝑦� = �2 −4 2 � . � 15 �
𝑧𝑧 20
1 28 −39 19
1. Write the equations in a form of
a𝑥𝑥 + b𝑦𝑦 + c𝑧𝑧 = d 𝑥𝑥 1 −4 − 180 + 399
𝑦𝑦
� �= � −8 − 60 + 38 �
𝑧𝑧 20
2. Create the appropriate matrices of the −4 + 420 − 741
equations using the general form Ax = D. 𝑥𝑥
Where: 1 215
�𝑦𝑦� = � −30 �
A = Coefficient matrix 𝑧𝑧 20
−325
D = Constant matrix
x = are the unknown matrix then we obtain the following values…
𝑥𝑥 = 10.75 Ans.
3. Find the inverse matrix of the coefficient 𝑦𝑦 = −1.5 Ans.
matrix (A-1). 𝑧𝑧 = −16.25 Ans.
Example 8.6:
5x + 6y + 3z + 4 = 0
4x − 3y + 2z − 15 = 0
3x − 2y + z − 19 = 0
5 6 3 𝑥𝑥 −4
A = �4 −3 2�, x = �𝑦𝑦� and D = � 15 �
3 −2 1 𝑧𝑧 19
CHAPTER 9: Gaussian Elimination
Imagine the above example having several 5. Get the determinants of each
unknowns, it would have much longer unknown matrix.
6. Solve each unknown, dividing each 5. Get the determinants of each
unknown determinant by the unknown matrix.
coefficient determinant.
det(X) = 215
Example 9.1: det(Y) = -30
det(Z) = -325
Find the unknowns of the following
algebraic equations using Cramer’s rule. 6. Solve each unknown.
5x + 6y + 3z + 4 = 0 det(X) 215
4x − 3y + 2z − 15 = 0 𝑥𝑥 = ; 𝑥𝑥 =
det(A) 20
3x − 2y + z − 19 = 0
−4 6 3
X = � 15 −3 2�
19 −2 1
5 −4 3
Y = �4 15 2� PIVOTING
3 19 1
This is an alternative method to simple Gauss
5 6 −4 Elimination when during the elimination and
Z = �4 −3 15 �
3 −2 19 back substitution parts possibly a division by
zero may occur.
4. Get the determinant of the coefficient
matrix A. The main objective of this method is to
transform the augmented matrix into upper
det(A) = 20 triangular matrix by selecting the largest
pivotal element and move it to the top row
called the Partial Pivoting.
Example 9.2: d. On Row 3, we convert it to an
algebraic equation form:
Find the unknown using Gauss 5 1625
Elimination and pivoting. 0x − 0y + 7 z = − 140
then…
3x − 2y + z = 19 (7)(1625)
5x + 6y + 3z = −4 𝑧𝑧 = −
(140)(5)
4x − 3y + 2z = 15
𝟔𝟔𝟔𝟔
1. Let’s create the augmented matrix. 𝒛𝒛 = − = −𝟏𝟏𝟏𝟏. 𝟐𝟐𝟐𝟐 Ans.
𝟒𝟒
3 −2 1 19
�5 6 3 −4� 3. Back substitution using the value of z.
4 −3 2 15
a. From row 2
the select the largest pivotal element
28 4 65 107
from column 1 and rearrange the 0x − 5
y − 5 �− 4 � = 5
rows.
𝟒𝟒𝟒𝟒 𝟑𝟑
𝒚𝒚 = − = − = −𝟏𝟏. 𝟓𝟓 Ans.
5 6 3 −4 𝑅𝑅1 (𝑟𝑟𝑟𝑟𝑟𝑟 1) 𝟐𝟐𝟐𝟐 𝟐𝟐
�3 −2 1 19 � 𝑅𝑅2 (𝑟𝑟𝑟𝑟𝑟𝑟 2)
4 −3 2 15 𝑅𝑅3 (𝑟𝑟𝑟𝑟𝑟𝑟 3) b. From row 1
3 65
5𝑥𝑥 + 6 � � + 3 � � = −4
2. Eliminate the rest of the elements 2 4
below the pivotal elements.
solving for x…
3
a. R2’ = R2 –� �R1 becomes… 𝟐𝟐𝟐𝟐𝟐𝟐
5 𝒙𝒙 = = 𝟏𝟏𝟏𝟏. 𝟕𝟕𝟕𝟕 Ans.
5 6 3 −4 𝟐𝟐𝟐𝟐
28 4 107
�0 − − �
5 5 5
4 −3 2 −15 The same result is achieved with Example
4
b. R3’ = R3 –� �R1 becomes… 9.1.
5
5 6 3 −4
28 4 107
�0 − 5 − 5 5 ��
�
39 2 91
0 − −
5 5 5
c. Eliminate the first element of R3.
39
R3’ = R3 –� �R2
28
5 6 3 −4
28 4 107
�0 − − �
� 5 5 5 �
5 1625
0 0 −
7 140
BIBLIOGRAPHY
Chapra, S. C. (2012). Applied Numerical
Methods with MATLAB for Engineers
and Scientists 3rd Ed. New York:
McGraw-Hill.