- Result
- 6 8 10 12
Detailed breakdown
| Column 1 | Column 2 |
|---|---|
| 6 | 8 |
| 10 | 12 |
How it works

A power is repeated matrix multiplication
For A = [[1,1],[0,1]], A² is [[1,2],[0,1]], not [[1,1],[0,1]]. Matrix powers multiply rows by columns; they do not square each entry independently. Check this distinction before using powers to repeat a transformation.
How does an off-diagonal term change when a matrix is squared?
- Matrix A
- [[1, 2], [0, 1]]

| Matrix entry | Calculation | Squared matrix entry |
|---|---|---|
| A a₁₁ | 1 × 1 + 2 × 0 | 1 |
| B a₁₂ | 1 × 2 + 2 × 1 | 4 |
Checking matrix dimensions before an operation
Matrix operations have different dimension requirements. Addition needs matching shapes, while multiplication matches the first matrix's column count with the second matrix's row count. Reversing multiplication can change the result or make the operation undefined. For an inverse or determinant, review the square-matrix requirements and singularity limitations. Check row order and separators when entering the values.
Match matrix dimensions to the selected operation
Enter one row per line, separating entries with spaces or commas. Every row in a matrix must have the same number of entries. Addition and subtraction require equal dimensions; multiplication requires columns of A to equal rows of B.
Transpose exchanges rows and columns. Determinant, inverse and an integer matrix power require a square matrix. Scalar multiplication multiplies every entry by one number. Matrix B is used only when the selected operation needs it.
Multiply rows by columns rather than matching individual entries
Let A have rows 2,1 and 0,3, and B have rows 4,−1 and 2,5. The top-left entry of AB is 2×4+1×2=10. The top-right is 2×(−1)+1×5=3. The resulting rows are 10,3 and 6,15.
| Output entry | Dot product | Value |
|---|---|---|
| Row 1, column 1 | 2×4 + 1×2 | 10 |
| Row 1, column 2 | 2×(−1) + 1×5 | 3 |
| Row 2, column 1 | 0×4 + 3×2 | 6 |
| Row 2, column 2 | 0×(−1) + 3×5 | 15 |
Check inverses and powers with the identity matrix
A square matrix with determinant zero is singular and has no inverse. For the example A, determinant is 2×3−1×0=6, so it is invertible. Multiplying A by its inverse should give the identity matrix, within numerical precision.
A² means A multiplied by A, not squaring each individual entry. For a square matrix, the zero power returns the identity. The supported power input is a nonnegative integer; use Inverse for an inverse operation.
Preserve order and inspect numerical sensitivity
In general AB and BA differ, and one product can be defined while the other is not. For example, a 2×3 matrix times a 3×4 matrix gives a 2×4 result; reversing them fails the inner-dimension check.
Matrices here are numerical and limited to 10×10. A nearly singular matrix can make an inverse sensitive to small entry changes. A long decimal output is not proof that an ill-conditioned measurement problem has a reliable solution.
Matrix operation: formula and assumptions
Matrix multiplication uses row-by-column dot products. Inversion requires a nonsingular square matrix.
Matrices are limited to 10 × 10. Matrix B is used only for addition, subtraction, and multiplication.
Worked example
Using the Matrix operation example:
- Operation
- A + B
- Matrix A
- 1, 2 3, 4
- Matrix B
- 5, 6 7, 8
Matrix multiplication uses row-by-column dot products. Inversion requires a nonsingular square matrix.
Example result
Result: 6 8 10 12
These are illustrative inputs. Change the values to explore a different scenario.
Formula references
References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.
Common questions
When can two matrices be multiplied?
The number of columns in A must equal the number of rows in B. The result uses row-by-column dot products.
Which matrices have an inverse?
A matrix must be square and nonsingular. A zero determinant means no inverse exists, while nearly singular matrices can be numerically sensitive.
Why can I not add a 2×3 matrix to a 3×2 matrix?
Addition pairs corresponding entries, so both row counts and column counts must match exactly.
What size is the result of a 2×3 times a 3×4 matrix?
It is 2×4. The matching inner dimensions are summed over; the outer dimensions determine the result.
Is matrix multiplication performed entry by entry?
No. Each output entry is a row-by-column dot product. Entrywise multiplication is a different operation.
Can I transpose a rectangular matrix?
Yes. Transpose exchanges rows and columns and does not require a square matrix. A 2×3 matrix becomes a 3×2 matrix.
See our methodology and editorial policy.
