Skip to content Skip to navigation Skip to collection information

Connexions

You are here: Home » Content » A First Course in Electrical and Computer Engineering » Linear Algebra: Vectors

Navigation

Table of Contents

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Endorsed by Endorsed (What does "Endorsed by" mean?)

This content has been endorsed by the organizations listed. Click each link for a list of all content endorsed by the organization.
  • IEEE-SPS

    This collection is included inLens: IEEE Signal Processing Society Lens
    By: IEEE Signal Processing Society

    Click the "IEEE-SPS" link to see all content they endorse.

  • College Open Textbooks display tagshide tags

    This collection is included inLens: Community College Open Textbook Collaborative
    By: CC Open Textbook Collaborative

    Comments:

    "Reviewer's Comments: 'I recommend this book as a "required primary textbook." This text attempts to lower the barriers for students that take courses such as Principles of Electrical Engineering, […]"

    Click the "College Open Textbooks" link to see all content they endorse.

    Click the tag icon tag icon to display tags associated with this content.

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • Bookshare

    This collection is included inLens: Bookshare's Lens
    By: Bookshare - A Benetech Initiative

    Comments:

    "Accessible versions of this collection are available at Bookshare. DAISY and BRF provided."

    Click the "Bookshare" link to see all content affiliated with them.

  • NSF Partnership display tagshide tags

    This collection is included inLens: NSF Partnership in Signal Processing
    By: Sidney Burrus

    Click the "NSF Partnership" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

  • Featured Content display tagshide tags

    This collection is included inLens: Connexions Featured Content
    By: Connexions

    Comments:

    "A First Course in Electrical and Computer Engineering provides readers with a comprehensive, introductory look at the world of electrical engineering. It was originally written by Louis Scharf […]"

    Click the "Featured Content" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

Also in these lenses

  • UniqU content

    This collection is included inLens: UniqU's lens
    By: UniqU, LLC

    Click the "UniqU content" link to see all content selected in this lens.

  • Evowl

    This collection is included inLens: Rice LMS's Lens
    By: Rice LMS

    Comments:

    "Language: en"

    Click the "Evowl" link to see all content selected in this lens.

  • Lens for Engineering

    This module and collection are included inLens: Lens for Engineering
    By: Sidney Burrus

    Click the "Lens for Engineering" link to see all content selected in this lens.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
 

Linear Algebra: Vectors

Module by: Louis Scharf. E-mail the author

Note:

This module is part of the collection, A First Course in Electrical and Computer Engineering. The LaTeX source files for this collection were created using an optical character recognition technology, and because of this process there may be more errors than usual. Please contact us if you discover any errors.

For our purposes, a vector is a collection of real numbers in a one- dimensional array.1 We usually think of the array as being arranged in a column and write

x=x1x2x3|xnx=x1x2x3|xn .

Notice that we indicate a vector with boldface and the constituent elements with subscripts. A real number by itself is called a scalar, in distinction from a vector or a matrix. We say that x x is an n-vector, meaning that x x has n n elements. To indicate that x 1 x 1 is a real number, we write

x 1 R , x 1 R ,
(1)

meaning that x 1 x 1 is contained in RR, the set of real numbers. To indicate that x x is a vector of n n real numbers, we write

x R n , x R n ,
(2)

meaning that x x is contained in R n R n , the set of real n-tuples. Geometrically, R n R n is n-dimensional space, and the notation xRnxRn means that x x is a point in that space, specified by the n n coordinates x1,x2,...,xnx1,x2,...,xn. Figure 1 shows a vector in R 3 R 3 , drawn as an arrow from the origin to the point x x. Our geometric intuition begins to fail above three dimensions, but the linear algebra is completely general.

Figure 1: A Vector in R3
Figure one shows a vector in R^3, a three-dimensional graph. The axis pointing towards the screen is labeled x_1, the axis pointing to the right is labeled x_2, and the axis pointing up is labeled x_3. An arrow points out into the positive direction of all three axes, up, towards the screen, and to the right. Its endpoint is labeled x, and dashed line segments are drawn back from this point to respective points on the axes and on the x_1 x_2 plane, showing its location.

We sometimes find it useful to sketch vectors with more than three dimensions in the same way as the three-dimensional vector of Figure 1. We then consider each axis to represent more than one dimension, a hyperplane, in our n-dimensional space. We cannot show all the details of what is happening in n-space on a three-dimensional figure, but we can often show important features and gain geometrical insight.

Vector Addition. Vectors with the same number of elements can be added and subtracted in a very natural way:

x+y=x1+y1x2+y2x3+y3|xn+yn ; x - y =x1-y1x2-y2x3-y3|xn-yn. x+y=x1+y1x2+y2x3+y3|xn+yn ;x-y=x1-y1x2-y2x3-y3|xn-yn.
(3)

Example 1

The difference between the vector x=111x=111 and the vector y=001y=001 is the vector z=x-y=110z=x-y=110. These vectors are illustrated in Figure 2. You can see that this result is consistent with the definition of vector subtraction in Equation 3. You can also picture the subtraction in Figure 2 by mentally reversing the direction of vector y y to get -y-y and then adding it to x x by sliding it to the position where its tail coincides with the head of vector x x. (The head is the end with the arrow.) When you slide a vector to a new position for adding to another vector, you must not change its length or direction.

Figure 2: Subtraction of Vectors
Figure two is a three-dimensional graph containing three vectors. The axis pointing out towards the screen is labeled x_1, the axis pointing to the right is labeled x_2, and the axis pointing up is labeled x_3. One vector y points up along the x_3-axis and is labeled with a 3 by 1 matrix, 0 0 1. A vector z points in the positive x_2 and x_1 direction on the x_2 x_1 plane, and is labeled with a 3 by 1 matrix, 1, 1, 0. A final vector x points in the positive x_1, x_2, and x_3 direction, and is labeled with a 3 by 1 matrix, 1 1 1.

Exercise 1

Compute and plot x+yx+y and x-yx-y for each of the following cases:

  1. x=132,y=123x=132,y=123 ;
  2. x=-13-2,y=123x=-13-2,y=123 ;
  3. x=1-32,y=132x=1-32,y=132.

Scalar Product. Several different kinds of vector multiplication are defined.2 We begin with the scalar product. Scalar multiplication is defined for scalar aa and vector xx as

ax=ax1ax2ax3|axn.ax=ax1ax2ax3|axn.
(4)

If |a|<1|a|<1, then the vector axax is "shorter" than the vector x; if |a|>1|a|>1, then the vector axax is ‚"longer" than x. This is illustrated for a 2-vector in Figure 3.

Figure 3: The Scalar Product axax
Figure three is a two-dimensional cartesian graph with horizontal axis labeled x_1 and vertical axis labeled x_2. A line from the third quadrant moves through the origin into the first quadrant with a shallow positive slope. The lower end in the third quadrant has an arrow pointing away from the origin, and is labeled -2x. An arrow in the first quadrant points away from the origin and is labeled 1/2 x.

Exercise 2

Compute and plot the scalar product axax when x=11/2l/4x=11/2l/4 for each of the following scalars:

  1. a=1;a=1;
  2. a=-1;a=-1;
  3. a=-1/4;a=-1/4;
  4. a=2.a=2.

Exercise 3

Given vectors x,y,zRnx,y,zRn and the scalar aRaR, prove the following identities:

  1. x+y=y+xx+y=y+x. Is vector addition commutative?
  2. (x+y)+z=x+(y+z)(x+y)+z=x+(y+z). Is vector addition associative?
  3. a(x+y)=ax+aya(x+y)=ax+ay. Is scalar multiplication distributive over vector addition?

Footnotes

  1. In a formal development of linear algebra, the abstract concept of a vector space plays a fundamental role. We will leave such concepts to a complete course in linear algebra and introduce only the functional techniques necessary to solve the problems at hand.
  2. The division of two vectors is undefined, although three different “divisions” are defined in MATLAB.

Collection Navigation

Content actions

Download:

Collection as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add:

Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks