Ch2 SL1 Linear system
Ch2 SL1 Linear system
Engineering
Chapter one
Solutions to Linear System
Solution of Linear System by Elimination
• Eliminate the chosen variable from the remaining equations with respect to the
pivotal equation.
8𝑥 + 3𝑦 − 5𝑧 = 3
10𝑥 + 7𝑦 + 2𝑧 = 4 .
6𝑥 + 4𝑦 + 7𝑧 = 8
a. Solve the above system to find the currents in this circuit using
Gaussian elimination with partial pivoting.
z= 0.8902
y= -2.1829
x= 1.7500
Pivot --- the element which Do yourself
is highest in magnitude
8𝑥 + 3𝑦 − 5𝑧 = 3
c. MATLAB
10𝑥 + 7𝑦 + 2𝑧 = 4
>> A=[8 3 -5; 10 7 2; 6 4 7];
6𝑥 + 4𝑦 + 7𝑧 = 8
>> b=[3; 4; 8];
>> Solution = A\b
Ax=b
Solution = 1.7500, -2.1829, 0.8902
𝑥 = 𝐴−1 𝑏
Sample MCQ
1. To solve the system of linear equation which method we use?
a) Gaussian elimination
b) Iterative method
c) Both
d) None
2. The process which eliminates an unknown from succeeding equations using
elementary operations is known as
a) Gaussian Elimination
b) Gauss Jacobi Method
c) Gauss-Seidal Iterative Method
d) None
3. One such system is the upper triangular form which method is then used to
solve the system?
a) Substitution
b) Back-substation
c) Both
d) None
4. The equation with numerical coefficient, highest in magnitude, of that variable
in the system is called
a) Main equation
b) Pivotal equation
c) Iterative equation
d) None
Exercise
1. a. 5𝑥 − 4𝑦 + 3𝑧 = 21, 2𝑥 + 3𝑦 + 2𝑧 = 20, 8𝑥 + 2𝑦 + 𝑧 = 13.
c. 2𝑥 + 𝑦 − 3𝑧 = 17, 5𝑥 − 2𝑦 + 3𝑧 = 6, 𝑥 − 8𝑦 + 𝑧 = 11.
e. 5𝑥 + 2𝑦 + 𝑧 = 7, 2𝑥 − 4𝑦 + 3𝑧 = 6, 3𝑥 + 5𝑦 + 7𝑧 = 6