L01_Slides_LinearSystemsAndMatrices
L01_Slides_LinearSystemsAndMatrices
MTH0001 Algebra 2
Linear Equation ()معادلة خطية 𝒚
• 2 unknowns ()مجهولين:
• For example, 𝑥 + 𝑦 = 1
• The equation represents a line in the 𝒙
plane ()المستوى.
𝒛
𝒙+ 𝒚 =𝟑
• Ex. 1: equations, unknowns:
𝒙 + 𝟐𝒚 = 𝟓
𝒙 + 𝟐𝒚 + 𝟑𝒛 = 𝟏𝟓
• Ex. 2: equations, unknowns: 𝟑𝒙 + 𝒚 − 𝒛 = −𝟓
𝟐𝒙 − 𝟑𝒚 + 𝟐𝒛 = 𝟎
MTH0001 Algebra 5
Linear Systems
• In general, we have 𝒎 equations and 𝒏 unknowns:
𝒂𝟏𝟏 𝒙𝟏 + 𝒂𝟏𝟐 𝒙𝟐 + ⋯ + 𝒂𝟏𝒏 𝒙𝒏 = 𝒃𝟏
𝒂𝟐𝟏 𝒙𝟏 + 𝒂𝟐𝟐 𝒙𝟐 + ⋯ + 𝒂𝟐𝒏 𝒙𝒏 = 𝒃𝟐
⋮
𝒂𝒎𝟏 𝒙𝟏 + 𝒂𝒎𝟐 𝒙𝟐 + ⋯ + 𝒂𝒎𝒏 𝒙𝒏 = 𝒃𝒎
• Each coefficient 𝒂𝒊𝒋 has two indexes. Each constant 𝒃𝒊 has one index.
MTH0001 Algebra 6
Solving Linear Systems
• A solution is a sequence of values for the unknowns 𝑥1 , 𝑥2 , … , and 𝑥𝑛
which satisfies all 𝒎 equations.
𝒙 + 𝒚 = 𝟑 → (𝟏)
Ex: Verify that 𝒙 = 𝟏 and 𝒚 = 𝟐 is the solution of
𝒙 + 𝟐𝒚 = 𝟓 → (𝟐)
MTH0001 Algebra 8
𝒙 + 𝒚 = 𝟐 → (𝟏)
Ex. 2: Solve 𝟐𝒙 + 𝟐𝒚 = 𝟒 → (𝟐)
𝒚
MTH0001 Algebra 9
𝒙 + 𝒚 = 𝟐 → (𝟏)
Ex. 3: Solve 𝒙 + 𝒚 = 𝟒 → (𝟐)
𝒚
MTH0001 Algebra 10
2×2 System: 3 Types of Solutions
𝒚 𝒚 𝒚
𝒙 𝒙 𝒙
MTH0001 Algebra 12
3×3 System: 3 Types of Solutions
MTH0001 Algebra 14
Homogeneous Systems
• A homogeneous system: a linear system (𝒎 equations in 𝒏
unknowns), where all constants are zeros:
MTH0001 Algebra 15
Example 1
𝒚
𝒙 + 𝒚 = 𝟎 → (𝟏)
Solve the linear system:
𝒙 + 𝟐𝒚 = 𝟎 → (𝟐)
MTH0001 Algebra 16
Example 2
𝒚
𝒙 + 𝒚 = 𝟎 → (𝟏)
Solve the linear system:
𝟐𝒙 + 𝟐𝒚 = 𝟎 → (𝟐)
MTH0001 Algebra 17
Homogeneous System: 2 Types of Solutions
𝒚 𝒚
𝒙 𝒙
𝒙 + 𝟐𝒚 + 𝟑𝒛 = 𝟏𝟓
𝟑𝒙 + 𝒚 − 𝒛 = −𝟓
𝟐𝒙 − 𝟑𝒚 + 𝟐𝒛 = 𝟎
MTH0001 Algebra 21
Augmented Matrix (cont.)
• In general:
Linear system Augmented matrix
MTH0001 Algebra 22
Augmented Matrix (cont.)
Example: Find the linear system which corresponds to the augmented
𝟏 𝟏 𝟏 𝟐
matrix 𝟏 𝟐 𝟑 อ𝟓 ?
𝟐 𝟑 𝟒 𝟕
MTH0001 Algebra 23
Solving Linear Systems Using Elimination
We can perform 3 algebraic operations:
1. Multiply an equation by a constant:
𝟐𝒙 + 𝟒𝒚 = 𝟏𝟎 → (𝟏)
𝒙 + 𝒚 = 𝟑 → (𝟐)
2. Interchange two equations:
𝒙 + 𝟐𝒚 = 𝟓 → (𝟏)
𝒙 + 𝒚 = 𝟑 → (𝟐)
3. Add a multiple of one equation to another:
𝒙 + 𝒚 = 𝟑 → (𝟏)
𝒙 + 𝟐𝒚 = 𝟓 → (𝟐)
MTH0001 Algebra 24
Elimination Using the Augmented Matrix
• Each equation in the linear system corresponds to a row in the
augmented matrix.
MTH0001 Algebra 25
Elimination Using the Augmented Matrix
(cont.)
Algebraic operation Corresponding row Notation
operation
Multiply an equation by a Multiply a row by a
constant constant
Interchange two equations Interchange two rows
MTH0001 Algebra 26
Performing Row Operations
𝟐𝒙 + 𝟒𝒚 = 𝟏𝟎
Example:
𝒙+ 𝒚=𝟑
• The augmented matrix is:
1
• Multiply row 1 by :
2
MTH0001 Algebra 27
𝒙+ 𝒚=𝟒
Ex: Solve the linear System 𝒙 + 𝟐𝒚 = 𝟕
MTH0001 Algebra 28
𝒙 + 𝟐𝒚 + 𝟑𝒛 = 𝟏𝟓
Example: Solve 𝟑𝒙 + 𝒚 − 𝒛 = −𝟓
𝟐𝒙 − 𝟑𝒚 + 𝟐𝒛 = 𝟎
MTH0001 Algebra 29
𝒙 + 𝟐𝒚 + 𝟑𝒛 = 𝟏𝟓
Example: Solve 𝟑𝒙 + 𝒚 − 𝒛 = −𝟓 (cont.)
𝟐𝒙 − 𝟑𝒚 + 𝟐𝒛 = 𝟎
Alternatively, we can continue with elimination:
𝟏 𝟐 𝟑 𝟏𝟓
𝟎 𝟏 𝟐 อ 𝟏𝟎
𝟎 𝟎 𝟏 𝟒
MTH0001 Algebra 30
Summary
• A linear system consists of 𝒎 equations in 𝒏 unknowns.
• It can have: (1) a unique solution, (2) infinitely many solutions, or (3) no
solution.
MTH0001 Algebra 31
Summary
• A linear system can be solved using elimination.
• Elimination is carried out by performing elementary row operations
on the augmented matrix: (1) 𝒌𝒓𝒊 → 𝒓𝒊 (2) 𝒓𝒊 ↔ 𝒓𝒋 (3) 𝒌𝒓𝒋 + 𝒓𝒊 → 𝒓𝒊