LU Factorization Calculator
Doolittle LU factorization with partial pivoting for a small real matrix. Same engine as Linear System. Not a CAS. Runs locally.
Enter values to calculate.
Trust summary CVP VERIFIED · production STALE · CVP protocol 1.0.0-proposed · Core assurance · all published modes
- Input interpretation
- Enter values to calculate.
- Result
- —
- Verified scope
- all published modes
- Assurance
- Core
- Declared partition coverage
- PASS · 19/19 declared partitions (solve, det, inverse, multiply, transpose, rank, eigen, lu, chol, qr, svd, lstsq, rref, condition, nullspace, columnspace, rowspace, leftnullspace, invalid-domain) · Matrix
- Known limitations
- Core CVP does not include live graph, viewport, or pointer interaction.
- Model
- PA = LU for order 2–3 (engine up to 4).
- Scope
- Real matrices
- Verification
- Engine tested · Specification checked · v1.14.1 · CVP VERIFIED · production STALE · CVP protocol 1.0.0-proposed · Core assurance · all published modes· View Manifest · CVP overview · Specification
- Versions
- Calculation 1.14.1 · CVP protocol 1.0.0-proposed · Evidence 2026-10-07.solve-publication-diagnostics
- Verification revision
- 2026-10-07.solve-publication-diagnostics · 10/10 property · digest c6132667b855
- Legacy regression
- 58/58 tests · Production surface contract 5/5
- Trust layers
- Verification VERIFIED · Production STALE · Overall CVP state: VERIFIED_STALE under CVP 1.0.0-proposed
- CVP status
- STALE · Capability production binding: STALE · Site report: STALE · Evidence changed after the last successful production attestation. Re-attestation required.
- Reference
- O1 model · O2 expected_values · O2 numerical_behavior
- Interfaces
- PASS · UI (SSR) / REST / MCP
- Supplemental domain review
- Not performed
- Named expert review
- Not performed
- CVP suite
- 26/26 golden · 8/8 CVP boundary · 14/14 invalid · 10/10 property · 1/1 metamorphic · 9/9 cross-interface · 2/2 cross-calculator · 5/5 CVP contract · Manifest
- Specification basis
- ISO 80000-2:2019 Quantities and units — Mathematics
- Evidence
- 29 legacy golden · 6 legacy boundary · legacy regression suite · 26/26 oracle-backed golden · 14/14 invalid · Artifact integrity PASS
- Semantic contract
- PASS
Full verification
Formulas
Core equations used by this calculator.
How to use
Enter a square matrix
2×2 or 3×3. Larger composition lives at /workspace/matrix.
Read L, U, and P
reconstruction_residual is ‖PA − LU‖_F. Ill-conditioned matrices warn.
Example calculations
Common configurations with formula and result.
[[2,1],[1,1]]
Nonsingular
Singular
[[1,2],[2,4]]
LU Factorization calculator specification
Version 1.14.1 · Engine tested
- Engine tested 58/58 tests · Production surface contract 5/5
- Named expert review Not performed
- Calculation version 1.14.1
- Definition
- PA = LU factors a square matrix into a permutation, a unit lower-triangular L, and an upper-triangular U. This page is a discovery surface on the linear-algebra engine (mode=lu).
- What it calculates
- PA = LU for order 2–3 (engine up to 4).
- Inputs
- order
- a11…
- Outputs
- L
- U
- P
- reconstruction_residual
- condition_number
- singular
- Formula
PA = LU- Assumptions
- Real matrices
- Order ≤ 4
- Planar ℝ² figure when order=2; order 3+ omits it
- Float64
- Not a CAS
- Units
- dimensionless
- Boundary conditions
- singular A → singular_u warning, not SINGULAR_MATRIX
- unknown mode (including jordan-form) → INVALID_MODE
- Example
- [[2,1],[1,1]] → PA=LU
- Validation cases
2 published on this page · 58/58 tests · Production surface contract 5/5 · View evidence
- order=2 a11=2 a12=1 a21=1 a22=1 → reconstruction_residual≈0
- order=2 a11=1 a12=2 a21=2 a22=4 → singular=true
- Specification basis
- ISO 80000-2:2019 Quantities and units — Mathematics
- Calculation version
- 1.14.1
Related tools
Other calculators in this family: Cholesky Factorization Calculator, Column Space Calculator, Condition Number Calculator, Least Squares Calculator, Left Nullspace Calculator, Linear System Calculator, Matrix Determinant Calculator, Matrix Eigenvalues Calculator . Explore all Linear Algebra.
Frequently asked questions
Key distinctions behind the calculation.
Is this a second LU solver?
No. It is mode=lu on math.linear_algebra, the same engine as /calc/math/linear-system and /workspace/matrix.
What happens when A is singular?
L and U are still returned. singular is true and warning singular_u is set. Inverse remains SINGULAR_MATRIX.