Beruflich Dokumente
Kultur Dokumente
ENGE600004 - 4 SKS
MUHAMMAD IBADURROHMAN, ST, MT, PHD (DIC)
Instructor
Codes of Conduct:
No cheating!
Tolerance for late comers: 15 mins
Electronic devices are not allowed during lectures (laptop, mobile,
tablet, etc)
Be respectful to each other
Linear Equations
Which of these are linear A linear equation in the n variables (1 equation, 𝑛 unknowns):
equations?
2𝑥 − 𝑦 = 3
𝑎1 𝒙𝟏 + 𝑎2 𝒙𝟐 + ⋯ + 𝑎𝑛 𝒙𝒏 = 𝒃 𝑎1 , 𝑎2 , … , 𝑎𝑛 not all 0
𝑥=4
ln 5𝑥 − 3𝑦 = 1
ln 5𝑥 − 3𝑦 = 1 𝑎1 , 𝑎2 , … , 𝑎𝑛 are coefficients
𝑥1 + 3𝑥2 − 35𝑥3 = 5 𝑥1 , 𝑥2 , … , 𝑥𝑛 are variables or unknowns
cos 3𝑥 − 2𝑦 = 0 𝒃 is termed a constant
5Τ𝑦 + 2𝑧
when 𝒃 = 0, it is called a homogenous linear equation
2 2
𝑥 + 𝑦 = 16
A set of values 𝑥1 = 𝑘1 , 𝑥2 = 𝑘2 , … , 𝑥𝑛 = 𝑘𝑛 are a solution for the
𝑥 + 3𝑦 − 9𝑧 = 5
linear equation if these satisfy 𝑎1 𝒌𝟏 + 𝑎2 𝒌𝟐 + ⋯ + 𝑎𝑛 𝒌𝒏 = 𝒃
2𝑥 + 𝑧 = 8
the solution is often expressed in a vector notation: 𝒌𝟏 , 𝒌𝟐 , … , 𝒌𝒏
2𝑥 + 𝑧 = 8
𝑥1 𝑥2 − 𝑥2 + 7𝑥3 = 5
Systems of Linear equations
A general form of a system of Examples
linear equations
2 equations 2 unknowns
𝑎11 𝒙𝟏 + 𝑎12 𝒙𝟐 + ⋯ + 𝑎1𝑛 𝒙𝒏 = 𝒃𝟏 2𝑥1 − 𝑥2 = 5
𝑥1 + 2𝑥2 = 3
𝑎21 𝒙𝟏 + 𝑎22 𝒙𝟐 + ⋯ + 𝑎2𝑛 𝒙𝒏 = 𝒃𝟐
⋮ ⋮ ⋮ ⋮ 3 equations 3 unknowns
𝑎𝑚1 𝒙𝟏 + 𝑎𝑚2 𝒙𝟐 + ⋯ + 𝑎𝑚𝑛 𝒙𝒏 = 𝒃𝒎 2𝑥 − 𝑦 + 3𝑧 = 5
𝑥 + 3𝑦 − 2𝑧 = 9
3𝑥 + 2𝑦 + 𝑧 = 4
𝑚 denotes the number of equations
𝑛 denotes the number of unknowns 2 equations 3 unknowns
𝑎1 𝑥 + 𝑏1 𝑦 = 𝑐1
𝑎1 𝑥 + 𝑏1 𝑦 = 𝑐1
Example of “no solutions”
2𝑥 + 3𝑦 = 7
4𝑥 + 6𝑦 = 5
Example of “infinitely many solutions” Example of “exactly one solution”
2𝑥 + 3𝑦 = 7 𝑥 + 2𝑦 = 4
4𝑥 + 6𝑦 = 14 2𝑥 − 𝑦 = 3
Three-dimensional linear systems (𝑛 = 3)
𝑎1 𝑥 + 𝑏1 𝑦 + 𝑐1 𝑧 = 𝑑1
𝑎2 𝑥 + 𝑏2 𝑦 + 𝑐2 𝑧 = 𝑑2
𝑎3 𝑥 + 𝑏3 𝑦 + 𝑐3 𝑧 = 𝑑3
Example of “no solutions”
𝑥+ 𝑦− 𝑧=6
2𝑥 + 𝑦 + 3𝑧 = 1
2𝑥 + 2𝑦 − 2𝑧 = 3
Example of “infinitely many solutions” Example of “exactly one solution”
𝑥+ 𝑦− 𝑧=4 𝑥+ 𝑦− 𝑧=4 𝑥+𝑦− 𝑧 =6
2𝑥 + 𝑦 − 2𝑧 = 1 2𝑥 + 𝑦 − 2𝑧 = 1 2𝑥 − 𝑦 + 3𝑧 = 1
3𝑥 + 2𝑦 − 3𝑧 = 5 2𝑥 + 2𝑦 − 2𝑧 = 8 3𝑥 + 2𝑦 − 𝑧 = 14
Augmented matrices
For convenience, linear systems are abbreviated in the form of augmented matrices
𝑎11 𝒙𝟏 + 𝑎12 𝒙𝟐 + 𝑎13 𝒙𝟑 + ⋯ + 𝑎1𝑛 𝒙𝒏 = 𝒃𝟏 𝑎11 𝑎12 𝑎13 … 𝑎1𝑛 𝒃𝟏
𝑎11 𝒙𝟏 + 𝑎12 𝒙𝟐 + 𝑎13 𝒙𝟑 + ⋯ + 𝑎1𝑛 𝒙𝒏 = 𝒃𝟐 𝑎11 𝑎12 𝑎13 … 𝑎1𝑛 𝒃𝟐
𝑎11 𝒙𝟏 + 𝑎12 𝒙𝟐 + 𝑎13 𝒙𝟑 + ⋯ + 𝑎1𝑛 𝒙𝒏 = 𝒃𝟑 𝑎11 𝑎12 𝑎13 … 𝑎1𝑛 𝒃𝟑
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋱ ⋮ ⋮
𝑎𝑚1 𝒙𝟏 + 𝑎𝑚2 𝒙𝟐 + 𝑎𝑚3 𝒙𝟑 + ⋯ + 𝑎𝑚𝑛 𝒙𝒏 = 𝒃𝒎 𝑎11 𝑎12 𝑎13 … 𝑎1𝑛 𝒃𝒎
Examples
𝒙𝟏 + 𝒙𝟐 − 𝒙𝟑 = 6 1 1 −1 6 Each row of an augmented matrix
2𝒙𝟏 − 𝒙𝟐 + 3𝒙𝟑 = 1 2 −1 3 1 represents constants from one
3𝒙𝟏 + 2𝒙𝟐 − 𝒙𝟑 = 14 3 2 −1 14 equation
𝒙𝟏 =3 1 0 0 3 Each column of an augmented
𝒙𝟐 =2 0 1 0 2 matrix represents all coefficients for
𝒙𝟑 = −1 0 0 1 −1 a single variable
Elementary row operations
a. b.
c. d.
Gauss-Jordan elimination
Linear system: 1 1 −1 6 1 1 −1 6 1 0 −1 4
𝒙𝟏 + 𝒙𝟐 − 𝒙𝟑 = 6 2 −1 3 1 0 −1 0 −2 0 −1 0 −2
2𝒙𝟏 − 𝒙𝟐 + 3𝒙𝟑 = 1 3 2 −1 14 0 0 −1 1 𝑅1 + 𝑅2 0 0 −1 1
3𝒙𝟏 + 𝟐𝒙𝟐 − 𝒙𝟑 = 14 𝑅2 + (2)𝑅3
𝑅2 + (−2)𝑅1 𝑅1 + (−1)𝑅3
Solution: 1 1 −1 6 1 1 −1 6 1 0 0 3
𝒙𝟏 = 3 0 −3 5 −11 0 −1 2 −4 0 −1 0 −2
𝒙𝟐 = 2 3 2 −1 14 0 0 −1 1 0 0 −1 1
𝒙𝟑 = −1 (−1)𝑅2
𝑅3 + (−3)𝑅1 𝑅3 + (−3)𝑅2
(−1)𝑅3
1 1 −1 6 1 1 −1 6 1 0 0 3
0 −3 5 −11 0 −1 2 −4 0 1 0 2
0 −1 2 −4 𝑅3 ֞ 𝑅2 0 −3 5 −11 0 0 1 −1
Gauss-Jordan elimination
Find solutions for these linear systems using Gaussian elimination (back substitution)
and Gauss-Jordan elimination