Matrices. Operations with matrices.

A matrix of size m×n is called a rectangular table of numbers aij,,i=1,2,...,m, j=1,2,...,n,

A=(a11a12...a1na21a22...a2nam1am2...amn)

consisting of m rows and n columns.

The sum A+B of matrices of size m×n, A=aij and B=bij, is defined as the matrix C=cij of the same order, where each element is equal to the sum of the corresponding elements of matrices A and B:

A+B=(a11a12...a1na21a22...a2nam1am2...amn)+(b11b12...b1nb21b22...b2nbm1bm2...bmn)=

=(a11+b11a12+b12...a1n+b1na21+b21a22+b22...a2n+b2nam1+bm1am2+bm2...amn+bmn)

The product αA of a matrix A=aij by a number α (real or complex) is defined as the matrix B=bij, where each element is equal to the product of the number α by the corresponding element of matrix A:

αA=α(a11a12...a1na21a22...a2nam1am2...amn)=(αa11αa12...αa1nαa21αa22...αa2nαam1αam2...αamn).

The product AB of a matrix A=aij of size m×n by a matrix B=bij of size n×k is defined as the matrix C=cij of size m×k, where each element standing in the i-th row and j-th column is equal to the sum of the products of the corresponding elements of the i-th row of matrix A and the j-th column of matrix B:

A×B=(a11a12...a1na21a22...a2nam1am2...amn)×(b11b12...b1kb21b22...b2kbn1bn2...bnk)= =(ν=1na1νbν1ν=1na1νbν2...ν=1na1νbνkν=1na2νbν1ν=1na2νbν2...ν=1na2νbνkν=1namνbν1ν=1namνbν2...ν=1namνbνk)=C.

The matrix AT is called the transpose of the matrix A if the condition aijT=aji is satisfied for all i,j, where aij and aijT are the elements of matrices A and AT respectively:

A=(a11a12...a1na21a22...a2nam1am2...amn)AT=(a11a21...am1a12a22...am2a1na2n...amn)

EXAMPLES.

1. Given

A=(213536124);B=(632425327).

Compute

а) A+B;

b) 3A;

c) AB;

d) AT.

Solution.

а) A+B=(213536124)+(632425327)=(2+6133+25+4326+51+32+24+7)=(8259112411).

b) 3A=3(213536124)=(32313335333(6)3(1)3234)= =(639159183612).

c) AB=(213536124)(632425327)= (26+14+332(3)+1(2)+3222+15+3756+34635(3)+3(2)6252+356716+24+431(3)+2(2)+4212+25+47)= =(2523024331714736).

d) AT=(251132364).

Tags: matrix, operations with matrices