This Demonstration shows addition and scalar multiplication on vectors in three vector spaces: 2D vectors, sequences, and functions. A vector space becomes an inner-product space with an inner product. In particular, the intuitive notion of orthogonality for 2D vectors, when the inner product equals 0, is shown in the possibly unintuitive settings of sequences and functions.

The fixed vector is black. You can vary the red vector using the slider (angle with the horizontal axis for 2D vectors and frequency for sequences and functions). The gray vector is the result of the indicated vector space operation.

A vector space is a set of objects, called vectors, with two operations, addition and scalar multiplication (that satisfy certain properties). While the notion of a vector space is intuitive in standard Euclidean spaces, it may not be when vectors are other objects, such as functions or sequences. We can add functions, resulting in a function. We can multiply functions by scalars, again resulting in a function. With an appropriate inner product, a vector space becomes an inner product space. We can then define orthogonality as we do for standard vectors in the real plane: two vectors (sequences or functions) are orthogonal when their inner product equals 0.

In this Demonstration, we consider 2D vectors, sequences on an interval, and functions on an interval. The inner products are defined as follows:

For vectors, .

For sequences, .

For functions, .

Reference

[1] M. Vetterli, J. Kovačević, and V. K. Goyal, Signal Processing: Foundations, Cambridge: Cambridge University Press, forthcoming. www.fourierandwavelets.org.