Matrix Multiplication Handout, Schemes and Mind Maps of Linear Algebra

The definitions and properties of matrix multiplication. It defines the dot product of two vectors and the product of two matrices. It also explains the conditions for matrix multiplication and provides an example. useful for students studying linear algebra or matrix theory.

Typology: Schemes and Mind Maps

2022/2023

Uploaded on 03/14/2023

ekaksha
ekaksha 🇺🇸

4.4

(30)

268 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Math 327
Matrix Multiplication Handout
Definitions:
Given two n-dimensional vectors in Rn,~a =
a1
a2
.
.
.
an
and ~
b=
b1
b2
.
.
.
bn
, the dot product (or inner pro duct) of
~a and ~
b,~a ·~
b=a1b1+a2b2+···+anbn=
n
X
i=1
aibi
Notice that the dot product of two vectors is always a scalar.
Example: Let ~a =
1
3
4
and ~
b=
2
1
0
.
Then ~a ·~
b= (1)(2) + (3)(1) + (4)(0) = 23 + 0 = 5.
Suppose that A= [aij ] is an m×pmatrix and B= [bij ] is a p×nmatrix. Then the product of Aand B, written AB
is the m×nmatrix C= [cij] defined by: cij =ai1b1j+ai2b2j+···aipbpj =
p
X
k=1
aikbkj .
Note: In order to multiply two matrices, the matrices must be of appropriate sizes relative to one another. More
specifically, the number of columns in the first matrix must be that same as the number of rows in the second matrix.
This definition may seem a bit strange, but here is an illustration of how it works:
a11 a12 ··· a1p
.
.
..
.
.··· .
.
.
ai1ai2··· aip
.
.
..
.
.··· .
.
.
am1am2··· amp
b11 b12 ··· b1j··· b1n
b21 b22 ··· b2j··· b2n
.
.
..
.
..
.
..
.
.
.
.
..
.
..
.
..
.
.
bp1bp2··· bpj ··· bpn
=
c11 c12 ··· c1n
.
.
..
.
.
cij
.
.
..
.
.
cm1ac2··· cmn
Notice that cij = [rowi(A)]T·[columnj(B)] =
p
X
k=i
aikbkj .
Example 1: Let
A=
21 3
4 0 5
162
B=
4 0
2 5
61
.
Find AB (Notice that the (2,1) entry of AB is found by computing [row2(A)]T·[column1(B)])
Notice that BA is undefined.
pf2

Partial preview of the text

Download Matrix Multiplication Handout and more Schemes and Mind Maps Linear Algebra in PDF only on Docsity!

Math 327

Matrix Multiplication Handout

Definitions:

  • Given two n-dimensional vectors in R

n , ~a =

a 1

a 2

. . .

an

and

b =

b 1

b 2

. . .

bn

, the dot product (or inner product) of

~a and ~b, ~a · ~b = a 1 b 1 + a 2 b 2 + · · · + anbn =

n ∑

i=

aibi

Notice that the dot product of two vectors is always a scalar.

Example: Let ~a =

 (^) and ~b =

Then ~a ·

b = (−1)(2) + (3)(−1) + (4)(0) = − 2 − 3 + 0 = −5.

  • Suppose that A = [aij ] is an m × p matrix and B = [bij ] is a p × n matrix. Then the product of A and B, written AB

is the m × n matrix C = [cij ] defined by: cij = ai 1 b 1 j + ai 2 b 2 j + · · · aipbpj =

p ∑

k=

aikbkj.

Note: In order to multiply two matrices, the matrices must be of appropriate sizes relative to one another. More

specifically, the number of columns in the first matrix must be that same as the number of rows in the second matrix.

This definition may seem a bit strange, but here is an illustration of how it works:

a 11 a 12 · · · a 1 p

. . .

ai 1 ai 2 · · · aip

. . .

am 1 am 2 · · · amp

b 11 b 12 · · · b 1 j · · · b 1 n

b 21 b 22 · · · b 2 j · · · b 2 n

. . .

bp 1 bp 2 · · · bpj · · · bpn

c 11 c 12 · · · c 1 n

. . .

cij

cm 1 ac 2 · · · cmn

Notice that cij = [rowi(A)]

T · [columnj (B)] =

p ∑

k=i

aikbkj.

Example 1: Let

A =

 B =

Find AB (Notice that the (2,1) entry of AB is found by computing [row 2 (A)]

T · [column 1 (B)])

Notice that BA is undefined.

Example 2: Let

A =

[

]

B =

[

]

Find AB = Find BA =

Notice that AB 6 = BA.

Representing Linear Systems Using Matrices:

Consider the linear system given by: a 11 x 1 +^ a 12 x 2 +^ · · ·^ +^ a 1 nxn =^ b 1

a 21 x 1 + a 22 x 2 + · · · + a 2 nxn = b 2

. . .

am 1 x 1 + am 2 x 2 + · · · + amnxn = bm

If we define

A =

a 11 a 12 · · · a 1 n

a 21 a 22 · · · a 2 n

. . .

am 1 am 2 · · · amn

, x =

x 1

x 2

. . .

xn

, b =

b 1

b 2

. . .

bm

Then A~x =

b represents the given system of linear equations.

  • We call A the coefficient matrix of the linear system.
  • We can also adjoin the column b to the matrix A to obtain the augmented matrix for the linear system, [A|b]

Example: Given the system: x^ −^2 y^ + 3z^ = 0

− 3 x + y − z = − 2

2 x + y − 3 z = 1

The matrix representation is: While the augmented matrix is: