Lecture 3
Lecture 3
Ajay Kumar
[email protected]
a1 x1 + a2 x2 + · · · + an xn = b,
• One solution:
• Infinite solutions:
Question
How to solve a linear system in n-variables?
• Write system of linear equation (1) in matrix form Ax = b,where
a11 a12 . . . a1n x1 b1
a21 a22 . . . a2n x2 b2
A= .. .. .. , x = .. and b = .. .
..
. . . . . .
am1 am2 . . . amn xn bn
a1 X + b1 Y = c1 (2)
a2 X + b2 Y = c2 (3)
a1 X + b1 Y = c1 (4)
a1 b2 − a2 b1 a1 c2 − a2 c1
0X + Y= (5)
a1 a1
The augmented matrix associated to original system is
" #
a1 b1 : c1
a2 b2 : c2
Note that we can obtain the second matrix from the first matrix if we
multiply the first row of first matrix by a2 /a1 and subtract from 2nd row.
Elementary Row Operations
Example
" # " #
1 3 5 R2 →R2 −2R1 1 3 5
−−−−−−−→
2 −3 6 0 −9 −4
Reduced Row Echelon Form
0 1 2 1 2 1 1 2 1
R1 ↔R2 R3 →R3 −2R1 R3 →− 13 R3
1 2 1 −−− −→ 0 1 2 −− −−− −−→ 0 1 2 −−−−−−→
2 1 2 2 1 2 0 −3 0
1 2 1 1 2 1 1
1 2 1
R3 →R3 −R2 R3 →− 2 R3
0 1 2 −− −−− −→ 0 1 2 −−− −−− → 0 1 2(REF)
0 1 0 0 0 −2 0 0 1
R2 → R2 − 2R3
R1 → R1 − R3 1 2 0
R1 →R1 −2R2
1 0 0
−−−−−−−−−−−→ 0 1 0 −−−−−−−→ 0 1 0
0 0 1 0 0 1
Row Equivalent Matrices
Definition
Matrices A and B are said to be row equivalent if either can be
obtained from the other by a sequence of elementary row operations.
Theorem
If the augmented matrices of two system of linear equations are row
equivalent, then both system have the same set of solution.
Theorem
Any matrix is row equivalent to row echelon form matrix.
Gauss Elimination
3 4 3 5 : 11
1 1 1 1 : 5
augmented matrix is 0 1 0 2 : −4 .
0 0 0 0 : 0
Now, 1st and 2nd columns are pivotal columns. So x1 and x2 are
leading variables, and x3 , x4 are free variable. Now we assign x3 = s
and x4 = t, where s, t ∈ R. Now we get system of equations is
x1 + x2 + x3 + x4 = 5
0x1 + x2 + 0x3 + 2x4 = −4
0x1 + 0x2 + 0x3 + 0x4 = 0
After substituting the values of x3 and x4 in 2nd equation, we get
x2 + 0s + 2t = −4 =⇒ x2 = −4 − 2t.
Now substitute the value of x2 , x3 and x4 in first equation, we get
x1 − 4 − 2t + s + t = 5 =⇒ x1 = 9 − s + t. Thus, we get
{(9 − s + t, −4 − 2t, s, t) : s, t ∈ R}.