...
Sign in
Computer Science

Matrix operations

Matrix operations

Share:

Matrix operations

Introduction / Definition

Matrix operations include addition, subtraction, scalar multiplication, and multiplication. Each has precise dimensional rules. Scalar multiplication changes every entry by the same factor. Matrix multiplication uses row-column products and can change the matrix dimensions.

Syntax / Mathematical Form

kA=[kaᵢⱼ]; A−B=[aᵢⱼ−bᵢⱼ]; AB=[Σₖaᵢₖbₖⱼ]

Detailed Explanation

Addition requires equal dimensions. For multiplication, the inner dimensions must agree. These rules make matrix algebra systematic and prevent invalid operations.

Example

A = [ 2 -1 ]
    [ 0 4  ]  
3A = [ 6 -3 ]
     [ 0 12 ].

Output

3A = [ 6 -3 ]
     [ 0 12 ].

Important Points / Notes

  • Check dimensions first.
  • Scalar multiplication is entry-wise.
  • Multiplication is not entry-wise.

Mini Practice Question

Find 2A for A = [ 1 3 ] [ -2 4 ].


CheckpointTest Yourself

What dimensional condition must be met for the matrix product $AB$ to be valid?

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!