I wanted to know which of the two methods gives more accurate results when solving linear equations problems, Gauss elimination or LU factorization? And what happens if we use partial pivoting while applying the first method, is this more accurate than the LU factorization?
2026-04-25 09:41:50.1777110110
Gauss elimination vs LU factorization
2.6k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in LINEAR-ALGEBRA
- An underdetermined system derived for rotated coordinate system
- How to prove the following equality with matrix norm?
- Alternate basis for a subspace of $\mathcal P_3(\mathbb R)$?
- Why the derivative of $T(\gamma(s))$ is $T$ if this composition is not a linear transformation?
- Why is necessary ask $F$ to be infinite in order to obtain: $ f(v)=0$ for all $ f\in V^* \implies v=0 $
- I don't understand this $\left(\left[T\right]^B_C\right)^{-1}=\left[T^{-1}\right]^C_B$
- Summation in subsets
- $C=AB-BA$. If $CA=AC$, then $C$ is not invertible.
- Basis of span in $R^4$
- Prove if A is regular skew symmetric, I+A is regular (with obstacles)
Related Questions in NUMERICAL-METHODS
- The Runge-Kutta method for a system of equations
- How to solve the exponential equation $e^{a+bx}+e^{c+dx}=1$?
- Is the calculated solution, if it exists, unique?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Minimum of the 2-norm
- Is method of exhaustion the same as numerical integration?
- Prove that Newton's Method is invariant under invertible linear transformations
- Initial Value Problem into Euler and Runge-Kutta scheme
- What are the possible ways to write an equation in $x=\phi(x)$ form for Iteration method?
- Numerical solution for a two dimensional third order nonlinear differential equation
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
I think the book Numerical Linear Algebra by Trefethen and Bau has a pretty good explanation of this topic. I've summarized some of the content from chapters 20 and 21.
Gaussian Elimination is unstable
Consider the matrix $$ A = \begin{bmatrix} 10^{-20} & 1 \\ 1 & 1\end{bmatrix} $$
This has exact LU decomposition, $$ L = \begin{bmatrix} 1 & 0 \\ 10^{20} & 1\end{bmatrix},~~~~ U = \begin{bmatrix} 10^{-20} & 1 \\ 0 & 1-10^{20}\end{bmatrix} $$
However, suppose we make small (relative) rounding errors and end up representing $1-10^{20}$ as $-10^{20}$. Then, $$ \begin{bmatrix} 1 & 0 \\ 10^{20} & 1\end{bmatrix}\begin{bmatrix} 10^{-20} & 1 \\ 0 & -10^{20}\end{bmatrix} = \begin{bmatrix} 10^{-20} & 1 \\ 1 & 0 \end{bmatrix} $$ which is far from $A$.
LU is Gaussian Elimination without Pivoting
To expand on my comment, when you do Gaussian Elimination without pivoting, each step can be written in terms of matrix multiplication on the left by a lower triangular matrix. The end result is an upper triangular matrix so written in matrix form Gaussian elimination looks something like $$ L_{m-1}\cdots L_2L_1 A = U $$
The product of lower triangular matrices is still lower triangular, as is the inverse, so setting $L^{-1} = L_{m-1}\cdots L_2L_1$ gives the LU decomposition.
As a concrete example, let's consider the matrix $$ A = \begin{bmatrix} 2 & 1 & 1\\ 4 & 3 & 2\\ 8 & 7 & 9 \end{bmatrix} $$
The first step of Gaussian elimination would be to subtract twice the first row from the second, and 4 times the first from the third. We can write this as, $$ L_1 = \begin{bmatrix} 1 \\ -2 & 1\\ -4 & & 1 \end{bmatrix} $$ You can verify that, $$ L_1A = \begin{bmatrix} 2 & 1 & 1 \\ 0 & 1 & 0 \\ 0 & 3 & 5 \end{bmatrix} $$
The next step of Gaussian elimination is to subtract 3 times the second row from the third row. Again, we can write this as, $$ L_2 = \begin{bmatrix} 1 \\ & 1 \\ & -3 & 1 \end{bmatrix} $$ and verify that, $$ L_2(L_1A) = \begin{bmatrix} 2 & 1 & 1 \\ 0 & 1 & 0 \\ 0 & 0 & 5 \end{bmatrix} $$
It turns out that the invese of $L_i$ is quite simple, you just negate the entries below the main diagonal. Similarly, the product of such matrices is also simple, you just add the entries below the diagonal. You can again verify that, $$ L = (L_2L_1)^{-1} = L_1^{-1}L_2^{-1} = \begin{bmatrix} 1 \\ 2 & 1\\ 4 & & 1 \end{bmatrix} \begin{bmatrix} 1 \\ & 1 \\ & 3 & 1 \end{bmatrix} = \begin{bmatrix} 1 \\ 2 & 1 \\ 4 & 3 & 1 \end{bmatrix} $$
PLU is Gaussian Elimination with Pivoting
Now, if you pivot at each step, you can view this as swapping the rows of the working matrix. This is the same as left multiplication by a permutation matrix. So doing gaussian elimination with pivoting will give a set of operations like $$ L_{m-1}P_{m-1}\cdots L_2P_2L_1P_1 A = U $$
If we define, $$ L_k' = P_{m-1}\cdots P_{k+1}L_kP_{k+1}^{-1}\cdots P_{m-1}^{-1} $$ you will see we can write the above series of operations as $$ (L_{m-1}'\cdots L_2'L_1')(P_{m-1}^{-1}\cdots P_1^{-1}) A = U $$
Which you can rearrange to get a PLU decomposition.