Skip to main content

Pseudoinverse Calculator

Free Pseudoinverse Calculator for fractions. Enter values to get step-by-step solutions with formulas and graphs. Free to use with no signup required.

Skip to calculator
Mathematics

Pseudoinverse Calculator

Calculate the Moore-Penrose pseudoinverse of a 2x2 matrix. Handles both invertible and singular matrices with step-by-step verification.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate
Moore-Penrose Pseudoinverse A+
[-2, 1]
[1.5, -0.5]
Determinant
-2
Rank
2
Frobenius Norm
2.738613
Method Used
Regular inverse (matrix is invertible)
Verification: A * A+ * A = A
[12]
[34]
Verification passed: AA+A = A
Matrix is invertible. The pseudoinverse equals the regular inverse.
Your Result
A+ = [[-2, 1], [1.5, -0.5]] | det(A) = -2 | Rank = 2
Share Your Result
Understand the Math

Formula

A+ satisfies: AA+A = A, A+AA+ = A+, (AA+)^T = AA+, (A+A)^T = A+A

The Moore-Penrose pseudoinverse A+ is the unique matrix satisfying all four conditions. For invertible matrices, A+ equals the regular inverse. For singular matrices, it provides least-squares solutions.

Last reviewed: December 2025

Worked Examples

Example 1: Pseudoinverse of an Invertible 2x2 Matrix

Find the pseudoinverse of A = [[1, 2], [3, 4]].
Solution:
det(A) = (1)(4) - (2)(3) = 4 - 6 = -2 Since det is nonzero, A+ = A^(-1) A^(-1) = (1/-2) * [[4, -2], [-3, 1]] A^(-1) = [[-2, 1], [1.5, -0.5]] Verify: A * A^(-1) = [[1,0],[0,1]] = I
Result: A+ = [[-2, 1], [1.5, -0.5]]

Example 2: Pseudoinverse of a Singular Matrix

Find the pseudoinverse of A = [[1, 2], [2, 4]] (rank 1).
Solution:
det(A) = (1)(4) - (2)(2) = 0 (singular) A^T A = [[5, 10], [10, 20]], det(A^T A) = 0 Using rank-1 formula: A+ = A^T / sigma1^2 sigma1^2 = eigenvalue of A^T A = 25 A+ = [[1,2],[2,4]]^T / 25 = [[1/25, 2/25], [2/25, 4/25]]
Result: A+ = [[0.04, 0.08], [0.08, 0.16]]
Expert Insights

Background & Theory

The Pseudoinverse Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.

History

The history behind the Pseudoinverse Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.

Share this calculator

Explore More

Frequently Asked Questions

The Moore-Penrose pseudoinverse (denoted A+) is a generalization of the matrix inverse that exists for every matrix, including non-square and singular matrices. While a regular inverse only exists for square matrices with nonzero determinant, the pseudoinverse always exists and is unique. It satisfies four defining properties known as the Moore-Penrose conditions: A times A+ times A equals A, A+ times A times A+ equals A+, and both A times A+ and A+ times A are Hermitian (symmetric for real matrices). The pseudoinverse is primarily used for solving overdetermined and underdetermined systems of linear equations, providing least-squares solutions and minimum-norm solutions respectively.
When a square matrix A is invertible (has nonzero determinant), the pseudoinverse is simply the regular inverse. For a 2x2 matrix [[a,b],[c,d]] with determinant ad-bc not equal to zero, the inverse is (1/det) times [[d,-b],[-c,a]]. This is because when A is invertible, all four Moore-Penrose conditions are automatically satisfied by the standard inverse. The relationship is straightforward: A-inverse times A equals the identity, which trivially satisfies A times A-inverse times A equals A. So the pseudoinverse is a true generalization that reduces to the ordinary inverse in the non-singular case, making it a more powerful and universally applicable concept.
When a system Ax = b has no exact solution (overdetermined system with more equations than unknowns), the pseudoinverse provides the least-squares solution x = A+ times b. This solution minimizes the Euclidean norm of the residual vector Ax - b, meaning it finds the vector x that comes closest to satisfying all equations simultaneously. In statistics, this is exactly what happens in linear regression: the pseudoinverse of the design matrix produces the regression coefficients that minimize the sum of squared errors. For underdetermined systems (fewer equations than unknowns), x = A+ b gives the minimum-norm solution among all exact solutions. These properties make the pseudoinverse indispensable in data fitting and optimization.
The four conditions are: (1) A times A+ times A equals A, meaning A+ acts as a weak inverse. (2) A+ times A times A+ equals A+, ensuring A+ is also weakly inverted by A. (3) A times A+ is Hermitian (equals its own conjugate transpose), making it an orthogonal projector onto the column space of A. (4) A+ times A is Hermitian, making it an orthogonal projector onto the row space of A. These four conditions uniquely determine A+ for any matrix A. If A is invertible, all conditions are trivially satisfied by the standard inverse. The elegance of these conditions is that they characterize the pseudoinverse purely through algebraic identities without referencing any optimization problem.
The most reliable method for computing the pseudoinverse uses the Singular Value Decomposition. Given A = U times Sigma times V-transpose, the pseudoinverse is A+ = V times Sigma+ times U-transpose. Here Sigma+ is formed by taking the reciprocal of each nonzero singular value in Sigma and transposing the result. Singular values that are zero (or numerically very small) are left as zero rather than reciprocated, which provides numerical stability. This approach works for any matrix regardless of shape or rank. In practice, a threshold is applied: singular values below a certain tolerance (typically machine epsilon times the largest singular value times the matrix dimension) are treated as zero to avoid amplifying numerical noise.
The pseudoinverse creates two important projection matrices. The product A times A+ is the orthogonal projection onto the column space (range) of A, projecting any vector onto the subspace spanned by the columns. The product A+ times A is the orthogonal projection onto the row space of A, projecting onto the subspace spanned by the rows. These projections are idempotent (applying them twice gives the same result as applying once) and symmetric. The complementary projections I minus A times A+ and I minus A+ times A project onto the left null space and null space respectively. These projection properties are fundamental to understanding why the pseudoinverse gives least-squares and minimum-norm solutions.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

Formula

A+ satisfies: AA+A = A, A+AA+ = A+, (AA+)^T = AA+, (A+A)^T = A+A

The Moore-Penrose pseudoinverse A+ is the unique matrix satisfying all four conditions. For invertible matrices, A+ equals the regular inverse. For singular matrices, it provides least-squares solutions.

Worked Examples

Example 1: Pseudoinverse of an Invertible 2x2 Matrix

Problem: Find the pseudoinverse of A = [[1, 2], [3, 4]].

Solution: det(A) = (1)(4) - (2)(3) = 4 - 6 = -2\nSince det is nonzero, A+ = A^(-1)\nA^(-1) = (1/-2) * [[4, -2], [-3, 1]]\nA^(-1) = [[-2, 1], [1.5, -0.5]]\nVerify: A * A^(-1) = [[1,0],[0,1]] = I

Result: A+ = [[-2, 1], [1.5, -0.5]]

Example 2: Pseudoinverse of a Singular Matrix

Problem: Find the pseudoinverse of A = [[1, 2], [2, 4]] (rank 1).

Solution: det(A) = (1)(4) - (2)(2) = 0 (singular)\nA^T A = [[5, 10], [10, 20]], det(A^T A) = 0\nUsing rank-1 formula: A+ = A^T / sigma1^2\nsigma1^2 = eigenvalue of A^T A = 25\nA+ = [[1,2],[2,4]]^T / 25 = [[1/25, 2/25], [2/25, 4/25]]

Result: A+ = [[0.04, 0.08], [0.08, 0.16]]

Frequently Asked Questions

What is the Moore-Penrose pseudoinverse and when is it used?

The Moore-Penrose pseudoinverse (denoted A+) is a generalization of the matrix inverse that exists for every matrix, including non-square and singular matrices. While a regular inverse only exists for square matrices with nonzero determinant, the pseudoinverse always exists and is unique. It satisfies four defining properties known as the Moore-Penrose conditions: A times A+ times A equals A, A+ times A times A+ equals A+, and both A times A+ and A+ times A are Hermitian (symmetric for real matrices). The pseudoinverse is primarily used for solving overdetermined and underdetermined systems of linear equations, providing least-squares solutions and minimum-norm solutions respectively.

How is the pseudoinverse computed for an invertible matrix?

When a square matrix A is invertible (has nonzero determinant), the pseudoinverse is simply the regular inverse. For a 2x2 matrix [[a,b],[c,d]] with determinant ad-bc not equal to zero, the inverse is (1/det) times [[d,-b],[-c,a]]. This is because when A is invertible, all four Moore-Penrose conditions are automatically satisfied by the standard inverse. The relationship is straightforward: A-inverse times A equals the identity, which trivially satisfies A times A-inverse times A equals A. So the pseudoinverse is a true generalization that reduces to the ordinary inverse in the non-singular case, making it a more powerful and universally applicable concept.

How does the pseudoinverse solve least-squares problems?

When a system Ax = b has no exact solution (overdetermined system with more equations than unknowns), the pseudoinverse provides the least-squares solution x = A+ times b. This solution minimizes the Euclidean norm of the residual vector Ax - b, meaning it finds the vector x that comes closest to satisfying all equations simultaneously. In statistics, this is exactly what happens in linear regression: the pseudoinverse of the design matrix produces the regression coefficients that minimize the sum of squared errors. For underdetermined systems (fewer equations than unknowns), x = A+ b gives the minimum-norm solution among all exact solutions. These properties make the pseudoinverse indispensable in data fitting and optimization.

What are the four Moore-Penrose conditions that define the pseudoinverse?

The four conditions are: (1) A times A+ times A equals A, meaning A+ acts as a weak inverse. (2) A+ times A times A+ equals A+, ensuring A+ is also weakly inverted by A. (3) A times A+ is Hermitian (equals its own conjugate transpose), making it an orthogonal projector onto the column space of A. (4) A+ times A is Hermitian, making it an orthogonal projector onto the row space of A. These four conditions uniquely determine A+ for any matrix A. If A is invertible, all conditions are trivially satisfied by the standard inverse. The elegance of these conditions is that they characterize the pseudoinverse purely through algebraic identities without referencing any optimization problem.

How is the pseudoinverse computed using SVD?

The most reliable method for computing the pseudoinverse uses the Singular Value Decomposition. Given A = U times Sigma times V-transpose, the pseudoinverse is A+ = V times Sigma+ times U-transpose. Here Sigma+ is formed by taking the reciprocal of each nonzero singular value in Sigma and transposing the result. Singular values that are zero (or numerically very small) are left as zero rather than reciprocated, which provides numerical stability. This approach works for any matrix regardless of shape or rank. In practice, a threshold is applied: singular values below a certain tolerance (typically machine epsilon times the largest singular value times the matrix dimension) are treated as zero to avoid amplifying numerical noise.

What is the relationship between pseudoinverse and projection matrices?

The pseudoinverse creates two important projection matrices. The product A times A+ is the orthogonal projection onto the column space (range) of A, projecting any vector onto the subspace spanned by the columns. The product A+ times A is the orthogonal projection onto the row space of A, projecting onto the subspace spanned by the rows. These projections are idempotent (applying them twice gives the same result as applying once) and symmetric. The complementary projections I minus A times A+ and I minus A+ times A project onto the left null space and null space respectively. These projection properties are fundamental to understanding why the pseudoinverse gives least-squares and minimum-norm solutions.

References

Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy