Search for probability and statistics terms on Statlect
StatLect

Multiplication of a matrix by a scalar

by , PhD

This lecture explains how to multiply a matrix by a scalar.

Table of Contents

Definition

Remember that a scalar is just a single number, that is, a matrix having dimension .

Definition Let be a matrix and be a scalar. The product of by is another matrix, denoted by , such that its -th entry is equal to the product of by the -th entry of , that is

for and .

The product could be defined in the same manner. However, the order of the product does not really matter, because . Therefore, can be considered the same as .

Example Let and define the matrix

The product is

Properties

Basically all the properties enjoyed by multiplication of real numbers are inherited by multiplication of a matrix by a scalar.

Proposition (associative property) Multiplication of a matrix by a scalar is associative, that is,

for any matrix and any scalars and .

Proof

Let be a matrix. We know that is another matrix, such that its -th entry is equal to the product of by the -th entry of , that is,

Furthermore, is a matrix, such that its -th entry is equal to the product of by the -th entry of , that is,

As a consequence, we have that

where we have used the definitions of in step , in step and in step . In step we have used the associativity of ordinary multiplication. Thus, we have proved that the -th entry of is equal to the -th entry of . Because this is true for every and , the statement is proved.

Proposition (distributive property 1) Multiplication of a matrix by a scalar is distributive with respect to matrix addition, that is,

for any scalar and any matrices and such that their addition is meaningfully defined.

Proof

Let and be matrices. By the definition of matrix addition is another matrix, such that its -th entry is equal to the sum of the -th entry of and the -th entry of , that is,

Furthermore, is a matrix, such that its -th entry is equal to the product of by the -th entry of , that is,

As a consequence, we have that

where we have used the definitions of in step , in step , and in step and in step . In step we have used the distributivity of ordinary multiplication. Thus, we have proved that the -th entry of is equal to the -th entry of . Because this is true for every and , the statement is proved.

Proposition (distributive property 2) Multiplication of a matrix by a scalar is distributive with respect to the addition of scalars, that is,

for any scalars and and any matrix .

Proof

Let be a matrix. We know that is another matrix, such that its -th entry is equal to the product of by the -th entry of , that is,

As a consequence, we have that

where we have used the definitions of in step , and in step , in step . In step we have used the distributivity of ordinary multiplication. Thus, we have proved that the -th entry of is equal to the -th entry of . Because this is true for every and , the statement is proved.

Solved exercises

Below you can find some exercises with explained solutions.

Exercise 1

Let be the following matrix

Let . Compute the product .

Solution

The product is another matrix such that for each and , the -th element of is equal to the product between and the -th element of :

Exercise 2

Let be a row vector defined by

and a matrix defined by

Compute the product

where denotes the transpose of .

Solution

The transpose of is

The product between and its transpose is

which is a scalar. As a consequence, we have that

Exercise 3

Define two row vectors:

Find a scalar such that

where

Solution

By applying the definition of multiplication of a matrix by a scalar, we obtain

By applying the definition of matrix addition, we get

Therefore, the equation

is satisfied if and only if

which in turn is satisfied if and only if

But this implies

How to cite

Please cite as:

Taboga, Marco (2021). "Multiplication of a matrix by a scalar", Lectures on matrix algebra. https://www.statlect.com/matrix-algebra/multiplication-of-a-matrix-by-a-scalar.

The books

Most of the learning materials found on this website are now available in a traditional textbook format.