Professional Documents
Culture Documents
(RE)INTRODUCTION
We have seen vectors but just what is a vector? There are two standard definitions:
The geometric definition of a vector is the set of all directed line segments equivalent to a given directed line segment. The algebraic definition of an n-vector is the n-tuple (x1, x2, , xn). Each xi is called a component or an entry of the vector. We will still represent a vector as a bold-faced lower case letter, or as an underlined lower case letter.
(RE)INTRODUCTION
For starters, we will work in the xy-plane (or in 2space) and then we will extend ideas to N-space.
2 1
(2, 1)
(RE)INTRODUCTION
Geometrically, we view vectors as directed line segments that have both an initial end and a terminal end.
Terminal End
Initial End
This may not always the case (for future math classes); it really depends on what co-ordinate system you are working in.
(RE)INTRODUCTION
y
In the xy-plane, we can view a vector as a directed line segment starting at the origin and heading towards a certain point.
(2,1)
u
x
2 1
(2, 1)
(RE)INTRODUCTION
y
The angle that the vector makes with the x-axis is the direction of the vector.
(2,1)
u
x
2 1
(2, 1)
(RE)INTRODUCTION
y
The magnitude of this line segment is its length, or how long it is.
magnitude
(2,1)
u
x
2 1
(2, 1)
(RE)INTRODUCTION
So for every vector, we can create a line segment starting at the origin. Also, for every line segment starting at the origin, we can create a vector. But what happens if our line segment does not start at the origin?
v
(2,2)
(4,3)
(RE)INTRODUCTION
Subtract the initial end from the terminal end!
x2 x1 y2 y1
4-2 3-2
2 1
v
(2,2)
(4,3)
(RE)INTRODUCTION
I often refer to this as centering the vector. Now you can work with a vector at the origin!
2 1 2 1
u
x
But wait, u and v were in different spots and are both equal?
(RE)INTRODUCTION
So it doesnt really matter where this vector is in the xy-plane, it is still treated as (2, 1). This means vectors can be equal and not overlap one another!
v v
2 1
CALCULATING MAGNITUDE
To calculate the magnitude of a vector, we need to get at its length. We denote the length with two vertical bars (looks like absolute value but it does not mean absolute value!): |v|. Lets say we have a vector at the origin: Using Pythagoras Theorem, we have found the length of a vector v = (a, b) to be
a2+b2
(a, b)
|v| =
a2+b2
b
x
CALCULATING MAGNITUDE
Ex. 1 Length of a vector not at origin Let the points P(1,2) and Q(-4,6) be the initial point and terminal point of a vector. What is the length of this vector? First, center the vector at the origin! PQ = (-41, 6-2) = (-5, 4) Now you can use Pythagoras Theorem:
|PQ| =
=
(-5)2+(4)2
41
So the length of the vector PQ is square root of thirty-one.
VECTOR ADDITION
To add vectors it is as easy as just adding the corresponding components.
x1 y1
x2 y2
u+v
x1 y1
x2
y2
x1 + x 2
y1 + y 2
VECTOR ADDITION
Geometrically, vectors in 2-space follow the parallelogram law of addition.
y
Remember that we can move the vector anywhere in the xy-plane and not change it. The sum u+v ends up as the diagonal of a parallelogram.
u+v u u
VECTOR ADDITION
Ex. 2 Adding vectors Find the vector u + v if
-3 1
(4, -2)
u+v=
-3 1
4 -2
-3+4 1+(-2)
1 -1
x1 y1
cu
x1 y1
cx1 cy1
y
2v
-v
What if we scalar multiply by zero? Well, then we get the zero vector, or 0 = (0, 0). This is the only vector with a magnitude of zero and any direction we choose.
If u = (2, -3) and v = (-1, -1), then find the vector u 3v.
-u 3v = -(2, -3) -3(-1, -1) = (-2, 3) + (3, 3) = (-2+3, 3+3) = (1, 6)
x1 y1
x2 y2
uv
X1
y1
x2
x 1x 2 + y 1y 2
y2
cos()
u
uv |u| |v|
v
x
cos()
uv |u| |v|
Cosine fluctuates between the y-values 1 and -1. In fact, 1, -1, and 0 are the three special numbers we will look at.
= 180
= 0 or 360
u v
cos() =
uv
|u| |v|
uv |u| |v|
u
0 =
= 90
0 = uv
u v= 2
-3
-1 -1
-2 +3
So these vectors are not orthogonal. If the dot product was zero, then they would be orthogonal.
cos()
uv |u| |v|
1 26
4+9
1+1
You will never be asked to solve for unless you get one of the three special values of cos().
VECTOR PROJECTIONS
For two vectors u and v, we can break down u into a component that is parallel to v and a component that is perpendicular to v.
u
component of u perpendicular to v
component of u parallel to v
VECTOR PROJECTIONS
These components of u are used in higher algebra when trying to find orthonormal bases (we will not learn this but you can look on 395 of text for more). The component of u parallel to v is often called the projection of u on v, or projvu. Think of it like us shadow on v.
u
component of u perpendicular to v
proj v u
VECTOR PROJECTIONS
To calculate projvu, we can use the following:
proj v u =
uv v 2 |v|
u
component of u perpendicular to v
proj v u
VECTOR PROJECTIONS
The component of u perpendicular to v is often written as the following:
u-
u
(uv)
(uv) v 2 |v|
u|v|2
v
This formula comes from the vector addition: proj v u
u = component parallel to v + component perpendicular to v u = projvu + component perpendicular to v u projvu = component perpendicular to v
VECTOR PROJECTIONS
Finally, we have a scalar number that tells us how long u is in the direction of v. It is often called the component of u in the direction of v (dont get it confused with the other two components, which are vectors!).
uv |v|
VECTOR PROJECTIONS
UNIT VECTORS
Unit vectors are special vectors that have a
magnitude of one. If you calculate the length of a vector and get one, then it is a unit vector. What if the length of a vector is not equal to one? It is possible to create unit vectors in the same direction or the opposite direction with existing vectors.
u 1 |u|
x1
y1 x1 y1
You can choose the +1 or the -1. Using +1 gives a unit vector in the same direction as u and using -1 gives a unit vector in the opposite direction.
UNIT VECTORS
There are two special unit vectors: one that runs along the x-axis (1, 0) and one that runs along the yaxis (0, 1). It is possible to show that these vectors capture all the information of 2-space. That is, a basis for 2-space are the vectors (1, 0) and (0, 1). You will see more of this in second year algebra courses.
x
i
UNIT VECTORS
One of the things we can do is show that any vector in 2-space is a linear combination of these two unit vectors.
y
So if we use vector addition, we have shown that v = i + 2j
x
i
UNIT VECTORS
Ex. 7 Unit vectors -done in class Ex. 8 Linear combinations -done in class
INTRODUCTION TO N-SPACE
What we want to do is generalize 2-space to higher dimensions. In the next slides, we will work in the xyz-plane (or in higher coordinate axes). Most of the time it is impossible to visualize these complex spaces. Every vector in n-space has n components. Every vector in n-space will still be represented as a column matrix or an ordered n-tuple.
u1 u2
un
INTRODUCTION TO N-SPACE
The set of all vectors with n components is called nspace. We wont be plotting vectors in n-space, but they would still look like directed line segments. This means we can still connect points in n-space and refer to the initial end or terminal end of a vector. If P(x1, x2, , xn) and Q(y1, y2, , yn) are two points in nspace, then:
Vector from P to Q
Vector from Q to P
CALCULATING MAGNITUDE
The magnitude |u| of a vector u in n-space is given by the generalized Pythagoras Theorem. Provided your vector is at the origin:
u1 u2
un
|u| =
(u1)2+(u2)2++(un)2
CALCULATING MAGNITUDE
Ex. 9 Length of a vector in n-space What is the length of the vector y = (1, 0, -2)?
|y| = =
(1)2+(0)2 +(-2)2 5
VECTOR ADDITION
Similar to 2-space, the addition of two vectors in nspace is defined below.
u
v u+v
=
cu
Thm. 10 Properties of Vector Addition and Scalar Multiplication -done in class Proof -done in class Ex. 11 Addition and Scalar Multiplication -done in class
= =
v
uv
=
u1 u2
u 1v 1 + u 2v 2 + + u nv n
v2
un
vn
cos()
uv |u| |v|
-two vectors are still perpendicular, or orthogonal, if their dot product is zero -two vectors are still parallel and facing the same direction if cos() = 1 -two vectors are still parallel and facing opposite direction if cos() = -1
Thm. 12 Properties of the N-space Dot Product -done in class Proof -done in class Ex. 13 Dot Products and Angles -done in class
UNIT VECTORS
Recall that unit vectors are special vectors that have a magnitude of one. To create a unit vector in n-space, we use the same formula as 2space:
1 |u|
UNIT VECTORS
Ex. 14 Unit vectors -done in class Ex. 15 Linear combinations -done in class
CROSS PRODUCT
In 3-space it is often useful to create a vector that is perpendicular to two given vectors. To do this, we use the cross product. If u = (u1, u2, u3) and v = (v1, v2, v3) are two vectors in 3-space, then the cross product is defined to be
uxv=
u1 u2 u3
v1 v2 v3
Note that this is a determinant that returns a vector in i, j, k notation!
CROSS PRODUCT
Because of the determinant, the cross product has some very nice properties both algebraic and geometric. Thm. 16 Properties of the Cross Product -done in class Proof -done in class Thm. 17 Some Geometric Properties -done in class
VECTOR PROJECTIONS
In N-space, vector projections are calculated in the same manner as in 2-space.
proj v u =
component of u perpendicular to v =
u-
VECTOR PROJECTIONS
CAUCHY-SCHWARZ INEQUALITY
This inequality is a way of relating the dot product to a product of magnitudes. We need it to prove the (more important) Triangle Inequality. Thm. 19 (Cauchy-Schwarz Inequality) Let u and v be vectors in n-space. Then
Nicole Scherzinger +
Cauchy-Schwarz
CAUCHY-SCHWARZ INEQUALITY
This inequality is a way of relating the dot product to a product of magnitudes. We need it to prove the (more important) Triangle Inequality. Proof (Cauchy-Schwarz Inequality) The proof comes from analyzing the cosine formula:
cos() =
uv
|u| |v|
take absolute values of both sides |cos()| returns values between zero and one
TRIANGLE INEQUALITY
What is the shortest path from A to B? Should we go straight from A to B? Or take a detour through point C?
TRIANGLE INEQUALITY
Lets write these paths with vectors:
C v B u We can use the parallelogram law of addition to show the path from A to B is u+v.
u+v
A
TRIANGLE INEQUALITY
Thm. 20 (Triangle Inequality): Let u and v be vectors in n-space. Then
|u + v| |u| + |v|
Proof (Triangle Inequality) -done in class
C v B
u
u+v A
P0
P0 r0 O v
P0 r0 O v
-r
-r
x x0 = t a
y y0 = t b
z z0 = t c
x x0 a
y y0 = b
z z0 c
n
P
P0