LinearODEs6
LinearODEs6
1 Three-Dimensional Space
So far we have only considered vectors and vector geometry in two-dimensional space.
In this section we expand our point of view to consider three-dimensional space.
Three-Dimensional Coordinates
Just as a point on the plane can be described by two coordinates x and y, a point
in three-dimensional space can be described by three coordinates x, y, and z. The
geometric meaning of these coordinates is shown in Figures 1 and 2.
a Figure 1: Each point in
Using these coordinates, we can identify the points in three-dimensional space with
ordered triples ( x, y, z ) of real numbers. In linear algebra and advanced mathematics,
three-dimensional space has three
coordinates. the set of all such ordered triples is usually denoted R3 (pronounced “arr-three”).
The space R3 has three coordinates axes, namely the x-axis, the y-axis, and z-axis.
These three axes are all mutually perpendicular, and they meet at the origin (0, 0, 0) .
We usually think of the x and y axes as horizontal, while the z-axis is vertical.
There are also three coordinate planes, namely the x y-plane, the xz-plane, and the
yz-plane, as shown in Figure 3. Each of these planes contains two of the coordinate
axes, and is perpendicular to the third. These planes partition R3 into eight octants,
similar to the four quadrants in R2 . Though there is not a standard numbering for
these octants, everyone agrees that the first octant is the portion of R3 consisting of all
points whose coordinates are positive, i.e. the visible portion in Figure 3.
a Figure 2: A slightly different picture of
the three coordinates. Vectors in R3
Every vector v in R3 has three components vx , vy , and vz . As in R2 , we think of vectors
and points as the same thing, so
vx
v vy
( v , v , v ) v i + v j + v k.
x y z x y z
vz
Here i, j, and k are the three standard basis vectors in R3 :
1 0 0
i 0 , j 1 , and k 0
0 0 1
EXAMPLE 1
Figure 4 shows a rectangle in R3 . Find the coordinates of the point p.
This same vector lies along the top edge of the rectangle from (5, 0, 5) to p, so
a Figure 4: A rectangle in R . 3
THREE-DIMENSIONAL SPACE 2
Distance in R3
There is a nice formula for distances in R3 , which is based on a three-dimensional
version of the Pythagorean theorem.
a2 + b2 + c2 d2 .
This theorem can be justified using two applications of the usual Pythagorean
a Figure 5: A rectangular box. theorem, as shown in Figure 6. The two right triangles in this figure give us the
equations
a 2 + b 2 L2 and L2 + c 2 d 2 ,
and combining these gives the equation a 2 + b 2 + c 2 d 2 .
Based on this theorem, the magnitude of a vector v in R3 should be given by the
formula
q
|v| vx2 + vy2 + vz2
SOLUTION We have p √
| (2, 1, 2) | 22 + 12 + 22 9 3,
so the vector (2, 1, 2) has a magnitude of 3. To find a vector in the same direction with a
magnitude of 12, we simply scale by a factor of 4:
4 (2, 1, 2) (8, 4, 8)
EXERCISES
8
1. Find the magnitude of the vector 1 .
−4
6. The following figure shows two spheres in R3 that are tangent at a point r.
The larger sphere is centered at p (−5, 0, 5) , and has a radius of 9. The smaller
sphere is centered at q (5, 5, −5) .
(a) What is the radius of the smaller sphere?
(b) Find the coordinates of the point r at which the two spheres are tangent.
v · w vx wx + v y w y
That is, we multiply corresponding components of the two vectors and then add the
results. For example,
(2, 3) · (5, 4) (2)(5) + (3)(4) 10 + 12 22.
Because the result is a scalar, the dot product is also known as the scalar product of
vectors. It is also sometimes called the inner product of vectors, or more properly the
Euclidean inner product.
The dot product works just as well in R3 :
v · w vx wx + v y w y + vz wz
For example,
Note that the dot product of these vectors
is negative. In general, the dot product of (2, 1, 7) · (3, 4, −2) (2)(3) + (1)(4) + (7)(−2) −4.
two vectors may be positive, negative, or
zero. All of the discussion in this section applies equally well to vectors in two or three
dimensions.
Algebraic Properties
The dot product can be thought of as a kind of multiplication for vectors. Indeed,
the reason that we use a dot for dot product is that this is one of the symbols for
multiplication. Many of the algebraic properties of multiplication are shared by dot
product.
For multiplication of numbers, the The first rule above is the commutative law for dot product, and the second is the
associative law states that distributive law. The third can be thought of as a version of the associative law, but it
( x y ) z x ( yz ) involves both dot product and scalar multiplication.
for all real numbers x, y, z. The Although the dot product shares many properties of multiplication, one should
commutative law states that always keep in mind that the analogy between dot product and multiplication is not
x y yx exact. For example, the product of two numbers is another number, which makes it
possibly to multiply three numbers together. However, the dot product of two vectors
for all real numbers x and y. Finally, the
distributive law states that is a scalar, not a vector, which makes it impossible to take the dot product of three or
x ( y + z ) x y + xz
more vectors.
Incidentally, because the dot product obeys the distributive law, we can distribute
for all real numbers x, y, z.
dot products of sums just as we do in normal algebra. For example,
(a + b) · (c + d) a · c + a · d + b · c + b · d
for any four vectors a, b, c, d.
DOT PRODUCT 2
v · v |v| 2
This relation between dot products and magnitudes of vectors can be useful for finding
magnitudes of sums. For example, if v and w are vectors, the magnitude of v + w obeys
the formula
|v + w| 2 (v + w) · (v + w) .
Distributing the right side gives
|v + w| 2 v · v + v · w + w · v + w · w.
We can combine the middle terms since Combining the two middle terms and replacing v · v and w · w by |v| 2 and |w| 2 , we
v · w w · v. arrive at the formula
|v + w| 2 |v| 2 + 2 (v · w) + |w| 2
|v − w| 2 |v| 2 − 2 (v · w) + |w| 2
EXAMPLE 1
Find the magnitude of v + w if |v| 5, |w| 6, and v · w 10.
SOLUTION We have
and therefore |v + w| 9.
EXAMPLE 2
Find a formula for the magnitude of 2v + 3w in terms of |v|, |w|, and v · w.
SOLUTION We have
and therefore q
|2v + 3w| 4 |v| 2 + 12 (v · w) + 9 |w| 2
DOT PRODUCT 3
Geometric Interpretation
The importance of the dot product stems from its geometric interpretation.
c 2 a 2 + b 2 − 2ab cos θ
for any triangle with side lengths a, b, c and angle θ as shown in Figure 2. If we apply
the law of cosines to the triangle of vectors shown in Figure 3, we get the equation
a Figure 2: Triangle for the law of cosines. |w − v| 2 |v| 2 + |w| 2 − 2 |v| |w| cos θ
|w − v| 2 |v| 2 − 2 (v · w) + |w| 2
SOLUTION We have v · w |v| |w| cos θ (5)(6) cos (60◦ ) (5)(6)(1/2) 15.
One way the formula v · w |v| |w| cos θ is useful is that it allows us to find the
angle between two vectors.
EXAMPLE 4
Find the angle between the vectors (3, 2) and (1, 5) .
Then
13 1
In general, the procedure is to solve for cos θ √ √ √
cos θ and then take the inverse cosine, 13 26 2
which gives an angle between 0◦ and 180◦ . so θ 45◦ , as shown in Figure 4.
DOT PRODUCT 4
is that it gives us a general rule for the sign of v · w. Assuming neither v nor w is the
zero vector, the magnitudes |v| and |w| are always positive.dot product v · w always
has the same sign as cos θ. Thus v · w can only be negative if cos θ is negative.
Figure 5 shows the graph of the cosine function for 0◦ ≤ θ ≤ 180◦ . As you can see,
the cosine is positive for acute angles (less than 90◦ ) and negative for obtuse angles
(greater than 90◦ ). Thus:
a Figure 5: The cosine is positive for • v · w < 0 if the angle between v and w is obtuse.
θ < 90◦ and negative for θ > 90◦ .
This trichotomy is illustrated in Figure 6. The case where the dot product is zero has a
special name.
Orthogonal Vectors
EXERCISES
" # " #
5 3
1. Compute the dot product of the vectors and .
2 −4
6. Suppose that two vectors v and w meet at a 30◦ angle. If v · v 4 and w · w 12,
what is the value of v · w?
" # " #
2 −1
7. Find the angle between the vectors and .
−1 3
8. Compute the angle between the vectors (2, 5, 1) and (−1, 4, 2) , correct to the nearest
degree.
10. Find the angle θ between the two lines in the following figure.
(a) For which two of these vectors is the dot product positive?
(b) Which two of these vectors are orthogonal?