1. Read the shape before calculating
A matrix is a rectangular array of entries. Its order is rows × columns. A 2 × 3 matrix has two horizontal rows and three vertical columns. Entry aij is in row i and column j; the first subscript tells you which row.
For a product Am×nBn×p, the inner dimensions must match. The result has the outer dimensions m × p. This checks whether a product exists before you do any arithmetic.
Example: a 2 × 3 matrix can multiply a 3 × 4 matrix to give a 2 × 4 result. Reversing the order would require multiplying 3 × 4 by 2 × 3; the inner 4 and 2 do not match, so that reversed product is undefined.
2. Add entry by entry; multiply row by column
Addition and subtraction require the same matrix dimensions. Combine entries in matching positions. Scalar multiplication means multiplying every entry by the same number. Matrix multiplication is different: each result entry is a row-column dot product, not a position-by-position multiplication.
Use A =
and B = 1 2 0 1
. The top-left entry of AB is (1 × 1) + (2 × 3) = 7. The top-right entry is (1 × 0) + (2 × 1) = 2.1 0 3 1
| 7 | 2 |
| 3 | 1 |
| 1 | 2 |
| 3 | 7 |
The remaining entries of AB are (0 × 1) + (1 × 3) = 3 and (0 × 0) + (1 × 1) = 1. For BA, the four entries in row order are 1(1) + 0(0) = 1, 1(2) + 0(1) = 2, 3(1) + 1(0) = 3, and 3(2) + 1(1) = 7.
Both products are defined, but they are different. In general, AB ≠ BA. Keep the order of factors when rearranging matrix equations.
Small dot-product check: row [2, −1] times column [3, 4]T gives 2(3) + (−1)(4) = 2. Include the minus sign in the multiplication before adding.
3. Determinants and trace answer different questions
A determinant is defined for a square matrix. For a 2 × 2 matrix:
| a | b |
| c | d |
With A =
, det(A) = 2(1) − 1(1) = 1. This nonzero determinant means A has an inverse. For 2 1 1 1
, the determinant is 1(4) − 2(2) = 0, so the matrix is singular and has no ordinary inverse.1 2 2 4
For a 3 × 3 matrix
, expansion along the first row gives a(ei − fh) − b(di − fg) + c(dh − eg). Notice the alternating +, −, + signs. Do not use the 2 × 2 shortcut on a larger matrix.a b c d e f g h i
The trace of a square matrix is the sum of its main diagonal entries. For diagonal entries 4, 0, and −12, tr(M) = 4 + 0 − 12 = −8. Trace is not the determinant. It does not by itself tell you whether a matrix is invertible or prove that a proposed list of eigenvalues is correct.
4. Use an inverse to undo a transformation
The identity matrix I has ones on its main diagonal and zeros elsewhere. Multiplying by an identity matrix of the appropriate size leaves A unchanged. For a square matrix, AI = IA = A. An inverse A−1 satisfies AA−1 = A−1A = I.
| d | −b |
| −c | a |
The formula is valid only when ad − bc ≠ 0. Swap a and d, change the signs of b and c, then divide the entire matrix by the determinant. For our A =
, the determinant is 1 and A−1 = 2 1 1 1
.1 −1 −1 2
Verify it: the top row of AA−1 is [2(1) + 1(−1), 2(−1) + 1(2)] = [1, 0]. The second row is [1(1) + 1(−1), 1(−1) + 1(2)] = [0, 1]. The result is the identity.
Turn two equations into AX = B
For 2x + y = 5 and x + y = 3:
| 2 | 1 |
| 1 | 1 |
| x |
| y |
| 5 |
| 3 |
Left-multiply by A−1: X = A−1B = [5 − 3, −5 + 6]T = [2, 1]T. Substitution checks the answer: 2(2) + 1 = 5 and 2 + 1 = 3. A zero determinant would mean this inverse method is unavailable; the original system would need further analysis for consistency and the number of solutions.
Engineering example: two mesh currents
Two clockwise mesh currents share a 2 Ω resistor. Each loop also has its own 4 Ω resistor and a driving voltage rise of 10 V or 4 V, respectively. Kirchhoff’s Voltage Law gives 6I₁ − 2I₂ = 10 and −2I₁ + 6I₂ = 4. The negative coefficients account for opposing currents in the shared resistor.
| 6 | −2 |
| −2 | 6 |
| I₁ |
| I₂ |
| 10 |
| 4 |
det(A) = 6(6) − (−2)(−2) = 32. Applying the inverse gives I₁ = (6 × 10 + 2 × 4)/32 = 2.125 A and I₂ = (2 × 10 + 6 × 4)/32 = 1.375 A. The shared resistor carries 2.125 − 1.375 = 0.75 A in the direction of the first mesh current.
Check both equations: 6(2.125) − 2(1.375) = 12.75 − 2.75 = 10 V; −2(2.125) + 6(1.375) = −4.25 + 8.25 = 4 V.
5. Connect Cartesian coordinates, j, and a matrix
Write a point (x, y) as a column vector [x, y]T. The complex number x + jy represents the same coordinates on the complex plane, where j² = −1. Multiplying by j gives j(x + jy) = −y + jx. Therefore, (x, y) becomes (−y, x): a 90° counterclockwise rotation.
| 0 | −1 |
| 1 | 0 |
| 2 |
| 1 |
| −1 |
| 2 |
The columns of R show where the unit basis vectors go: (1, 0) goes to (0, 1), and (0, 1) goes to (−1, 0). Its determinant is 1, so area is preserved and orientation is not reversed. A determinant of −1 would indicate an orientation reversal as well as area preservation in magnitude. The determinant alone does not tell you the rotation angle.
Common mistakes to catch early
- Ignoring dimensions: write each matrix’s order before multiplying.
- Changing the order: AB and BA need not be equal or even both defined.
- Dropping a sign: include negative entries in each product before summing.
- Using an inverse when det(A) = 0: check invertibility first.
- Confusing trace and determinant: trace is a diagonal sum; a determinant uses a different operation.
How to check your answer
Check the dimensions first, then recalculate one entry independently. For an inverse, multiply by the original matrix and look for the identity. For simultaneous equations, substitute every unknown into the original equations. Keep fractions exact until the final step to avoid rounding errors.
Frequently asked questions
Can a rectangular matrix have a determinant?
No. The ordinary determinant is defined only for square matrices.
Does a zero determinant mean there is no solution?
Not necessarily. A square singular system may have no solution or infinitely many solutions. Check the original equations for consistency.
Is the inverse found by taking the reciprocal of each entry?
No. Matrix inversion is a different operation. Verify the result by multiplying the matrices to obtain the identity.
Can I use my calculator to solve AX = B?
Yes, if it supports the required matrix size. Enter coefficients in the correct order, check the signs, and substitute the results back into the equations. For an actual examination, follow the applicable calculator rules.
References and scope
This lesson uses original numerical examples and questions. For foundational textbook reading, see OpenStax Matrices and Matrix Operations and Solving Systems with Inverses. This is an introductory study resource, not a complete linear-algebra course or an official examination syllabus.
