Question: ( 2 5 % ) Systems or Linear Equalions. Consider the following system of linear equations: - x 2 + 4 x 3 + 2

(25%) Systems or Linear Equalions.
Consider the following system of linear equations:
-x2+4x3+2x4=30
18x1+4x2-6x3-2x4+2x5=-68
-3x1+9x2+6x3-3x4+21x5=-117
10x2-2x3+5x4+2x5=23
-x1+3x2-6x4+2x5=-23
Problem 1.1.(4.5%) Express the given system of linear equations as an augmented matrix AM=(Alb) in MATLAB, where A is the coefficient matrix and b is the vector of constants. Then, perform partial pivoting in the augmented matrix AM using basic matrix operations (i.e., by deleting and adding rows to the augmented matrix as needed). Show each step of the partial pivoting process.
Problem 1.2.(10%) Use MATLAB and the result of problem 1.1 to solve the system of linear equations, considering the Gauss-Seidel method. Assume the initial solution as x1=10,x2=-5,x3=-5,x4=-8, and x5=20. Perform iterations until the absolute approximate percentage error is below 2% for all the unknowns of the system of linear equations.
Problem 1.3.(4%) Provide a plot that overlays the numerical values of all the unknowns of the system of linear equations versus the iterations conducted in the Gauss-Seidel method (each unknown must be shown as a colored line). Include axes labels, axes grid lines, and a legend that shows the unknowns and their respective colored lines.
Problem 1.4.(4%) Provide a plot that overlays the absolute approximate percentage errors of all the unknowns of the system of linear equations versus the iterations conducted in the Gauss-Seidel method (each absolute approximate percentage error must be shown as a colored line). Include axes labels, axes grid lines, and a legend that shows the absolute approximate percentage errors and their respective colored lines.
Problem 1.5.(2.5%) Determine the absolute true percentage errors of the estimates obtained in problem 1.2 by first solving the system of linear equations using an analytical method (e.g., Gauss elimination, Cramer's rule, or inverse of the coefficient matrix). You are allowed to use MATLAB's built-in functions to solve the system of linear equations with an analytical method.
( 2 5 % ) Systems or Linear Equalions. Consider

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!