Matrix Operations
Matrix and Scalar Entries. A matrix consists of
Addition and Multiplication.
Given two
matrices
and
,
we can define the sum
as an
matrix.
For example,
Given a matrix
of any size, we can define the
scalar multiple
with scalar
.
For example,
Matrix multiplication.
Given
matrix
and
matrix
,
we can introduce the multiplication
of
matrix with (i,j)-entry
Matlab/Octave. We can define a matrix in either of the following forms:
> A = [4 0 5; -1 3 2]
> A = [4 0 5
-1 3 2]You can execute basic matrix operations as follows.
> 5 * A
> A + B
> A * B
EXAMPLE 1.
Let
,
, and
.
- Compute
.
- Is the matrix sum
defined?
- Compute
.
- Compute
.
EXAMPLE 2.
Compute
in each of the following:
-
and
.
-
and
.
Properties of matrix multiplication.
An
matrix is called a square matrix.
When the square matrices
and
are of the same size,
both
and
are defined.
The matrix multiplication is associative.
That is,
whenever
or
is defined.
However, the matrix multiplication is not commutative,
that is,
in general.
EXAMPLE 3.
Let
and
.
Show that these matrices do not commute.
© TTU Mathematics