Skip to content

Lecture One: Matrices Basic Definitions and Operations

Basic Definitions

  • Matrix: A matrix is a rectangular array of numbers (entries) arranged in rows and columns.

  • Order: The order of a matrix is given as m×n, where m is the number of rows and n is the number of columns.

  • Element: The element in row i and column j of a matrix is denoted as aij and it's called the (i,j)th entry of the matrix A.

  • Main Diagonal: The main diagonal of any matrix is the set of entries aij where i=j.

Special Types of Matrices

  1. Row Matrix: A row matrix has 1 row and n columns. Example:
A=[123]
  1. Column Matrix: A column matrix has m rows and 1 column. Example:
A=[123]
  1. Square Matrix: A square matrix has the same number of rows and columns, i.e., m=n. Examples:
A2×2=[1234]B3×3=[123456789]
  1. Identity Matrix: The identity matrix I is a square matrix where all diagonal elements are 1, and all other elements are 0. Examples:
I2=[1001]I3=[100010001]
  1. Zero Matrix: The zero matrix O has all its entries as 0. Examples:
A1×3=[000]B2×2=[0000]

Matrix Algebra: Addition, Subtraction, and Scalar Multiplication

  1. Matrix Addition: The matrix sum A+B is obtained by adding corresponding entries of A and B.

    NOTE

    Matrix addition is only possible if the matrices have the same order.

    Example 1: Find A+B:

A=[0352],B=[13145]A+B=[0+133+1542+5]A+B=[13217]
  1. Matrix Subtraction: The matrix difference AB is obtained by subtracting corresponding entries of B from A.

    Example 2: Find PQ:

P=[4201037]Q=[422836]PQ=[4+42+2021+803376]PQ=[8029331]
  1. Scalar Multiplication: The scalar multiplication of A by k is obtained by multiplying each entry of A by k.

    Example 3: Find 12A:

A=[44012628182]12A=12[44012628182]12A=[220631491]

Matrix Multiplication

  1. Matrix Product: The product AB of matrices A and B is defined if the number of columns of A equals the number of rows of B. The resulting matrix will have the order m×p.

TIP

If you are on mobile swip to the left to see the full euqation or enable desktop mode

Example 4: Find AB:

A=[120801246],B=[301234]AB=[1(3)+2(1)+0(3)1(0)+2(2)+0(4) 8(3)+0(1)+1(3)8(0)+0(2)+1(4) 2(3)+4(1)+6(3)2(0)+4(2)+6(4)]AB=[3+2+00+4+024+0+30+0+46+4+180+8+24]AB=[542742832]
  1. Non-commutativity: In general, matrix multiplication is not commutative, i.e., ABBA.

    Example 5: Show that ABBA for the matrices:

A=[0352],B=[1002]

First AB,

AB=[0(1)+3(0)0(0)+3(2)5(1)+2(0)5(0)+2(2)]AB=[0654]

Next BA,

BA=[1(0)+0(5)1(3)+0(2)0(0)+2(5)0(3)+2(2)]BA=[03104]

Hence,

[0654][03104], ABBA

Matrix Transpose

  1. Transpose: The transpose AT of a matrix A is obtained by swapping the rows and columns of A. If A is of order m×n, then AT will be of order n×m.

    Example 6: Find AT:

A=[3705946],AT=[3579046]

NOTE

A square matrix A can be multiplied by itself any number of times, giving the nth power of A.

A2=AA,A3=AAA

Basic Properties of Matrices

  1. Commutativity of Addition:A+B=B+A
  2. Associativity of Addition:(A+B)+C=A+(B+C)
  3. Distributivity of Scalar Multiplication:k(A+B)=kA+kB
  4. Transposition Properties:(A+B)T=AT+BT(AT)T=A(kA)T=kAT
  5. Matrix Multiplication:A(BC)=(AB)CA(B+C)=AB+AC
  6. Transposition of a Product:(AB)T=BTAT
  7. Power of a Matrix:AmAn=Am+n=AnAm

Important Special Properties

  • A+O=O+A=A, where O is the zero matrix.
  • AI=1×A=A, where I is the identity matrix.
  • AO=0×A=O, where O is the zero matrix.

Thus, the identity and zero matrices behave like the numbers 1 and 0 respectively in ordinary arithmetic and algebra.

Example 7

Show that A2=pA+qI2, then write A3 in the form A3=gA+hI2. Find the values of p, q, g, h.

Given:

A=[25116]

First, compute A2:

A2=[25116][25116]A2=[2(2)+5(1)2(5)+5(16)1(2)+16(1)1(5)+16(16)]A2=[99018261]pA=p[25116],pA=[2p5pp16p]qI2=q[1001],qI2=[q00q]

Then, solve for p and q using the equation:

A2=pA+qI2pA+qI2=[2p5pp16p]+[q00q]=[2p+q5pp16p+q]

Equating the 2 matrices gives,

[2p+q5pp16p+q]=[99018261]

This immediately gives p=18; substituting this into one of the other equations involving q gives:

2p+q=9,2(18)+q=9,q=936,q=27

Next, compute A3:

A3=AA2A(pA+qI) (substitute A2 with pA+qI)A(18A27I) (substitute p and q with 18 and -27)18A227A (substitute A2 with pA+qI)18(pA+qI)27A18(18A27I)27A( p=18, q=27)324A486I227AA3=297A486Ip=18,q=27g=297,h=486