Lecture - 1 - System of Linear Equations - Matrix Algebra-Part1
Lecture - 1 - System of Linear Equations - Matrix Algebra-Part1
Lecture 1
Systems of Equations
Instructor:
Dr. Safaa Amin
Associative Professor in Scientific computing Dept.
Faculty of computer and information science
Ain Shams University
1
• Textbook: Howard Anton, "Elementary Linear Algebra",
Ninth Edition, 2004, International student edition, ISBN 007-
124429-8.
Linear Equations
Any straight line in xy-plane can be represented algebraically by an
equation of the form:
𝒂𝟏 𝒙 + 𝒂𝟐 𝒚 = 𝒃
Any straight line in xyz-plane can be represented algebraically by an
equation of the form:
𝒂𝟏 𝒙 + 𝒂𝟐 𝒚 + 𝒂𝟑 𝒛 = 𝒃
General form: define a linear equation in the n variables :
𝒂𝟏 𝒙𝟏 + 𝒂𝟐 𝒙𝟐 +. . . +𝒂𝒏 𝒙𝒏 = 𝒃
𝟏
𝒚 = 𝒙 + 𝟑𝒛 + 𝟏,
𝟐
x1 − 2 x2 − 3x3 + x4 = 7
• Observe that a linear equation does not involve any
products or roots of variables. All variables occur only to
the first power and do not appear as arguments for
trigonometric, logarithmic, or exponential functions.
4
This is not a Linear System
.
𝑒 𝑥 − 2𝑐𝑜𝑠𝑦 + 𝑧 = 6
𝑥 2 + 3𝑦 − 𝑧 = 10
Linear Equations
t1, t 2
• arbitrary numbers are called parameter.
• for example 11 11
t1 = 3 yields the solution x = 3, y = as t 2 =
2 2
7
Example 2: Finding a Solution Set
• Solution(b)
we can assign arbitrary values to any two variables and
solve for the third variable.
• for example
x1 = 5 + 4s − 7t , x2 = s, x3 = t
• where s, t are arbitrary values
8
System of Linear Equation
• A finite set of linear equations in the
variables x1 , x2 ,..., xn a11 x1 + a12 x2 + ... + a1n xn = b1
is called a system of linear equations or a a21 x1 + a22 x2 + ... + a2 n xn = b2
linear system .
• A sequence of numbers am1 x1 + am 2 x2 + ... + amn xn = bm
s1 , s2 ,..., sn is called a solution of the
system. An arbitrary system of m
linear equations in n unknowns
INCONSISTENT
CONSISTENT
Consistent and inconsistent system
• A system of equations can be consistent or inconsistent. What does
that mean?
A system of equations 𝑨 𝑿 =𝑩
[A][X]= [B]
Solution
a) The system of equations
𝟐𝒙 + 𝟒𝒚 = 𝟔 2 4 x 6
𝒙 + 𝟑𝒚 = 𝟒 1 3 y = 4
𝟐𝒙 + 𝟒𝒚 = 𝟔 2 4 x 6
*-2 𝒙 + 𝟐𝒚 = 𝟒 1 2 y = 4
0 + 0 = −2
is inconsistent as no solutions exists.
Linear Systems
in Three Unknowns
Homogeneous and
Non-Homogeneous System
a11 x1 + a12 x2 + ... + a1n xn = b1
a21 x1 + a22 x2 + ... + a2 n xn = b2
am1 x1 + am 2 x2 + ... + amn xn = bm
if 𝑏1 = 𝑏2 = … = 𝑏𝑚 = 0
𝑡ℎ𝑒𝑛 𝑡ℎ𝑒 𝐿𝑖𝑛𝑒𝑎𝑟 𝑠𝑦𝑠𝑡𝑒𝑚 𝑖𝑠 𝑯𝒐𝒎𝒐𝒈𝒆𝒏𝒆𝒐𝒖
Otherwise, if at least one of theses b’s ≠ 𝟎
𝑡ℎ𝑒𝑛 𝑡ℎ𝑒 𝐿𝑖𝑛𝑒𝑎𝑟 𝑠𝑦𝑠𝑡𝑒𝑚 𝑖𝑠 Non-Homogeneous
Gaussian Elimination Method
System of
Matrix Augmente
Linear
Form d Matrix
Equation
Elementary
Row
Operations
Back Row
Solution
substitution Echelon
Set
algorithm Form
Matrix Form
a11 x1 + a12 x2 + ... + a1n xn = b1
a21 x1 + a22 x2 + ... + a2 n xn = b2
am1 x1 + am 2 x2 + ... + amn xn = bm
𝑥1 𝑏1
𝑥2 𝑏2
𝑢𝑛𝑘𝑛𝑜𝑤𝑛 𝑣𝑒𝑐𝑡𝑜𝑟 𝑥 = . R.H.S vector B = .
: :
𝑥𝑛 𝑏𝑛
Augmented Matrices
◼ augmented matrix for the
system. a11 x1 + a12 x2 + ... + a1n xn = b1
◼ Note: must be written in a21 x1 + a22 x2 + ... + a2 n xn = b2
the same order in each
equation as the unknowns
and the constants must be
am1 x1 + am 2 x2 + ... + amn xn = bm
on the right.
1th column
m1 m 2
a a ... a mn b m
20