06.09.2021 Views

A First Course in Linear Algebra, 2017a

A First Course in Linear Algebra, 2017a

A First Course in Linear Algebra, 2017a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

62 Matrices<br />

will satisfy the equation AX = B only when the entries x 1 ,x 2 ,···,x n of the vector X are solutions to the<br />

orig<strong>in</strong>al system.<br />

Now that we have exam<strong>in</strong>ed how to multiply a matrix by a vector, we wish to consider the case where<br />

we multiply two matrices of more general sizes, although these sizes still need to be appropriate as we will<br />

see. For example, <strong>in</strong> Example 2.14, we multiplied a 3 × 4matrixbya4× 1 vector. We want to <strong>in</strong>vestigate<br />

how to multiply other sizes of matrices.<br />

We have not yet given any conditions on when matrix multiplication is possible! For matrices A and<br />

B, <strong>in</strong> order to form the product AB, the number of columns of A must equal the number of rows of B.<br />

Consider a product AB where A has size m × n and B has size n × p. Then, the product <strong>in</strong> terms of size of<br />

matrices is given by<br />

these must match!<br />

(m × n)(n ̂ × p )=m × p<br />

Note the two outside numbers give the size of the product. One of the most important rules regard<strong>in</strong>g<br />

matrix multiplication is the follow<strong>in</strong>g. If the two middle numbers don’t match, you can’t multiply the<br />

matrices!<br />

When the number of columns of A equals the number of rows of B the two matrices are said to be<br />

conformable and the product AB is obta<strong>in</strong>ed as follows.<br />

Def<strong>in</strong>ition 2.16: Multiplication of Two Matrices<br />

Let A be an m × n matrix and let B be an n × p matrix of the form<br />

B =[B 1 ···B p ]<br />

where B 1 ,...,B p are the n × 1 columns of B. Then the m × p matrix AB is def<strong>in</strong>ed as follows:<br />

AB = A[B 1 ···B p ]=[(AB) 1 ···(AB) p ]<br />

where (AB) k is an m × 1 matrix or column vector which gives the k th column of AB.<br />

Consider the follow<strong>in</strong>g example.<br />

Example 2.17: Multiply<strong>in</strong>g Two Matrices<br />

F<strong>in</strong>d AB if possible.<br />

A =<br />

[ 1 2 1<br />

0 2 1<br />

⎡<br />

]<br />

,B = ⎣<br />

1 2 0<br />

0 3 1<br />

−2 1 1<br />

⎤<br />

⎦<br />

Solution. The first th<strong>in</strong>g you need to verify when calculat<strong>in</strong>g a product is whether the multiplication is<br />

possible. The first matrix has size 2 × 3 and the second matrix has size 3 × 3. The <strong>in</strong>side numbers are<br />

equal, so A and B are conformable matrices. Accord<strong>in</strong>g to the above discussion AB will be a 2 × 3matrix.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!