Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

ROYAL UNIVERSITY OF DHAKA

ASSIGNMENT TERM
YEAR:Summer,2024

COURSE CODE: MAT 103


COURSE TITLE:
Linear Algebra &Vector Analysis

Course Teacher: Ms.Priyanka Das

Student Name: Ahsan Kabir

StudentID:0452310005101009
Submission Date:07-06-2024
Q:(1) Solve the following system of linear equations by using the Gauss elimination method:
x{1} + x{2} + x{3} = 2
2x{1} + 3x{2} - x{3} = 9
x{1} + 3x{2} + 2x{3} = 5

Ans:We can solve the system of linear equations using Gaussian elimination:x1+x2+x3=2
2x1+3x2−x3=9 x1+3x2+2x3=5

We can solve the system of equations using Gaussian elimination. This method involves eliminating one
variable from two or more equations, and then solving for the remaining variables.

Steps to solve:1. Eliminate x₁ from the second and third equations:x1+x2+x3=2x2−3x3=5 (subtract
the first equation from the second equation) x1+3x2+2x3=5

2. Eliminate x₁ from the third equation:x1+x2+x3=2x2−3x3=52x2+x3=3 (subtract the first equation


from the third equation)

3. Eliminate x₂ from the third equation:x1+x2+x3=2x2−3x3=57x3=−7 (add 3 times the second


equation to the third equation)

4. Solve for x₃:x3=−1

5. Substitute x₃ back into the second equation to solve for x₂:x2−3(−1)=5x2=2

6. Substitute x₃ and x₂ back into the first equation to solve for x₁:x1+2+(−1)=2x1=1

Answer:x1=1,x2=2,x3=−1

Q: (2) Solve the following system of linear equations by using the Gauss elimination method:
x + y + 2z = 14
x - 3y + 2z = 10
2x - y + 2z = 15

Ans: We can solve the system of linear equations using Gaussian elimination:x+y+2z=14

x−3y+2z=10

2x−y+2z=15

We can solve the system of equations using Gaussian elimination. This method involves eliminating one
variable from two or more equations, and then solving for the remaining variables.

Steps to solve:1. Eliminate y from the second and third equations:x+y+2z=14x−3y+2z=10 (subtract
the first equation from the second equation) −4y=−4

2. Solve for y:y=1

3. Substitute y back into the first equation to solve for x:x+1+2z=14x+2z=13

4. Substitute y back into the second equation to solve for z:x−3(1)+2z=10x−3+2z=10


5. Combine like terms in the third equation:x+2z=13

6. Notice that the third equation is the same as the equation obtained in step 3. This indicates that
the system has a unique solution.

7. Substitute y and z back into the first equation to solve for x (optional):x+1+2(5)=14x+11=14x=3

Answer:x=3,y=1,z=5

You might also like