Linear Systems Direct Methods II Problem Sheet Solutions
Linear Systems Direct Methods II Problem Sheet Solutions
Solution to Problem 1
a We start with the augmented matrix
1 −5
1 7
10 0 20 6 .
5 0 −1 4
10
We perform R2 − 1
R1 → R2 and R3 − 51 R1 → R3 to obtain
1 −5
1 7
0 50 10 −64 .
0 25 −6 −31
25
We perform R3 − R
50 2
→ R3 to obtain
1 −5
1 7
0 50 10 −64 .
0 0 −26 97
1 −5
1 7
10 0 20 6 .
5 0 −1 4
Since max{|1|, |10|, |5|} = 10, we perform R1 ↔ R2 to obtain
10 0 20 6
1 −5 1 7 .
5 0 −1 4
1 5
We perform R2 − R
10 1
→ R2 and R3 − 10 R1 → R3 to obtain
10 0 20 6
0 −5 −1 6.4 .
0 0 −11 1
Page 1 of 9
Since max{| − 5|, |0|} = 5, we do not interchange rows. We perform
0
R3 − −5 R2 → R3 to obtain
10 0 20 6
0 −5 −1 6.4 .
0 0 −11 1
1 −5
1 7
10 0 20 6 .
5 0 −1 4
0 −1 4
5
10 0 20 6
1 −5 1 7
10
and note that now s1 = 5, s2 = 20 and s3 = 5. We perform R2 − 5
R1 →
R2 and R3 − 15 R1 → R3 to obtain
0 −1
5 4
0 0 22 −2 .
0 −5 1.2 6.2
n o
|0| |−5| |−5|
Since max 20
, 5 = 5
, we perform R2 ↔ R3 to obtain
0 −1
5 4
0 −5 1.2 6.2
0 0 22 −2
0
and note that now s2 = 5 and s3 = 20. We perform R3 − R
−5 2
→ R3 to
obtain
0 −1
5 4
0 −5 1.2 6.2 .
0 0 22 −2
1 −5
1 7
10 0 20 6 .
5 0 −1 4
Page 2 of 9
Since max{|1|, | − 5|, |1|, |10|, |0|, |20|, |5|, |0|, | − 1|} = 20, we perform
R1 ↔ R2 to obtain
10 0 20 6
1 −5 1 7
5 0 −1 4
and then perform C1 ↔ C3 to obtain
20 0 10 6
1 −5 1 7
−1 0 5 4
and note that the solution to the linear system corresponding to this aug-
mented matrix is
x3
x2 .
x1
1 −1
We perform R2 − R
20 1
→ R2 and R3 − R
20 1
→ R3 to obtain
20 0 10 6
0 −5 0.5 6.7 .
0 0 5.5 4.3
and note that the solution to the linear system corresponding to this aug-
mented matrix is
x3
x1 .
x2
0.5
We perform R3 − R
5.5 2
→ R3 to obtain
20 10 0 6
0 5.5 0 4.3 .
0 0 −5 6.30909 . . .
Page 3 of 9
Solution to Problem 2
a We start with the augmented matrix
1 −1 1
1
1 1 4 2 .
2 −1 2 3
1 −1 1
1
0 0 5 1 .
0 −3 4 1
We perform R2 ↔ R3 to obtain
1 −1 1
1
0 −3 4 1 .
0 0 5 1
0
We perform R3 − R
−3 2
→ R3 to obtain
1 −1 1
1
0 −3 4 1 .
0 0 5 1
1 −1 1
1
1 1 4 2 .
2 −1 2 3
2 −1
2 3
1 1 4 2 .
1 1 −1 1
2 −1
2 3
0 1.5 3 0.5 .
0 1.5 −2 −0.5
2 −1
2 3
0 1.5 5 3.5 .
0 0 −5 −1
Page 4 of 9
c We start with the augmented matrix
1 −1 1
1
1 1 4 2 .
2 −1 2 3
1 −1 1
1
0 0 5 1 .
0 −3 4 1
n o
|0| |−3| |−3|
Since max 4
, 2 = 2
, we perform R2 ↔ R3 to obtain
1 −1 1
1
0 −3 4 1
0 0 5 1
0
and note that now s2 = 2 and s3 = 4. We perform R3 − R
−3 2
→ R3 to
obtain
1 −1 1
1
0 −3 4 1 .
0 0 5 1
1 −1 1
1
1 1 4 2 .
2 −1 2 3
Since max{|1|, |1|, | − 1|, |1|, |1|, |4|, |2|, | − 1|, |2|} = 4, we perform R1 ↔
R2 to obtain
1 1 4 2
1 1 −1 1
2 −1 2 3
and then perform C1 ↔ C3 to obtain
4 1 1 2
−1 1 1 1
2 −1 2 3
Page 5 of 9
and note that the solution to the linear system corresponding to this aug-
mented matrix is
x3
x2 .
x1
−1
We perform R2 − 4
R1 → R2 and R3 − 24 R1 → R3 to obtain
4 1 1 2
0 1.25 1.25 1.5 .
0 −1.5 1.5 2
Solution to Problem 3
a We start with the augmented matrix
0.03 58.9 59.2
.
5.31 −6.10 47.0
Page 6 of 9
and
Page 7 of 9
−6.10 177⊗58.9 = −6.10 f l(10425.3) = −6.10 10400 = f l(−10406.1) = −10400
and
Page 8 of 9
Performing backward substitution using 3-digit arithmetic with chopping
yields
x2 = 58.9 58.9 = 1.00
and
References
– Section 6.2
Page 9 of 9