...
Sign in
Computer Science

Matrix algebra

Matrix algebra

Share:

Matrix algebra

Introduction / Definition

Matrix algebra gives rules for adding, subtracting, scaling, and multiplying matrices. Addition is entry-by-entry, while multiplication combines rows and columns. Matrix multiplication is associative and distributive but generally not commutative. These operations are fundamental to linear systems and transformations.

Syntax / Mathematical Form

(A+B)ᵢⱼ=aᵢⱼ+bᵢⱼ; (AB)ᵢⱼ=Σₖaᵢₖbₖⱼ

Detailed Explanation

For AB, columns of A must equal rows of B. If A is m×n and B is n×p, AB is m×p. The entry in row i and column j is a row-column dot product.

Example

A = [ 1 2 ]
    [ 3 4 ], B = [ 5 6 ]
    [ 7 8 ]  
AB = [ 19 22 ]
     [ 43 50 ].

Output

AB = [ 19 22 ]
     [ 43 50 ].

Important Points / Notes

  • AB may differ from BA.
  • I is the identity matrix.
  • Associativity and distributivity hold.

Mini Practice Question

Calculate AB for A = [ 1 2 ] [ 0 1 ] and B = [ 2 1 ] [ 3 4 ].


CheckpointTest Yourself

Which standard property of real number arithmetic does NOT generally hold for matrix multiplication?

Lesson Milestone

Finished Reading This Lesson?

Mark this lesson complete. A chapter counts as done once all its lessons are, and that adds to your course progress.

TH

Written by

ThinkWisely Team

Have a Question or Suggestion?

We'd love to hear from you. Drop your thoughts below to help us improve ThinkWisely!