Splitting a Square Matrix into Lower/Upper Triangular Matrices

Click For Summary

Discussion Overview

The discussion centers on the procedure for splitting a square matrix into lower and upper triangular matrices, commonly referred to as LU decomposition. Participants explore methods, share experiences, and clarify steps involved in the process, including the use of row operations and the identity matrix.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related
  • Exploratory

Main Points Raised

  • Niko inquires about the procedure for LU decomposition of a square matrix.
  • A participant suggests writing the identity matrix alongside the given matrix and using row operations to reduce columns to zeros below the diagonal, while applying opposite operations to the identity matrix.
  • Niko shares an attempt at LU decomposition on a specific matrix but reports discrepancies in the results.
  • Another participant requests to see Niko's work at the second step to provide feedback.
  • Niko identifies a mistake in their approach, noting they altered the first column incorrectly.
  • Niko expresses appreciation for the practical nature of the forum's discussions compared to their theoretical coursework.
  • Another participant emphasizes the importance of balancing theory with practical problems in learning.
  • One participant reflects on their lack of familiarity with LU decomposition and considers exploring its theoretical underpinnings.
  • A participant discusses the relationship between elementary matrices and row operations, suggesting a deeper exploration of why the method works.

Areas of Agreement / Disagreement

Participants express varying opinions on the balance between theory and practical application in learning, with no consensus reached on the best approach to teaching or understanding LU decomposition.

Contextual Notes

Some participants mention specific steps and operations in the LU decomposition process, but there are unresolved mathematical steps and potential misunderstandings in the application of row operations.

niko2000
Messages
50
Reaction score
0
Hi,
Does anybody know the procedure for splitting a square matrix into lower and upper triangular matrix?
LU=A
Thank you.
Regards,
Niko
 
Physics news on Phys.org
Write the identity matrix and your given matrix side by side.

Use "row operations" to reduce one column at a time to zeros below the diagonal.
Use the "opposite" row operation on the "identity" matrix. (opposite: if you mult a row by a number and then added, multiply by that number and the subtract.
Also don't apply that operation left of the diagonal.

example: reducing the matrix
[1 1 1]
[1 2 0]
[2 0 1]

to LU form:
[1 0 0] [1 1 1]
[0 1 0] [1 2 0]
[0 0 1] [2 0 1]

To reduce the first column, subtract the first row from the second and then subtract twice the first row from the third.
That means on the identity matrix on the left, we must add the first row to the second add add twice the first row to the third. We get:
[1 0 0] [1 1 1]
[1 1 0] [0 1 -1]
[2 0 1] [0 -2-1]

Now add twice the second row to the third row in the matrix on the right. Subtract twice the second row from the third row in the matrix on the left. (and [b not the first column. we get:
[1 0 0] [1 1 1]
[1 1 0] [0 1-1]
[2 2 1] [0 0-1]
the LU decomposition of the original matrix.
 
Thank you!
 
I have tried this procedure on this one:
[3 2 5 1]
[6 6 15 3]
[-3 4 13 1]
[-6 6 15 15]
and I couldn't come to a right solution
After first step I got this:
[1 0 0 0] [3 2 5 1]
[2 1 0 0] [0 2 5 1]
[-1 0 1 0] [0 6 18 2]
[-2 0 0 1] 0 10 25 7]

After second step I get L and U, but LU isn't equal to the first matrix.
Any correction of my possible error would be helpful.
 
Showing what you have at the second step would be helpful. :-p


BTW, HoI, if you add the first row to the second row on the right matrix, aren't you supposed to subtract the second column from the first column on the left matrix?
 
I have already found a mistake: I have changed first column too instead of leave it unchanged.
 
I have done the way HallsofIvy has shown me and it works. This question is out of place here, but anyway...I have listened to the discusions on the forum and I must say your answers are really practical and easy to understand. Before giving this question I was looking at my notes to find an answer and it seemed more difficult.
What I wanted to ask...what way do you take classes? As I can see your learning is based on much more practical work then theory work.
We take quite a lot of theory and I think it should be explained on more practical problems.
 
Learn the theory- DO the practical problems. If all you do is "practical problems" then you
learn to do those problems but may not learn how to handle problems that are slightly
different. If you learn the theory, you should be able to apply it to all problems.
The course should be a mix of theory and practice but if time is limited, it may well be better for
your instructor to concentrate on the theory and let YOU figure out the applications.

Hurkyl said:
BTW, HoI, if you add the first row to the second row on the right matrix, aren't
you supposed to subtract the second column from the first column on the left matrix?
No, although I can't without using several pages, explain why except to say that it works!

A very nice, somewhat more theoretical explanation by Wong, is in a slightly newer thread here:
https://www.physicsforums.com/showthread.php?t=40004
 
I've never bothered learning LU decomposition; I imagine I probably should sometime. :frown: I was trying to figure out why it works...

If we write A = BC (of course, for the first step, B=I and C=A), then we can multiply inside by an elementary matrix and its inverse: A = B E^-1 E C.

Adding the first row to the second is the same as left multiplying by

Code:
1 0 0
1 1 0
0 0 1

Whose inverse is

Code:
 1 0 0
-1 1 0
 0 0 1

and right-multiplying a matrix by this is the same as subtracting the second column from the first.

I'll work through an example, maybe, later today to see why this interpretation does/doesn't work.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K