Many quantities need both a size and a direction to describe them: a velocity, a force, a displacement. A vector packages those two pieces of information into one object. In three dimensions vectors become the main language of the course, used for lines, planes, curves, gradients and fields, so it pays to get fluent with them now.
Vectors and their components
Geometrically, a vector is a directed line segment, an arrow. Two arrows with the same length and the same direction represent the same vector, no matter where they start. We write vectors in boldface (v) or with an arrow (v).
If you slide a vector so its tail sits at the origin, its head lands at some point (a1,a2,a3). Those coordinates are the components of the vector, and we write
a=⟨a1,a2,a3⟩.
The angle brackets distinguish the vector from the point (a1,a2,a3). The arrow from the origin to that point is the position vector of the point. On this site, when a problem asks you to enter a vector, type its components as a triple in parentheses, like (3, 4, -12).
The position vector a = ⟨2, 3, 4⟩ runs from the origin to the point (2, 3, 4). Its components are the edge lengths of the dashed box.
If an arrow starts at A(x1,y1,z1) and ends at B(x2,y2,z2), subtracting "head minus tail" gives its components:
AB=⟨x2−x1,y2−y1,z2−z1⟩.
Length, addition and scalar multiples
The magnitude (length) of a is the distance from the origin to (a1,a2,a3):
∣a∣=a12+a22+a32.
The only vector with length 0 is the zero vector0=⟨0,0,0⟩, which has no direction.
Addition. Geometrically, a+b is found by the triangle law: place the tail of b at the head of a; the sum runs from the tail of a to the head of b. Equivalently, it is the diagonal of the parallelogram with sides a and b. In components you simply add:
a+b=⟨a1+b1,a2+b2,a3+b3⟩.
Scalar multiplication. For a real number c, the vector ca=⟨ca1,ca2,ca3⟩ has length ∣c∣∣a∣. It points the same way as a if c>0 and the opposite way if c<0. Subtraction is a−b=a+(−1)b; geometrically it is the arrow from the head of b to the head of a when both start at the same point.
These operations obey the familiar algebra rules: a+b=b+a, (a+b)+c=a+(b+c), c(a+b)=ca+cb, (c+d)a=ca+da, and so on. Each one follows immediately from the corresponding rule for real numbers, applied component by component.
Definition
Parallel vectors
Two nonzero vectors a and b are parallel if one is a scalar multiple of the other: b=ca for some scalar c=0.
Standard basis vectors and unit vectors
The three standard basis vectors are
i=⟨1,0,0⟩,j=⟨0,1,0⟩,k=⟨0,0,1⟩.
Every vector can be written in terms of them:
⟨a1,a2,a3⟩=a1i+a2j+a3k. So 3i−k is just another name for ⟨3,0,−1⟩.
A unit vector has length 1. Dividing any nonzero vector by its length produces the unit vector pointing in the same direction.
Unit vector and vectors of a given length
For a=0, the unit vector in the direction of a is
u=∣a∣a.
The vector of length L in the direction of a is Lu=∣a∣La.
Every nonzero vector factors as a=∣a∣u: magnitude times direction. This split is how you'll build a velocity from a speed and a heading, or a force from its strength and line of action.
Worked example: From two points to a unit vector
Let P(2,−1,4) and Q(5,3,−8). Find PQ, its length, and the unit vector in its direction.
Solution. Head minus tail: PQ=⟨5−2,3−(−1),−8−4⟩=⟨3,4,−12⟩. Its length is 9+16+144=13, so the unit vector is
u=131⟨3,4,−12⟩=⟨133,134,−1312⟩.
Worked example: Combining vectors
Let a=⟨1,−2,3⟩ and b=4i−k. Find 2a−3b and ∣a+b∣.
Solution. First write b=⟨4,0,−1⟩. Then
2a−3b=⟨2,−4,6⟩−⟨12,0,−3⟩=⟨−10,−4,9⟩.
Also a+b=⟨5,−2,2⟩, so ∣a+b∣=25+4+4=33.
Worked example: Balancing forces
Three forces act on an object: F1=⟨3,−1,2⟩ N, F2=⟨−5,4,1⟩ N, and an unknown F3. The object is in equilibrium. Find F3 and its magnitude.
Solution. Equilibrium means the net force is zero: F1+F2+F3=0. Since F1+F2=⟨−2,3,3⟩, we need F3=⟨2,−3,−3⟩ N, with magnitude 4+9+9=22≈4.69 N.
Common mistake
Magnitude does not distribute over addition: in general ∣a+b∣=∣a∣+∣b∣. In the example above, ∣a∣=14 and ∣b∣=17, but ∣a+b∣=33, which is smaller than 14+17≈7.86. The triangle inequality∣a+b∣≤∣a∣+∣b∣ is all you get, with equality only when the vectors point the same way. Always add the components first, then take the length.
Practice
Practice 1
Find the components of PQ for P(1,4,−2) and Q(−3,6,5). Enter the vector as a triple.
Enter a point like (2, -3)
Practice 2
Find ∣⟨2,−3,6⟩∣.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
Let a=⟨2,0,−1⟩ and b=⟨−1,4,3⟩. Find 3a−2b.
Enter a point like (2, -3)
Practice 4
Find the unit vector in the direction of 4i−4j+2k.
Enter a point like (2, -3)
Practice 5
Find the vector of length 10 that points in the direction opposite to ⟨1,2,−2⟩.
Enter a point like (2, -3)
Practice 6
Find the value of c that makes ⟨3,c,−6⟩ parallel to ⟨−1,2,2⟩.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 7
Find all values of t for which ∣⟨t,2,t−1⟩∣=3.
Separate answers with commas, e.g. 2, -5
Practice 8
The points A(1,0,2), B(3,1,−1) and C(4,5,0) are three consecutive vertices of parallelogram ABCD. Find the fourth vertex D.