The pseudoinverse generalises the inverse to every matrix. A⁺b gives the least squares solution of Ax = b (the one of smallest length if there are many), which is how linear regression is solved.
How to use the Pseudoinverse Calculator
- Choose the matrix size. The matching grid of fields appears.
- Enter the entries row by row (a₁ b₁ c₁ is the first row, a₂ b₂ c₂ the second, and so on).
- Read the result; integer matrices give exact fractions.
Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.
How it works
The singular value decomposition is computed; the non-zero singular values are inverted and the factors multiplied in reverse order.
Formula
A⁺ = V·Σ⁺·Uᵀ; A⁺ = (AᵀA)⁻¹Aᵀ for independent columns
Worked example
Inputs: Matrix size (rows × columns): 3 × 2; a₁: 1; b₁: 2; a₂: 3; b₂: 4; a₃: 5; b₃: 6.
Results: Pseudoinverse A⁺ = ⎡ −4/3 −1/3 2/3 ⎤
⎣ 13/12 1/3 −5/12 ⎦; Method = A⁺ = V·Σ⁺·Uᵀ (from the singular value decomposition); Rank = 2.
Key terms
- Moore–Penrose pseudoinverse
- The unique generalised inverse satisfying the Penrose conditions.
Frequently asked questions
When is A⁺ = A⁻¹?
When A is square and invertible.
What is A⁺ used for?
Least squares solutions and minimum-norm solutions of linear systems.
What are the Penrose conditions?
AA⁺A = A, A⁺AA⁺ = A⁺, and AA⁺ and A⁺A are symmetric.
Does every matrix have a pseudoinverse?
Yes, exactly one.