A vector has a length and a direction; in coordinates, A = ⟨a₁, a₂, a₃⟩ = a₁î + a₂ĵ + a₃k̂, with length √(a₁² + a₂² + a₃²) by Pythagoras twice. Vectors add head to tail and scale. The dot product A · B = a₁b₁ + a₂b₂ + a₃b₃ is a number, and it equals |A||B| cos θ: the law of cosines in vector form. It finds angles, and A · B = 0 exactly when A and B are perpendicular, which shows that x + 2y + 3z = 0 is a plane.
A vector has a direction and a length, and is drawn as an arrow (transcript, p. 1). In a coordinate system it is written by its components along the axes, using the unit vectorsi^, j^, k^ of length one along the x, y and z axes (pp. 1–2):
Components of a vector
A=⟨a1,a2,a3⟩=a1i^+a2j^+a3k^
In words
vector capital A equals the average of a one, a two, a three equals a one i hat plus a two j hat plus a three k hat
Its length ∣A∣ is a scalar, an ordinary number; its direction can be obtained by scaling it down to unit length, A/∣A∣ (p. 2). A vector has no fixed starting point: the vectorPQ from P to Q is the same vector wherever it is drawn (p. 2).
For the length of ⟨3,2,1⟩, first find the length of B=3i^+2j^ in the xy-plane, 9+4=13, then go up one unit at a right angle: ∣A∣2=∣B∣2+1=14 (p. 3). In general (p. 3; notes, p. 1):
Length of a vector
∣A∣=a12+a22+a32
In words
the absolute value of vector capital A equals the square root of a one squared plus a two squared plus a three squared, end of root
The same formula works with any number of components; in this course "multi" mostly means two or three, but the mathematics is the same for 10,000 variables (p. 3).
Every question about vectors has a geometric answer and a numerical one (p. 4). Addition: place B with its tail at the head of A; the sum is the diagonal of the parallelogram, and A+B=B+A. Numerically, add the components (p. 4). Scalar multiplication:2A goes twice as far in the same direction, −A the opposite way; so 3i^+2j^+k^ means three steps along x, two along y, one up (pp. 4–5). A−B is A plus −B (p. 5).
It is a scalar, not a vector, which is easy to forget in the middle of a calculation (p. 6). What makes it useful is its geometric meaning, the first theorem of the course (p. 6):
Geometric meaning
A⋅B=∣A∣∣B∣cosθ
In words
vector capital A dot vector capital B equals the absolute value of vector capital A the absolute value of vector capital B cos theta
where θ is the angle between A and B: it tells us about lengths and angles at once, and it is easy to compute from components (p. 6).
Why it is true (pp. 7–8; notes, p. 1). First, A⋅A=a12+a22+a32=∣A∣2=∣A∣2cos0, so the two agree for a vector with itself. Next, take a triangle with sides A, B and C=A−B. The dot product expands like ordinary multiplication, and A⋅B=B⋅A, so
The law of cosines in vector form
∣C∣2=(A−B)⋅(A−B)=∣A∣2+∣B∣2−2A⋅B
In words
the absolute value of vector C squared equals the quantity vector capital A minus vector capital B, all times the quantity vector capital A minus vector capital B, equals the absolute value of vector capital A squared plus the absolute value of vector capital B squared minus 2 vector capital A dot vector capital B
The law of cosines says ∣C∣2=∣A∣2+∣B∣2−2∣A∣∣B∣cosθ. Comparing, A⋅B=∣A∣∣B∣cosθ: the theorem is the law of cosines in vector form, and either proves the other (p. 8).
So cosθ=∣A∣∣B∣A⋅B (transcript, p. 9). Take the triangle with corners P=(1,0,0), Q=(0,1,0), R=(0,0,2) and find the angle at P (pp. 8–9). Then PQ=⟨−1,1,0⟩ and PR=⟨−1,0,2⟩ (pp. 9–10; notes, p. 1):
An angle in space
cosθ=∣PQ∣∣PR∣PQ⋅PR=251+0+0=101,θ≈71.6°
In words
cos theta equals vector P Q dot vector P capital R over the quantity the absolute value of vector P Q the absolute value of vector P capital R, equals the quantity 1 plus 0 plus 0, all over the quantity the square root of 2 the square root of 5, equals 1 over the square root of 10, theta is approximately 71.6°
(The lecture and notes give about 71.5°; the angle is 71.57°.) The sign of a dot product is the sign of cosθ, since lengths are positive: positive when the angle is less than 90° (the vectors point roughly the same way), zero at exactly 90°, negative when it is more (p. 10). The dot product measures how much two vectors go along each other (p. 10).
Orthogonality, a word from Greek for perpendicularity: A⋅B=0 exactly when cosθ=0, that is, when A and B are perpendicular (transcript, pp. 10–12). What are the points with x+2y+3z=0 (p. 11)? With P=(x,y,z) and A=⟨1,2,3⟩, the equation says (p. 11; notes, p. 1)
A plane through the origin
x+2y+3z=0⟺OP⋅A=0⟺OP⊥A
In words
x plus 2 y plus 3 z equals 0 is equivalent to vector O P dot vector capital A equals 0 is equivalent to vector O P perpendicular vector capital A
so the solutions form the plane through the origin perpendicular to A; for a vertical A, it would be the horizontal plane (p. 11). The next lecture uses the dot product to find components of a vector along any direction (p. 12).
Worked example
A length, an angle and a plane
Let A=⟨2,−1,2⟩ and B=⟨1,1,0⟩. (a) Find ∣A∣ and ∣B∣. (b) Find the angle between them. (c) Describe the points with 2x−y+2z=0, and check that (1,2,0) is one of them.
(a) Lengths
∣A∣=4+1+4=3 and ∣B∣=2≈1.414.
(b) The angle
A⋅B=2−1+0=1, so cosθ=321≈0.236 and θ≈76.4°: a little less than a right angle, as the small positive dot product suggests.
(c) A plane
The equation says OP⋅A=0: it is the plane through the origin perpendicular to A. For (1,2,0): 2−2+0=0, so it lies in the plane, and indeed ⟨1,2,0⟩⋅⟨2,−1,2⟩=0.
The number of independent directions in a space: one for a line, two for a plane, three for ordinary space. Explained in Position and velocity in one dimension.
How fast and in which direction something moves: a vector whose length is the speed and whose direction is the direction of motion. Explained in Velocity, acceleration and Kepler's second law.
Of a relation or equation: using only first powers of the unknowns, so doubling the cause doubles the effect and effects simply add. Explained in Solving and rearranging formulas.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).