What a matrix inverse is and when to use it
The inverse of a square matrix A, written A⁻¹, is the unique matrix that "undoes" A: multiplying A by A⁻¹ (in either order) gives the identity matrix. Just as dividing by a number "undoes" multiplying by it, multiplying by a matrix inverse is how you solve equations involving matrices, since matrices don't support division directly. Not every matrix has an inverse — only square matrices with a nonzero determinant (called non-singular or invertible matrices) do.
Use this calculator to invert a 2×2 matrix when solving systems of linear equations (Ax = b becomes x = A⁻¹b), performing 2D linear transformations in graphics or engineering, or checking coursework in linear algebra. For larger matrices (3×3 and up), the same concept applies but the computation method (cofactor expansion, or row reduction) becomes considerably more involved than the direct 2×2 formula.
The formula
For a 2×2 matrix A = [[a₁₁, a₁₂], [a₂₁, a₂₂]], the inverse is:
A⁻¹ = (1 ÷ det(A)) × [[a₂₂, −a₁₂], [−a₂₁, a₁₁]]
where the determinant is det(A) = a₁₁ × a₂₂ − a₁₂ × a₂₁. Notice the pattern for a 2×2 inverse: swap the two diagonal entries (a₁₁ and a₂₂), negate the two off-diagonal entries (a₁₂ and a₂₁), then divide every entry by the determinant. If the determinant is 0, the matrix is called singular and has no inverse — dividing by zero is undefined, just as with ordinary numbers.
Worked example
Let A = [[4, 7], [2, 6]] — so a₁₁=4, a₁₂=7, a₂₁=2, a₂₂=6.
- Determinant: det(A) = (4 × 6) − (7 × 2) = 24 − 14 = 10
- Swap diagonal, negate off-diagonal: [[6, −7], [−2, 4]]
- Divide every entry by the determinant (10): A⁻¹ = [[0.6, −0.7], [−0.2, 0.4]]
The calculator displays: "Determinant = 10 | Inverse Matrix: [ 0.6 -0.7 ] [ -0.2 0.4 ]" — matching this by-hand calculation. You can verify this is correct by multiplying A × A⁻¹ and confirming the result is the identity matrix [[1,0],[0,1]].
Common mistakes / how to interpret
- Mixing up rows and columns when entering values. a₁₂ is the entry in row 1, column 2 — not row 2, column 1 (a₂₁). Swapping these two entries changes the matrix (unless it happens to be symmetric) and gives a different, incorrect inverse.
- Forgetting to check the determinant first. If det(A) = 0, there is no inverse — no amount of algebra will produce one, since it would require dividing by zero.
- Assuming this method extends directly to larger matrices. The "swap and negate" shortcut is specific to 2×2 matrices; 3×3 and larger matrices require cofactor expansion or Gaussian elimination, not this simple pattern.
- Not verifying the result. A quick check — multiplying your original matrix by the computed inverse and confirming you get the identity matrix — catches transcription errors before you rely on the result.
Frequently Asked Questions
What does it mean if a matrix has no inverse?
Why do you divide by the determinant?
Does this calculator work for 3×3 or larger matrices?
How can I check my inverse is correct?
Related linear algebra calculators
Common Tip Percentages
| Service | Typical Tip Range | Notes |
|---|---|---|
| Restaurant (sit-down) | 15–20% | 20%+ for exceptional service |
| Food delivery | 10–20% | Consider extra for long distances |
| Taxi / rideshare | 10–20% | More for assistance with luggage |
| Hotel housekeeping | $2–5/night | Leave daily, not just at checkout |
| Barber / hair salon | 15–20% | On pre-discount total |
| Pizza delivery | 10–15% or $3–5 minimum | Higher in bad weather |
General Household Budget Ratios (50/30/20 Rule)
| Category | % of Net Income | Examples |
|---|---|---|
| Needs | 50% | Rent, groceries, utilities, insurance |
| Wants | 30% | Dining out, entertainment, hobbies |
| Savings / Debt | 20% | Emergency fund, retirement, extra payments |
Common Measurement Conversions for Everyday Use
| Quantity | US / Imperial | Metric Equivalent |
|---|---|---|
| 1 cup | 8 fl oz | 237 mL |
| 1 pint | 16 fl oz | 473 mL |
| 1 quart | 32 fl oz | 946 mL |
| 1 gallon | 128 fl oz | 3.785 L |
| 1 lb | 16 oz | 453.6 g |
| 1 ft | 12 in | 30.48 cm |