<< Chapter < Page Chapter >> Page >

We proceed the same way to obtain the second row of A B . In other words, row 2 of A times column 1 of B ; row 2 of A times column 2 of B ; row 2 of A times column 3 of B . When complete, the product matrix will be

A B = [ a 11 b 11 + a 12 b 21 + a 13 b 31 a 21 b 11 + a 22 b 21 + a 23 b 31 a 11 b 12 + a 12 b 22 + a 13 b 32 a 21 b 12 + a 22 b 22 + a 23 b 32 a 11 b 13 + a 12 b 23 + a 13 b 33 a 21 b 13 + a 22 b 23 + a 23 b 33 ]

Properties of matrix multiplication

For the matrices A , B , and C the following properties hold.

  • Matrix multiplication is associative: ( A B ) C = A ( B C ) .
  • Matrix multiplication is distributive: C ( A + B ) = C A + C B , ( A + B ) C = A C + B C .

Note that matrix multiplication is not commutative.

Multiplying two matrices

Multiply matrix A and matrix B .

A = [ 1 2 3 4 ]   and   B = [ 5 6 7 8 ]

First, we check the dimensions of the matrices. Matrix A has dimensions 2 × 2 and matrix B has dimensions 2 × 2. The inner dimensions are the same so we can perform the multiplication. The product will have the dimensions 2 × 2.

We perform the operations outlined previously.

Got questions? Get instant answers now!
Got questions? Get instant answers now!

Multiplying two matrices

Given A and B :

  1. Find A B .
  2. Find B A .
A = [ −1 2 3 4 0 5 ]  and   B = [ 5 −4 2 −1 0 3 ]
  1. As the dimensions of A are 2 × 3 and the dimensions of B are 3 × 2 , these matrices can be multiplied together because the number of columns in A matches the number of rows in B . The resulting product will be a 2 × 2 matrix, the number of rows in A by the number of columns in B .
    A B = [ −1 2 3 4 0 5 ]     [ 5 −1 4 0 2 3 ]       = [ −1 ( 5 ) + 2 ( −4 ) + 3 ( 2 ) −1 ( −1 ) + 2 ( 0 ) + 3 ( 3 ) 4 ( 5 ) + 0 ( −4 ) + 5 ( 2 ) 4 ( −1 ) + 0 ( 0 ) + 5 ( 3 ) ]       = [ −7 10 30 11 ]
  2. The dimensions of B are 3 × 2 and the dimensions of A are 2 × 3. The inner dimensions match so the product is defined and will be a 3 × 3 matrix.
    B A = [ 5 −1 −4 0 2 3 ]     [ −1 2 3 4 0 5 ]       = [ 5 ( −1 ) + −1 ( 4 ) 5 ( 2 ) + −1 ( 0 ) 5 ( 3 ) + −1 ( 5 ) −4 ( −1 ) + 0 ( 4 ) −4 ( 2 ) + 0 ( 0 ) −4 ( 3 ) + 0 ( 5 ) 2 ( −1 ) + 3 ( 4 ) 2 ( 2 ) + 3 ( 0 ) 2 ( 3 ) + 3 ( 5 ) ]       = [ −9 10 10 4 −8 −12 10 4 21 ]
Got questions? Get instant answers now!
Got questions? Get instant answers now!

Is it possible for AB to be defined but not BA ?

Yes, consider a matrix A with dimension 3 × 4 and matrix B with dimension 4 × 2. For the product AB the inner dimensions are 4 and the product is defined, but for the product BA the inner dimensions are 2 and 3 so the product is undefined.

Using matrices in real-world problems

Let’s return to the problem presented at the opening of this section. We have [link] , representing the equipment needs of two soccer teams.

Wildcats Mud Cats
Goals 6 10
Balls 30 24
Jerseys 14 20

We are also given the prices of the equipment, as shown in [link] .

Goal $300
Ball $10
Jersey $30

We will convert the data to matrices. Thus, the equipment need matrix is written as

E = [ 6 30 14 10 24 20 ]

The cost matrix is written as

C = [ 300 10 30 ]

We perform matrix multiplication to obtain costs for the equipment.

C E = [ 300 10 30 ] [ 6 10 30 24 14 20 ]       = [ 300 ( 6 ) + 10 ( 30 ) + 30 ( 14 ) 300 ( 10 ) + 10 ( 24 ) + 30 ( 20 ) ]       = [ 2,520 3,840 ]

The total cost for equipment for the Wildcats is $2,520, and the total cost for equipment for the Mud Cats is $3,840.

Got questions? Get instant answers now!
Got questions? Get instant answers now!

Given a matrix operation, evaluate using a calculator.

  1. Save each matrix as a matrix variable [ A ] , [ B ] , [ C ] , ...
  2. Enter the operation into the calculator, calling up each matrix variable as needed.
  3. If the operation is defined, the calculator will present the solution matrix; if the operation is undefined, it will display an error message.

Questions & Answers

A golfer on a fairway is 70 m away from the green, which sits below the level of the fairway by 20 m. If the golfer hits the ball at an angle of 40° with an initial speed of 20 m/s, how close to the green does she come?
Aislinn Reply
cm
tijani
what is titration
John Reply
what is physics
Siyaka Reply
A mouse of mass 200 g falls 100 m down a vertical mine shaft and lands at the bottom with a speed of 8.0 m/s. During its fall, how much work is done on the mouse by air resistance
Jude Reply
Can you compute that for me. Ty
Jude
what is the dimension formula of energy?
David Reply
what is viscosity?
David
what is inorganic
emma Reply
what is chemistry
Youesf Reply
what is inorganic
emma
Chemistry is a branch of science that deals with the study of matter,it composition,it structure and the changes it undergoes
Adjei
please, I'm a physics student and I need help in physics
Adjanou
chemistry could also be understood like the sexual attraction/repulsion of the male and female elements. the reaction varies depending on the energy differences of each given gender. + masculine -female.
Pedro
A ball is thrown straight up.it passes a 2.0m high window 7.50 m off the ground on it path up and takes 1.30 s to go past the window.what was the ball initial velocity
Krampah Reply
2. A sled plus passenger with total mass 50 kg is pulled 20 m across the snow (0.20) at constant velocity by a force directed 25° above the horizontal. Calculate (a) the work of the applied force, (b) the work of friction, and (c) the total work.
Sahid Reply
you have been hired as an espert witness in a court case involving an automobile accident. the accident involved car A of mass 1500kg which crashed into stationary car B of mass 1100kg. the driver of car A applied his brakes 15 m before he skidded and crashed into car B. after the collision, car A s
Samuel Reply
can someone explain to me, an ignorant high school student, why the trend of the graph doesn't follow the fact that the higher frequency a sound wave is, the more power it is, hence, making me think the phons output would follow this general trend?
Joseph Reply
Nevermind i just realied that the graph is the phons output for a person with normal hearing and not just the phons output of the sound waves power, I should read the entire thing next time
Joseph
Follow up question, does anyone know where I can find a graph that accuretly depicts the actual relative "power" output of sound over its frequency instead of just humans hearing
Joseph
"Generation of electrical energy from sound energy | IEEE Conference Publication | IEEE Xplore" ***ieeexplore.ieee.org/document/7150687?reload=true
Ryan
what's motion
Maurice Reply
what are the types of wave
Maurice
answer
Magreth
progressive wave
Magreth
hello friend how are you
Muhammad Reply
fine, how about you?
Mohammed
hi
Mujahid
A string is 3.00 m long with a mass of 5.00 g. The string is held taut with a tension of 500.00 N applied to the string. A pulse is sent down the string. How long does it take the pulse to travel the 3.00 m of the string?
yasuo Reply
Who can show me the full solution in this problem?
Reofrir Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply
Practice Key Terms 5

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Precalculus. OpenStax CNX. Jan 19, 2016 Download for free at https://legacy.cnx.org/content/col11667/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Precalculus' conversation and receive update notifications?

Ask