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.
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.
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.
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:
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.)
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.