A.D.
Patel Institute of Technology
(A Constituent College of CVM University)
Academic Year 2023-24, Semester – II
Subject Code & Name: 202000211 - LAVCODE
TUTORIAL 2 (Matrices)
Ex-1 Solve the system of linear equations using the Gauss Elimination Method.
(i) x1 + 3x2 − x3 = 0 (ii) 2x1 + x2 + 3x3 = 0 (iii) 4y + z = 2 (iv) x + y − 3z = 4
x2 − 8x3 = 0 x1 + 2x2 =0 2x + 6y − 2z = 3 2x + y − z = 2
4x3 = 0 x2 + x3 = 0 4x + 8y − 5z = 4 3x + 2y − 4z = 7
Ex-2 Solve the system of linear equations using the Gauss-Jordan method.
(i) − x1 − x2 + 2x3 − 3x4 + x5 = 0 (ii) x1 − 2x2 + 3x3 = −2 (iii) 2x + 4y − 6z = 38
x1 + x2 − 2x3 − x5 = 0 x1 + x2 − 2x3 = 3 x + 2y + 3z = 7
x3 + x4 + x 5 = 0 2x1 − x2 + 3x3 = −7 3x − 4y + 4z = −19
1 3 4 3 2 1 2 1 2
Ex-3 Solve the equation − + + = 30, + − = 9, − + = 10 for x, y, z.
x y z x y z x y z
Ex-4 For which value of λ and k the following system has (i) no solution (ii) unique solution (iii)
infinitely many solutions.
x + y + z = 6, x + 2y + 3z = 10, x + 2y + λz = k.
Ex-5 Find the values of k for which the system of equations,
x + y + z = 2, 2x + y − z = 3, 3x + 2y + kz = 4
has unique solution.
Ex-6 Using inversion method solve the system of linear equations:
x1 + 2x2 + 3x3 = 5, 2x1 + 5x2 + 3x3 = 3, x1 + 8x3 = 17.
Ex-7 Find inverse of the following matrices by Gauss–Jordan elimination method.
2 3 4 3 2 6 1 2 1
(i) A = 4 3
1 (ii) B = 1 1 2 (iii) C = 0 1 1
1 2 4 2 2 5 2 5 4
1
Answer Key
Ans-1 (i) x1 = 0, x2 = 0, x3 = 0.
(ii) x1 = 0, x2 = 0, x3 = 0.
(iii) (x, y, z) = { 74 t, 12 − 14 t, t /t ∈ R}, Infinitely many solutions.
(iv) No Solution
Ans-2 (i) (x1 , x2 , x3 , x4 , x5 ) = {(−r − t, r, −t, 0, t)/r, t ∈ R}, Infinitely many solutions.
(ii) x1 = 0, x2 = −5, x3 = −4
(iii) x = 3, y = 5, z = −2.
1 1 1
Ans-3 x = , y = , z = .
2 4 5
Ans-4 (i) λ = 3, k ̸= 10 , no solution.
(ii) λ ̸= 3, unique solution.
(iii) λ = 3, k = 10, Infinitely many solutions.
Ans-5 k ̸= 0.
−40 16 9 x1 1
−1
Ans-6 A = 13 −5 −3 , x2 = −1.
5 −2 −1 x3 2
−2 45 9
5
1 2 −2 −1 −3 1
Ans-7 (i) A−1 = 3 − 45 − 14
5
, (ii) B−1 =−1 3 0 , (iii) C−1 = 2 2 −1.
1 6
−1 5 5
0 −2 1 −2 −1 1
⋆⋆⋆⋆⋆