ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

How to Multiply Matrices in Math

Updated on March 28, 2013
Source

What is a Matrix?

A Matrix is a set of numbers. More specifically a rectangular array of elements. A matrix (one) or matrices (multiple) are organized in rows and columns surrounded by box brackets or parenthesis. Matrices have many purposes in higher level math and physics. Linear systems of equations, transformations, and linear combinations are just some ways in which matrices are used.


These elements can be numbers or variables. We can also notate the variable with a variable with two subscripts separated by a comma to notate the place that it is in. This is common notation in textbooks but can be extremely confusing for most students learning about this concept.

Multiplying Matrices Sizes

There is one very important rule about multiplying matrices. The number of columns in the first matrix must match the number of row in the second matrix.

row by column

2by3 x 3by4 YES!

2by3 x 4by3 NO!


We are going to start with an example that has a 2 by 2 matrix times a 2 by 1 matrix.

The first matrix has 2 columns and the second one has 2 rows, we are able to multiple these matrices.

The new size of the multiplied matrix is the first matrix's row by the second matrix's columns. So the new size is a 2 by 1.



Source
Source
Source

Steps to Multiply Matrices

We multiply matrices go left to right across the first matrix and top to bottom on the second matrix.

There will be two rows in the final matrix.

We multiply one element time one element and add the products together. In this example let's look at one row at a time.

The first row is 1 time 5 plus 2 times 6

5 plus 12

Equals 17

The second row is 3 times 5 plus 4 times 6.

15 plus 24

Equals 39

Source
Source

Multiply 2 by 2 Matrix

This 2 by 2 matrix multiplication will start being a 2 by 2 and end being a 2 by 2. Let's see how this happens.


Remember left to right and top to bottom

Row 1 by column 1, Row 1 by column 2

Row 2 by column 1, Row 2 by column 2


1 times 5 plus 2 times 7 , 1 times 6 plus 2 times 8

3 times 5 plus 4 times 7, 3 times 6 plus 4 times 8



Multiplying Two Matrices

The last examples I am going to show is a 2 by 3 and a 3 by 1.

Remember the rule across left to right in the first matrix and top to bottom in the second matrix.


This matrix ends up being a 2 by 1 matrix.

Many of the term combine in these two matrices in order to create the final matrix.


More Multiplying Matrices Examples

Matrix Multiplication Limits

Matrix multiplication is not commutative, meaning you can not switch order in which you multiply the matrices in.


There is an identity matrix for multiplication when the diagonal of the matrix is 1 going from the top left of the bottom right, while the rest of the elements are zero.

Try Multiplying Matrices

These three different examples show you how to multiply different sizes and allow you to see how the multiplication of matrices work.

Comments

    0 of 8192 characters used
    Post Comment

    • Caleb DRC profile image

      Caleb DRC 

      5 years ago

      Very well done and thorough.

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://hubpages.com/privacy-policy#gdpr

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)