Matrix operations — when can you add, multiply, find inverse? Conditions flowchart

medium CBSE JEE-MAIN 4 min read

Question

Given two matrices AA and BB, when can we add them, multiply them, and find their inverses? State all necessary conditions with examples.

(CBSE 12 + JEE Main — theory + MCQ)


Solution — Step by Step

A+BA + B is defined ONLY when AA and BB have the same order (same number of rows AND columns).

If AA is 2×32 \times 3 and BB is 2×32 \times 3: addition is possible, result is 2×32 \times 3.

If AA is 2×32 \times 3 and BB is 3×23 \times 2: addition is NOT possible.

ABAB is defined when the number of columns of AA equals the number of rows of BB.

If AA is m×nm \times n and BB is n×pn \times p: multiplication is possible, result is m×pm \times p.

If AA is 2×32 \times 3 and BB is 3×43 \times 4: ABAB exists and is 2×42 \times 4.

Note: ABAB may exist even when BABA does not. And even if both exist, generally ABBAAB \neq BA.

A1A^{-1} exists ONLY when:

  1. AA is a square matrix (n×nn \times n)
  2. A0|A| \neq 0 (determinant is non-zero, i.e., AA is non-singular)

If A=0|A| = 0, the matrix is singular and has no inverse.

Formula: A1=1Aadj(A)A^{-1} = \frac{1}{|A|} \cdot \text{adj}(A)

Let A=(2143)A = \begin{pmatrix} 2 & 1 \\ 4 & 3 \end{pmatrix}

A=2(3)1(4)=64=20|A| = 2(3) - 1(4) = 6 - 4 = 2 \neq 0, so inverse exists.

adj(A)=(3142)\text{adj}(A) = \begin{pmatrix} 3 & -1 \\ -4 & 2 \end{pmatrix}

A1=12(3142)=(3/21/221)A^{-1} = \frac{1}{2}\begin{pmatrix} 3 & -1 \\ -4 & 2 \end{pmatrix} = \begin{pmatrix} 3/2 & -1/2 \\ -2 & 1 \end{pmatrix}

flowchart TD
    A["Matrix Operation Required"] --> B{"Which operation?"}
    B -- Addition --> C{"Same order m×n?"}
    C -- Yes --> D["Add element-wise. Result: m×n"]
    C -- No --> E["NOT POSSIBLE"]
    B -- Multiplication AB --> F{"Cols of A = Rows of B?"}
    F -- Yes --> G["Multiply. Result: rows_A × cols_B"]
    F -- No --> E
    B -- Inverse --> H{"Is A square?"}
    H -- No --> E
    H -- Yes --> I{"Is det A ≠ 0?"}
    I -- Yes --> J["Inverse exists: adj(A)/det(A)"]
    I -- No --> K["Singular — no inverse"]

Why This Works

Matrix addition requires same dimensions because we add corresponding elements — if the matrices have different sizes, there is no “corresponding element” for every position.

Matrix multiplication requires columns of AA = rows of BB because each entry of ABAB is computed as a dot product of a row of AA with a column of BB. These vectors must have the same length for the dot product to work.

The inverse exists only for square, non-singular matrices because inverting means “undoing” the transformation. A singular matrix squishes space into a lower dimension (determinant = 0), losing information — there is no way to undo that.


Alternative Method

For 2×22 \times 2 matrices, there is a shortcut for the inverse. For A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}: swap aa and dd, negate bb and cc, divide by (adbc)(ad - bc). Result: A1=1adbc(dbca)A^{-1} = \frac{1}{ad-bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}. This is faster than computing adj(A)(A) separately.


Common Mistake

Students assume that if ABAB exists, then BABA also exists. This is false. If AA is 2×32 \times 3 and BB is 3×53 \times 5, then ABAB is 2×52 \times 5 but BABA requires 5 columns in BB to match 2 rows of AA — which fails since BB has 3 rows, not 2. Always check dimensions before multiplying.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →