next up previous contents
Next: Linear Combinations Up: Basic Linear Algebra Previous: Linear Equations

Operations on Vectors and Matrices

It is useful to formalize the operations on vectors and matrices that form the basis of linear algebra. For our purpose, the most useful definitions are the following.

A matrix is a rectangular array of numbers written in the form

displaymath1324

The matrix A has dimensions tex2html_wrap_inline1328 if it has m rows and n columns. When m=1, the matrix is called a row vector; when n=1, the matrix is called a column vector. A vector can be represented either by a row vector or a column vector.

Equality of two matrices of same dimensions:

Let tex2html_wrap_inline1338 and tex2html_wrap_inline1340 .

Then A=B means that tex2html_wrap_inline1344 for all i,j.

Multiplication of a matrix A by a scalar k:

displaymath1352

Addition of two matrices of same dimensions:

Let tex2html_wrap_inline1338 and tex2html_wrap_inline1340 .

Then tex2html_wrap_inline1358

Note that A+B is not defined when A and B have different dimensions.

exercise282

Multiplication of a matrix of dimensions tex2html_wrap_inline1328 by a matrix of dimensions tex2html_wrap_inline1370 :

Let tex2html_wrap_inline1372 and tex2html_wrap_inline1374 .

Then AB is a matrix of dimensions tex2html_wrap_inline1378 computed as follows.

displaymath1380

As an example, let us multiply the matrices

displaymath1382

The result is tex2html_wrap_inline1384

Note that AB is defined only when the number of columns of A equals the number of rows of B. An important remark: even when both AB and BA are defined, the results are usually different. A property of matrix multiplication is the following:

displaymath1396

That is, if you have three matrices A, B, C to multiply and the product is legal (the number of columns of A equals the number of rows of B and the number of columns of B equals the number of rows of C), then you have two possibilities: you can first compute AB and multiply the result by C, or you can first compute BC and multiply A by the result.

exercise346

Remark: A system of linear equations can be written conveniently using matrix notation. Namely,

displaymath1434

can be written as

displaymath1436

or as

displaymath1438

So a matrix equation Ax = b where A is a given tex2html_wrap_inline1328 matrix, b is a given m-column vector and x is an unknown n-column vector, is a linear system of m equations in n variables. Similarly, a vector equation tex2html_wrap_inline1458 where tex2html_wrap_inline1460 are given m-column vectors and tex2html_wrap_inline1464 are n unknown real numbers, is also a system of m equations in n variables.

exercise396

The following standard definitions will be useful:

trivlist422


next up previous contents
Next: Linear Combinations Up: Basic Linear Algebra Previous: Linear Equations

Michael A. Trick
Mon Aug 24 13:24:14 EDT 1998