Lemonmath
Tiếng Việt

Operations on vectors in coordinates

Lesson 2.3 · 24 min read · Updated

A camping tent has a vertical pole whose top is 33 m above the ground. Two guy ropes run from the top of the pole down to two pegs in the ground. With the foot of the pole at the origin and the metre as unit, the top of the pole is T(0,0,3)T(0, 0, 3) and the pegs are P(2,−1,0)P(2, -1, 0) and Q(−1,2,0)Q(-1, 2, 0). What angle do the two ropes make with each other?

The previous lesson gave us coordinates of points and vectors. This lesson turns every vector operation, the scalar product included, into arithmetic on numbers, so the question above needs only a few multiplications and additions.

Addition, subtraction and multiplication by a number

Since a⃗=x1i⃗+y1j⃗+z1k⃗\vec{a}=x_1\vec{i}+y_1\vec{j}+z_1\vec{k} and b⃗=x2i⃗+y2j⃗+z2k⃗\vec{b}=x_2\vec{i}+y_2\vec{j}+z_2\vec{k}, we collect the terms with the same unit vector: a⃗+b⃗=(x1+x2)i⃗+(y1+y2)j⃗+(z1+z2)k⃗.\vec{a}+\vec{b}=(x_1+x_2)\vec{i}+(y_1+y_2)\vec{j}+(z_1+z_2)\vec{k}. The difference and the product with a number work the same way.

The collinearity condition gives a test for three points on a line: AA, BB, CC are collinear if and only if AB→\overrightarrow{AB} and AC→\overrightarrow{AC} are collinear.

The scalar product in coordinates

Exploring: expanding with i⃗\vec{i}, j⃗\vec{j}, k⃗\vec{k}

Let us compute (i⃗+2j⃗)⋅(3i⃗+k⃗)(\vec{i}+2\vec{j})\cdot(3\vec{i}+\vec{k}) by expanding. There are four products: 3 i⃗⋅i⃗+i⃗⋅k⃗+6 j⃗⋅i⃗+2 j⃗⋅k⃗.3\,\vec{i}\cdot\vec{i}+\vec{i}\cdot\vec{k}+6\,\vec{j}\cdot\vec{i}+2\,\vec{j}\cdot\vec{k}. Since i⃗⋅i⃗=1\vec{i}\cdot\vec{i}=1 while products of two different unit vectors are 00, only 33 is left. That is exactly 1⋅3+2⋅0+0⋅11\cdot3+2\cdot0+0\cdot1: multiply the coordinates in the same position and add.

Why is it true? Expanding a⃗⋅b⃗\vec{a}\cdot\vec{b} as in the exploration gives nine products; the six products of two different unit vectors are 00, and the remaining three are x1x2x_1x_2, y1y2y_1y_2, z1z2z_1z_2. Taking b⃗=a⃗\vec{b}=\vec{a} gives ∣a⃗∣2=a⃗⋅a⃗=x12+y12+z12|\vec{a}|^2=\vec{a}\cdot\vec{a}=x_1^2+y_1^2+z_1^2.

Now we answer the tent question. The angle between the ropes is the angle between two vectors starting at the top of the pole.

OxyzTPQ
The tent pole and the two guy ropes

Solving geometry problems with coordinates

Once we have coordinates, many geometric questions become calculations: a parallelogram ABCDABCD needs AD→=BC→\overrightarrow{AD}=\overrightarrow{BC}, and two perpendicular lines need a zero scalar product.

The last example has more steps, so we follow the four stages.

Key terms

Summary

  • Add, subtract, multiply by a number: work on each coordinate.
  • b⃗\vec{b} is collinear with a⃗≠0⃗\vec{a}\neq\vec{0}   ⟺  \iff b⃗=ka⃗\vec{b}=k\vec{a}; AA, BB, CC are collinear   ⟺  \iff AB→\overrightarrow{AB}, AC→\overrightarrow{AC} are collinear.
  • a⃗⋅b⃗=x1x2+y1y2+z1z2\vec{a}\cdot\vec{b}=x_1x_2+y_1y_2+z_1z_2 (a number); ∣a⃗∣=x12+y12+z12|\vec{a}|=\sqrt{x_1^2+y_1^2+z_1^2}.
  • cos⁡(a⃗,b⃗)=a⃗⋅b⃗∣a⃗∣∣b⃗∣\cos(\vec{a}, \vec{b})=\dfrac{\vec{a}\cdot\vec{b}}{|\vec{a}||\vec{b}|}; a⃗⊥b⃗  ⟺  a⃗⋅b⃗=0\vec{a}\perp\vec{b}\iff\vec{a}\cdot\vec{b}=0.
  • The angle ∠BAC\angle BAC of a triangle is the angle between AB→\overrightarrow{AB} and AC→\overrightarrow{AC}.
  • Parallelogram ABCDABCD: AD→=BC→\overrightarrow{AD}=\overrightarrow{BC}.

Practice

Each exercise comes with what you need and some steps to start. Try it yourself first, then open the solution.

Exercise 1

Let u⃗=(2,−1,3)\vec{u}=(2, -1, 3) and v⃗=(−1,4,0)\vec{v}=(-1, 4, 0). Find u⃗+v⃗\vec{u}+\vec{v}, 3u⃗−2v⃗3\vec{u}-2\vec{v} and u⃗⋅v⃗\vec{u}\cdot\vec{v}.

What you need and how to start

What you need: add, subtract and multiply by a number coordinate by coordinate; u⃗⋅v⃗=x1x2+y1y2+z1z2\vec{u}\cdot\vec{v}=x_1x_2+y_1y_2+z_1z_2.

Steps:

  1. Compute 3u⃗3\vec{u} and 2v⃗2\vec{v} first.
  2. Multiply coordinates in the same position and add.
Show solution

u⃗+v⃗=(1,3,3)\vec{u}+\vec{v}=(1, 3, 3). 3u⃗=(6,−3,9)3\vec{u}=(6, -3, 9), 2v⃗=(−2,8,0)2\vec{v}=(-2, 8, 0), so 3u⃗−2v⃗=(8,−11,9)3\vec{u}-2\vec{v}=(8, -11, 9). u⃗⋅v⃗=−2−4+0=−6\vec{u}\cdot\vec{v}=-2-4+0=-6.

Answer. (1,3,3)(1, 3, 3); (8,−11,9)(8, -11, 9); −6-6.

Exercise 2

Let a⃗=(2,−3,6)\vec{a}=(2, -3, 6). Find ∣a⃗∣|\vec{a}| and the vector e⃗\vec{e} with the same direction as a⃗\vec{a} and length 11.

What you need and how to start

What you need: ∣a⃗∣=x2+y2+z2|\vec{a}|=\sqrt{x^2+y^2+z^2}; 1∣a⃗∣a⃗\dfrac{1}{|\vec{a}|}\vec{a} has the same direction as a⃗\vec{a} and length 11.

Steps:

  1. Compute ∣a⃗∣|\vec{a}|.
  2. Divide each coordinate by ∣a⃗∣|\vec{a}|.
Show solution

∣a⃗∣=4+9+36=7|\vec{a}|=\sqrt{4+9+36}=7, so e⃗=17a⃗=(27,−37,67)\vec{e}=\dfrac17\vec{a}=\left(\dfrac27, -\dfrac37, \dfrac67\right).

Answer. ∣a⃗∣=7|\vec{a}|=7; e⃗=(27,−37,67)\vec{e}=\left(\dfrac27, -\dfrac37, \dfrac67\right).

Exercise 3

Find the angle between the vectors a⃗=(1,1,0)\vec{a}=(1, 1, 0) and b⃗=(0,1,1)\vec{b}=(0, 1, 1).

What you need and how to start

What you need: cos⁡(a⃗,b⃗)=a⃗⋅b⃗∣a⃗∣∣b⃗∣\cos(\vec{a}, \vec{b})=\dfrac{\vec{a}\cdot\vec{b}}{|\vec{a}||\vec{b}|}.

Steps:

  1. Compute a⃗⋅b⃗\vec{a}\cdot\vec{b}, ∣a⃗∣|\vec{a}|, ∣b⃗∣|\vec{b}|.
  2. Find the angle with that cosine.
Show solution

a⃗⋅b⃗=0+1+0=1,∣a⃗∣=∣b⃗∣=2,cos⁡(a⃗,b⃗)=12.\vec{a}\cdot\vec{b}=0+1+0=1,\qquad |\vec{a}|=|\vec{b}|=\sqrt2,\qquad \cos(\vec{a}, \vec{b})=\frac{1}{2}.

Answer. 60∘60^\circ.

Exercise 4

Among the three vectors u⃗=(1,2,−1)\vec{u}=(1, 2, -1), v⃗=(3,−1,1)\vec{v}=(3, -1, 1), w⃗=(1,1,3)\vec{w}=(1, 1, 3), which pairs are perpendicular?

What you need and how to start

What you need: a⃗⊥b⃗  ⟺  a⃗⋅b⃗=0\vec{a}\perp\vec{b}\iff\vec{a}\cdot\vec{b}=0.

Steps:

  1. Compute the three scalar products u⃗⋅v⃗\vec{u}\cdot\vec{v}, u⃗⋅w⃗\vec{u}\cdot\vec{w}, v⃗⋅w⃗\vec{v}\cdot\vec{w}.
  2. Pick those equal to 00.
Show solution

u⃗⋅v⃗=3−2−1=0\vec{u}\cdot\vec{v}=3-2-1=0, u⃗⋅w⃗=1+2−3=0\vec{u}\cdot\vec{w}=1+2-3=0, v⃗⋅w⃗=3−1+3=5\vec{v}\cdot\vec{w}=3-1+3=5.

Answer. u⃗⊥v⃗\vec{u}\perp\vec{v} and u⃗⊥w⃗\vec{u}\perp\vec{w}; v⃗\vec{v} and w⃗\vec{w} are not perpendicular.

Exercise 5

Find xx, yy such that the vectors a⃗=(1,x,3)\vec{a}=(1, x, 3) and b⃗=(−2,4,y)\vec{b}=(-2, 4, y) are collinear.

What you need and how to start

What you need: b⃗\vec{b} is collinear with a⃗\vec{a}   ⟺  \iff b⃗=ka⃗\vec{b}=k\vec{a}.

Steps:

  1. Find kk from the x-coordinates: −2=k⋅1-2=k\cdot1.
  2. Use kk for the other two coordinates.
Show solution

k=−2k=-2. Then 4=−2x4=-2x, so x=−2x=-2, and y=−2⋅3=−6y=-2\cdot3=-6.

Answer. x=−2x=-2, y=−6y=-6.

Exercise 6

Let A(3,2,−1)A(3, 2, -1), B(1,1,1)B(1, 1, 1), C(2,3,3)C(2, 3, 3). Prove that triangle ABCABC has a right angle at BB and find its area.

What you need and how to start

What you need: right angle at BB   ⟺  \iff BA→⋅BC→=0\overrightarrow{BA}\cdot\overrightarrow{BC}=0; the area of a right-angled triangle is half the product of the two shorter sides.

Steps:

  1. Find BA→\overrightarrow{BA}, BC→\overrightarrow{BC} and their scalar product.
  2. Find BABA, BCBC.
Show solution

BA→=(2,1,−2),BC→=(1,2,2),BA→⋅BC→=2+2−4=0.\overrightarrow{BA}=(2, 1, -2),\quad \overrightarrow{BC}=(1, 2, 2),\quad \overrightarrow{BA}\cdot\overrightarrow{BC}=2+2-4=0. BA=BC=3BA=BC=3, so S=12⋅3⋅3=4.5S=\dfrac12\cdot3\cdot3=4.5.

Answer. The triangle is right-angled (and isosceles) at BB; S=4.5S=4.5.

Exercise 7

Let a⃗=(1,−2,2)\vec{a}=(1, -2, 2) and b⃗=(2,2,1)\vec{b}=(2, 2, 1). Is each claim true or false?

a) ∣a⃗∣=3|\vec{a}|=3.

b) a⃗⊥b⃗\vec{a}\perp\vec{b}.

c) a⃗−b⃗=(−1,−4,3)\vec{a}-\vec{b}=(-1, -4, 3).

d) ∣a⃗+b⃗∣=6|\vec{a}+\vec{b}|=6.

What you need and how to start

What you need: the formulas for length, scalar product and subtraction in coordinates.

Steps:

  1. Compute ∣a⃗∣|\vec{a}| and a⃗⋅b⃗\vec{a}\cdot\vec{b}.
  2. Subtract coordinate by coordinate.
  3. Compute a⃗+b⃗\vec{a}+\vec{b} and its length.
Show solution

a) True. ∣a⃗∣=1+4+4=3|\vec{a}|=\sqrt{1+4+4}=3.

b) True. a⃗⋅b⃗=2−4+2=0\vec{a}\cdot\vec{b}=2-4+2=0.

c) False. a⃗−b⃗=(1−2, −2−2, 2−1)=(−1,−4,1)\vec{a}-\vec{b}=(1-2,\ -2-2,\ 2-1)=(-1, -4, 1).

d) False. a⃗+b⃗=(3,0,3)\vec{a}+\vec{b}=(3, 0, 3), so ∣a⃗+b⃗∣=18=32≈4.24|\vec{a}+\vec{b}|=\sqrt{18}=3\sqrt2\approx4.24.

Answer. a) True; b) True; c) False; d) False.

Exercise 8

A person pulls a sledge with the force F⃗=(10,5,−2)\vec{F}=(10, 5, -2) (unit: N). The sledge moves along the displacement d⃗=(3,4,0)\vec{d}=(3, 4, 0) (unit: m). Find the angle between the pulling force and the direction of motion (in degrees, rounded to the nearest whole number).

What you need and how to start

What you need: cos⁡(F⃗,d⃗)=F⃗⋅d⃗∣F⃗∣∣d⃗∣\cos(\vec{F}, \vec{d})=\dfrac{\vec{F}\cdot\vec{d}}{|\vec{F}||\vec{d}|}; in physics, F⃗⋅d⃗\vec{F}\cdot\vec{d} is the work done by the force (unit: J).

Steps:

  1. Compute F⃗⋅d⃗\vec{F}\cdot\vec{d}.
  2. Compute ∣F⃗∣|\vec{F}|, ∣d⃗∣|\vec{d}| and the cosine of the angle.
Show solution

F⃗⋅d⃗=30+20+0=50,∣F⃗∣=100+25+4=129,∣d⃗∣=5.\vec{F}\cdot\vec{d}=30+20+0=50,\qquad |\vec{F}|=\sqrt{100+25+4}=\sqrt{129},\qquad |\vec{d}|=5. cos⁡(F⃗,d⃗)=505129=10129≈0.880,(F⃗,d⃗)≈28.3∘.\cos(\vec{F}, \vec{d})=\frac{50}{5\sqrt{129}}=\frac{10}{\sqrt{129}}\approx0.880,\qquad (\vec{F}, \vec{d})\approx28.3^\circ. (The work done by the force is 5050 J.)

Answer. 2828.

Exercise 9

(Revisiting Vectors and their operations in space.) In the previous lesson, by decomposing vectors, we found that the angle between AC→\overrightarrow{AC} and A′D→\overrightarrow{A'D} in the cube ABCD.A′B′C′D′ABCD.A'B'C'D' is 60∘60^\circ. Find it again with coordinates, for the cube with edge 11, AA at the origin, B(1,0,0)B(1, 0, 0), D(0,1,0)D(0, 1, 0), A′(0,0,1)A'(0, 0, 1).

What you need and how to start

What you need: the coordinates of the vertices of the cube; the cosine formula for the angle.

Steps:

  1. Write C(1,1,0)C(1, 1, 0) and find AC→\overrightarrow{AC}, A′D→\overrightarrow{A'D}.
  2. Compute the cosine.
Show solution

AC→=(1,1,0),A′D→=(0,1,−1),cos⁡=0+1+02⋅2=12.\overrightarrow{AC}=(1, 1, 0),\qquad \overrightarrow{A'D}=(0, 1, -1),\qquad \cos=\frac{0+1+0}{\sqrt2\cdot\sqrt2}=\frac12.

Answer. 60∘60^\circ, the same as in the previous lesson.

Exercise 10 Challenge

Let A(2,1,1)A(2, 1, 1) and B(4,−1,1)B(4, -1, 1). Find the points MM on the axis OxOx such that triangle MABMAB has a right angle at MM.

What you need and how to start

What you need: a point on OxOx has the form M(t,0,0)M(t, 0, 0); right angle at MM   ⟺  \iff MA→⋅MB→=0\overrightarrow{MA}\cdot\overrightarrow{MB}=0.

Steps:

  1. Write MA→\overrightarrow{MA}, MB→\overrightarrow{MB} in terms of tt.
  2. Set the scalar product equal to 00 and solve.
Show solution

MA→=(2−t,1,1)\overrightarrow{MA}=(2-t, 1, 1), MB→=(4−t,−1,1)\overrightarrow{MB}=(4-t, -1, 1). (2−t)(4−t)−1+1=0  ⟺  (2−t)(4−t)=0  ⟺  t=2 or t=4.(2-t)(4-t)-1+1=0\iff(2-t)(4-t)=0\iff t=2\ \text{or}\ t=4. Check. For M(2,0,0)M(2, 0, 0): (0,1,1)⋅(2,−1,1)=0(0, 1, 1)\cdot(2, -1, 1)=0. For M(4,0,0)M(4, 0, 0): (−2,1,1)⋅(0,−1,1)=0(-2, 1, 1)\cdot(0, -1, 1)=0.

Answer. M(2,0,0)M(2, 0, 0) or M(4,0,0)M(4, 0, 0).

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. In the system OxyzOxyz, let a⃗=(2,−1,3)\vec{a}=(2, -1, 3) and b⃗=(1,0,−2)\vec{b}=(1, 0, -2). The coordinates of a⃗−2b⃗\vec{a}-2\vec{b} are
Question 2. Let u⃗=(3,−2,1)\vec{u}=(3, -2, 1) and v⃗=(1,4,−2)\vec{v}=(1, 4, -2). The scalar product u⃗⋅v⃗\vec{u}\cdot\vec{v} is
Question 3. Which vector is perpendicular to a⃗=(1,2,−2)\vec{a}=(1, 2, -2)?
Question 4. The angle between the vectors a⃗=(1,0,1)\vec{a}=(1, 0, 1) and b⃗=(−1,1,0)\vec{b}=(-1, 1, 0) is

Part II. True or false

Question 1. In the system OxyzOxyz, let A(1,0,2)A(1, 0, 2), B(3,1,0)B(3, 1, 0), C(0,2,2)C(0, 2, 2).
a) AB→=(2,1,−2)\overrightarrow{AB}=(2, 1, -2).
b) Triangle ABCABC has a right angle at AA.
c) The area of triangle ABCABC is 353\sqrt5.
d) The angle ∠ABC\angle ABC is greater than 30∘30^\circ.

Part III. Short answer

Question 1. Let A(1,2,−1)A(1, 2, -1), B(3,0,1)B(3, 0, 1) and C(x,y,5)C(x, y, 5). Given that AA, BB, CC are collinear, find x+yx+y.

Question 2. A force F⃗=(4,−2,3)\vec{F}=(4, -2, 3) (unit: N) moves an object from M(1,0,0)M(1, 0, 0) to N(5,3,2)N(5, 3, 2) (unit: m). Find the angle between the force F⃗\vec{F} and the direction of motion MN→\overrightarrow{MN}, in degrees, to 1 decimal place.

Show answers and explanations
  1. Part I, question 1: B. 2b⃗=(2,0,−4)2\vec{b}=(2, 0, -4), so a⃗−2b⃗=(0,−1,3+4)=(0,−1,7)\vec{a}-2\vec{b}=(0, -1, 3+4)=(0, -1, 7). Option A gets the sign wrong when subtracting −4-4, option C is a⃗+2b⃗\vec{a}+2\vec{b}, and option D forgets to multiply b⃗\vec{b} by 22.
  2. Part I, question 2: C. u⃗⋅v⃗=3⋅1+(−2)⋅4+1⋅(−2)=3−8−2=−7\vec{u}\cdot\vec{v}=3\cdot1+(-2)\cdot4+1\cdot(-2)=3-8-2=-7. Option B writes the scalar product as a vector, and option D gets the sign of 1⋅(−2)1\cdot(-2) wrong.
  3. Part I, question 3: D. (1,2,−2)⋅(2,1,2)=2+2−4=0(1, 2, -2)\cdot(2, 1, 2)=2+2-4=0. Option C equals −2a⃗-2\vec{a}, which is parallel to a⃗\vec{a}, not perpendicular; A and B give scalar products 11 and −4-4.
  4. Part I, question 4: A. cos⁡(a⃗,b⃗)=−1+0+02⋅2=−12\cos(\vec{a}, \vec{b})=\dfrac{-1+0+0}{\sqrt2\cdot\sqrt2}=-\dfrac12, so the angle is 120∘120^\circ. Option B ignores the minus sign of the scalar product.
  5. Part II, question 1: a) True; b) True; c) False; d) True. a) True. b) True: AC→=(−1,2,0)\overrightarrow{AC}=(-1, 2, 0) and AB→⋅AC→=−2+2+0=0\overrightarrow{AB}\cdot\overrightarrow{AC}=-2+2+0=0. c) False: AB=3AB=3 and AC=5AC=\sqrt5, so the area is 12⋅35=352\dfrac12\cdot3\sqrt5=\dfrac{3\sqrt5}{2}. d) True: BA→=(−2,−1,2)\overrightarrow{BA}=(-2, -1, 2), BC→=(−3,1,2)\overrightarrow{BC}=(-3, 1, 2), cos⁡∠ABC=9314≈0.80\cos\angle ABC=\dfrac{9}{3\sqrt{14}}\approx0.80, so the angle is about 36.7∘36.7^\circ.
  6. Part III, question 1: 3. AB→=(2,−2,2)\overrightarrow{AB}=(2, -2, 2) and AC→=(x−1,y−2,6)=kAB→\overrightarrow{AC}=(x-1, y-2, 6)=k\overrightarrow{AB}. The z-coordinates give 6=2k6=2k, k=3k=3, so x=7x=7, y=−4y=-4 and x+y=3x+y=3.
  7. Part III, question 2: 56.5. MN→=(4,3,2)\overrightarrow{MN}=(4, 3, 2), F⃗⋅MN→=16−6+6=16\vec{F}\cdot\overrightarrow{MN}=16-6+6=16, and ∣F⃗∣=∣MN→∣=29|\vec{F}|=|\overrightarrow{MN}|=\sqrt{29}. So cos⁡=1629\cos=\dfrac{16}{29} and the angle is about 56.51∘56.51^\circ, which rounds to 56.556.5.