Vector Spaces, II
Two, Three, ... N, ... Infinity

One of the recurring themes of mathematics is that the same mathematical ideas can be used to describe and work with many different phenomena. In particular, the algebraic machinery -- vector spaces -- that we are developing based on geometric ideas in R2 and R3 can be used in many other, more exotic, situations. We will be able to use geometric thinking in situations that, at first, appear to be very far removed from the usual plane and the usual three-dimensional world. We begin with a short list of some other vector spaces.

Each of these examples is a vector space because it has two operations -- vector addition, and scalar multiplication -- that satisfy the usual vector space properties. For example, in Rn vector addition and scalar multiplication are defined by --

Missing equation

Vector addition and scalar multiplication for matrices are defined in the mathematical infrastructure section on matrices. When a matrix represents a black-and-white image then these mathematical operations on matrices correspond to physical operations on images. Vector addition corresponds to superimposing two images and scalar multiplication corresponds to adjusting the brightness. The same thing is true for a color image except that we use three matrices for each image. These ideas are the key to digital processing of images.

In the last module we established a connection between algebraic expressions of the form

P = (1 - t) a + t b

and the geometric idea of points on the line determined by the two vectors a and b. Recall that if t = 0 then P is a; if t = 1 then P is b; and as t moves from 0 to 1, P moves from a to b.

The Java applet below shows how this same algebraic idea is used in movies and television to make a transition from one scene to another. This applet shows three pictures. On the left you see an outside view of the Lincoln Memorial. On the right you see the statue of Abraham Lincon inside the memorial. The picture of the memorial is represented inside your computer as described above by the vector a and the picture of the statue is represented inside your computer by the vector b. The picture in the middle is represented by the vector

P = (1 - t) a + t b

When the applet first starts t = 0 and the middle picture is the same as the picture on the left. You can change the value of t by clicking on the bar at the bottom of the applet. For example click at the far right of the bar. It may take a while for the applet to process your change. You have changed t to 1 and after processing this change the middle picture will show the statue. Now click in the middle of the bar. Now the middle picture will show a picture that is halfway between the two pictures. Try different values of t to see the effect on the middle picture.

If you look at the color picture above from Capital Reef National Park you will notice that the person's face is in the shadow. The image below was adjusted mathematically to change the brightness of a small part of the image. We used scalar multiplication on part of the three matrices representing the image.

Missing color photograph

Unfortunately the effects of our tampering with the image are quite apparent. Notice the sharp border separating the lightened portion of the image from the remainder of the image. We can use another vector space tool -- moving smoothly from one vector x to another vector y by

P = (1 - t) x + t y

We used this idea above with the Lincoln Memorial and its statue of Lincoln. Now we apply the same idea to part of our usual image -- near the sharp border in the image above we mix the two images using 50% of each, as we move into the area being lightened we use more of the lightened image and as we move away from the area being lightened we use more of the original image. The result is shown below. Notice that we have lightened the person's face without the telltale sharp border. In fact, the evidence of our tampering is barely detectable even when the two photos are examined side-by-side.

Missing color photograph Missing color photograph

Now you can see why people are both delighted and worried about the possibilities for computer manipulatiions of images. Vector space ideas allowed the producers of the movie Forrest Gump to put the title character into a scene with President Kennedy.


Your CAS window contains some experiments using matrices to represent images and the vector space operations on matrices to represent physical manipulations of images. Because the capabilities of the three CAS systems vary so much, the three windows are quite different. Do the experiments described in your CAS window. If you have access to Mathematica we recommend that CAS for this module.


Just as vector space operations can be used to represent physical manipulations of images, they can be used to represent physical manipulations of sound. Multiplying the vector representing a sound by a scalar corresponds to adjusting the volume and vector addition of two sounds corresponds to playing the two sounds at the same time.


Suppose that you are recording a 100 second concert with two intruments -- a violin and a piano. We will represent the sound produced by the piano digitally by the vector P in R4,410,000 and the sound produced by the violin by the vector V also in R4,410,000.

You use two microphones -- one placed very close to the piano and one placed very close to the violin. Ideally the first microphone would record only the piano and the second would record only the violin. But, of course, each microphone picks up a little bit of the other instrument. We will represent the recording made by the first microphone by the vector A and the recording made by the second microphone by the vector B. Suppose that

A = 1.0 P + 0.1 V
B = 0.2 P + 1.0 V