Solutions of Linear Systems
Solutions of Linear Systems
For a m x n matrix,
• If m is less than n, then the maximum rank of the matrix is m.
• If m is greater than n, then the maximum rank of the matrix is n.
• The rank of matrix would be zero only if the matrix had no elements.
• If a matrix had even one element, its minimum rank would be one.
Rank of a Matrix
2 METHODS
By inspection
3 1 5
1.
6 2 10
2.
2 1 6
3 5 7
5 6 13
3. 0 5 3
1 2 1
2 3 4
Sample Problems:
Determine the rank of the following matrices by INSPECTION.
3 1 5
1. Rank 1
6 2 10
2.
2 1 6
3 5 7
5 6 13
3. 0 5 3
1 2 1
2 3 4
Sample Problems:
Determine the rank of the following matrices by INSPECTION.
3 1 5
1. Rank 1
6 2 10
2.
2 1 6 Rank 2
3 5 7
5 6 13
3. 0 5 3
1 2 1
2 3 4
Sample Problems:
Determine the rank of the following matrices by INSPECTION.
3 1 5
1. Rank 1
6 2 10
2.
2 1 6 Rank 2
3 5 7
5 6 13
3. 0 5 3
Rank 3
1 2 1
2 3 4
Determining the rank of a matrix using ROW ECHELON FORM
The maximum number of linearly independent rows in a matrix is equal to the
number of non-zero rows on its row echelon matrix.
𝑎 𝑏 𝑐 𝑎 𝑏 𝑐
𝐴= 0 𝑑 𝑒 or B = 0 𝑑 𝑒
0 0 𝑓 0 0 0
3. Adding a number times the element of the row elements of another row
𝑎11 − 𝑎21 𝑎12 − 𝑎22 𝑎13 − 𝑎23
𝐴= 𝑎21 𝑎22 𝑎23 R1’= R1 – R2 R3’= 2R3 – 4R2
2𝑎31 − 4𝑎21 2𝑎32 − 4𝑎21 2𝑎33 − 4𝑎21
Sample Problems:
Determine the rank of the following matrices by transforming into its
ROW ECHELON FORM.
3 1 5
1.
6 2 10
2.
2 1 6
3 5 7
5 6 13
3. 0 5 3
1 2 1
2 3 4
Sample Problems:
Determine the rank of the following matrices by transforming into its
ROW ECHELON FORM.
3 1 5 3 1 5 Rank 1
1.
6 2 10 0 0 0
2.
2 1 6
3 5 7
5 6 13
3. 0 5 3
1 2 1
2 3 4
Sample Problems:
Determine the rank of the following matrices by transforming into its
ROW ECHELON FORM.
3 1 5 3 1 5 Rank 1
1.
6 2 10 0 0 0
2.
2 1 6 2 1 6
3 5 7 0 7 −4 Rank 2
5 6 13 0 0 0
3. 0 5 3
1 2 1
2 3 4
Sample Problems:
Determine the rank of the following matrices by transforming into its
ROW ECHELON FORM.
3 1 5 3 1 5 Rank 1
1.
6 2 10 0 0 0
2.
2 1 6 2 1 6
3 5 7 0 7 −4 Rank 2
5 6 13 0 0 0
3. 0 5 3 1 2 1
1 2 1 0 5 3 Rank 3
2 3 4 0 0 13ൗ5
SOLUTIONS OF LINEAR SYSTEMS
A matrix can serve as a device for representing and solving a system of equations. Given a system of
linear equation:
𝑎11 𝑥1 + 𝑎12 𝑥2 + 𝑎13 𝑥3 = 𝑏1
𝑎21 𝑥1 + 𝑎22 𝑥2 + 𝑎23 𝑥3 = 𝑏2
…
𝑎𝑚1 𝑥1 + 𝑎𝑚2 𝑥2 + 𝑎𝑚3 𝑥3 = 𝑏𝑚
2. Coefficient Matrix- a matrix derived from a system of linear equation written in standard form which
does not include constant terms.
The system has an infinitely many solutions if the common rank of the
coefficient matrix and the augmented matrix is less than n.
The system has no solution if those two matrices have different rank.
Sample Problems:
Describe the solution set of the following linear system:
𝟑𝒙 + 𝟐𝒚 − 𝟒𝒛 = 𝟏
1. 𝒙 − 𝟑𝒚 + 𝟐𝒛 = 𝟑
𝟐𝒙 + 𝟒𝒚 + 𝟐𝒛 = 𝟑
𝟑𝒙 + 𝟐𝒚 − 𝟒𝒛 = 𝟏
2.
𝟔𝒙 + 𝟒𝒚 − 𝟖𝒛 = 𝟐
𝟗𝒙 + 𝟔𝒚 − 𝟏𝟐𝒛 = 𝟑
3. 𝟑𝒙 + 𝟐𝒚 − 𝟒𝒛 = 𝟏
𝟑𝒙 + 𝟐𝒚 − 𝟒𝒛 = 𝟑
𝟐𝒙 + 𝟒𝒚 + 𝟐𝒛 = 𝟑
Sample Problems:
Describe the solution set of the following linear system:
𝟑𝒙 + 𝟐𝒚 − 𝟒𝒛 = 𝟏
2.
𝟔𝒙 + 𝟒𝒚 − 𝟖𝒛 = 𝟐
𝟗𝒙 + 𝟔𝒚 − 𝟏𝟐𝒛 = 𝟑
3. 𝟑𝒙 + 𝟐𝒚 − 𝟒𝒛 = 𝟏
𝟑𝒙 + 𝟐𝒚 − 𝟒𝒛 = 𝟑
𝟐𝒙 + 𝟒𝒚 + 𝟐𝒛 = 𝟑
Sample Problems:
Describe the solution set of the following linear system:
3. 𝟑𝒙 + 𝟐𝒚 − 𝟒𝒛 = 𝟏
𝟑𝒙 + 𝟐𝒚 − 𝟒𝒛 = 𝟑
𝟐𝒙 + 𝟒𝒚 + 𝟐𝒛 = 𝟑
Sample Problems:
Describe the solution set of the following linear system:
Dx = determinants taken from D, replacing the coefficients of xi with the corresponding constant
i
terms
Sample Problems:
Solve for the unknown variables of the linear system using CRAMER’S RULE.
𝟒𝒙 − 𝟕𝒚 = 𝟔𝟐
1.
𝟑𝒙 + 𝟐𝒚 = 𝟑
𝟑𝒚 + 𝟒𝒛 = 𝟏𝟐
2.
𝒙 − 𝟐𝒛 = −𝟏𝟎
𝟒𝒙 + 𝟓𝒚 = −𝟏𝟐
3. 𝟕𝒘 − 𝟑𝒙 + 𝟒𝒚 = 𝟏
𝟖𝒙 − 𝟑𝒚 + 𝟒𝒛 = −𝟕
𝒘 − 𝟓𝒙 − 𝟏𝟎𝒚 + 𝒛 = 𝟒𝟏
𝟐𝒘 + 𝒙 + 𝟑𝒛 = 𝟎
Sample Problems:
Solve for the unknown variables of the linear system using CRAMER’S RULE.
1.
𝟒𝒙 − 𝟕𝒚 = 𝟔𝟐 x=5, y=-6
𝟑𝒙 + 𝟐𝒚 = 𝟑
𝟑𝒚 + 𝟒𝒛 = 𝟏𝟐
2.
𝒙 − 𝟐𝒛 = −𝟏𝟎
𝟒𝒙 + 𝟓𝒚 = −𝟏𝟐
3. 𝟕𝒘 − 𝟑𝒙 + 𝟒𝒚 = 𝟏
𝟖𝒙 − 𝟑𝒚 + 𝟒𝒛 = −𝟕
𝒘 − 𝟓𝒙 − 𝟏𝟎𝒚 + 𝒛 = 𝟒𝟏
𝟐𝒘 + 𝒙 + 𝟑𝒛 = 𝟎
Sample Problems:
Solve for the unknown variables of the linear system using CRAMER’S RULE.
1.
𝟒𝒙 − 𝟕𝒚 = 𝟔𝟐 x=5, y=-6
𝟑𝒙 + 𝟐𝒚 = 𝟑
𝟑𝒚 + 𝟒𝒛 = 𝟏𝟐
2. x=2, y=-4, z=6
𝒙 − 𝟐𝒛 = −𝟏𝟎
𝟒𝒙 + 𝟓𝒚 = −𝟏𝟐
3. 𝟕𝒘 − 𝟑𝒙 + 𝟒𝒚 = 𝟏
𝟖𝒙 − 𝟑𝒚 + 𝟒𝒛 = −𝟕
𝒘 − 𝟓𝒙 − 𝟏𝟎𝒚 + 𝒛 = 𝟒𝟏
𝟐𝒘 + 𝒙 + 𝟑𝒛 = 𝟎
Sample Problems:
Solve for the unknown variables of the linear system using CRAMER’S RULE.
1.
𝟒𝒙 − 𝟕𝒚 = 𝟔𝟐 x=5, y=-6
𝟑𝒙 + 𝟐𝒚 = 𝟑
𝟑𝒚 + 𝟒𝒛 = 𝟏𝟐
2. x=2, y=-4, z=6
𝒙 − 𝟐𝒛 = −𝟏𝟎
𝟒𝒙 + 𝟓𝒚 = −𝟏𝟐
2. Use row operations to transform the augmented matrix in reduced row echelon form as shown
below.
Reduced row echelon form has the following criteria:
1 0 … 0 : 𝑎
0 1 … 0 ∶ 𝑏 a. It is in row echelon form.
1.
𝟒𝒙 − 𝟕𝒚 = 𝟔𝟐 x=5, y=-6
𝟑𝒙 + 𝟐𝒚 = 𝟑
𝟑𝒚 + 𝟒𝒛 = 𝟏𝟐
2. x=2, y=-4, z=6
𝒙 − 𝟐𝒛 = −𝟏𝟎
𝟒𝒙 + 𝟓𝒚 = −𝟏𝟐
Steps:
1. Given n equation, determine if your system is strictly diagonally dominant. This means that for all rows, the absolute value of the
diagonal element in a row is strictly greater than or equal to the sum of absolute value of the rest of the elements in that row.
2. Isolate the variable of the diagonal element on the left side of the equation.
3. Assume that the solution of given equation is:
(0, 0, ..., 0)
4. We put the value of σ𝑛𝑖=2 𝑥𝑖 in the first equation and get the value of x1 and update the value of x1 as:
(x1, 0, …, 0)
5. Putting the updated value of x1 and assumed value of σ𝑛𝑖=3 𝑥𝑖 in equation 2 to get x2 and their updated solution as:
(x1, x2, …, 0)
6. Continue getting the value of the remaining variables using the updated preceding values until we get the value of xn and their updated
solution as:
(x1, x2, …, xn)
7. Repeat the same process from step 3 to get the approximate solution with minimum error. The minimum error can be computed as:
𝑒𝑟𝑟𝑜𝑟 = 𝑥𝑝𝑟𝑒𝑣𝑖𝑜𝑢𝑠 − 𝑥𝑢𝑝𝑑𝑎𝑡𝑒𝑑
Sample Problems:
Solve for the unknown variables of the linear system using GAUSS-SEIDEL METHOD.
The allowable error is 0.0001.
𝟒𝒙 − 𝟕𝒚 = 𝟔𝟐
1.
𝟑𝒙 + 𝟐𝒚 = 𝟑
Sample Problems:
Solve for the unknown variables of the linear system using GAUSS-SEIDEL METHOD.
The allowable error is 0.0001.
2. 𝟑𝒚 + 𝟒𝒛 = 𝟏𝟐
𝒙 − 𝟐𝒛 = −𝟏𝟎
𝟒𝒙 + 𝟓𝒚 = −𝟏𝟐
Rearranging rows does not make the system strictly diagonally dominant.