Question
Question: If three numbers are added, their sum is ‘2’. If two times the second number is subtracted from the ...
If three numbers are added, their sum is ‘2’. If two times the second number is subtracted from the sum of the first and third numbers, we get ‘8’, and if three times the first number is added to the sum of the second and third numbers we get ‘4’. Find the numbers using matrices.
Solution
Hint: Here, first we will assume the three variables as x, y, z and then AX=B this equation will be formed From this making X as subject we will get X=AB=A−1B . To find inverse of matrix formula required is A−1=∣A∣1Adj(A) . To find Adjoint of A, the formula will be Adj(A)=(cofactor)T. So, on solving the equation X=AB=A−1B by putting all the values, we will get the answer.
Complete step-by-step solution -
Here, we are given three statements in form of sentences, and three numbers are taken. So, we will assume the three numbers as x equals the first number, y equals the second number, z equals the third number.
Now, it is given that if three numbers are added, their sum is ‘2’. So, writing this in mathematical form, we get as
x+y+z=2 …………………………(1)
Now, if two times the second number is subtracted from the sum of the first and third numbers, we get ‘8’. In mathematical form, we get
x+z−2y=8 On rearranging terms, we get ⇒x−2y+z=8 ………………………….(2)
Next, if three times the first number is added to the sum of the second and third numbers we get ‘4’. So, writing this in mathematical form, we get as
3x+y+z=4 ……………………….(3)
Now, all the three equations can be written in matrix form as,
a11 a21 a31 a12a22a32a13a23a33x y z =c1 c2 c3
Where a11=1,a12=1,a13=1,a21=1,a22=−2,a23=1,a31=3,a32=1,a33−1, and c1,c2,c3 are the constants of the 3 equations. So, putting the values we get,
1 1 3 1−21111x y z =2 8 4
Here, we will assume as AX=B . we need to find value of X.
So, on dividing both side by A, we get X=AB=A−1B . ……………………(4)
To find A−1 of the matrix, formula we will used is A−1=∣A∣1Adj(A) …………………………….(5)
Now, to find ∣A∣ from the matrix 1 1 3 1−21111 we get as,
∣A∣=1(−2⋅1−1⋅1)−1(1⋅1−3⋅1)+1(1⋅1−3⋅(−2))
∣A∣=(−2−1)−(1−3)+(1+6)
∣A∣=−3+2+7=6
Now to find Adj(A), we need cofactors as shown below:
B11=−2 1 11=(−2⋅1−1⋅1)=−2−1=−3
Cofactor will be (−1)(i+j)=(−1)(1+1)=−12=1 . So, we will multiply 1×(−3)=−3 . Thus, cofactor of B11=−3 .
B12=1 3 11=(1⋅1−3⋅1)=1−3=−2
Cofactor will be (−1)(i+j)=(−1)(1+2)=−13=−1 . So, we will multiply −1×(−2)=2 . Thus, cofactor of B12=2 .
B13=1 3 −21=(1⋅1−3⋅(−2))=1+6=7
Cofactor will be (−1)(i+j)=(−1)(1+3)=−14=1 . So, we will multiply 1×7=7 . Thus, cofactor of B13=7 .
B21=1 1 11=(1⋅1−1⋅1)=1−1=0
Cofactor will be (−1)(i+j)=(−1)(2+1)=−13=−1 . So, we will multiply −1×0=0 . Thus, cofactor of B21=0 .
B22=1 3 11=(1⋅1−3⋅1)=1−3=−2
Cofactor will be (−1)(i+j)=(−1)(2+2)=−14=1 . So, we will multiply 1×(−2)=−2 . Thus, cofactor of B22=−2 .
B23=1 3 11=(1⋅1−3⋅1)=1−3=−2
Cofactor will be (−1)(i+j)=(−1)(2+3)=−15=−1 . So, we will multiply −1×(−2)=2 . Thus, cofactor of B23=2 .
B31=1 −2 11=(1⋅1−(−2)⋅1)=1+2=3
Cofactor will be (−1)(i+j)=(−1)(3+1)=−14=1 . So, we will multiply 1×3=3 . Thus, cofactor of B31=3 .
B32=1 1 11=(1⋅1−1⋅1)=1−1=0
Cofactor will be (−1)(i+j)=(−1)(3+2)=−15=−1 . So, we will multiply −1×0=0 . Thus, cofactor of B32=0 .
B33=1 1 1−2=(1⋅(−2)−1⋅1)=−2−1=−3
Cofactor will be (−1)(i+j)=(−1)(3+3)=−16=1 . So, we will multiply 1×−3=−3 . Thus, cofactor of B33=−3 .
Adj(A)=(cofactors)T=B11 B12 B13 B21B22B23B31B32B33=−3 2 7 0−2230−3 (T is known as transpose)
Now, substituting all the values in equation (5), we get as
A−1=61−3 2 7 0−2230−3
So, now writing equation (4) we get as,
X=61−3 2 7 0−2230−32 8 4