Answer on Question #59826 – Math – Linear Algebra
Question
(Q3) Use Gaussian reduction to solve the following system of equations and verify your results by using Mat Lab
X + Y + Z = 1 X + 2 Y + 3 Z = 2 2 X + Y + 4 Z = 5 \begin{array}{l}
X + Y + Z = 1 \\
X + 2Y + 3Z = 2 \\
2X + Y + 4Z = 5 \\
\end{array} X + Y + Z = 1 X + 2 Y + 3 Z = 2 2 X + Y + 4 Z = 5 Solution
\left[ \begin{array}{cccc}
x & +y & +z & = 1 \\
x & +2y & +3z & = 2 \\
2x & +y & +4z & = 5
\end{array} \right]
\begin{array}{cccc}
R_2 \to R_2 - R_1 & x & +y & +z = 1 \\
y & +2z & = 1 \\
2x & +y & +4z & = 5
\end{array}
\right]
\begin{array}{c}
R_3 \to R_3 - 2R_1 \\
R_3 \to R_3 + R_2 \\
R_3 \to R_3 / 4
\end{array} [ x + y + z = 1 y + 2 z = 1 − y + 2 z = 3 ] x + y + z = 1 y + 2 z = 1 x + 4 z = 4 \left[ \begin{array}{cccc}
x & +y & +z & = 1 \\
y & +2z & = 1 \\
-y & +2z & = 3
\end{array} \right]
\begin{array}{cccc}
x & +y & +z & = 1 \\
y & +2z & = 1 \\
x & +4z & = 4
\end{array} ⎣ ⎡ x y − y + y + 2 z + 2 z + z = 1 = 3 = 1 ⎦ ⎤ x y x + y + 2 z + 4 z + z = 1 = 4 = 1 [ x + y + z = 1 y + 2 z = 1 z = 1 ] R 2 → R 2 − 2 R 3 R 2 → R 2 − 2 R 3 \left[ \begin{array}{cccc}
x & +y & +z & = 1 \\
y & +2z & = 1 \\
z & = 1
\end{array} \right]
\begin{array}{c}
R_2 \to R_2 - 2R_3 \\
R_2 \to R_2 - 2R_3
\end{array} ⎣ ⎡ x y z + y + 2 z = 1 + z = 1 = 1 ⎦ ⎤ R 2 → R 2 − 2 R 3 R 2 → R 2 − 2 R 3 [ x + y + z = 1 y = − 1 z = 1 ] R 1 → R 1 − R 2 x + z = 2 y = − 1 z = 1 R 1 → R 1 − R 2 x = 1 y = − 1 z = 1 \left[ \begin{array}{cccccc}
x & +y & +z & = & 1 \\
y & & & = & -1 \\
z & & & = & 1
\end{array} \right]
\begin{array}{cccc}
R_1 \to R_1 - R_2 & x & +z & = & 2 \\
y & & & = & -1 \\
z & = & 1
\end{array}
\begin{array}{cccc}
R_1 \to R_1 - R_2 & x & & = & 1 \\
y & & = & -1 \\
z & = & 1
\end{array} ⎣ ⎡ x y z + y + z = = = 1 − 1 1 ⎦ ⎤ R 1 → R 1 − R 2 y z x = + z 1 = = 2 − 1 R 1 → R 1 − R 2 y z x = = 1 = − 1 1
where R 1 , R 2 , R 3 R_1, R_2, R_3 R 1 , R 2 , R 3 are row 1, row 2, row 3 respectively, R 2 → R 2 − R 1 R_2 \to R_2 - R_1 R 2 → R 2 − R 1 means that the first row is subtracted from the second row and the result is placed in the second row.
Verify the result using Mat Lab:
Answer: ( X , Y , Z ) = ( 1 , − 1 , 1 ) (X, Y, Z) = (1, -1, 1) ( X , Y , Z ) = ( 1 , − 1 , 1 ) .
www.AssignmentExpert.com