官术网_书友最值得收藏!

Multiplying matrices

So far, we have only multiplied a matrix by a column vector. But now, we will multiply a matrix A with another matrix B.

There are four simple rules that will help us in multiplying matrices, listed here:

  • Firstly, we can only multiply two matrices when the number of columns in matrix A is equal to the number of rows in matrix B.
  • Secondly, the first row of matrix A multiplied by the first column of matrix B gives us the first element in the matrix AB, and so on. 
  • Thirdly, when multiplying, order matters—specifically, ABBA.
  • Lastly, the element at row i, column j is the product of the ith row of matrix A and the jth column of matrix B.

Let's multiply an arbitrary 4x5 matrix with an arbitrary 5x6 matrix, as follows: 

This results in a 4x6 matrix, like this:

From that, we can deduce that in general, the following applies:

Let's take the following two matrices and multiply them, like this:

This will give us the following matrix:

.

Note: In this example, the matrix B is the identity matrix, usually written as I

The identity matrix has two unique properties in matrix multiplication. When multiplied by any matrix, it returns the original matrix unchanged, and the order of multiplication does not matter—so, AI = IA = A.

For example, let's use the same matrix A from earlier, and multiply it by another matrix B, as follows:

Another very special matrix is the inverse matrix, which is written as A-1. And when we multiply A with A-1, we receive I, the identity matrix.

As mentioned before, the order in which we multiply matters. We must keep the matrices in order, but we do have some flexibility. As we can see in the following equation, the parentheses can be moved:

This is the first law of matrix operations, known as associativity.

The following are three important laws that cannot be broken:

  • commutativity
  • distributivity or 
  • associativity 

As proof that AB ≠ BA, let's take a look at the following example:

This conclusively shows that the two results are not the same.

We know that we can raise numbers to powers, but we can also raise matrices to powers.

If we raise the matrix A to power p, we get the following:

 (multiplying the matrix by itself p times)

There are two additional power laws for matrices— and .

主站蜘蛛池模板: 阿鲁科尔沁旗| 芜湖市| 麻栗坡县| 弥渡县| 富阳市| 江源县| 凤翔县| 唐山市| 嵊州市| 隆安县| 阿拉尔市| 泗阳县| 永城市| 平安县| 旌德县| 长泰县| 嘉鱼县| 绿春县| 库尔勒市| 双江| 谢通门县| 宜丰县| 随州市| 三台县| 琼海市| 河源市| 封开县| 巢湖市| 卢湾区| 体育| 新河县| 柯坪县| 乐陵市| 唐山市| 盐津县| 东阳市| 张家港市| 杭锦后旗| 恭城| 宣恩县| 五家渠市|