Question #82880

Solve the following equations using matrix algebra:

2x + y - z = 11

x - 2y + 2z = -2

3x - y + 3z = 5

Expert's answer

Answer on Question #82880 – Math – Linear Algebra

Question

Solve the following equations using matrix algebra:


2x+yz=11x2y+2z=23xy+3z=5\begin{array}{l} 2x + y - z = 11 \\ x - 2y + 2z = -2 \\ 3x - y + 3z = 5 \\ \end{array}

Solution

Method 1

Write the linear system in matrix form AX=BAX = B, where AA is coefficient matrix of the linear system:


[211122313][xyz]=[1125],A=[211122313],X=[xyz],B=[1125].\left[ \begin{array}{rrr} 2 & 1 & -1 \\ 1 & -2 & 2 \\ 3 & -1 & 3 \end{array} \right] \cdot \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{c} 11 \\ -2 \\ 5 \end{array} \right], \quad A = \left[ \begin{array}{rrr} 2 & 1 & -1 \\ 1 & -2 & 2 \\ 3 & -1 & 3 \end{array} \right], \quad X = \left[ \begin{array}{c} x \\ y \\ z \end{array} \right], \quad B = \left[ \begin{array}{c} 11 \\ -2 \\ 5 \end{array} \right].


Calculate the determinant of the coefficient matrix AA:


\det(A) = |A| = \left| \begin{array}{rrr} 2 & 1 & -1 \\ 1 & -2 & 2 \\ 3 & -1 & 3 \end{array} \right| = 2 \cdot (-2) \cdot 3 + 1 \cdot 3 \cdot 2 + 1 \cdot (-1) \cdot (-1) - (-1) \cdot (-2) \cdot 3 - 1. \right11322(1)=12+6+163+4=100.-1 \cdot 1 \cdot 3 - 2 \cdot 2 \cdot (-1) = -12 + 6 + 1 - 6 - 3 + 4 = -10 \neq 0.


So linear system AX=BAX = B has only one solution, because det(A)0\det(A) \neq 0, det(A)=D=10\det(A) = D = -10.

We can find the XX matrix by multiplying the inverse of the AA matrix by the BB matrix:


X=A1B.X = A^{-1} B.


First, we need to find the inverse of the AA matrix. The AA matrix is invertible because det(A)=100\det(A) = -10 \neq 0. Use the adjoint method to find A1A^{-1}. Calculate the cofactors of each element.


c11=(1)1+12213=6+2=4,c12=(1)1+21233=1(36)=3,c_{11} = (-1)^{1+1} \left| \begin{array}{cc} -2 & 2 \\ -1 & 3 \end{array} \right| = -6 + 2 = -4, \quad c_{12} = (-1)^{1+2} \left| \begin{array}{cc} 1 & 2 \\ 3 & 3 \end{array} \right| = -1(3 - 6) = 3,c13=(1)1+31231=1+6=5,c21=(1)2+11113=1(31)=2,c_{13} = (-1)^{1+3} \begin{vmatrix} 1 & -2 \\ 3 & -1 \end{vmatrix} = -1 + 6 = 5, \quad c_{21} = (-1)^{2+1} \begin{vmatrix} 1 & -1 \\ -1 & 3 \end{vmatrix} = -1(3 - 1) = -2,c22=(1)2+22133=6+3=9,c23=(1)2+32131=1(23)=5,c_{22} = (-1)^{2+2} \begin{vmatrix} 2 & -1 \\ 3 & 3 \end{vmatrix} = 6 + 3 = 9, \quad c_{23} = (-1)^{2+3} \begin{vmatrix} 2 & 1 \\ 3 & -1 \end{vmatrix} = -1(-2 - 3) = 5,c31=(1)3+11122=22=0,c32=(1)3+22112=1(4+1)=5,c_{31} = (-1)^{3+1} \begin{vmatrix} 1 & -1 \\ -2 & 2 \end{vmatrix} = 2 - 2 = 0, \quad c_{32} = (-1)^{3+2} \begin{vmatrix} 2 & -1 \\ 1 & 2 \end{vmatrix} = -1(4 + 1) = -5,c33=(1)3+32112=41=5.c_{33} = (-1)^{3+3} \begin{vmatrix} 2 & 1 \\ 1 & -2 \end{vmatrix} = -4 - 1 = -5.


Write cofactor matrix C:


C=[c11c12c13c21c2123c31c32c33],soC=[435295055]adjA=CT=[420395555],C = \begin{bmatrix} c_{11} & c_{12} & c_{13} \\ c_{21} & c_{21} & _{23} \\ c_{31} & c_{32} & c_{33} \end{bmatrix}, \quad \text{so} \quad C = \begin{bmatrix} -4 & 3 & 5 \\ -2 & 9 & 5 \\ 0 & -5 & -5 \end{bmatrix} \quad \text{adj} \quad A = C^T = \begin{bmatrix} -4 & -2 & 0 \\ 3 & 9 & -5 \\ 5 & 5 & -5 \end{bmatrix},A1=1det(B)adjA,A1=110[420395555]=[2515031091012121212].A^{-1} = \frac{1}{\det(B)} \quad \text{adj} \quad A, \quad A^{-1} = -\frac{1}{10} \begin{bmatrix} -4 & -2 & 0 \\ 3 & 9 & -5 \\ 5 & 5 & -5 \end{bmatrix} = \begin{bmatrix} \frac{2}{5} & \frac{1}{5} & 0 \\ -\frac{3}{10} & -\frac{9}{10} & \frac{1}{2} \\ -\frac{1}{2} & -\frac{1}{2} & \frac{1}{2} \end{bmatrix}.


Then find X=A1BX = A^{-1}B:


xyz=110[420395555][1125]=110[4112(2)+0531192555115255]=110[401020]=[412]\begin{aligned} & x \\ & y \\ & z \end{aligned} = -\frac{1}{10} \begin{bmatrix} -4 & -2 & 0 \\ 3 & 9 & -5 \\ 5 & 5 & -5 \end{bmatrix} \begin{bmatrix} 11 \\ -2 \\ 5 \end{bmatrix} = -\frac{1}{10} \begin{bmatrix} -4 \cdot 11 - 2 \cdot (-2) + 0 \cdot 5 \\ 3 \cdot 11 - 9 \cdot 2 - 5 \cdot 5 \\ 5 \cdot 11 - 5 \cdot 2 - 5 \cdot 5 \end{bmatrix} = -\frac{1}{10} \begin{bmatrix} -40 \\ -10 \\ 20 \end{bmatrix} = \begin{bmatrix} 4 \\ 1 \\ -2 \end{bmatrix}


Answer:


x=4,y=1,z=2.x = 4, \quad y = 1, \quad z = -2.

Method 2

We also can use Cramer’s Rule to solve the linear system, where


x=DxD,=DyD,z=DzD,x = \frac{D_x}{D}, \quad = \frac{D_y}{D}, \quad z = \frac{D_z}{D},


and the determinants Dx,Dy,DzD_x, D_y, D_z are determined by replacing the coefficient of xx or yy or zz in the matrix AA by the constant terms BB.


D=A=10.FindDx,Dy,Dz:D = |A| = -10. \quad \text{Find} \quad D_x, D_y, D_z:Dx=1111222513=11(2)3+1522(1)(1)+1(2)5D _ {x} = \left| \begin{array}{c c c} 11 & 1 & -1 \\ -2 & -2 & 2 \\ 5 & -1 & 3 \end{array} \right| = 11 \cdot (-2) \cdot 3 + 1 \cdot 5 \cdot 2 - 2 \cdot (-1) \cdot (-1) + 1 \cdot (-2) \cdot 5 -13(2)11(1)2=66+10210+6+22=40,-1 \cdot 3 \cdot (-2) - 11 \cdot (-1) \cdot 2 = -66 + 10 - 2 - 10 + 6 + 22 = -40,Dy=2111122353=2(2)3+1132115+1(2)32523111=D _ {y} = \left| \begin{array}{c c c} 2 & 11 & -1 \\ 1 & -2 & 2 \\ 3 & 5 & 3 \end{array} \right| = 2 \cdot (-2) \cdot 3 + 11 \cdot 3 \cdot 2 - 1 \cdot 1 \cdot 5 + 1 \cdot (-2) \cdot 3 - 2 \cdot 5 \cdot 2 - 3 \cdot 11 \cdot 1 ==12+66562033=10,= -12 + 66 - 5 - 6 - 20 - 33 = -10,Dz=2111122315=2(2)5+111(1)+13(2)11(2)3151D _ {z} = \left| \begin{array}{c c c} 2 & 1 & 11 \\ 1 & -2 & -2 \\ 3 & -1 & 5 \end{array} \right| = 2 \cdot (-2) \cdot 5 + 1 \cdot 11 \cdot (-1) + 1 \cdot 3 \cdot (-2) - 11 \cdot (-2) \cdot 3 - 1 \cdot 5 \cdot 1 -2(1)(2)=20116+6654=20.-2 \cdot (-1) \cdot (-2) = -20 - 11 - 6 + 66 - 5 - 4 = 20.x=DxD=4010=4,x = \frac {D _ {x}}{D} = \frac {-40}{-10} = 4,y=DyD=1010=1,y = \frac {D _ {y}}{D} = \frac {-10}{-10} = 1,z=DzD=2010=2.z = \frac {D _ {z}}{D} = \frac {20}{-10} = -2.


Answer:


x=4,y=1,z=2.x = 4, y = 1, z = -2.


Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS