2
Page 1 of 2 Islamabad Campus Department of Electrical Engineering Program: B.E. (Electrical) Semester – Summer 2016 MS-121 Linear Algebra Quiz – 2 Solution Marks: 20 Handout Date: 11/08/2016 Question # 1: Use Cramer’s rule to solve the following system of equations: 2 + + = 3 = 0 + 2 + = 0 Solution: Coefficient of matrix’s determinant: = 2 1 1 1 1 1 1 2 1 = 2 + 1 + 2 1 + 4 + 1 3 ! = 3 1 1 0 1 1 0 2 1 = 3 + 0 + 0 0 + 6 + 0 = 3 + 6 3 ! = 2 3 1 1 0 1 1 0 1 = 0 + 3 + 0 0 + 0 + 3 = 3 3 6 ! = 2 1 3 1 1 0 1 2 0 = 0 + 0 + 6 3 + 0 + 0 = 6 + 3 9 Using Cramer’s rule: = ! = 3 3 = 1, = ! = 6 3 = 2, = ! = 9 3 = 3

Quiz # 2 - sadafsufwan.com · Page 1 of 2 Islamabad Campus Department of Electrical Engineering Program: B.E. (Electrical) Semester – Summer 2016 MS-121 Linear Algebra Quiz –

Embed Size (px)

Citation preview

Page 1: Quiz # 2 - sadafsufwan.com · Page 1 of 2 Islamabad Campus Department of Electrical Engineering Program: B.E. (Electrical) Semester – Summer 2016 MS-121 Linear Algebra Quiz –

Page1of2

Islamabad Campus

Department of Electrical Engineering Program: B.E. (Electrical)

Semester – Summer 2016

MS-121 Linear Algebra

Quiz – 2 Solution Marks: 20 Handout Date: 11/08/2016 Question # 1: Use Cramer’s rule to solve the following system of equations:

2𝑥 + 𝑦 + 𝑧 = 3𝑥 − 𝑦 − 𝑧 = 0𝑥 + 2𝑦 + 𝑧 = 0

Solution: Coefficient of matrix’s determinant:

𝐷 =2 1 11 −1 −11 2 1

= −2 + −1 + 2 − −1 + −4 + 1 ⇒ 3

𝐷! =3 1 10 −1 −10 2 1

= −3 + 0 + 0 − 0 + −6 + 0 = −3+ 6 ⇒ 3

𝐷! =2 3 11 0 −11 0 1

= 0 + −3 + 0 − 0 + 0 + 3 = −3− 3 ⇒ −6

𝐷! =2 1 31 −1 01 2 0

= 0 + 0 + 6 − −3 + 0 + 0 = 6+ 3 ⇒ 9

Using Cramer’s rule:

𝑥 =𝐷!𝐷 =

33 = 1, 𝑦 =

𝐷!𝐷 =

−63 = −2, 𝑧 =

𝐷!𝐷 =

93 = 3

Page 2: Quiz # 2 - sadafsufwan.com · Page 1 of 2 Islamabad Campus Department of Electrical Engineering Program: B.E. (Electrical) Semester – Summer 2016 MS-121 Linear Algebra Quiz –

Page2of2

Question # 2: Check whether the following 3 x 3 matrix is invertible or not:

𝐴 =1 2 31 0 12 4 6

Solution:

𝑑𝑒𝑡 𝐴 =1 2 31 0 12 4 6

; 𝑒𝑥𝑝𝑎𝑛𝑑 𝑤𝑖𝑡ℎ 𝑠𝑒𝑐𝑜𝑛𝑑 𝑐𝑜𝑙𝑢𝑚𝑛

= −1 2 34 6 + 0 1 3

2 6 − 1 1 22 4

= −1 0 + 0 0 − 1 0 ⟹ 0 Hence, the determinant is 0 therefore the inverse of a given matrix doesn’t exist. Question # 3: Verify that det (AB) = det (A) det (B):

𝐴 = 3 12 1 ,𝐵 = −1 3

5 8 , Solution:

𝐴𝐵 = 3 12 1 × −1 3

5 8 = 3× −1 + 1×5 3×3+ 1×82× −1 + 1×5 2×3+ 1×8

= 2 173 14

𝑑𝑒𝑡 𝐴𝐵 = 2 173 14 = 2 14 − 17 3 = 28− 51⟹ −23

𝑑𝑒𝑡 𝐴 = 3 12 1 = 3 1 − 1 2 ⟹ 1

𝑑𝑒𝑡 𝐵 = −1 35 8 = −1 8 − 3 5 ⟹ −23

𝑑𝑒𝑡 𝐴 𝑑𝑒𝑡 𝐵 = 1× −23 ⟹ −23 Hence, det (AB) = det (A) det (B) so proved.