Lesson Video: Introduction to Matrices | Nagwa Lesson Video: Introduction to Matrices | Nagwa

Lesson Video: Introduction to Matrices Mathematics

In this video, we will learn how to identify matrices and determine the order of a matrix and the position of each of its elements.

16:31

Video Transcript

In this lesson, we’ll learn how to identify matrices and determine the order of a matrix and the position of its elements. A matrix is an array of numbers. And they’re really useful as they allow us to represent and work with groups of numbers as if they are one entity. We use them, for instance, to solve simultaneous equations and represent transformations. We arrange scalars, which we call elements, in a matrix, plural matrices, in rows and columns. When we describe a matrix, let’s call that 𝐴, as an π‘š-by-𝑛 matrix, this has π‘š rows and 𝑛 columns. And we can represent this matrix as shown.

We can now say that the element that sits in the 𝑖th row and 𝑗th column, which is a scalar quantity, such as a constant or single-valued expression, is π‘Ž subscript 𝑖𝑗. For example, the element in the third row and the fifth column is π‘Ž subscript three five. Now it also follows that if π‘š is equal to 𝑛, in other words, the number of rows and columns are equal, the matrix is square. Otherwise, it’s rectangular. Similarly, if either π‘š or 𝑛 is equal to one, then we say we have a vector. And we use these to define points in space.

Now, in fact, there are two special matrices that we should be aware of, although we’re not going to look at these into much detail. They are the identity matrix and the null matrix. In the identity matrix 𝐼, all of the elements are equal to zero except those in the main diagonal, as shown, which have a value of one. And in the null matrix 𝑂, each of the elements are equal to zero. And so now we’ve considered the basics of matrices. Let’s have a look at a few questions that introduce us to these concepts.

How many elements are there in a matrix of order nine by seven?

Remember, we arrange scalars, which we call elements, in a matrix in rows and columns. When we describe a matrix, let’s call this general matrix 𝐴, as an π‘š-by-𝑛 matrix, it has π‘š rows and 𝑛 columns. And this matrix would look a little something like this. The order of this matrix is π‘š by 𝑛. Now we’re given a matrix of order nine by seven. And so this must mean that our matrix has nine rows and seven columns. So how many elements must it have?

Well, if we have nine rows and each of those rows has seven columns and there’s an element in each of these, then we can find the number of elements by multiplying nine by seven. Nine times seven is equal to 63. And so, in a matrix of order nine by seven, there must be a total of 63 elements. And of course, it follows that we can generalize this and say that a matrix π‘š-by-𝑛 order must have π‘š times 𝑛 elements.

We’ll now consider how we can complete a matrix given definitions of each of its elements.

Given that 𝐴 is a matrix of order three by two, where π‘Ž sub one one is equal to zero, π‘Ž sub one two is equal to π‘Ž sub three one minus three, π‘Ž sub two one is equal to four, π‘Ž sub two two is equal to half π‘Ž sub one one, π‘Ž sub three one is equal to eight, and π‘Ž sub three two is equal to a quarter π‘Ž sub two one, determine 𝐴.

In order to write out the matrix 𝐴, let’s begin by identifying how many rows and columns it has. We know that a matrix of order π‘š by 𝑛 has π‘š rows and 𝑛 columns. This matrix 𝐴 has order three by two. And so we can see that it must have a total of three rows and two columns. So there will be three times two which is equal to six elements. Now we’re given a lot of information about each of the elements, but let’s recall how we fill the matrices in. An π‘š-by-𝑛 matrix will look something like this, where π‘Ž subscript 𝑖𝑗 is the element that appears in the 𝑖th row and 𝑗th column. And so let’s consider π‘Ž sub one one. This element will appear in the first row and the first column.

π‘Ž sub one one is equal to zero. So we put a zero in the top left-hand corner of our matrix. Now we’re given information about π‘Ž sub one two based on information about π‘Ž sub three one. And we haven’t filled that in yet, so let’s move on to the next bit of information. π‘Ž sub two one is equal to four. This tells us that the element in the second row and first column is equal to four. Well, that’s here. Then we’re told that π‘Ž sub two two is a half π‘Ž sub one one. That’s the element in the second row and the second column. So that’s here. We know that π‘Ž sub one one is equal to zero and a half of zero is still zero. So we add zero in this place.

Then we’re told π‘Ž sub three one is equal to eight. Remember, that’s the element in the third row and the first column. So we have an eight here. We can now go back to the information about π‘Ž sub one two. That’s the element in the first row and the second column. It’s here. It’s π‘Ž sub three one which is equal to eight minus three. And since eight minus three is five, we put a five in the top-right corner of our matrix. There’s one further piece of information, and that’s π‘Ž sub three two is a quarter π‘Ž sub two one. Well, π‘Ž sub three two is the element in the third row and the second column. That’s here.

We saw that π‘Ž sub two one is equal to four. So we need to find a quarter of four, which is equal to one. When we read matrices, we read along the columns from left to right. And so our matrix 𝐴 is zero, five, four, zero, eight, one.

We’re now going to further develop this skill by looking at how we can find entries in a given matrix.

Given that the matrix 𝐴 is equal to negative two, four, negative seven, negative one, nine, nine, the matrix 𝐡 is equal to negative seven, three, two, negative six, negative four, negative eight, seven, three, zero, and 𝐢 is equal to two, negative five, negative four, find π‘Ž sub two three, 𝑏 sub two one, and 𝑐 sub two one.

We begin by recalling how we define the elements in a matrix. The element defined by π‘Ž subscript 𝑖𝑗 sits in the 𝑖th row and the 𝑗th column of that matrix. And so we’re looking to find π‘Ž sub two three, that will be an element from our first matrix 𝐴, 𝑏 sub two one, that will be an element from the matrix 𝐡, and 𝑐 sub two one, which will be an element of the matrix 𝐢. If we compare π‘Ž sub two three with the general definition, we see that π‘Ž sub two three must be the element in the second row and the third column. The second row of matrix 𝐴 is here and the third column is here. The element that sits in the intersection of these is nine. And so π‘Ž sub two three must be equal to nine.

Next, we have 𝑏 sub two one. That’s in matrix 𝐡, and it’s in the second row and the first column. The second row is here, and the first column is here. The element that’s in the intersection of these is negative six. And so we see that 𝑏 sub two one is equal to negative six. We have the same situation with 𝑐 sub two one. It’s in the second row, which is here, and the first column. Now, of course, it’s only one column. The element in the intersection of these is negative five. And so 𝑐 sub two one must indeed be equal to negative five. And so π‘Ž sub two three is nine, 𝑏 sub two one is negative six, and 𝑐 sub two one is equal to negative five.

Now notice that up until this point, we’ve been working with the matrix defined as 𝐴, whose element is π‘Ž sub 𝑖𝑗. When we’re working with multiple matrices, we can use the lowercase letter to describe each of the elements. So for matrix 𝐡, we described its elements by 𝑏 sub 𝑖𝑗. And for matrix 𝐢, the elements are 𝑐 sub 𝑖𝑗.

In our next example, we’re going to go back to forming a matrix. But this time, we’re going to use an equation to find each of its elements.

Find the matrix 𝐴 which is equal to elements π‘Ž sub π‘₯𝑦 with an order of three by three whose elements are given by the formula π‘Ž sub π‘₯𝑦 equals five π‘₯ plus four 𝑦.

Let’s first consider this information about the order of the matrix. We notice that it’s three by three, and so it’s a square matrix. And of course, this also means that it must have three rows and three columns. There’s going to be a total of three times three, which is nine elements to find in this matrix. And so next, we recall that we define the elements in a matrix as π‘Ž sub 𝑖𝑗. Now that’s the element in the 𝑖th row and the 𝑗th column. And so the element in the first row and first column is π‘Ž sub one one. The element in the first row and second column is π‘Ž sub one two, and the third element in this row is π‘Ž sub one three. In the second row and first column, we have π‘Ž sub two one. And then we can complete the rest of the matrix as shown.

Now notice that our matrix is defined by elements π‘Ž sub π‘₯𝑦. And so to find the element π‘Ž sub one one, we’re going to let π‘₯ be equal to one and 𝑦 be equal to one. And then we’re going to use this formula here, π‘Ž sub π‘₯𝑦 is five π‘₯ plus four 𝑦. We simply substitute our values of π‘₯ and 𝑦 into this formula, and we get π‘Ž sub one one is five times one plus four times one, which is nine. And so we have the first element in our matrix; it’s nine. We’re now going to go to the second element in our first row. And this time, we’re going to let π‘₯ be equal to one and 𝑦 be equal to two.

This time, our formula is five times one plus four times two which is equal to 13. And so 13 is the second element in the first row of our matrix. Let’s now consider this element. This time, we let π‘₯ be equal to one and 𝑦 be equal to three. And so we get π‘Ž sub one three must be equal to five times one plus four times three, which is 17. And so we’ve completed the first row of our matrix. We’re now going to move on to the second row of our matrix. Notice that for each element here, π‘₯ is always equal to two. And so π‘Ž sub two one is found by letting π‘₯ be equal to two and 𝑦 be equal to one.

We get five times two plus four times one, which is 14. Then π‘Ž sub two two is five times two plus four times two which is 18. And π‘Ž sub two three is five times two plus four times three, which is 22. And so we complete the second row of our matrix. All that’s left is to find the values in the third row. This time, π‘₯ is always equal to three. And so the first element is five times three plus four times one, which is 19. The second element is five times three plus four times two, which is 23. And our third element is five times three plus four times three, which is 27. And so we complete the third row in our matrix. We’re therefore able to say that given the definition for matrix 𝐴, we get nine, 13, 17, 14, 18, 22, 19, 23, 27.

Now there are several operations that we can apply to matrices, and it is outside the scope of this video to look at them all. However, one that we’re going to look at is that we can multiply them by a scalar. Let’s take the matrix 𝐴 as shown. We’re going to multiply this by the scalar 𝑏. And to do this, we can simply multiply each individual element by 𝑏. So 𝑏 times 𝐴 is equal to π‘π‘Ž sub one one, π‘π‘Ž sub one two, and so on. Let’s have a look at one example of the application of this.

The table below represents the prices of some drinks in a cafe. The cafe owner changes the prices of the drinks so that each drink is now two times its original price. Determine the matrix that represents the new prices of the drinks.

A matrix is simply an array of numbers. And so, if we define 𝐴 to be the matrix that represents the old prices of the drinks, we can simply transfer each of the numbers from our table in as shown. The order of this matrix is three by two, since it has three rows and two columns. And so matrix 𝐴 is 1.5, 5.5, two, 8.5, 3.5, nine. We’re told that the prices of the drinks changes so that the price of each drink is now two times its original price. And so, we want to double. We want to multiply each element in the matrix by two. We can represent this as two 𝐴, since we know that when we multiply a matrix by a scalar, we multiply each of the individual elements. So the matrix two 𝐴 represents the new prices of the drinks. And its elements are two times 1.5, two times 5.5, two times two, two times 8.5, two times 3.5, and two times nine.

Let’s complete this element by element. Two times 1.5 is three. So three is the element in the first row and first column. Then two times 5.5 is 11, two times two is four, and two times 8.5 is 17. Two times 3.5 is seven, and two times nine is 18, meaning the element in our third row and second column is 18. And so we’ve completed the matrix that represents the new prices of the drinks. It’s three, 11, four, 17, seven, 18.

We’re now going to recap the key points from this lesson. In this video, we’ve learned that a matrix is an array of numbers. And elements within the matrix are arranged in rows and columns. Given a matrix 𝐴 which has order π‘š by 𝑛, this means it has π‘š rows and 𝑛 columns. Then the matrix 𝐴 will look a little something like this, where we say that the element in the 𝑖th row and 𝑗th column is π‘Ž sub 𝑖𝑗. We saw that if π‘š is equal to 𝑛, we say that the matrix is square. Otherwise, it’s a rectangular matrix. And if either π‘š or 𝑛 is equal to one, then we call this a vector. And we use these to define points in space.

We saw that there are two special matrices called the identity matrix and the null matrix. The identity matrix is a square matrix where all elements are zero except those on the main diagonal, in other words, where 𝑖 is equal to 𝑗, where those have a value of one. And the null matrix 𝑂 has a value of zero for all its elements. Finally, we saw that we can multiply a matrix by a scalar. Let’s say we want to multiply the matrix 𝐴 by the scalar 𝑏. We do this by multiplying each individual element by 𝑏.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy