← Previous lessonFree lesson 2 of 3 · lesson 2 of 43Next lesson →

Unlock all 43 lessons of Linear AlgebraFull course ₹40,000 · paid

Price & syllabus
Free lesson · 29 min · no payment

Matrix Notation, Dimensions, Types and Transpose

A free lesson from Skill-Lync's Linear Algebra course, on Grow by Skill-Lync · Last updated 16 Nov 2026 · Session: “Week 1 Session 2”

What will you learn in this free Linear Algebra lesson?

The instructor defines a matrix as a two-dimensional array, with entries a-i-j and dimension rows by columns. The lesson then covers rectangular, square, triangular, identity and symmetric matrices, and the transpose, using small numeric examples.

  • Matrix as a list of lists
  • Reading dimension as rows by columns
  • Upper, lower triangular and identity matrices
  • Transpose and symmetric matrices

What comes after lesson 2?

The next free lesson is lesson 3, “Matrix Addition, Subtraction and Multiplication Rules” (29 min). Later in Skill-Lync's Linear Algebra course (paid): lesson 4, Week 1 Session 4; lesson 5, Week 2 Session 1 Part 1; lesson 6, Week 2 Session 1 Part 2. The full course has 43 lessons (20 h 5 min of video); see the course overview or its price and syllabus.

Lesson transcript

Machine transcript of the lesson audio (lightly cleaned). Technical terms may contain errors; the video is the reference.

Hello, everyone. Welcome back in the second video of week one of linear algebra course. So in the first video, what we had discussed was what linear algebra is and what is the importance of it in regard to the bigger picture that we are going to learn. So we had talked about that, how important linear algebra is in terms of the current days, job aspects of the areas. For example, data analytics or machine learning or deep learning, natural language processing and all this. Also computer vision, autonomous vehicles, these things are there as well.

And as you know that we are learning linear algebra as a prerequisite for autonomous vehicles. So we also have talked about the contents and then we started learning about the straight lines and linear equations. And thereafter we came across the system of linear equations. Now, whenever we have more than one equations, linear equations, then it creates a system of linear equation. And we also had seen when the system can be solvable and whenever they cannot. So for example, we have came up or we noticed that the systems that are solvable are called consistent system and the system that are not solvable are called inconsistent.

We also had noticed that whenever a system is solvable. In that case, the linear equations, they intersect in the space at some point. And whenever they are inconsistent, that means not solvable, they do not intersect. Also the examples we had considered. Also the examples we had considered has shown us that for inconsistent systems, that linear equations are usually parallel to each other. Now, we had talked about the system of linear equations, considering equations in two dimension. That means we had only x and y. Whereas in whenever we have above two dimension, for example, we have three variables, x, y, z, or four variables, x, y, z, w, then we'll have more axes.

And the idea is similar. And the idea is similar, more or less. Whenever we have a solution, that means the straight lines in that three or four dimensional space are intersecting at some point. And whenever we don't have a solution, that means they are either parallel or in somewhat different orientation that they are not intersecting, for which we don't get a solution. Now, we are going to have a solution. Now, we are going to talk about matrices. So, what is a matrix? So, a matrix is basically an array of numbers.

Now, there are a few ways of writing it. So, first of all, if we talk about matrices in a coding aspect or in a computer language aspect, we know about array and the dimension of the array. So, whenever we have one dimensional array, that means we just have an array of numbers, a single array. If we have two dimensional array, that means we have an array of arrays or in another way, we can say a list of lists. So, in a computer language, we can say a matrix is nothing but a two dimensional array or a list of lists.

Now, a matrix can contain either numbers or some expressions or some symbols, etc. That means the elements are different. I mean, they can be different. They can be number or they can be expressions, anything. Now, for a matrix, so let us consider a matrix, let's say a is equals to, okay, we are going to write the elements. So, let us say that the elements are going to be A, I, J, where I is the row and J is the column. So, as we know that if we have a matrix, then this orientation will give us rows and the vertical orientations will give us columns, okay?

All right, so whenever we have that, as we have considered that the A, I, Js are going to be our element, so let us say we have M rows and N columns, okay? Okay, so in that case, our first row, first column element can be written as A, 1, 1, because then I and J both are 1. That means first row, first column, similarly, first row, A, 1, and then the next one would be second column, that means A, 1, 2. Similarly, we'll have A, 1, 3, A, 1, 4, and so on, and as we have N columns, so if we fill all the elements in the first row, the last element in the first row should be in the Nth column, that means A, 1, N.

Similarly, now we are going to fill in the second row, so that means it is going to be A, 2, and in the first column, that means A, 2, 1. The next element in the second row is going to be A, 2, 2, and so on. In the end, it will be A, 2, N, because second row, last column. Similarly, if we keep doing or keep filling the first column elements, the last element of the first column will have row M, because we can see that we have M rows and columns, so therefore we will have A, M, 1.

Now, it is in the Mth row, that means the second element in the Mth row will be A, M, 2, and so on. The last one will be A, M, N. Okay. Now, we usually denote a dimension of a matrix A. So, dimension of A is number of rows, which is M, by number of columns, which is N. So, it is basically rows by columns. And that is called the dimension of the matrix. So, as we can see, for this particular matrix A, we have M rows and N columns.

That means the dimension of A is simply M by N. Okay. So, this is the basic introduction of a matrix. Like I was saying in the very beginning, this is the mathematical notation, how we write a matrix. We can either use these rectangular brackets or square brackets, or we can also use these rounded brackets on the side. And depending on the dimension, we can decide how big we have to draw these brackets on the side. And that, as you can see, will depend on the number of rows and the number of columns.

Okay. Another thing to note here is that whenever we have this, if we are trying to write it in a computer language, we will write it as a two-dimensional array. That means a list of lists. So, basically, the general way of writing it would be. Let. Let's say row wise. So first we have this bigger list and then the first smaller list element of the bigger list would be the first row. That means A11, A12, so on up to A1N. And then we will have the second row and finally we'll have the last row which is simply AM1 and up to AMN.

So as we can see, this will give us a two-dimensional array or simply list of lists. Okay, now we know what a matrix is. Now the question is, why do we need to learn matrix? So basically, as the course keeps going, we'll see that the matrices are so important in visualizing data or simply clustering the data or simply making them into something that can be understood well, matrices are the biggest and the most important tool we will apply. So therefore, it is very important to learn about matrices and how they work.

The second thing that we have and we are going to learn is simply different types of matrices. Okay, so the basic types that we can first talk about are simply rectangular and square matrix. So, like I said, that the dimension of a matrix is denoted by M by N, where M is basically the number of rows and N is the number of columns. You can consider this has signs here as number of, so has rows means number of rows, has columns means number of columns. We can use it sometimes as a short notation just for the sake of saving time and understanding it better.

Okay, now, first thing is, what is a rectangular matrix and what is a square matrix? Okay, we already have seen the structure of a matrix of size M by N. Now, M and N can be any number, as in they can be 1, 2, 3, 100, anything. Let us take a small example. Let us say that we have a matrix A of size 2 by 3. That means we'll have two rows and three columns. So, two rows and three columns. So, let us consider elements. We can take just random elements, let's say, just for the sake of understanding.

Let's say 1, 2, 3, 4, and 500. So, as you can see, we simply have two rows. This is the first row and this is the second row. And we have three columns. First column, second column, third column. And also, we can see that the number of rows and the number of columns are not same. So, whenever we will have this kind of dimensionality of a matrix, we'll call them rectangular matrix. So, rectangular means number of rows is not equals to number of columns. Likewise, when we have the number of rows equals to the number of columns, So, let's say we have another matrix B, but now let us consider the number of rows and columns both to be 2.

So, in that case, we will have two rows and two columns. So, let's say 1, 2, 3, 4. As we can see, we have two rows. In the first row, we have 1, 2, and in the second row, we have 3, 4. And two columns. In the first column, we have 1 and 3. In the second column, we have 2 and 4. So, this is basically a square matrix. So, a matrix is square whenever the number of rows is equals to the number of columns. Another thing you might be wondering about, why are these called rectangular and square and nothing else?

Because, if you think about what a rectangular and a square is, in the rectangle, the sides are of different length. A square is basically a special kind of rectangle when the sides, all the sides become of same length. As you can see, as the number of rows and columns are same, they are called square matrices. When the number of rows and columns are different, they are called rectangular matrices. So, that concept follows from the idea of rectangle and square. Okay. Then, we can talk about something called triangular matrices.

Now, you might be wondering, when we had rectangle and square, why not triangle? Of course, there is one thing. So, what is triangular matrix? So, triangular matrix not necessarily looks like a triangle, but it has a special property. So, in a triangular matrix, the property is simply that either it has an upper triangle or a lower triangle. What I mean by that is, if we have a matrix and it is a square matrix, so something to remember that a triangular matrix is always a square matrix.

Now, whenever we have that, that means, let's say, we have a dimension n by n. So, in that case, if we have something on the diagonal, so, by diagonal, I mean, along this top left to bottom right. Okay. So, whenever we have that, let's say we have 1, 2, 3, up to something, up to n. And, as it is n by n, therefore, we will have something here as well, let's say n. Okay. And the rest of the elements are all zeros. Okay. In that case, we can see that this particular matrix has a shape of triangle in terms of up to the non-zero elements are spread.

So, that is called an upper triangular matrix. Similarly, we can talk about a lower triangular matrix, as you can already figure out that, let's say, it is also of dimension n by n. So, whenever we have these elements sitting in the lower triangle, let's say, 1 up to n, and then we have 1 up to n as well. And then, the rest of the elements are 0. So, then, we can simply see that we have this lower triangle. Okay. So, that's why this is called a lower triangular matrix.

Okay. As the course will go by again, you will understand what are the importance of these matrices. Okay. So, we talked about upper triangular matrix and lower triangular matrix. Now, there is one special kind of matrix that is called identity matrix. Now, the significance of the name identity matrix will become more clear when we will go into the next section. But, for now, let us just talk about what an identity matrix is. So, identity matrix is, again, always a square matrix, and the best thing is that it only has the diagonal n.

So like I said it is a square matrix so let us say of dimension n by n and it only has the diagonal elements that means across this diagonal not just that they all are just one the number one and the rest are all zeros that means the other elements in the matrix except in this prime diagonal are all zeros and what I mean by prime diagonal is simply from top left to bottom right there is also another diagonal which we usually don't consider but in some cases we might but for now we don't that's why I'm saying prime diagonal because it signifies the diagonal from top left to bottom right corner.

Okay for identity matrix there is a special notation that we are going to use so we are going to use i and then suffix n to signify a diagonal matrix of dimension n by n so if it is an i2 that means it is a 2 by 2 matrix so therefore it will be 1 1 and 0 0 as you can see two rows two columns and the ones are sitting in the prime diagonal the other elements are zeros similarly an i3 will simply look like 1 0 0 in the first row 0 1 0 and 0 0 1 as you can see again only in the prime diagonal we have 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 So like, for example, let us take a matrix A is equals to A11, A12, up to A1n.

And similarly, we have A21, A22, up to A2n, and so on, up to AM1, AM2, and up to AMn. That means it has M rows and N columns. Therefore, its dimension is M by N, like we had considered in the very beginning when coming across the definition of a matrix. Okay. Now, a transpose of a matrix is usually denoted by A and then by transpose. So we use T and we write it on the top like a power of A. Okay. So A transpose is simply that now the rows will come to the columns and the columns will go to the rows.

That means from a M by N matrix, it will now turn into a N by M matrix. That means its first row of the matrix A will now become the first column of the matrix A transpose. So therefore, we have A11, A12, up to A1n. Similarly, the second row of the matrix A will now become the second column of the matrix A transpose. So A21, A22, and so on, up to A2n. Similarly, the last column of A transpose will be the last row of A. That means A1, A2, and up to Amn.

And as you can see, now this matrix has N rows and M columns. Okay. Now, the idea is again very simple. The rows and the columns, they just change their positions. Okay. Rows goes to columns and columns goes to rows for a transpose matrix. Another interesting matrix is called a symmetric matrix. So as we know, a symmetry is nothing but simply the same thing. So for example, our mirror images give us a symmetry of the image of our face in the mirror. Or maybe if we have a nice picture, for example, if we have a square and we simply know that all the sides are of same length.

So if we simply draw a line across the diagonal, then this top part looks exactly similar to the bottom part. So this diagonal is giving us a symmetry of the square. It's same for matrices. So whenever we are talking about symmetric matrices, the idea is that across the prime diagonal, we will always have same elements. Let us look at a small example. So let's say we have a 1, 2, 3 in this diagonal. We have 0, 1 here. We also should have a 0, 1 here.

Okay. We have, let's say, a 5 here. We will also have a 5 here. Let us call this matrix A, and we can see it is a 3 by 3 matrix. The definition of a symmetric matrix is that it is, again, a square matrix. And the definition is that A is equals to A transpose. That means the matrix is equals to its transpose. Now, let us find A transpose of this matrix we have considered. If we look at that, we see that the first row now will become the first column.

That means 1, 0, 1. The second row will now become the second column. So 0, 2, 5, and then the third row will now become the third column. That is 1, 5, 3. As we can see, the matrix A transpose is exactly the transpose of the matrix A. And not just that, they are also same. That means across the prime diagonal, the elements are same. So as you can see, these elements are same, these elements are same, these elements are same. So by definition, whenever a matrix is equals to its transpose, we call it a symmetric matrix.

So these are a few kinds of matrix. Of course, there are a few other kinds of matrix, and we'll come across them as well. And we'll also see what are the importance of them in different applications. Okay. In the next one, we are going to talk about the matrix arithmetic. That means what happens if we add two matrices, if we subtract two matrices, or if we multiply them. And as we now know what a matrix is and what are the dimensions, we will get to see that the dimension plays a very big part in explaining the matrix arithmetic.

Okay, something else you might have noticed that usually I am saying matrix, but in some times, I'm saying matrices. This is also another terminology. So matrix is basically singular. And whenever we have plural or more than one matrix, we call it matrices. Okay, in the next one, we'll talk about matrix arithmetic. Congratulations, right. Thank you. Moons- If you don't choose how to change the matrix, we're good.

Want the rest of Linear Algebra?

Get the full course syllabus and fees.

The full course is paid (₹40,000). We'll send the syllabus and call you back within one working day.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Full course · paid

Unlock the full Linear Algebra course

The remaining 40 lessons, mentor-reviewed projects and a certificate come with the paid course (₹40,000). Leave your details: we'll send the syllabus and fees and call you back.

Get the syllabus and fees

A counsellor calls you back within one working day.

By submitting you agree to our Terms and Privacy Policy.

Grow by Skill-Lync · free lesson

Start watching

Free, no payment. Leave your details once and every free lesson on Grow plays straight away. A Skill-Lync counsellor may call you about the full Linear Algebra course.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.