0% found this document useful (0 votes)
4 views2 pages

Matrix_Addition_Multiplication_Rules

Uploaded by

Venky T
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Matrix_Addition_Multiplication_Rules

Uploaded by

Venky T
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Matrix Addition and Matrix 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:

Given two matrices:


A = [1 2]
[3 4]
B = [5 6]
[7 8]
The sum of the matrices is:
A + B = [6 8]
[10 12]

2. Matrix Multiplication (Dot Product)


Rule: Two matrices can be multiplied if the number of columns in the first matrix is equal to
the number of rows in the second matrix.
If matrix A has dimensions m × n (rows × columns) and matrix B has dimensions n × p, then
the resulting matrix C will have dimensions m × p.

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]

You might also like