Why is a second pivot necessary in LU factorization with partial pivoting?

  • Thread starter Thread starter aaronfue
  • Start date Start date
  • Tags Tags
    Pivot
Click For Summary
SUMMARY

The discussion centers on the necessity of a second pivot in LU factorization with partial pivoting for a specific set of linear equations. Participants noted discrepancies in their L and U matrices, particularly after setting certain elements to zero. The correct LU matrices derived from the equations are L = [1, 0, 0; 0.25, 1, 0; 0.775, 0.5, 1] and U = [-8, -2, 5; 0, 5.5, -3.25; 0, 0, 1.25]. The need for an additional pivot arises to maintain numerical stability and accuracy in the factorization process.

PREREQUISITES
  • Understanding of LU factorization with partial pivoting
  • Familiarity with matrix multiplication and properties
  • Knowledge of numerical stability in linear algebra
  • Ability to perform Gaussian elimination
NEXT STEPS
  • Study the concept of numerical stability in LU factorization
  • Learn about the role of partial pivoting in reducing rounding errors
  • Explore Gaussian elimination techniques in detail
  • Practice solving systems of equations using LU factorization with various examples
USEFUL FOR

Students and professionals in mathematics, engineering, and computer science who are working with linear algebra, particularly those focusing on numerical methods and matrix computations.

aaronfue
Messages
118
Reaction score
0

Homework Statement



Use LU factorization with partial pivoting for the following set of equations:

3x1 - 2x2 + x3 = -10
2x1 + 6x2 - 4x3 = 44
-8x1 - 2x2 + 5x3 = -26

The Attempt at a Solution


I made an attempt to solve this problem, but my answer was wrong compared to the book. There was an additional partial pivot after setting elements 21 & 31 equal to zero. I just would like to know why?

The following is what I got for my L and U matrices:

U=
[ -8 -2 5 ]
[ 0 5.5 -3.25]
[ 0 0 1.25]

L=
[1 0 0]
[.25 1 0]
[.775 0.5 1]
 
Physics news on Phys.org
Do your L and U matrices, when multiplied together, give the original matrix of coefficients? The first row of your U is identical to the third row of the coefficient matrix. Coincidence?
 
aaronfue said:

Homework Statement



Use LU factorization with partial pivoting for the following set of equations:

3x1 - 2x2 + x3 = -10
2x1 + 6x2 - 4x3 = 44
-8x1 - 2x2 + 5x3 = -26


The Attempt at a Solution


I made an attempt to solve this problem, but my answer was wrong compared to the book. There was an additional partial pivot after setting elements 21 & 31 equal to zero. I just would like to know why?

The following is what I got for my L and U matrices:

U=
[ -8 -2 5 ]
[ 0 5.5 -3.25]
[ 0 0 1.25]

L=
[1 0 0]
[.25 1 0]
[.775 0.5 1]

Please show your work details, step-by-step. When I do it (with [-8,-2,5] in row 1 and [3,-2,1] in row 3) I get a different U from yours and do not need any more "partial" pivots; straight pivoting works perfectly well. Or, maybe, I have not understood your question---but I still get a different U.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K