Professional Documents
Culture Documents
Lecture Notes Chapter 3 Part 1
Lecture Notes Chapter 3 Part 1
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
Description
AIMS
This chapter is aimed to solve small numbers of linear algebraic equations by using two types of
methods involving graphical method and Cramer’s rule.
EXPECTED OUTCOMES
1. Students should be able to transform the system of linear equations into matrix form.
2. Students should be able to solve small numbers of equations by using graphical method and
Cramer’s rule.
REFERENCES
1. Norhayati Rosli, Nadirah Mohd Nasir, Mohd Zuki Salleh, Rozieana Khairuddin, Nurfatihah
Mohamad Hanafi, Noraziah Adzhar. Numerical Methods, Second Edition, UMP, 2017 (Internal
use)
2. Chapra, C. S. & Canale, R. P. Numerical Methods for Engineers, Sixth Edition, McGraw–Hill,
2010.
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
Content
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
INTRODUCTION TO SYSTEM OF
LINEAR ALGEBRAIC EQUATIONS
System is defined as a group of entity or objects, real or abstract,
comprising a whole with each and every component/element interacting or
related to one another. For example, solar system, blood system and
computer system.
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
INTRODUCTION (Cont.)
am1 x1 am 2 x2 am x n bn
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
INTRODUCTION (Cont.)
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
INTRODUCTION (Cont.)
Cramer’s Rule
2 1 Graphical Method
Two Types
of Methods
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
GRAPHICAL METHOD
The graphical method is suitable to be applied to a linear algebraic system
of two equations.
These equations are plotting on Cartesian Coordinate.
Each equation represents a straight line.
The intersection point provides the solution to the corresponding unknown.
For two equations
a11 x1 a12 x2 b 1
a21 x1 a22 x2 b 2
Solve both equations for 𝑥2 yields
a b
x2 11 x1 1 x2 (slope) x1 intercept
a12 a12
a b
x2 21 x1 2
a22 a22
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
GRAPHICAL METHOD (Cont.)
Example 1
Use the graphical method to solve the following equations
x1 2 x2 7
2 x1 3x2 7
Solution
1 7
x2 x1
2 2
2 7
x2 x1
3 3
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
GRAPHICAL METHOD (Cont.)
Solution (Cont.)
The solution is given by the intersection point of the two lines, 𝑥1 = 1 and 𝑥2 = 3.
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
GRAPHICAL METHOD (Cont.)
Given the two lines 𝐿1 and 𝐿2 , one and only one of the following may
occur:
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
GRAPHICAL METHOD (Cont.)
Example 2
Determine the nature of the solution for the following system of linear
equations
x1 3x2 3
3x1 9 x2 5
Solution
No solution
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
GRAPHICAL METHOD (Cont.)
Example 3
Determine the nature of the solution for the following system of linear
equations
x1 3 x2 3
3 x1 x2 9
Solution
Unique solution
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
GRAPHICAL METHOD (Cont.)
Example 4
Determine the nature of the solution for the following system of linear
equations
x1 3x2 3
0.35 x1 x2 1.1015
Solution
ill-conditioned
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
GRAPHICAL METHOD (Cont.)
Example 5
Determine the nature of the solution for the following system of linear
equations
x1 3 x2 3
2 x1 6 x2 6
Solution
Many solutions
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
CRAMER’S RULE
Definition
Dn
Cramer’s rule formula: xn
D
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
CRAMER’S RULE (Cont.)
1 1 a11 a11
a11 a12
2 2 a11a22 a12 a21
a21 a22
a11 a12 a13
a22 a23 a21 a23 a21 a22
3 3 a21 a22 a23 a11 a12 a13
a32 a33 a31 a33 a31 a32
a31 a32 a33
a11 ( a22 a33 a23a32 ) a12 ( a21a33 a23a31 ) a13 ( a21a32 a22 a31 )
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
CRAMER’S RULE (Cont.)
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
CRAMER’S RULE (Cont.)
Example 5
Given the system of linear equations
x1 3x2 x3 8
2 x1 x2 3x3 13
3x1 2 x2 x3 4
a) Transform the above system into a matrix form of 𝐀𝐱 = 𝐛.
b) Compute 𝑥1 , 𝑥2 and 𝑥3 by using Cramer’s rule.
Solution
a) 1 3 1 x1 8
2 1 3 x 13
2
3 2 1 x3 4
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
CRAMER’S RULE (Cont.)
Solution (Cont.)
1 3 1
1 3 2 3 2 1
D A 2 1 3 (1) 3 (1) 21
2 1 3 1 3 2
3 2 1
Find the determinants of 𝐷1 , 𝐷2 and 𝐷3 by replacing the first, second and third
column in 𝐀 with 𝐛.
8 3 1
1 3 13 3 13 1
D1 13 1 3 (8) 3 (1) 21
2 1 4 1 4 2
4 2 1
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
CRAMER’S RULE (Cont.)
Solution (Cont.)
1 8 1
13 3 2 3 2 13
D2 2 13 3 (1) (8) (1) 3 42
4 1 3 1 4 4
3 4 1
1 3 8
1 13 2 13 2 1
D3 2 1 13 (1) 3 (8) 63
2 4 3 4 3 2
3 2 4
21 42 63
x1 1, x2 2, x3 3
21 21 21
Therefore, 𝑥1 = 1, 𝑥2 = −2, 𝑥3 = 3.
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
Conclusion
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449
Author Information
Mohd Zuki Salleh
Applied & Industrial Mathematics Research
Group, Norhayati Binti Rosli,
Faculty of Industrial Sciences & Technology Senior Lecturer,
(FIST), Applied & Industrial Mathematics Research
Universiti Malaysia Pahang, Group,
Lebuhraya Tun Razak, Fakulti Sains & Teknologi Industri,
26300 Gambang, Kuantan, Universiti Malaysia Pahang,
Pahang, Malaysia 26300 Gambang, Pahang.
Web: Mohd Zuki Salleh SCOPUS ID: 36603244300
UMPIR: Mohd Zuki Salleh UMPIR ID: 3449
Google Scolar: Mohd Zuki Salleh Google
ResearchID: F-5440-2012 Scholars: https://scholar.google.com/citations
ORCiD: http://orcid.org/0000-0001-9732-9280 ?user=SLoPW9oAAAAJ&hl=en
SCOPUS ID: 25227025600 e-mail: norhayati@ump.edu.my
E-mail: zuki@ump.edu.my
Numerical Methods
by Norhayati Rosli
http://ocw.ump.edu.my/course/view.php?id=449