Numerical Analysis Assignment 3 — Systems of Equations
 Question #1
Consider the following system of equations: $$-3 x_1 + 2 x_2 + 4 x_3 + 5 x_4 = 1 \\ - x_1 + 3 x_2 - x_3 + 5 x_4 = 2 \\ -4 x_1 + 4 x_3 + 2 x_4 = 3 \\ 6 x_2 + 4 x_3 - 5 x_4 = 4$$ Find $x_1$, $x_2$, $x_3$, $x_4$ using Gaussian elimination in two different ways:
 (a) By hand. (b) By writing a C program that starts as follows: #include #include #include /* set number of rows to a constant */#define N 4int main(void){  double A[N][N], B[N], X[N], Aorig[N][N], Borig[N];  long row,row2,col;  double fact,sum;
 09.02.16
 Question #2
Consider a system of equations expressed as: $$A X = B$$ with $$A=\left[\begin{array}{cccc} -2 & 0 & 0 & 0 \\ 0 & 3 & -1 & 5 \\ -4 & 0 & 4 & 2 \\ 0 & 6 & -2 & -5 \end{array} \right]$$ Find the matrices $L$ and $U$ by hand such that $A=LU$ and $L$ is a lower-triangular matrix and $U$ is a upper-triangular matrix.
 Question #3
Consider the system of equations $$AX=B$$ with $$B=\left[ \begin{array}{c} 1 \\ 2 \\ 3 \\ 4 \end{array} \right]$$ and with $A$ as outlined in Question #2. Using the $L$ and $U$ matrices found by hand in Question #2 solve for $X$ using lower-upper decomposition in two ways:
 (a) By hand (b) Using a C program that starts as follows: #include #include #include /* set number of rows to 4 */#define N 4int main(void){  double RHS, L[N][N], U[N][N], B[N], Xprime[N], X[N];  long row,col;
 1
 08.29.17
 Due on October 30th at 16:30. Do all questions.
 10.24.17
 $\pi$