WishWasTraining Academy
NDA & Naval Academy entrance exam school
โ† home
Chapter M2-1 ยท 1 of 4 in Matrices and Determinants ยท 14 min read

Types of matrices and operations

49 real NDA questions of this kind in the 19 papers of 2017 to 2026.

Try three questions free โ†“

Why this chapter matters. This chapter drew 15 real questions in the seven papers from NDA II 2023 to NDA II 2026, about two a paper on average. Most of them ask you to recognise a type of matrix (symmetric, skew-symmetric, orthogonal), to say whether a product is defined, or to work out one small product or power. Five of them are solved in section 8. The other three chapters of this unit all stand on this one.

What you will be able to do

  • State the order of a matrix and name its type.
  • Add, subtract and multiply matrices, and say when a product is not defined.
  • Use the transpose to test whether a matrix is symmetric, skew-symmetric or orthogonal.
  • Find small powers of a square matrix quickly.

Before you start you should know: arithmetic with negative numbers and the values of โ€‹\sinโ€‹ and โ€‹\cosโ€‹ at the standard angles. No earlier chapter of this course is needed.

1. What a matrix is

A matrix is a rectangular arrangement of numbers in rows and columns, written inside brackets. A matrix with โ€‹mโ€‹ rows and โ€‹nโ€‹ columns has order โ€‹m \times nโ€‹ (read "โ€‹mโ€‹ by โ€‹nโ€‹") and has โ€‹mnโ€‹ elements. Rows are always counted first.

A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}

This matrix has 2 rows and 3 columns. Its order is 2 ร— 3 and it has 6 elements. The element in row โ€‹iโ€‹ and column โ€‹jโ€‹ is written โ€‹a_{ij}โ€‹. Here โ€‹a_{12} = 2โ€‹ and โ€‹a_{21} = 4โ€‹.

Two matrices are equal only when they have the same order and every pair of matching elements is equal.

2. Types of matrices

Name What it means Example
Row matrix Only one row โ€‹\begin{bmatrix} 1 & 5 & 7 \end{bmatrix}โ€‹
Column matrix Only one column โ€‹\begin{bmatrix} 2 \\ 9 \end{bmatrix}โ€‹
Square matrix Rows and columns are equal in number. A 3 ร— 3 matrix is "square of order 3" โ€‹\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}โ€‹
Diagonal matrix Square, and every element off the main diagonal is 0 โ€‹\begin{bmatrix} 2 & 0 \\ 0 & 5 \end{bmatrix}โ€‹
Scalar matrix Diagonal, with all diagonal elements equal โ€‹\begin{bmatrix} 7 & 0 \\ 0 & 7 \end{bmatrix}โ€‹
Identity (unit) matrix โ€‹Iโ€‹ Diagonal, with every diagonal element 1 โ€‹\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}โ€‹
Zero (null) matrix โ€‹Oโ€‹ Every element is 0. It can have any order โ€‹\begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}โ€‹
Triangular matrix Square, with only zeros below the main diagonal (upper triangular) or only zeros above it (lower triangular) โ€‹\begin{bmatrix} 1 & 4 \\ 0 & 3 \end{bmatrix}โ€‹

The main diagonal of a square matrix runs from the top left corner to the bottom right corner. The sum of the elements on it is called the trace.

3. Adding, subtracting and multiplying by a number

Two matrices can be added or subtracted only when they have the same order. Work element by element. To multiply a matrix by a number โ€‹kโ€‹, multiply every element by โ€‹kโ€‹.

For example, with โ€‹A = \begin{bmatrix} 2 & -1 \\ 0 & 3 \end{bmatrix}โ€‹ and โ€‹B = \begin{bmatrix} 1 & 4 \\ 2 & 0 \end{bmatrix}โ€‹:

3A - 2B = \begin{bmatrix} 6 - 2 & -3 - 8 \\ 0 - 4 & 9 - 0 \end{bmatrix} = \begin{bmatrix} 4 & -11 \\ -4 & 9 \end{bmatrix}

4. Multiplying two matrices

The product โ€‹ABโ€‹ is defined only when the number of columns of โ€‹Aโ€‹ equals the number of rows of โ€‹Bโ€‹. The orders work like this:

(m \times n) \text{ times } (n \times p) \text{ gives } (m \times p)

The element in row โ€‹iโ€‹ and column โ€‹jโ€‹ of โ€‹ABโ€‹ is found from row โ€‹iโ€‹ of โ€‹Aโ€‹ and column โ€‹jโ€‹ of โ€‹Bโ€‹: multiply the matching elements and add.

Take โ€‹A = \begin{bmatrix} 2 & 3 \\ 1 & 0 \end{bmatrix}โ€‹ and โ€‹B = \begin{bmatrix} 1 & 0 \\ 2 & 5 \end{bmatrix}โ€‹. Then

AB = \begin{bmatrix} 2 \times 1 + 3 \times 2 & 2 \times 0 + 3 \times 5 \\ 1 \times 1 + 0 \times 2 & 1 \times 0 + 0 \times 5 \end{bmatrix} = \begin{bmatrix} 8 & 15 \\ 1 & 0 \end{bmatrix}

In the other order, โ€‹BA = \begin{bmatrix} 2 & 3 \\ 9 & 6 \end{bmatrix}โ€‹. The two answers are different.

Four facts to remember:

  • โ€‹ABโ€‹ and โ€‹BAโ€‹ are usually not equal. The order of multiplication matters.
  • Brackets can be moved and opened as usual: โ€‹(AB)C = A(BC)โ€‹ and โ€‹A(B + C) = AB + ACโ€‹.
  • The identity matrix behaves like the number 1: โ€‹AI = IA = Aโ€‹.
  • โ€‹AB = Oโ€‹ can happen when neither โ€‹Aโ€‹ nor โ€‹Bโ€‹ is a zero matrix. For example โ€‹\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}โ€‹. So a matrix cannot be "cancelled" from both sides as a number can.

5. The transpose, and three types that use it

The transpose โ€‹A^Tโ€‹ (also written โ€‹A'โ€‹) is made by turning rows into columns. If โ€‹Aโ€‹ has order โ€‹m \times nโ€‹, then โ€‹A^Tโ€‹ has order โ€‹n \times mโ€‹.

The rules: โ€‹(A^T)^T = Aโ€‹, โ€‹(A + B)^T = A^T + B^Tโ€‹, โ€‹(kA)^T = kA^Tโ€‹, and

(AB)^T = B^T A^T \quad \text{(the order reverses)}

Type (square matrices only) Test What it looks like
Symmetric โ€‹A^T = Aโ€‹ โ€‹a_{ij} = a_{ji}โ€‹: the matrix is a mirror image across the main diagonal, as in โ€‹\begin{bmatrix} 1 & 7 \\ 7 & 4 \end{bmatrix}โ€‹
Skew-symmetric โ€‹A^T = -Aโ€‹ โ€‹a_{ij} = -a_{ji}โ€‹, and every diagonal element is 0, as in โ€‹\begin{bmatrix} 0 & 7 \\ -7 & 0 \end{bmatrix}โ€‹
Orthogonal โ€‹AA^T = A^TA = Iโ€‹ In each row the squares of the elements add up to 1, and two different rows multiplied element by element add up to 0, as in โ€‹\begin{bmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{bmatrix}โ€‹

Every square matrix can be written as a symmetric matrix plus a skew-symmetric matrix:

A = \tfrac{1}{2}(A + A^T) + \tfrac{1}{2}(A - A^T)

The first part is symmetric and the second part is skew-symmetric.

6. Powers of a square matrix

For a square matrix, โ€‹A^2 = AAโ€‹, โ€‹A^3 = AAAโ€‹ and so on. Three facts save time:

  • Every power of โ€‹Iโ€‹ is โ€‹Iโ€‹.
  • To find a power of a diagonal matrix, raise each diagonal element to that power.
  • If โ€‹A^2 = Iโ€‹, then every even power of โ€‹Aโ€‹ is โ€‹Iโ€‹ and every odd power is โ€‹Aโ€‹.

7. Worked examples

Example 1. โ€‹Aโ€‹ has order 2 ร— 3 and โ€‹Bโ€‹ has order 3 ร— 4. Which of โ€‹ABโ€‹ and โ€‹BAโ€‹ is defined?

For โ€‹ABโ€‹: โ€‹Aโ€‹ has 3 columns and โ€‹Bโ€‹ has 3 rows, so โ€‹ABโ€‹ is defined. Its order is 2 ร— 4. For โ€‹BAโ€‹: โ€‹Bโ€‹ has 4 columns but โ€‹Aโ€‹ has 2 rows, so โ€‹BAโ€‹ is not defined.

Example 2. Find โ€‹ABโ€‹ and โ€‹BAโ€‹ for โ€‹A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}โ€‹ and โ€‹B = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}โ€‹.

โ€‹AB = \begin{bmatrix} 0 + 2 & 1 + 0 \\ 0 + 4 & 3 + 0 \end{bmatrix} = \begin{bmatrix} 2 & 1 \\ 4 & 3 \end{bmatrix}โ€‹ and โ€‹BA = \begin{bmatrix} 0 + 3 & 0 + 4 \\ 1 + 0 & 2 + 0 \end{bmatrix} = \begin{bmatrix} 3 & 4 \\ 1 & 2 \end{bmatrix}โ€‹.

So โ€‹AB \ne BAโ€‹.

Example 3. Write โ€‹A = \begin{bmatrix} 1 & 4 \\ 2 & 3 \end{bmatrix}โ€‹ as the sum of a symmetric and a skew-symmetric matrix.

โ€‹A^T = \begin{bmatrix} 1 & 2 \\ 4 & 3 \end{bmatrix}โ€‹. Then โ€‹\tfrac{1}{2}(A + A^T) = \begin{bmatrix} 1 & 3 \\ 3 & 3 \end{bmatrix}โ€‹ and โ€‹\tfrac{1}{2}(A - A^T) = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}โ€‹.

These two add up to โ€‹Aโ€‹.

Example 4. For โ€‹A = \begin{bmatrix} 3 & 1 \\ -1 & 2 \end{bmatrix}โ€‹, show that โ€‹A^2 - 5A + 7I = Oโ€‹.

โ€‹A^2 = \begin{bmatrix} 9 - 1 & 3 + 2 \\ -3 - 2 & -1 + 4 \end{bmatrix} = \begin{bmatrix} 8 & 5 \\ -5 & 3 \end{bmatrix}โ€‹. Then

A^2 - 5A + 7I = \begin{bmatrix} 8 - 15 + 7 & 5 - 5 + 0 \\ -5 + 5 + 0 & 3 - 10 + 7 \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}

Notice that the number 7 must be written as โ€‹7Iโ€‹ before it can be added to a matrix.

Example 5. If โ€‹A = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}โ€‹, find โ€‹A^{100}โ€‹ and โ€‹A^{101}โ€‹.

โ€‹A^2 = \begin{bmatrix} 0 + 1 & 0 + 0 \\ 0 + 0 & 1 + 0 \end{bmatrix} = Iโ€‹. So โ€‹A^{100} = (A^2)^{50} = Iโ€‹ and โ€‹A^{101} = A^{100}A = Aโ€‹. No long multiplication is needed.

8. From the real papers

Try each question for 75 seconds before reading the solution. That is the time the exam allows.

NDA II 2023, Q18. If โ€‹A = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}โ€‹, then what is โ€‹23A^3 - 19A^2 - 4Aโ€‹ equal to?

(a) Null matrix of order 3โ€ƒโ€ƒ(b) Identity matrix of order 3โ€ƒโ€ƒ(c) โ€‹\begin{bmatrix} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 2 \end{bmatrix}โ€‹โ€ƒโ€ƒ(d) โ€‹\begin{bmatrix} 7 & 0 & 0 \\ 0 & 7 & 0 \\ 0 & 0 & 7 \end{bmatrix}โ€‹

Solution. โ€‹Aโ€‹ is the identity matrix, and every power of โ€‹Iโ€‹ is โ€‹Iโ€‹. So the expression is โ€‹23I - 19I - 4I = (23 - 19 - 4)I = 0Iโ€‹, the null matrix. Answer (a).

NDA I 2024, Q21. What is the number of different matrices, each having 4 entries that can be formed using 1, 2, 3, 4 (repetition is allowed)?

(a) โ€‹72โ€‹โ€ƒโ€ƒ(b) โ€‹216โ€‹โ€ƒโ€ƒ(c) โ€‹254โ€‹โ€ƒโ€ƒ(d) โ€‹768โ€‹

Solution. A matrix with 4 entries can have order 1 ร— 4, 2 ร— 2 or 4 ร— 1: three possible orders. For each order, every one of the 4 places can hold any of the 4 numbers, which gives โ€‹4^4 = 256โ€‹ matrices. Total: โ€‹3 \times 256 = 768โ€‹. Answer (d).

NDA I 2025, Q27. If โ€‹A = \begin{bmatrix} 1 & 2 & 2 \\ 2 & 1 & 2 \\ 2 & 2 & 1 \end{bmatrix}โ€‹ then what is โ€‹A^2 - 4Aโ€‹ equal to? where โ€‹I_3โ€‹ is the identity matrix of order 3.

(a) โ€‹-5I_3โ€‹โ€ƒโ€ƒ(b) โ€‹-I_3โ€‹โ€ƒโ€ƒ(c) โ€‹I_3โ€‹โ€ƒโ€ƒ(d) โ€‹5I_3โ€‹

Solution. Each diagonal element of โ€‹A^2โ€‹ is a row times the matching column: โ€‹1 + 4 + 4 = 9โ€‹. Each element off the diagonal, for example row 1 times column 2, is โ€‹2 + 2 + 4 = 8โ€‹. So โ€‹A^2โ€‹ has 9 on the diagonal and 8 elsewhere, while โ€‹4Aโ€‹ has 4 on the diagonal and 8 elsewhere. Subtracting leaves 5 on the diagonal and 0 elsewhere, which is โ€‹5I_3โ€‹. Answer (d).

NDA II 2026, Q18. Let โ€‹A = \begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}โ€‹. What is the least value of โ€‹\thetaโ€‹ for which โ€‹A + A^T = Iโ€‹, where โ€‹Iโ€‹ is the identity matrix of order 2?

(a) โ€‹\pi/2โ€‹โ€ƒโ€ƒ(b) โ€‹\pi/3โ€‹โ€ƒโ€ƒ(c) โ€‹\pi/4โ€‹โ€ƒโ€ƒ(d) โ€‹\pi/6โ€‹

Solution. โ€‹A^T = \begin{bmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{bmatrix}โ€‹. On adding, the โ€‹\sin\thetaโ€‹ elements cancel: โ€‹A + A^T = \begin{bmatrix} 2\cos\theta & 0 \\ 0 & 2\cos\theta \end{bmatrix}โ€‹. For this to be โ€‹Iโ€‹ we need โ€‹2\cos\theta = 1โ€‹, so โ€‹\cos\theta = \tfrac{1}{2}โ€‹. The least positive angle is โ€‹\theta = \pi/3โ€‹. Answer (b).

NDA II 2026, Q21. Let โ€‹Aโ€‹ and โ€‹Bโ€‹ be symmetric matrices of the same order. Which of the following statements is/are correct? I. โ€‹(AB - BA)โ€‹ is also a symmetric matrix. II. โ€‹(BA - AB)โ€‹ is a skew-symmetric matrix. Select the answer using the code given below.

(a) I onlyโ€ƒโ€ƒ(b) II onlyโ€ƒโ€ƒ(c) Both I and IIโ€ƒโ€ƒ(d) Neither I nor II

Solution. Here โ€‹A^T = Aโ€‹ and โ€‹B^T = Bโ€‹. Using โ€‹(XY)^T = Y^T X^Tโ€‹, we get โ€‹(AB - BA)^T = B^T A^T - A^T B^T = BA - AB = -(AB - BA)โ€‹. So โ€‹AB - BAโ€‹ is skew-symmetric, and I is wrong. In the same way โ€‹(BA - AB)^T = AB - BA = -(BA - AB)โ€‹, so II is right. Answer (b).

9. Mistakes that cost marks

  1. Treating โ€‹ABโ€‹ and โ€‹BAโ€‹ as equal. Because of this, โ€‹(A + B)^2 = A^2 + 2AB + B^2โ€‹ is wrong for matrices. The right version is โ€‹(A + B)^2 = A^2 + AB + BA + B^2โ€‹.
  2. Writing โ€‹(AB)^T = A^T B^Tโ€‹. The order reverses: โ€‹(AB)^T = B^T A^Tโ€‹.
  3. Cancelling a matrix. From โ€‹AB = Oโ€‹ you cannot say that โ€‹A = Oโ€‹ or โ€‹B = Oโ€‹. From โ€‹AB = ACโ€‹ you cannot say that โ€‹B = Cโ€‹, unless you know that โ€‹Aโ€‹ has an inverse (Chapter M2-3).

10. Quick check

Do these without help. Answers are at the end.

  1. A matrix has 12 elements. How many different orders can it have?
  2. โ€‹Aโ€‹ has order 3 ร— 2 and โ€‹Bโ€‹ has order 2 ร— 4. What is the order of โ€‹ABโ€‹? Is โ€‹BAโ€‹ defined?
  3. Find โ€‹A^2โ€‹ for โ€‹A = \begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix}โ€‹.
  4. โ€‹Aโ€‹ is a skew-symmetric matrix with โ€‹a_{12} = 5โ€‹. Write down โ€‹a_{21}โ€‹ and โ€‹a_{11}โ€‹.
  5. For โ€‹A = \begin{bmatrix} 2 & 0 \\ 0 & 3 \end{bmatrix}โ€‹ and โ€‹B = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}โ€‹, find โ€‹AB - BAโ€‹.

11. Read and watch more, free

What Where Language
Textbook NCERT Class 12 Mathematics, Chapter 3 Matrices ยท Hindi edition English, Hindi
Self-study notes NIOS Mathematics, Lesson 20 Matrices ยท Hindi edition ยท 5-page summary English, Hindi
Video, the whole unit for NDA Defence Wallah: Matrices and Determinants (first video of the playlist, about 5 hours) Hinglish
Video, short lessons Khan Academy: Matrices English
Video, short lessons Khan Academy India: เค•เค•เฅเคทเคพ 12 เคเคจเคธเฅ€เคˆเค†เคฐเคŸเฅ€ เค—เคฃเคฟเคค (the lessons on เค†เคตเฅเคฏเฅ‚เคน) Hindi

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. Six: 1 ร— 12, 2 ร— 6, 3 ร— 4, 4 ร— 3, 6 ร— 2 and 12 ร— 1.
  2. โ€‹ABโ€‹ has order 3 ร— 4. โ€‹BAโ€‹ is not defined, because โ€‹Bโ€‹ has 4 columns and โ€‹Aโ€‹ has 3 rows.
  3. โ€‹\begin{bmatrix} 1 & 4 \\ 0 & 1 \end{bmatrix}โ€‹.
  4. โ€‹a_{21} = -5โ€‹ and โ€‹a_{11} = 0โ€‹.
  5. โ€‹AB = \begin{bmatrix} 2 & 2 \\ 0 & 3 \end{bmatrix}โ€‹ and โ€‹BA = \begin{bmatrix} 2 & 3 \\ 0 & 3 \end{bmatrix}โ€‹, so โ€‹AB - BA = \begin{bmatrix} 0 & -1 \\ 0 & 0 \end{bmatrix}โ€‹.

Next chapter: Determinants: value and properties.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    Let โ€‹A = [a_{ij}]โ€‹ be a square matrix of order 3 with โ€‹a_{ij} = i + jโ€‹. Consider the following statements: I. โ€‹Aโ€‹ is a skew-symmetric matrix. II. The sum of the diagonal elements of โ€‹Aโ€‹ is 12. Which of the statements given above is/are correct?
  2. Question 2 of 3
    Let โ€‹A = \begin{bmatrix} 0 & 2 & -1 \\ -2 & 0 & 4 \\ 1 & -4 & 0 \end{bmatrix}โ€‹. Consider the following statements: I. โ€‹A^T = -Aโ€‹. II. โ€‹A^2โ€‹ is a skew-symmetric matrix. Which of the statements given above is/are correct?
  3. Question 3 of 3
    If the matrix โ€‹\begin{bmatrix} 0 & a & 4 \\ -3 & 0 & b \\ c & 7 & 0 \end{bmatrix}โ€‹ is skew-symmetric, what is the value of โ€‹a + b + cโ€‹?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the explanations are WishWas's own and have been checked against the official key. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.