Physics Wallah

Matrix Multiplication Formula - Definition and Conditions

Matrix multiplication is a mathematical operation used to determine the product of two matrices, yielding a single resultant matrix. It represents a binary operation with well-defined rules and characteristics.
authorImageAnchal Singh30 Sept, 2023
Share

Share

Matrix Multiplication Formula

In the realm of linear algebra, matrices hold a significant position when it comes to addressing various mathematical concepts. A matrix is essentially a structured arrangement of numbers, symbols, or expressions organized in rows and columns. This mathematical construct enables us to execute a multitude of operations, including but not limited to addition, subtraction, and multiplication. Within this article, we will delve into the intricate process of matrix multiplication, discussing its algorithm and formula. We will also provide detailed examples showcasing the multiplication of 2×2 and 3×3 matrices, offering a comprehensive understanding of this fundamental mathematical operation.

Matrix Multiplication Definition

Matrix multiplication, also referred to as matrix product, is an operation that combines two matrices to yield a single matrix. This operation is categorized as a binary operation.

When considering two matrices, A and B, their product is symbolically represented as follows:

X = AB

In essence, matrix multiplication can be thought of as the dot product of the two matrices.

Scalar Multiplication of Matrices:

Multiplying a matrix by a scalar value is a straightforward operation known as scalar multiplication.

As we know, a matrix is an organized collection of numbers arranged in rows and columns. When you multiply a matrix by a scalar value, it is termed scalar multiplication. Alternatively, you can multiply one matrix by another matrix. To illustrate this concept, let's examine the following example.

Mathematically, we can define the multiplication of a matrix by a scalar as follows:

If A = [aij]m × n represents a matrix and k is a scalar, then kA is a resulting matrix obtained by multiplying each element of A by the scalar k.

In simpler terms, kA = k [aij]m × n = [k (aij)]m × n. In this context, the (i, j)th element of kA is equal to k times aij for all possible values of i and j .

Example:

Solution: We have

we have to multiply the given element of the matrix A by 4.

this is the required answer.

Also Check - Arithmetic Progression Formula

Matrix multiplication Condition

In order to execute the multiplication of two matrices, it is imperative that the number of columns in the first matrix matches the number of rows in the second matrix. Consequently, the resulting matrix product will inherit the number of rows from the first matrix and the number of columns from the second matrix. This arrangement defines the order or dimensions of the resulting matrix, known as the matrix multiplication order.

Multiplying matrices involves performing a series of operations where the entries of one matrix are combined with the entries of another matrix to produce a new matrix. To multiply two matrices A and B, follow these steps:

Check Compatibility:

Ensure that the number of columns in matrix A matches the number of rows in matrix B. In other words, matrix A must be of size m x n, and matrix B must be of size n x p to be compatible for multiplication.

Initialize the Resultant Matrix:

Create an empty matrix, often denoted as C, with dimensions m x p, where m is the number of rows from matrix A, and p is the number of columns from matrix B.

Calculate the Entries of the Resultant Matrix:

For each element C[i][j] in the resultant matrix C, calculate it using the dot product of the corresponding row from matrix A and column from matrix B. The formula for the element C[i][j] is:

C[i][j] = A[i][1]*B[1][j] + A[i][2]*B[2][j] + ... + A[i][n]*B[n][j]

Perform the Dot Products:

Calculate the dot product of row i from matrix A and column j from matrix B to get the value for C[i][j]. This involves multiplying corresponding elements from both matrices and summing them up.

Repeat for All Entries:

Repeat the dot product calculation for all elements in the resultant matrix C, filling in each element's value.

Also Check - Data Handling Class 8 Formula

Matrix Multiplication Formula

For a better picture of the Matrix Multiplication Formula let's take an example to understand this formula.

Considering two matrices A and B such that,

Matrix Multiplication

Matrix C = AB is denoted by

Matrix Multiplication

An element in matrix C where C is the multiplication of Matrix A X B.

Matrix Multiplication

For x = 1…… a  and y= 1…….c

Algorithm for Matrix Multiplication

Matrix multiplication is a critical operation with wide-ranging applications, leading to the development of various algorithms over the years. There are four primary types of matrix multiplication algorithms:

Iterative Algorithm: This approach involves systematically multiplying corresponding elements of matrices and summing them up. It's commonly used for smaller matrices like 2x2, 3x3, and 4x4.

Divide and Conquer Algorithm: This method breaks down the matrix multiplication problem into smaller sub-problems, multiplies them recursively, and combines the results. It's useful for larger matrices and reduces the overall computational complexity.

Sub-cubic Algorithms: These advanced algorithms aim to achieve matrix multiplication with a computational complexity lower than the traditional cubic complexity. They are designed to improve efficiency for large matrices.

Parallel and Distributed Algorithms: With the rise of parallel computing and distributed systems, algorithms have been developed to perform matrix multiplication efficiently in parallel or on distributed computing architectures.

Matrix multiplication is a fundamental operation in linear algebra. It involves binary operations (addition, subtraction, multiplication, and division) on entries within matrices. These operations mirror the same operations performed on real and rational numbers.

Matrix multiplication represents linear mappings, including scalar addition and multiplication. It's a fundamental building block in linear algebra, enabling various transformations and computations.

In certain applications, particularly those involving data arranged in grids or meshes, specialized algorithms are designed to minimize inefficiencies caused by delays in data arrival from different matrices. These mesh-based algorithms optimize the handling of data, enhancing the efficiency of matrix multiplication in specific contexts.

Rules and Properties

Compatibility Rule: The product of two matrices A and B is defined if and only if the number of columns in matrix A is equal to the number of rows in matrix B.

Non-Commutative Property: If matrix AB is defined, it does not necessarily mean that matrix BA is also defined. Matrix multiplication is generally not commutative.

Square Matrices: If both matrices A and B are square matrices of the same order (i.e., having the same number of rows and columns), then both AB and BA are defined.

Non-Equality of AB and BA: Even if both AB and BA are defined, it is not guaranteed that they will be equal. In general, AB and BA can yield different results.

Zero Matrix Product: If the product of two matrices is a zero matrix, it does not necessarily imply that one or both of the matrices are zero matrices. Other non-zero matrices can also yield a zero matrix when multiplied together.

Also Check - Integration by Substitution Formula

Properties of Matrix Multiplication

Matrix multiplication has several important properties that govern how matrices interact when multiplied together. Here are some of the key properties of matrix multiplication:

Associativity: Matrix multiplication is associative, which means that for matrices A, B, and C of appropriate dimensions, (A * B) * C = A * (B * C).

Distributive Property: Matrix multiplication is distributive over matrix addition. For matrices A, B, and C of appropriate dimensions, A * (B + C) = (A * B) + (A * C).

Scalar Multiplication: Matrices can be multiplied by scalars. If A is a matrix and k is a scalar, then k * A is obtained by multiplying each element of A by k.

Identity Matrix: Multiplying any matrix by the identity matrix I results in the original matrix. For any matrix A of appropriate dimensions, A * I = A and I * A = A.

Zero Matrix: Multiplying any matrix by the zero matrix (a matrix filled with zeros) results in the zero matrix. For any matrix A of appropriate dimensions, A * 0 = 0 * A = 0.

Non-Commutativity : Matrix multiplication is generally not commutative. In most cases, AB ≠ BA, meaning the order of multiplication matters.

Transposition: The transpose of a product of matrices is equal to the product of the transposes taken in reverse order. If A and B are matrices of appropriate dimensions, then (A * B)^T = B^T * A^T.

Inverse Matrices: Inverse matrices play a crucial role in solving linear systems of equations. If A is an invertible (non-singular) square matrix, then there exists a unique matrix A^(-1) such that A * A^(-1) = A^(-1) * A = I, where I is the identity matrix.

Matrix Powers: Matrix multiplication can be extended to exponentiation. For a square matrix A and a positive integer n, A^n represents the product of A multiplied by itself n times.

Matrix Trace: The trace of a product of two matrices is equal to the trace of the reverse order product. Tr(AB) = Tr(BA), where Tr denotes the trace of a matrix (the sum of its diagonal elements).

These properties are fundamental in linear algebra and are used extensively in various applications, including solving systems of linear equations, transformations, and computer graphics, among others.

What Does Matrix Multiplication Entail?

Matrix multiplication is a mathematical operation used to determine the product of two matrices, yielding a single resultant matrix. It represents a binary operation with well-defined rules and characteristics.

How Are Two Matrices Multiplied Together?

To perform matrix multiplication, it is crucial to verify if the number of columns in the first matrix matches the number of rows in the second matrix. Subsequently, for each element in the resulting matrix, a procedure involving the multiplication of corresponding elements from the first matrix's columns and the second matrix's rows, followed by summation, is executed. Essentially, this process entails a dot product operation between columns and rows.

How Is Matrix Multiplication Performed for Two 3×3 Matrices?

To carry out matrix multiplication for two 3×3 matrices, a systematic procedure is employed. For each element in the resultant matrix, a computation is executed by multiplying the corresponding row of the first matrix with the corresponding column of the second matrix, followed by summation of these products. This operation is reiterated for all elements in the resulting 3×3 matrix.

What Is the Outcome of Multiplying a (2×3) Matrix by a (3×3) Matrix?

When multiplying a (2×3) matrix by a (3×3) matrix, the resultant matrix maintains its original dimensions, resulting in a (2×3) matrix. The number of rows corresponds to the first matrix, while the number of columns matches that of the second matrix.

What Is the Notation Used for Matrix Multiplication?

In mathematical notation, matrix multiplication is denoted as follows: If matrix A has dimensions m×n and matrix B has dimensions p×q, their multiplication is represented by a dot matrix: C = AB The resulting matrix C possesses dimensions m×q. Matrix multiplication serves as a foundational concept with extensive practical applications, adhering to specific principles that ensure compatibility of dimensions and accurate computation of products.
Join 15 Million students on the app today!
Point IconLive & recorded classes available at ease
Point IconDashboard for progress tracking
Point IconMillions of practice questions at your fingertips
Download ButtonDownload Button
Banner Image
Banner Image
Free Learning Resources
Know about Physics Wallah
Physics Wallah is an Indian edtech platform that provides accessible & comprehensive learning experiences to students from Class 6th to postgraduate level. We also provide extensive NCERT solutions, sample paper, NEET, JEE Mains, BITSAT previous year papers & more such resources to students. Physics Wallah also caters to over 3.5 million registered students and over 78 lakh+ Youtube subscribers with 4.8 rating on its app.
We Stand Out because
We provide students with intensive courses with India’s qualified & experienced faculties & mentors. PW strives to make the learning experience comprehensive and accessible for students of all sections of society. We believe in empowering every single student who couldn't dream of a good career in engineering and medical field earlier.
Our Key Focus Areas
Physics Wallah's main focus is to make the learning experience as economical as possible for all students. With our affordable courses like Lakshya, Udaan and Arjuna and many others, we have been able to provide a platform for lakhs of aspirants. From providing Chemistry, Maths, Physics formula to giving e-books of eminent authors like RD Sharma, RS Aggarwal and Lakhmir Singh, PW focuses on every single student's need for preparation.
What Makes Us Different
Physics Wallah strives to develop a comprehensive pedagogical structure for students, where they get a state-of-the-art learning experience with study material and resources. Apart from catering students preparing for JEE Mains and NEET, PW also provides study material for each state board like Uttar Pradesh, Bihar, and others

Copyright © 2025 Physicswallah Limited All rights reserved.