Three Vector Spaces

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.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


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, .
[1] M. Vetterli, J. Kovačević, and V. K. Goyal, Foundations of Signal Processing, Cambridge: Cambridge University Press, 2014. www.fourierandwavelets.org.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+