3.7 Vectors
Notation
A vector has size and direction. The same vector can be written in several ways:
AB=a=2−13=2i−j+3k
The vectors i, j and k have length 1 and point along the x, y and z axes.
Operations
Add, subtract and scale component by component.
- a+b is one vector followed by the other.
- ka is parallel to a, and k times as long. A negative k reverses the direction.
- Two vectors are parallel if one is a multiple of the other.
The position vector of A is OA, from the origin. Then:
AB=2i−3j+2k, and OC=OA+31AB:
OC=35i+j−31k
Magnitude and unit vectors
The magnitude is 4+1+4=3, so the unit vector is 31(2i−j+2k).
The scalar product
Rearranged, this gives the angle between two vectors. If a⋅b=0 for non-zero vectors, they are perpendicular.
cosθ=631−1−2=18−2⇒θ=118.1∘
A negative scalar product means an obtuse angle. The acute angle between the lines is 180∘−118.1∘=61.9∘.
The equation of a line
Each value of t gives a different point on the line.
The direction is AB=i−j+2k, so
r=i+2j+3k+s(i−j+2k)
How two lines can meet
In three dimensions, two lines are in one of three positions:
| Position | Test |
|---|
| Parallel | Direction vectors are multiples of each other |
| Intersecting | Not parallel, and a pair of parameter values satisfies all three components |
| Skew | Not parallel and they do not meet |
Equate components:
1+s=1+t2−s=t3+2s=6−t
The first two give s=t=1. Check the third: 5=5. The lines meet at (2,1,5).
To find the point on a line closest to a point P, write a general point F on the line and make PF perpendicular to the direction.
A general point on l1 is F(1+s,2−s,3+2s), so PF=(s−3)i+(−1−s)j+(2s−2)k.
Using the scalar product with the direction:
(s−3)−(−1−s)+2(2s−2)=0⇒6s−6=0⇒s=1
The foot is F(2,1,5). Then PF=−2i−2j, and the shortest distance is 8=22.