Processing math: 100%
Search for a tool
LU Decomposition

Tool to calculate and understand LU decomposition, an efficient method for solving systems of linear equations by factoring via triangular matrices.

Results

LU Decomposition -

Tag(s) : Matrix

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'LU Decomposition' tool for free! Thank you!

LU Decomposition

LE Decomposition of a Matrix

× ↔






Answers to Questions (FAQ)

What is LU Decomposition? (Definition)

LU decomposition is a technique for factoring a square matrix M into two triangular matrices: a lower triangular matrix L and an upper triangular matrix U such that M=L.U.

The L matrix has 1s on its diagonal and non-zero elements below the diagonal, while the U matrix has non-zero elements above the diagonal and on the diagonal.

This method facilitates the resolution of systems of linear equations (algebra) and certain calculations such as the matrix determinant or matrix inversion.

How to calculate an LU Decomposition?

One method to find the LU decomposition of a matrix is to solve linear equations.

Example: Factorize in L.U the matrix M=[1235]=LU=[10l211][u11u120u22] The corresponding equations are: 1u11+00=11u12+0u22=2l21u11+10=3l21u12+1u22=5 The resolution gives: L=[1031]U=[1201]

What are the conditions for using LU Decomposition?

To use LU decomposition, the matrix must be a square matrix (same number of rows and columns).

The matrix (or one of its row permutations) must be invertible. Some matrices may require row permutations to enable factorization, giving rise to LU decomposition with pivoting.

Example: If M11=0 then as M11=l11u11, either l11 or u11 must be zero, which implies that L or U is a singular (non-invertible) matrix. It is then necessary to permute the rows of M so that the first element of the permuted matrix is non-zero.

What is pivoting in LU Decomposition?

Pivoting in LU decomposition consists of permuting the rows of matrix A to avoid zeros on the main diagonal of matrix U.

If pivoting is required, dCode reports the permutation matrix P and the resulting modified matrix P.M. The matrices L and U found are such that L.U=P.M

Source code

dCode retains ownership of the "LU Decomposition" source code. Any algorithm for the "LU Decomposition" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "LU Decomposition" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "LU Decomposition" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "LU Decomposition" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source. Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: https://www.dcode.fr/matrix-lu-decomposition
In a scientific article or book, the recommended bibliographic citation is: LU Decomposition on dCode.fr [online website], retrieved on 2025-04-19, https://www.dcode.fr/matrix-lu-decomposition

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'LU Decomposition' tool for free! Thank you!


https://www.dcode.fr/matrix-lu-decomposition
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback