The Wayback Machine - https://web.archive.org/web/20241005221352/https://www.geeksforgeeks.org/square-matrix/
Open In App

Square Matrix

Last Updated : 22 Jul, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Square Matrix: A matrix is defined as a rectangular array of numbers that are arranged in rows and columns. A square matrix is characterized by having the same number of rows as columns. It’s referred to as an m x m matrix, indicating that it is a square matrix of order ?m. When two square matrices are either multiplied or added, the resultant matrix retains the same order. For example, consider the square matrix X given by

X = \begin{bmatrix} 2 & -7 & 7 \\ 2 & 5 & 6 \\ 5 & 4 & 3 \end{bmatrix}

In this article, we will learn about what is a square matrix, along with its examples, properties, types, formula, and some problems on square matrix.

What is a Square Matrix?

A square matrix is defined as a matrix that has an equal number of rows and columns. The order of a square matrix that has “n” rows and “n” columns is “n × n.” The number of elements in a matrix can be determined by the product of the number of rows and columns in the matrix. So, the number of elements in a square matrix is always a perfect square number. If any two square matrices of the same order are added or multiplied, the order of the resultant matrix remains the same.

Square-Matrix

Square Matrix Definition

Square Matrix Definition

A square matrix is a matrix with the same number of rows and columns. It is an n x n matrix, where n represents the number of rows or columns.

Square Matrix Examples

Some common examples of square matrices of different orders are given below:

  • Following matrix is a square matrix of order “2 × 2,” i.e., the given matrix has two rows and two columns.

 A_{2\times2} = \left[\begin{array}{cc} p & q\\ r & s \end{array}\right]

  • Following matrix is a square matrix of order “3 × 3,” i.e., the given matrix has three rows and three columns.

B_{3\times3} = \left[\begin{array}{ccc} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 9 \end{array}\right]

  • Following matrix is a square matrix of order “n × n,” i.e., the given matrix has “n” rows and “n” columns.

A_{n\times n} = \left[\begin{array}{cccccc} a_{11} & a_{12} & a_{13} & . & . & a_{1n}\\ a_{21} & a_{22} & a_{23} & . & . & a_{2n}\\ a_{31} & a_{32} & a_{33} & . & . & a_{3n}\\ . & . & . & . & . & .\\ . & . & . & . & . & .\\ a_{n1} & a_{n2} & a_{n3} & . & . & a_{nn} \end{array}\right]

Properties of a Square Matrix

The following are some important properties of a square matrix:

  • In every square matrix, the number of rows and columns is equal.
  • The sum of all principal diagonal elements in a square matrix is defined as the trace of a matrix.
  • The determinant value can be determined only for square matrices.
  • If the determinant of a square matrix is zero, then the matrix is called a singular matrix, whereas it is said to be non-singular if its determinant is not equal to zero.
  • If the principal diagonal elements in a square matrix are ones and the rest of the elements are zeros, then the matrix is called an identity matrix.
  • The order of a square matrix and its transpose are the same.

Types of Square Matrix

We have various types of square matrices, such as identity matrices, singular matrices, non-singular matrices, symmetric matrices, etc.

  • Singular Matrix: If the determinant of a square matrix is zero, then the matrix is called a singular matrix.

“A” is a square matrix of order “n × n” and is said to be a singular matrix if |A| = 0.

  • Scalar Matrix: A scalar matrix is a square matrix whose principal diagonal elements are equal and the rest of the elements are zeros.
  • Identity Matrix: An identity matrix is a square matrix whose principal diagonal elements are ones and the rest of the elements are zeros.
  • Symmetric Matrix: A symmetric matrix is a square matrix whose transpose is the same as the original matrix.

“A” is a square matrix of order “n × n” and is said to be a symmetric matrix if AT = A. 

  • Skew-Symmetric Matrix: A skew-symmetric matrix is a square matrix whose transpose is equal to the negative of the original matrix.

“A” is a square matrix of order “n × n” and is said to be a symmetric matrix if AT = −A. 

  • Orthogonal Matrix: An orthogonal matrix is a square matrix whose inverse is equal to the transpose of the matrix.

“A” is a square matrix of order “n × n” and is said to be an orthogonal matrix if A-1 = AT.

Addition and Subtraction of Square Matrices

We can perform various mathematical operations on a square matrix, such as addition, multiplication, etc. When two square matrices of the same order are added or subtracted, the resultant matrix is obtained when corresponding elements are added or subtracted.

If A = \left[\begin{array}{cc} a & b\\ c & d \end{array}\right] and B = \left[\begin{array}{cc} p & q\\ r & s \end{array}\right]              are two square matrices of order “2 × 2,” then A\pm B = \left[\begin{array}{cc} a\pm p & b\pm q\\ c\pm r & d\pm s \end{array}\right]  .

  • If A and B are two square matrices of the same order, then A + B = B + A.

Multiplication of Square Matrices

If are A = \left[\begin{array}{cc} a & b\\ c & d \end{array}\right] and B = \left[\begin{array}{cc} p & q\\ r & s \end{array}\right]  are two square matrices of order “2 × 2,” then 

A\times B = \left[\begin{array}{cc} a & b\\ c & d \end{array}\right] \times \left[\begin{array}{cc} p & q\\ r & s \end{array}\right]

A\times B = \left[\begin{array}{cc} (a\times p)+(b\times q) & (a\times r)+(b\times s)\\ (c\times p)+(d\times q) & (c\times r)+(d\times s) \end{array}\right]              .

Determinant of a Square Matrix

The determinant of a square matrix is a scalar value or a summary value that represents the entire set of elements in the matrix. The determinant of a “2 × 2” square matrix can be easily determined using the formula, which is the difference of the product of the matrix’s principal diagonal elements.

If A = \left[\begin{array}{cc} a & b\\ c & d \end{array}\right]   is a square matrix of order “2 × 2,” then the formula to calculate its determinant is given as follows:

|A| or det A = [ad – bc]

Inverse of a Square Matrix

Inverse operation can be performed on the square matrix. Division of a matrix can be achieved using the inverse of a Matrix. Inverse of a matrix is found after the determinant of the Square Matrix is calculated. After that Adjoint of the Square matrix is found. Then Inverse is calculated as,

A-1= adj. A / |A|

Articles Related to Square Matrix:

Solved Examples on Square Matrix

Example 1: Calculate the determinant of the square matrix given below.

P = \left[\begin{array}{cc} -3 & 5\\ -2 & 0 \end{array}\right]

Solution:

Given matrix, P = \left[\begin{array}{cc} -3 & 5\\ -2 & 0 \end{array}\right]

|P| = (-3 × 0) – (–2 × 5)

|P| = 0 – (–10) = 10

Hence, the determinant of the given matrix is 10.

Example 2: Find whether the matrix given below is a singular matrix or not.

B = \left[\begin{array}{cc} 0 & 4\\ 4 & 0 \end{array}\right]

Solution:

To find whether the matrix given below is singular or not, we have to calculate its determinant.

|B| = (4 × 4) – (0 × 0) = 16 ≠ 0

As the determinant of the given matrix is not equal to zero, the given matrix is non-singular.

Example 3: Determine the inverse of the matrix given below.

A = \left[\begin{array}{cc} 1 & -2\\ 6 & 7 \end{array}\right]

Solution:

If A = \left[\begin{array}{cc} a & b\\ c & d \end{array}\right]           , then

A^{-1} = \frac{1}{ad-bc} \left[\begin{array}{cc} d & -b\\ -c & a \end{array}\right]

A^{-1} = \frac{1}{7+12} \left[\begin{array}{cc} 7 & 2\\ -6 & 1 \end{array}\right]

A^{-1} = \frac{1}{19}\left[\begin{array}{cc} 7 & 2\\ -6 & 1 \end{array}\right]

A^{-1}= \left[\begin{array}{cc} \frac{7}{19} & \frac{2}{19}\\ \frac{-6}{19} & \frac{1}{19} \end{array}\right]

Example 4: Find whether the matrix given below is symmetric or not.

A = \left[\begin{array}{ccc} 2 & 0 & 6\\ 5 & 4 & 9\\ 1 & 3 & -5 \end{array}\right]

Solution:

“A” is a square matrix of order “n × n” and is said to be a symmetric matrix if AT = A.

The given matrix, A = \left[\begin{array}{ccc} 2 & 0 & 6\\ 5 & 4 & 9\\ 1 & 3 & -5 \end{array}\right]

A^{T} = \left[\begin{array}{ccc} 2 & 5 & 1\\ 0 & 4 & 3\\ 6 & 9 & -5 \end{array}\right]           ≠ A

Since, AT ≠ A, the given square matrix is not symmetric.

FAQs on Square Matrix

Define a square matrix with example

A square matrix is defined as a matrix that has an equal number of rows and columns. The order of a square matrix that has “n” rows and “n” columns is “n × n.”

What is an orthogonal matrix?

An orthogonal matrix is a square matrix whose inverse is equal to the transpose of the matrix.

“A” is a square matrix of order “n × n” and is said to be an orthogonal matrix if A-1 = AT.

What is meant by the determinant of a matrix?

Determinant of a square matrix is a scalar value or a summary value that represents the entire set of elements in the matrix.

When is a square matrix is said to be symmetric?

A symmetric matrix is a square matrix whose transpose is the same as the original matrix.

“A” is a square matrix of order “n × n” and is said to be a symmetric matrix if AT = A. 



Similar Reads

If the perimeter and area of a square are equal, calculate the side of the square.
Square is a closed two-dimensional figure with four sides and four corners. The length of all four sides is equal and parallel to each other. A square is a quadrilateral in which: The opposite sides are parallel.All four sides are equal.All angles measure 90°.Perimeter of the square The length of the boundary of a square can be calculated by perfor
6 min read
Convert Square Yards to Square Meters
A square meter and a square yard are units of measurement for an area. The area of a shape is measured in different units, such as square meters, square feet, square yards, acres, cents, hectares, etc. Now, while solving some problems, we need to convert units so that the calculations can be carried out. For example, we are asked to find out the ar
5 min read
Square Meters to Square Yards
The conversion of one unit of measurement to another is widely used in mathematics. Generally, while solving some problems, we need to convert units. For example, you are asked to find the area of a room in square feet, and its side length is given in meters. So, after calculating the area of a room, we have to convert the obtained area in square m
6 min read
Square Meters to Square Inches
Square Meters to Square Inches conversion is used to convert the SI unit of area m2 into other units. It is useful for measuring various objects used in our daily life, area of a room, furniture, etc is measured in m2 whereas an in2 is used to measure the length of tiles, floors, etc. Unit ConversionUnit conversion means the process of conversion b
6 min read
Square Yard to Square Feet
A square yard and a square foot are units of measurement for the area. The area of various shapes, such as the area of a square, the area of a triangle, etc, are measured in different units, such as square meters, square feet, square yards, acres, cents, hectares, etc. While solving many problems, mathematical conversions from one unit to another a
5 min read
Convert Square Mile to Square Meter
Unit conversion is defined as the process of changing standard units from one form to another according to the requirements. For various reasons, the requirement for fundamental conversion has always existed in the relevant professions. One of the methods of conversion from one unit to the other is by calculating the conversion factor between the t
3 min read
Square Meter to Square Feet (sq m to sq ft) Converter
Square Meter to Square Feet Converter is a free tool prepared by GeekforGeeks that converts the given value of the sq meters into the value in square ft. It is a fast and easy-to-use tool that helps students solve various problems. Table of Content How to use Square Meter to Square Feet Converter?How to Convert Square Meter to Square Feet?Square Me
5 min read
Convert Square Feet to Square Meter
The area of a two-dimensional shape is defined as the amount of surface it can cover. In other words, it is a two-dimensional number that indicates the size of a region or form. Its standard unit of measurement is square meters (m2). With the help of the metric system, we can change its units to bigger measurement units such as square feet, acre, h
3 min read
Convert Square Mile to Square Kilometer
Unit conversion techniques are utilized to do the most common conversions such as length conversions from meter to mm or volume translations from meter to yards or weight conversions from grams to kilograms and so on. In other words, it is the process of transferring standard units from one form to another according to requirements. It helps us in
3 min read
Square and Square Roots Practice Questions
Squares and Square Roots mathematical comprehension is essential. These ideas are essential for students in all grades and serve as the foundation for more complex subjects. In this article, we have covered Square and Square Roots, its practice questions and others in detail. What are Square and Square Roots?A Square of a number is the result of mu
4 min read
Square Root 2 Value | How to Find the Square Root of 2?
Answer: The value or the square root of 2 = 1.414Explanation: The numerical value of square root 2 up to 50 decimal places is as follows: √2 = 1.41421356237309504880168872420969807856967187537694… The value of the square root of 2 is widely accepted as 1.414. The reason for this is that it contains an infinite number of decimals and to make mathema
5 min read
Determinant of a Square Matrix
Determinant of a square matrix is the scalar value or number calculated using the square matrix. The determinant of square matrix X is represented as |X| or det(X). In this article we will explore the determinant of square matrix in detail along with the determinant definition, determinant representation and determinant formula. We will also discus
6 min read
Is the square root of 9 a whole number?
The number system includes different types of numbers for example prime numbers, odd numbers, even numbers, rational numbers, whole numbers, etc. These numbers can be expressed in the form of figures as well as words accordingly. For example, the numbers like 40 and 65 expressed in the form of figures can also be written as forty and sixty-five. A
5 min read
Class 8 NCERT Solutions - Chapter 6 Squares and Square Roots - Exercise 6.2
Question 1. Find the square of the following numbers. (i) 32 (32)2 = (30 + 2)2 = (30)2 + (2)2 + 2 × 30 × 2 [Since, (a + b)2 = a2 + b2 + 2ab] = 900 + 4 + 120 = 1024 (ii) 35 (35)2 = (30 + 5)2 = (30)2 + (5)2 + 2 × 30 × 5 [Since, (a + b)2 = a2 + b2 + 2ab] = 900 + 25 + 300 = 1225 (iii) 86 (86)2 = (90 - 4)2 = (90)2 + (4)2 - 2 × 90 × 4 [Since, (a - b)2 =
3 min read
Class 8 RD Sharma Solutions - Chapter 3 Squares and Square Roots - Exercise 3.9
Question: Using the square root table find the square roots of the following Note: You may access the table of squares and square roots here. (1) 7 Solution: We know that 7 is a prime number. So from the square root table, the square root of 7 is 2.646 (2) 15 Solution: Here we can write 15 as 3*5 Now we have to find the square root of 3 and 5. Here
9 min read
Is 1 a perfect square?
The arithmetic value which is used for representing the quantity and used in making calculations are defined as Numbers. A symbol like “4,5,6” which represents a number is known as a numeral. Without numbers, we can't do counting of things, date, time, money, etc., these numbers are also used for measurement and used for labeling. The properties of
7 min read
Is square root of 2 a rational number?
Real numbers that cannot be expressed as a simple fraction are known as irrational numbers. It can’t be represented as a ratio like p/q, where p and q are both integers, q≠0. It’s an inconsistency of rational numbers. Irrational numbers are generally written as R\Q, where the backward slash sign stands for ‘set minus.’ It may also be written as R−Q
5 min read
Is square root of 3 a rational number?
Real numbers that cannot be expressed as a simple fraction are known as irrational numbers. It can’t be represented as a ratio like p/q, where p and q are both integers, q≠0. It’s an inconsistency of rational numbers. Irrational numbers are generally written as R\Q, where the backward slash sign stands for ‘set minus.’ It may also be written as R−Q
5 min read
Find the smallest four digit number which is a perfect square
The arithmetic value which is used for representing the quantity and used in making calculations are defined as Numbers. A symbol like “4,5,6” which represents a number is known as numerals. Without numbers, we can't do counting of things, date, time, money, etc. these numbers are also used for measurement and used for labeling. The properties of n
7 min read
How to find the square roots of 196?
The arithmetic value which is used for representing the quantity and used in making calculations are defined as Numbers. A symbol like “4, 5, 6” which represents a number is known as numerals. Without numbers, counting things is not possible, date, time, money, etc. these numbers are also used for measurement and used for labeling. The properties o
6 min read
Are square roots whole numbers?
Numerals are the mathematical figures used in financial, professional as well as a social field in the social world. The digits and place value in the number and the base of the number system determine the value of a number. Numbers are used in various mathematical operations as summation, subtraction, multiplication, division, percentage, etc whic
5 min read
Find the area of a square with side 5x2y
Mathematics is a subject with vast scope. It is divided into various branches as arithmetic, algebra, geometry, statistics, etc. Mathematics becomes part of education from the very beginning. Initially, students are introduced to basic mathematics and later to its various branches as the level is upgraded. Algebra is also one of the branches of mat
3 min read
What happens to the area of a square when its side is tripled?
A square is a regular quadrilateral. It has all four edges of equal length. In addition to this, all four angles are also equal in nature. The angles of the square subtend an angle equivalent to 90 degrees. The diagonals of the square are equal and bisect each other at an angle of 90 degrees. A square is a special case of the rectangle where the op
3 min read
What happens to the area of a square when the perimeter is doubled?
Square is a geometrical figure which is formed of four equal sides. It is a regular quadrilateral where all the angles are right angles. Basically, it can be considered as a special case of a rectangle, where all the sides are equal in length. For instance, a square courtyard. Properties of square All four sides of a square are equal.The diagonals
7 min read
If the side of a square is 10 cm then how many times will the new perimeter become if the side length is doubled?
Square is a closed two-dimensional figure with four sides and four corners. The length of all four sides is equal and parallel to each other. The basic figure of a square is shown below. A square is a quadrilateral in which: The opposite sides are parallel.All four sides are equal.All angles measure 90°. Perimeter of the square The length of the bo
8 min read
What is Cos Square theta Formula?
The equations that relate the different trigonometric functions for any variable are known as trigonometric identities. These trigonometric identities help us to relate various trigonometric formulas and relationships with different angles. They are sine, cosine, tangent, cotangent, sec, and cosec. Here, we will look at the cos square theta formula
3 min read
Square 1 to 30
Square 1 to 30 is the square of all the natural numbers from 1 to 30. The square of a number is the multiple of the number with itself. Learning these squares helps students to easily solve various arithmetic problems and helps them to solve complex calculations with ease. The value of the square of 1 to 30 ranges from 1 to 900 and we represent the
7 min read
Show that 500 is not a perfect square
The method to represent and work with numbers is known as the number system. A number system is a system of writing to represent numbers. It is the mathematical notation used to represent numbers of a given set by using digits or other symbols. It allows us to operate arithmetic operations such as division, multiplication, addition, subtraction. So
4 min read
Convert Square Mile To Ares
The process of converting standard units from one form to another in accordance with regulations is known as unit conversion. The need for fundamental conversion has always been present in the relevant professions for a variety of reasons. It aids in obtaining precision and accuracy in the data acquired, which in turn helps in the accurate portraya
3 min read
Simplify the Square root of -16 using the imaginary unit i
A complex number is written as a + ib, where a is the real part and ib is the imaginary unit such that i = √-1. Using this logic, 7 + 12i is a complex quantity in which 7 is the real part and 12i - is the imaginary part. How to Get the Negative Sign Out of Square RootSuppose a complex number:  C = √-a2 then, √-a2 = √(-1×a×a) = √(-1)×√(a×a) = i × a
2 min read