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

displaymath5310

The matrix A has dimensions tex2html_wrap_inline5314 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_inline5324 and tex2html_wrap_inline5326 .

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

Multiplication of a matrix A by a scalar k:

displaymath5338

Addition of two matrices of same dimensions:

Let tex2html_wrap_inline5324 and tex2html_wrap_inline5326 .

Then tex2html_wrap_inline5344

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

exercise326

Multiplication of a matrix of dimensions tex2html_wrap_inline5314 by a matrix of dimensions tex2html_wrap_inline5356 :

Let tex2html_wrap_inline5358 and tex2html_wrap_inline5360 .

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

displaymath5366

As an example, let us multiply the matrices

displaymath5368

The result is tex2html_wrap_inline5370

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:

displaymath5382

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.

exercise390

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

displaymath5420

can be written as

displaymath5422

or as

displaymath5424

So a matrix equation Ax = b where A is a given tex2html_wrap_inline5314 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_inline5444 where tex2html_wrap_inline5446 are given m-column vectors and tex2html_wrap_inline5450 are n unknown real numbers, is also a system of m equations in n variables.

exercise440

The following standard definitions will be useful:

trivlist466


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

Michael A. Trick
Mon Aug 24 16:30:59 EDT 1998