Skip to content
← All questions

How is matrix subtraction defined for matrices of the same dimensions?

Matrix subtraction is performed entrywise. Given two matrices of the same size, subtract the corresponding entry of the second matrix from the corresponding entry of the first matrix to get the result at that position.

Conditions

  • Both matrices must have identical dimensions.

Reasoning, step by step

  1. Ensure Matrix A and Matrix B have the same rows and columns.
  2. For each position (i,j), take entry A_ij.
  3. Subtract entry B_ij from A_ij.
  4. Place the difference in position (i,j) of the result matrix.
  5. Repeat for all positions.

Example

The video computes [[0, 1], [3, 2]] minus [[-1, 3], [0, 5]]. Position (1,1) is 0−(−1)=10 - (-1) = 1. Position (1,2) is 1−3=−21 - 3 = -2.

Common misconceptions

  • Trying to subtract matrices of different sizes.
  • Reversing the order of subtraction unintentionally (calculating B-A instead of A-B).

Watch the explanation

Connected concepts

Explore next

Related questions

Meet the concept

↗
Find a method

↗
Find a method

↗
Find a method

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.