Professional Documents
Culture Documents
CCE-311 Mid Question Solution
CCE-311 Mid Question Solution
0.14x1-0.1x2-0.2x3=7.85
0.10x1+7x2-0.3x3=-19.3
0.30x1-0.2x2+10x3=71.4
Soln: Let us write these equations in the form AX=B
. 14 −.1 −.2 𝑥1 7.85
[ .1 𝑥
7 −.3] [ 2 ] = [−19.3]
. 3 −.2 10 𝑥3 71.4
. 14 −.1 −.2
D=|A|=| . 1 7 −.3|=10.3246
. 3 −.2 10
7.85 −.1 −.2
Dx1=|−19.3 7 −.3|=631.059
71.4 −.2 10
. 14 7.85 −.2
Dx2=| . 1 −19.3 −.3|=-35.1637
.3 71.4 10
. 14 −.1 7.85
𝐷𝑥3 = | . 1 7 −19.3|=54.0826
. 3 −.2 71.4
X1= Dx1/D=631.059/10.3246≈22.135
X2= Dx2/D=-35.1637/10.3246≈-3.405
X3= 𝐷𝑥3 /D=54.0826/10.3246≈5.238
2. Use the Gauss-Elimination technique to resolve the following system.
3x1-0.1x2-0.2x3=7.85
0.10x1+7x2-0.3x3=-19.3
x1-0.2x2+10x3=71.4
Soln:
Write the augmented matrix for the system:
[ 3 -0.1 -0.2 | 7.85 ]
[ 0.1 7 -0.3 | -19.3 ]
[ 1 -0.2 10 | 71.4 ]
Perform row operations to eliminate the coefficients below the leading diagonal element
in the first column:
Multiply the first row by 1/3 to make the leading coefficient 1:
[ 1 -0.033333 -0.066667 | 2.6167 ]
[ 0.1 7 -0.3 | -19.3 ]
[ 1 -0.2 10 | 71.4 ]
Subtract 0.1 times the first row from the second row to make the second element in the
first column 0:
[ 1 -0.033333 -0.066667 | 2.6167 ]
[ 0 7.003333 -0.293333 | -21.583 ]
[ 1 -0.2 10 | 71.4 ]
Subtract the first row from the third row to make the third element in the first column 0:
[ 1 -0.033333 -0.066667 | 2.6167 ]
[ 0 7.003333 -0.293333 | -21.583 ]
[ 0 -0.166667 10.066667 | 68.783 ]
Now, normalize the second row by dividing it by 7.003333 (the leading coefficient in the
second row):
[ 1 -0.033333 -0.066667 | 2.6167 ]
[ 0 1 -0.041879 | -3.0811 ]
[ 0 -0.166667 10.066667 | 68.783 ]
Add 0.166667 times the second row to the third row to make the third element in the
second column 0:
[ 1 -0.033333 -0.066667 | 2.6167 ]
[ 0 1 -0.041879 | -3.0811 ]
[ 0 0 10.267144 | 69.9422 ]
Normalize the third row by dividing it by 10.267144 (the leading coefficient in the third
row):
[ 1 -0.033333 -0.066667 | 2.6167 ]
[ 0 1 -0.041879 | -3.0811 ]
[ 0 0 1 | 6.8077 ]