Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Best sites for teachers
Sites for teachers
Sites for parents
Terms of use
Awards

Interactive Activities
CTK Exchange
CTK Insights - a blog

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Reciprocal links
Privacy Policy

Guest book
News sites

Recommend this site

Best sites for teachers
Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

Addition of Vectors and Matrices

The term vector applies to elements of spaces for which two operations are defined - addition and multiplication by scalar. The definition appears to be circular but actually is not. First one sets up axioms of a vector space for the two operations defined for its elements. Then, sometime later (and in passing :) it's mentioned that it's customary to call elements of a vector space vectors.

An essential part of the study of vector spaces is devoted to the existence of bases and representation of vectors in different bases. For a given vector space, all bases have the same cardinality. When the bases are finite (and, consequently, have the same number of elements) the space is said to be finite-dimensional, and its elements can be identified with n-tuples (x1, x2,...,xn).

It would be much less interesting but is still possible, to start with n-tuples and define addition componentwise as has been done for complex numbers. With this definition, it's immediately apparent that complex numbers may be identified with 2-vectors. Componentwise addition has a very simple physical and geometric interpretation. If a vector is looked at as an arrow emanating from one of its end-points, then to add to a vector one slides one vector until its beginning coincides with the end of the other vector. The sum of the two is the vector that joins their free ends - the beginning of one to the end of another. This is known as the parallelogram rule. The parallelogram rule implies that the addition of vectors is commutative.

Matrices are vectors whose components are arranged in a rectangular array instead of a single row or column. An mxn (read "m by n") matrix is thus an array (aij) where i changes from 1 through m whereas j ranges from 1 through n. More explicitly,

  a11 a12 a13 ... a1n
a21 a22 a23 ... a2n
a31 a32 a33 ... a3n
...
am1 am2 am3 ... amn

which has m rows and n columns. It's clear that if we define matrix addition again componentwise, the operation will be both associative and commutative. Zero matrix is the one with all components 0.

Defining only vector and matrix addition is making injustice to both vector and matrix spaces. Both have a much deeper algebraic structures. As I have mentioned, vectors can be multiplied by scalars. In addition, there are scalar,vector, and tensor products. For matrices, we have matrix and tensor products as well as multiplication by a vector.


Direct Sum of Vector Spaces

Collecting numbers into n-tuples may be abstracted in yet another way. Let their be two vector spaces X1 and X2. Then we may consider pairs of elements (x1,x2) with the first component from the first space and second from the second. The set of all such tuples is known as the direct sum of spaces X1 and X2. The number of spaces may of course be arbitrary. If we decide to consider a tuple of tuples as a single long tuple obtained by omitting parentheses from the "inner" tuples, the operation of direct sum will become associative. If, in addition, we agree to identify vector spaces whose bases have the same cardinality, the operation of direct sum will become commutative as well. Elsewhere we looked into the direct sum of Boolean Algebras.


Addition of Functions

Function is a correspondence f between elements of a space X and those of a space Y such that any element x of X has a unique corresponding element y of Y which is denoted y=f(x). If Y is a set of numbers, the function is called numeric. If Y=R, the set of all real numbers, the function is called real. The following is a widely used shorthand for "a function f from X to Y"

  f: XY

Two functions f and g are equal if they define the same correspondence, f(x) = g(x) for all x. Numeric functions can be added. For example, let

  f, g: XR

be two real functions. Then

  f + g: XR

is, by definition, another real function (f + g) such that

  (f + g)(x) = f(x) + g(x).

The value of the sum is the sum of the values. Note that, in general, for an arbitrary function f, its value at one point does not depend in any way of its values at other points. The sum of functions is said to be defined pointwise. Because of this, some property of the addition of numbers are inherited by the addition of functions. Commutativity is one example:

  (f + g)(x) = f(x) + g(x) = g(x) + f(x) = (g + f)(x).

Therefore,

  f + g = g + f.

Associativity is shown in a similar manner. It's also easy to define (-f), the inverse element for f. Indeed, if (-f)(x)=-f(x) then f+(-f)=0, where 0 is the zero function, i.e. the function that takes on a single value 0 for all x: 0(x)=0.

It is worth noting that vectors are functions defined on finite sets. If f = (f1, ..., fn), then,

  f: {1, ..., n}Y,

and we may consider fi, i = 1, ..., n, as a more common in this context f(i). (There is a Java applet that illustrates the operations of addition and subtractions of fuctions.)

It's worth noting that pointwise and componentwise definitions are actually the same. Indeed, assume X={1,2,...,n}. Then, a function f: XR is uniquely defined by its n values f(1),f(2),...,f(n). It's up to us to denote them as f1,f2,...,fn and write them in a row as a vector (f1,f2,...,fn). If we do, the pointwise function addition will be reduced to the componentwise addition of vectors. Notations reinforce the analogy. The space of n-tuples of elements from Y is denoted Yn whereas the set of all functions f: XY is denoted YX.

When Y = {0, 1}, the Boolean Algebra with two elements, the notation for the set of all functions from X to Y is 2X. These functions take on only values 0 and 1. If f is such a function then Xf = {x: f(x) = 1} is the support of f. f, in turn, is known as the characteristic function of Xf. Thus there is a 1-1 correspondence between subsets of X and their characteristic functions. For this reason the set of all subsets of X is often denoted as 2X.

It must also be noted that functions become interesting when the spaces X and Y are topological. In which case it's possible to stipulate that the values a function takes at near points in X are near each other in Y. Functions that satisfy this condition are called continuous. For continuous functions, the values f(x) are no longer independent. The sum of two continuous functions is again continuous.


Copyright © 1996-2008 Alexander Bogomolny

28698841Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
Math
Posted by Laura
2 messages
06:56 AM, Apr-15-08

Divisibility rules - Jargon buste ...
Posted by Carolyn
2 messages
08:35 AM, Apr-04-08

drawing puzzle
Posted by martin gran
31 messages
06:53 PM, May-09-08

Distance to the horizon
Posted by Monty
3 messages
04:38 PM, May-08-08

Mistake on the page (an aside, Be ...
Posted by Max
4 messages
10:28 AM, Feb-28-08

Deriving functions based on diffe ...
Posted by ke_45
1 messages
12:47 PM, May-10-08

A typo in
Posted by alexwajn
1 messages
11:36 PM, Apr-19-08