Consider the following matrix equation.
( "\\begin{matrix}\n 2 & -1 & 0 \\\\\n 1 & 2 & -1 \\\\\n 0& 1&3\n\\end{matrix}" ) ( "\\begin{matrix}\n x1 \\\\\n x2 \\\\\nx3\n\\end{matrix}" ) = ( "\\begin{matrix}\n 2 \\\\\n 1 \\\\\n3\n\\end{matrix}" )
Solve the equation by using Thomas algorithm.
Solution. From the first equation of the system
Divide through by 2 get
We write the system of equations as
From the second equation of the system
Replacing x_1 -0.5*x_2=1 get
"1 +2.5x_2-x_3=1 \\to 2.5x_2-x_3=0"
Divide through by 2.5 get
We write the system of equations as
From the third equation of the system
Replacing "x_2-\\frac{2}{5}x_3=0" get
Divide through by "\\frac {17}{5}" get
We write the system of equations as
Let us find the roots of the equations of the system
"x_3= \\frac{15}{17}"
"x_2=0+\\frac{2}{5}x_3 = \\frac{2}{5}\\times \\frac{15}{17}= \\frac{6}{17}"
"x_1 = \\frac{1}{2}x_2+1=\\frac{1}{2} \\times \\frac{6}{17} +1=\\frac{3}{17} + 1 = \\frac{20}{17}"
Answer. "x_1 = \\frac{20}{17}"; "x_2= \\frac{6}{17}"; "x_3= \\frac{15}{17}".
Comments
Leave a comment