<< Chapter < Page Chapter >> Page >
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.

Sometimes we find it useful to use a different definition of distance, corresponding to an alternate norm for vectors. For example, consider the l-norm defined as

| | x | | 1 = ( | x 1 | + | x 2 | + + | x n | ) ,

where | x i | is the magnitude of component x i . There is also the sup-norm , the “supremum” or maximum of the components x 1 , ... , x n :

| | x | | sup = max ( | x 1 | , | x 2 | , ... , | x n | ) .

The following examples illustrate what the Euclidean norm, the l-norm, and the sup-norm look like for typical vectors.

Consider the vector x = - 3 l 2 . Then

  1. | | x | | = [ ( - 3 ) 2 + ( 1 ) 2 + ( 2 ) 2 ] 1 / 2 = ( 14 ) 1 / 2 ;
  2. | | x | | 1 = ( | - 3 | + | 1 | + | 2 | ) = 6 ; and
  3. | | x | | sup = max ( | - 3 | , | 1 | , | 2 | ) = 3 .

Figure 1 shows the locus of two-component vectors x = x 1 x 2 with the property that | | x | | = 1 , | | x | | 1 = 1 , or | | x | | sup = 1 .

Figure one is a diagram with a vertical axis labeled x_2 and horizontal axis labeled x_1. A large square centered at the origin with its diagonals on the axes is drawn, and around this is a circle centered at the origin and of the same diameter as the diagonals of the square. In addition, a square centered at the origin with the same width as the diagonal of the first square is the outermost shape of the diagram. The side of the smaller square that lies in the fourth quadrant is labeled locus of x such that  ||x||_1 = 1. The section of the circle that lies in the first quadrant is labeled locus of x such that ||x||_2 = 1. The section of the larger square that lies in the second quadrant is labeled locus of x such that  ||x||_sup = 1. Figure one is a diagram with a vertical axis labeled x_2 and horizontal axis labeled x_1. A large square centered at the origin with its diagonals on the axes is drawn, and around this is a circle centered at the origin and of the same diameter as the diagonals of the square. In addition, a square centered at the origin with the same width as the diagonal of the first square is the outermost shape of the diagram. The side of the smaller square that lies in the fourth quadrant is labeled locus of x such that  ||x||_1 = 1. The section of the circle that lies in the first quadrant is labeled locus of x such that ||x||_2 = 1. The section of the larger square that lies in the second quadrant is labeled locus of x such that  ||x||_sup = 1.
Locus of Two-Dimensional Vectors Whose Various Norms Are 1

The next example shows how the l-norm is an important part of city life.

The city of Metroville was laid out by mathematicians as shown in Figure 2 . A person at the intersection of Avenue 0 and Street - 2 (point A ) is clearly two blocks from the center of town (point C). This is consistent with both the Euclidean norm

| | A | | = 0 2 + ( - 2 ) 2 = 4 = 2

and the l-norm

| | A | | 1 = ( | 0 | + | - 2 | ) = 2 .

But how far from the center of town is point B at the intersection of Avenue-2 and Street 1? According to the Euclidean norm, the distance is

| | B | | = ( - 2 ) 2 + ( 1 ) 2 = 5 .
Figure two is a diagram of metroville. North points upward. There are five streets that travel north-south, labeled from left to right, street -2, street -1, street 0, street 1, and street 2. There are also five streets that run east-west labeled from top to bottom, avenue 2, avenue 1, avenue 0, avenue -1, avenue -2. At the intersection of avenue 0 and street -2 is point A. At the intersection of street 0 and avenue 0 is point C. At the intersection of avenue -2 and street 1 is point B. Figure two is a diagram of metroville. North points upward. There are five streets that travel north-south, labeled from left to right, street -2, street -1, street 0, street 1, and street 2. There are also five streets that run east-west labeled from top to bottom, avenue 2, avenue 1, avenue 0, avenue -1, avenue -2. At the intersection of avenue 0 and street -2 is point A. At the intersection of street 0 and avenue 0 is point C. At the intersection of avenue -2 and street 1 is point B.
Metroville, U.S.A.

While it is true that point B is 5 blocks from C , it is also clear that the trip would be three blocks by any of the three shortest routes on roads. Theappropriate norm is the l-norm:

| 1 B | | 1 = ( | - 2 | + | 1 | ) = 3 .

Even more generally, we can define a norm for each value of p from 1 to infinity. The so-called p-norm is

| I x | | p = ( | x 1 | p + | x 2 | p + + | x n | p ) 1 / p .

DEMO 4.1 (MATLAB). From the command level of MATLAB, type the following lines:

Check to see whether the answer agrees with the definition of vector subtraction. Now type

Check the answer to see whether it agrees with the definition of scalar multiplication. Now type

This is how MATLAB does the inner product. Check the result. Type

Now type your own MATLAB expression to find the cosine of the angle between vectors x and y . Put the result in variable t . Then find the angle θ by typing

The angle θ is in radians. You may convert it to degrees if you wish by multiplying it by 180 / π :

Questions & Answers

what is biology
Hajah Reply
the study of living organisms and their interactions with one another and their environments
AI-Robot
what is biology
Victoria Reply
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
in what situation (s) would be the use of a scanning electron microscope be ideal and why?
Kenna Reply
A scanning electron microscope (SEM) is ideal for situations requiring high-resolution imaging of surfaces. It is commonly used in materials science, biology, and geology to examine the topography and composition of samples at a nanoscale level. SEM is particularly useful for studying fine details,
Hilary
cell is the building block of life.
Condoleezza Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, A first course in electrical and computer engineering. OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10685/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'A first course in electrical and computer engineering' conversation and receive update notifications?

Ask