Matrix_Addition_Multiplication_Rules
Matrix_Addition_Multiplication_Rules
1. Matrix Addition
Rule: Two matrices can be added if and only if they have the same dimensions (i.e., same
number of rows and columns).
Element-wise addition: Each element in the resulting matrix is the sum of corresponding
elements from the two matrices.
Example:
How to Multiply:
Each element of the resulting matrix is computed by taking the dot product of a row from
the first matrix and a column from the second matrix. This involves multiplying the
corresponding elements and summing them.
Example:
Given matrices:
A = [1 2]
[3 4],
B = [5 6]
[7 8]
Their product is calculated as follows:
First row, first column: (1 × 5) + (2 × 7) = 19
First row, second column: (1 × 6) + (2 × 8) = 22
Second row, first column: (3 × 5) + (4 × 7) = 43
Second row, second column: (3 × 6) + (4 × 8) = 50
Resulting matrix: A × B = [19 22]
[43 50]