Assignment 1 MTH501 Linear Algebra
Assignment 1 MTH501 Linear Algebra
Answer to Question 1
Part A: 1. Find the LU decomposition of the matrix A, where A = LU . Here, L is a lower triangular
matrix, and U is an upper triangular matrix.
2. Show all the steps involved in the LU decomposition, including the calculation of the multipliers
used to transform A into an upper triangular matrix.
Part B: 1. Verify your result by multiplying the matrices L and U to check if they give the original
matrix A.
1
Solution
Part A: LU Decomposition
We begin by applying Gaussian elimination to transform the matrix A into an upper triangular
matrix U , while keeping track of the multipliers to construct the matrix L.
4 −2 1
A = 3 6 −1
2 1 8
A21 3
l21 = = = 0.75
A11 4
For row 3, the multiplier is:
A31 2
l31 = = = 0.5
A11 4
Now, perform the row operations:
- Row 2: R2 → R2 − l21 R1 - Row 3: R3 → R3 − l31 R1
The matrix becomes:
4 −2 1
A = 0 7.5 −2.75
0 2 7.5
A32 2
l32 = = ≈ 0.2667
A22 7.5
Now, perform the row operation:
- Row 3: R3 → R3 − l32 R2
The matrix becomes:
4 −2 1
A = 0 7.5 −2.75
0 0 7.4
2
4 −2 1
U = 0 7.5 −1.75
0 0 7.967
Part B: Verification
To verify the LU decomposition, multiply the matrices L and U to check if we recover the original
matrix A:
1 0 0 4 −2 1
L · U = 0.75 1 0 0 7.5 −1.75
0.5 0.2667 1 0 0 7.967
This is indeed the original matrix A, confirming that the LU decomposition is correct.
4x − 2y + z = 3
3x + 6y − z = 5
2x + y + 8z = 7.
Answer to Question 2
LU x = b
3
Let y = U x, so the system becomes:
Ly = b
Ux = y
Step 1: Solve Ly = b
The system is:
1 0 0 y1 3
0.75 1 0 y2 = 5
0.5 0.2667 1 y3 7
Step 2: Solve U x = y
Now, solve the system:
4 −2 1 x1 3
0 7.5 −1.75 x2 = 2.75
0 0 7.967 x3 4.7667
x1 = 0.853555927475593
x2 = 0.506277126917713
x3 = 0.598330543933054
Answer to Question 3
4
4 2
To find the images of u = and v = , we proceed as follows:
1 3
4
1. Image of u: Substituting u = into T :
1
0 −1 4
T (u) = .
1 0 1
2
2. Image of v: Substituting v = into T :
3
0 −1 2
T (v) = .
1 0 3