Skip to content
Gioi Toan
Start learning
Two vectors joined head to tail on a grid, and their sum

Notes on Lesson 2: Coordinate expressions for vector operations (Maths 10 Canh Dieu, Chapter VII)

Lesson summary

Remark: Two vectors u⃗=(x1;y1)\vec{u} = (x_1; y_1) and v⃗=(x2;y2)\vec{v} = (x_2; y_2) (with v⃗≠0⃗\vec{v} \ne \vec{0}) are parallel if and only if there exists a real number kk such that x1=kx2x_1 = kx_2 and y1=ky2y_1 = ky_2.

Coordinates of the midpoint of a line segment: Given two points A(xA;yA)A(x_A; y_A) and B(xB;yB)B(x_B; y_B).

Each operation on vectors, when turned into coordinates, becomes just an operation on individual numbers: for addition, add x-coordinate to x-coordinate and y-coordinate to y-coordinate; for multiplication by a number kk, multiply both coordinates by kk.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Dùng biểu thức tọa độ của phép cộng, trừ, nhân số với vectơ, tích vô hướng
  • Tính độ dài vectơ, khoảng cách hai điểm, tọa độ trung điểm, trọng tâm

On a navigation screen, a moving car is shown by an arrow with a direction and a length, along with two numbers giving its position. Those two numbers are the coordinates. This lesson helps you use coordinates to carry out operations on vectors: addition, subtraction, multiplication of a vector by a number, and the dot product, and from there to find the length of a vector, the distance between two points, and the coordinates of the midpoint and the centroid. With coordinates in hand, the vector operations you learned in earlier lessons become just adding, subtracting and multiplying numbers.

Practise similar problems

Key ideas: what do you need to know?

Coordinate expressions for addition, subtraction and multiplication of a vector by a number

  • If u⃗=(x1;y1)\vec{u} = (x_1; y_1) and v⃗=(x2;y2)\vec{v} = (x_2; y_2) then:

+ u⃗+v⃗=(x1+x2;y1+y2)\vec{u} + \vec{v} = (x_1 + x_2; y_1 + y_2);
+ u⃗−v⃗=(x1−x2;y1−y2)\vec{u} - \vec{v} = (x_1 - x_2; y_1 - y_2);
+ ku⃗=(kx1;ky1)k\vec{u} = (kx_1; ky_1) with k∈Rk \in \mathbb{R}.

  • Remark: Two vectors u⃗=(x1;y1)\vec{u} = (x_1; y_1) and v⃗=(x2;y2)\vec{v} = (x_2; y_2) (with v⃗≠0⃗\vec{v} \ne \vec{0}) are parallel if and only if there exists a real number kk such that x1=kx2x_1 = kx_2 and y1=ky2y_1 = ky_2. If x2≠0x_2 \ne 0 and y2≠0y_2 \ne 0 then this is equivalent to x1x2=y1y2\frac{x_1}{x_2} = \frac{y_1}{y_2}.
  • Example: u⃗=(2;−1)\vec{u} = (2; -1), v⃗=(1;5)\vec{v} = (1; 5) then u⃗+v⃗=(3;4)\vec{u} + \vec{v} = (3; 4), u⃗−v⃗=(1;−6)\vec{u} - \vec{v} = (1; -6), 2u⃗=(4;−2)2\vec{u} = (4; -2).

In plain words: Each operation on vectors, when turned into coordinates, becomes just an operation on individual numbers: for addition, add x-coordinate to x-coordinate and y-coordinate to y-coordinate; for multiplication by a number kk, multiply both coordinates by kk. Why is this allowed? Because u⃗=x1i⃗+y1j⃗\vec{u} = x_1\vec{i} + y_1\vec{j} and v⃗=x2i⃗+y2j⃗\vec{v} = x_2\vec{i} + y_2\vec{j}, when added, group the i⃗\vec{i} terms together and the j⃗\vec{j} terms together, which is exactly (x1+x2)i⃗+(y1+y2)j⃗(x_1 + x_2)\vec{i} + (y_1 + y_2)\vec{j}. As for being parallel, look at the ratio: two vectors are parallel when one vector's coordinates are a fixed number of times the other's.

Phrase by phrase
u⃗+v⃗=(x1+x2;y1+y2)\vec{u} + \vec{v} = (x_1 + x_2; y_1 + y_2)
Add coordinate by coordinate, do not add crosswise.Example: (2;−1)+(1;5)=(3;4)(2; -1) + (1; 5) = (3; 4).
ku⃗=(kx1;ky1)k\vec{u} = (kx_1; ky_1)
Multiply both the x-coordinate and the y-coordinate by the same number kk.Example: 2(2;−1)=(4;−2)2(2; -1) = (4; -2).
parallel
Two vectors whose lines are parallel or coincident lines; in coordinates, one vector's coordinates equal kk times the other vector's coordinates (the other vector is not 0⃗\vec{0}).Example: (2;4)(2;4) and (1;2)(1;2) are parallel because (2;4)=2(1;2)(2;4)=2(1;2).

Common mistakesWhen multiplying a number by a vector, multiplying only the x-coordinate and forgetting to multiply the y-coordinate. You should multiply both coordinates by that number: ku⃗=(kx;ky)k\vec{u} = (kx; ky).

Coordinates of the midpoint of a line segment and coordinates of the centroid of a triangle

  • Coordinates of the midpoint of a line segment: Given two points A(xA;yA)A(x_A; y_A) and B(xB;yB)B(x_B; y_B). If M(xM;yM)M(x_M; y_M) is the midpoint of the line segment ABAB then

xM=xA+xB2,yM=yA+yB2.x_M = \frac{x_A + x_B}{2}, \quad y_M = \frac{y_A + y_B}{2}.

  • Coordinates of the centroid of a triangle: Given triangle ABCABC with A(xA;yA)A(x_A; y_A), B(xB;yB)B(x_B; y_B), C(xC;yC)C(x_C; y_C). If G(xG;yG)G(x_G; y_G) is the centroid of triangle ABCABC then

xG=xA+xB+xC3,yG=yA+yB+yC3.x_G = \frac{x_A + x_B + x_C}{3}, \quad y_G = \frac{y_A + y_B + y_C}{3}.

  • Example: A(1;2)A(1; 2), B(5;4)B(5; 4) then the midpoint MM of ABAB is M(3;3)M(3; 3). Adding C(0;6)C(0; 6), the centroid of triangle ABCABC is G(1+5+03;2+4+63)=(2;4)G\left(\frac{1 + 5 + 0}{3}; \frac{2 + 4 + 6}{3}\right) = (2; 4).

In plain words: The midpoint MM of ABAB divides the line segment ABAB into two equal parts, so from OA→+OB→=2OM→\overrightarrow{OA}+\overrightarrow{OB}=2\overrightarrow{OM} it follows that the coordinates MM are the average of the coordinates AA and BB: add the x-coordinates, add the y-coordinates, then divide by 2. For the centroid GG, from GA→+GB→+GC→=0⃗\overrightarrow{GA}+\overrightarrow{GB}+\overrightarrow{GC}=\vec{0}, or OA→+OB→+OC→=3OG→\overrightarrow{OA}+\overrightarrow{OB}+\overrightarrow{OC}=3\overrightarrow{OG}, it follows that the coordinates GG are the average of the coordinates of the three vertices: add the x-coordinates, add the y-coordinates, then divide by 3. Remember well: midpoint divides by 2, centroid divides by 3, and always compute x with x and y with y separately.

Phrase by phrase
Midpoint
The point between AA, BB and equidistant from the two ends.Example: A(1;2)A(1; 2), B(5;4)B(5; 4) give M(3;3)M(3; 3).
Centroid
The point of intersection of the three medians, its coordinates are the average of the three vertices.Example: A(1;2)A(1; 2), B(5;4)B(5; 4), C(0;6)C(0; 6) give G(2;4)G(2; 4).

Common mistakesMixing up the midpoint and centroid formulas: dividing by 3 for the midpoint or dividing by 2 for the centroid. The midpoint divides by 2, the centroid divides by 3.

TipVector joining two points: 'last minus first'. Length: 'square, add, take the square root'.

TipThe midpoint divides by 2, the centroid divides by 3, and always calculate the x-coordinate and the y-coordinate separately.

Coordinate expression of the dot product

  • If u⃗=(x1;y1)\vec{u} = (x_1; y_1) and v⃗=(x2;y2)\vec{v} = (x_2; y_2) then u⃗⋅v⃗=x1x2+y1y2\vec{u} \cdot \vec{v} = x_1x_2 + y_1y_2.
  • Remark:

a) If a⃗=(x;y)\vec{a} = (x; y) then ∣a⃗∣=x2+y2|\vec{a}| = \sqrt{x^2 + y^2}.
b) If A(xA;yA)A(x_A; y_A) and B(xB;yB)B(x_B; y_B) then AB=(xB−xA)2+(yB−yA)2AB = \sqrt{(x_B - x_A)^2 + (y_B - y_A)^2}.
c) For two vectors u⃗=(x1;y1)\vec{u} = (x_1; y_1) and v⃗=(x2;y2)\vec{v} = (x_2; y_2) both different from 0⃗\vec{0}:
+ u⃗⊥v⃗⇔u⃗⋅v⃗=x1x2+y1y2=0\vec{u} \perp \vec{v} \Leftrightarrow \vec{u} \cdot \vec{v} = x_1x_2 + y_1y_2 = 0;
+ cos⁡(u⃗,v⃗)=u⃗⋅v⃗∣u⃗∣⋅∣v⃗∣=x1x2+y1y2x12+y12⋅x22+y22\cos(\vec{u}, \vec{v}) = \frac{\vec{u} \cdot \vec{v}}{|\vec{u}| \cdot |\vec{v}|} = \frac{x_1x_2 + y_1y_2}{\sqrt{x_1^2 + y_1^2} \cdot \sqrt{x_2^2 + y_2^2}}.

  • Example: u⃗=(1;2)\vec{u} = (1; 2), v⃗=(3;−1)\vec{v} = (3; -1) then u⃗⋅v⃗=1⋅3+2⋅(−1)=1\vec{u} \cdot \vec{v} = 1 \cdot 3 + 2 \cdot (-1) = 1.

In plain words: With coordinates you do not need to draw a figure, you do not need to know the angle: just take x times x plus y times y. This is very handy when the figure is hard to picture. The length formula is exactly the Pythagorean theorem you have learned, and the cosine formula is just the definition of the dot product divided by the two lengths. Thanks to that, checking perpendicular becomes a simple algebraic equation equal to 0.

Phrase by phrase
u⃗⋅v⃗=x1x2+y1y2\vec{u} \cdot \vec{v} = x_1x_2 + y_1y_2
The dot product equals the sum of the two products of corresponding coordinates.Example: (2;5)⋅(1;−1)=2−5=−3(2; 5) \cdot (1; -1) = 2 - 5 = -3.
∣a⃗∣=x2+y2|\vec{a}| = \sqrt{x^2 + y^2}
The length of a vector is computed by Pythagoras from the two coordinates.Example: ∣(3;4)∣=5|(3; 4)| = 5.
u⃗⊥v⃗⇔x1x2+y1y2=0\vec{u} \perp \vec{v} \Leftrightarrow x_1x_2 + y_1y_2 = 0
The condition for two vectors different from 0⃗\vec{0} to be perpendicular.Example: (1;2)⊥(4;−2)(1; 2) \perp (4; -2) because 4−4=04 - 4 = 0.

Worked examples

Example 1

Given u⃗=(2;−1)\vec{u} = (2; -1) and v⃗=(1;5)\vec{v} = (1; 5). Find the coordinates of u⃗+v⃗\vec{u} + \vec{v}, u⃗−v⃗\vec{u} - \vec{v} and 3u⃗−2v⃗3\vec{u} - 2\vec{v}.

Show the solution to example 1

Step 1: Compute u⃗+v⃗=(2+1;−1+5)=(3;4)\vec{u} + \vec{v} = (2 + 1; -1 + 5) = (3; 4).
Step 2: Compute u⃗−v⃗=(2−1;−1−5)=(1;−6)\vec{u} - \vec{v} = (2 - 1; -1 - 5) = (1; -6).
Step 3: Compute 3u⃗=(3⋅2;3⋅(−1))=(6;−3)3\vec{u} = (3 \cdot 2; 3 \cdot (-1)) = (6; -3) and 2v⃗=(2⋅1;2⋅5)=(2;10)2\vec{v} = (2 \cdot 1; 2 \cdot 5) = (2; 10).
Step 4: Deduce 3u⃗−2v⃗=(6−2;−3−10)=(4;−13)3\vec{u} - 2\vec{v} = (6 - 2; -3 - 10) = (4; -13).
Why: Each operation on vectors is done coordinate by coordinate: add x with x, y with y; multiplying a number by a vector multiplies both coordinates by that number.
Result: u⃗+v⃗=(3;4)\vec{u} + \vec{v} = (3; 4); u⃗−v⃗=(1;−6)\vec{u} - \vec{v} = (1; -6); 3u⃗−2v⃗=(4;−13)3\vec{u} - 2\vec{v} = (4; -13).

Common mistakesAdding vectors like adding diagonally: taking the x-coordinate of this vector plus the y-coordinate of the other. You should add coordinate by coordinate: x-coordinate with x-coordinate, y-coordinate with y-coordinate.

Common mistakesCalculating the length of a vector by adding the two coordinates and then taking the square root, or forgetting to square. It should be x2+y2\sqrt{x^2 + y^2}, square each coordinate first and only then add.

TipRead the coordinates of a vector in the order 'across first, up and down after': the coefficient of i⃗\vec{i} is the x-coordinate, the coefficient of j⃗\vec{j} is the y-coordinate; if i⃗\vec{i} is missing then the x-coordinate is 0, if j⃗\vec{j} is missing then the y-coordinate is 0.

Example 2

Given three points A(−1;−3)A(-1; -3), B(2;3)B(2; 3) and C(3;5)C(3; 5). Prove that the three points A,B,CA, B, C are collinear.

Show the solution to example 2

Step 1: Compute AB→=(2−(−1);3−(−3))=(3;6)\overrightarrow{AB} = (2 - (-1); 3 - (-3)) = (3; 6).
Step 2: Compute BC→=(3−2;5−3)=(1;2)\overrightarrow{BC} = (3 - 2; 5 - 3) = (1; 2).
Step 3: Notice that AB→=3BC→\overrightarrow{AB} = 3\overrightarrow{BC} because 3⋅(1;2)=(3;6)3 \cdot (1; 2) = (3; 6).
Why: The two vectors AB→\overrightarrow{AB} and BC→\overrightarrow{BC} are in the same direction (since there is a number k=3k = 3 such that AB→=kBC→\overrightarrow{AB} = k\overrightarrow{BC}) and share the point BB, so the three points A,B,CA, B, C are collinear.
Result: The three points A,B,CA, B, C are collinear.

Example 3

Given triangle ABCABC with A(−2;1)A(-2; 1), B(2;5)B(2; 5), C(5;2)C(5; 2). Find the coordinates of the midpoint MM of the line segment ABAB and of the centroid GG of triangle ABCABC.

Show the solution to example 3

Step 1: Coordinates of the midpoint MM of ABAB: xM=−2+22=0x_M = \frac{-2 + 2}{2} = 0, yM=1+52=3y_M = \frac{1 + 5}{2} = 3. So M(0;3)M(0; 3).
Step 2: Coordinates of the centroid GG of triangle ABCABC: xG=−2+2+53=53x_G = \frac{-2 + 2 + 5}{3} = \frac{5}{3}, yG=1+5+23=83y_G = \frac{1 + 5 + 2}{3} = \frac{8}{3}. So G(53;83)G\left(\frac{5}{3}; \frac{8}{3}\right).
Why: The midpoint is the average of the coordinates of the two ends, the centroid is the average of the coordinates of the three vertices.
Result: M(0;3)M(0; 3); G(53;83)G\left(\frac{5}{3}; \frac{8}{3}\right).

Common mistakesWhen calculating the coordinates of the vector joining two points, taking the coordinates of the first point minus the coordinates of the last point gives a vector pointing the opposite way. It should be last point minus first point: AB→=(xB−xA;yB−yA)\overrightarrow{AB} = (x_B - x_A; y_B - y_A).

Example 4

In the coordinate plane OxyOxy, given triangle ABCABC with A(2;2)A(2; 2), B(1;−1)B(1; -1), C(8;0)C(8; 0).
a) Compute BA→⋅BC→\overrightarrow{BA} \cdot \overrightarrow{BC} and cos⁡ABC^\cos\widehat{ABC}.
b) Prove AB→⊥AC→\overrightarrow{AB} \perp \overrightarrow{AC}.
c) Compute the lengths of the sides ABAB, BCBC, CACA.

Show the solution to example 4

Step 1: Calculate BA→=(2−1;2−(−1))=(1;3)\overrightarrow{BA} = (2 - 1; 2 - (-1)) = (1; 3) and BC→=(8−1;0−(−1))=(7;1)\overrightarrow{BC} = (8 - 1; 0 - (-1)) = (7; 1).
Step 2: BA→⋅BC→=1⋅7+3⋅1=10\overrightarrow{BA} \cdot \overrightarrow{BC} = 1 \cdot 7 + 3 \cdot 1 = 10.
Step 3: ∣BA→∣=12+32=10|\overrightarrow{BA}| = \sqrt{1^2 + 3^2} = \sqrt{10}, ∣BC→∣=72+12=50=52|\overrightarrow{BC}| = \sqrt{7^2 + 1^2} = \sqrt{50} = 5\sqrt{2}.
Step 4: cos⁡ABC^=BA→⋅BC→∣BA→∣⋅∣BC→∣=1010⋅52=10520=220=15=55\cos\widehat{ABC} = \frac{\overrightarrow{BA} \cdot \overrightarrow{BC}}{|\overrightarrow{BA}| \cdot |\overrightarrow{BC}|} = \frac{10}{\sqrt{10} \cdot 5\sqrt{2}} = \frac{10}{5\sqrt{20}} = \frac{2}{\sqrt{20}} = \frac{1}{\sqrt{5}} = \frac{\sqrt{5}}{5}.
Step 5: Calculate AB→=(1−2;−1−2)=(−1;−3)\overrightarrow{AB} = (1 - 2; -1 - 2) = (-1; -3) and AC→=(8−2;0−2)=(6;−2)\overrightarrow{AC} = (8 - 2; 0 - 2) = (6; -2).
Step 6: AB→⋅AC→=(−1)⋅6+(−3)⋅(−2)=−6+6=0\overrightarrow{AB} \cdot \overrightarrow{AC} = (-1) \cdot 6 + (-3) \cdot (-2) = -6 + 6 = 0. So AB→⊥AC→\overrightarrow{AB} \perp \overrightarrow{AC}.
Step 7: AB=∣AB→∣=(−1)2+(−3)2=10AB = |\overrightarrow{AB}| = \sqrt{(-1)^2 + (-3)^2} = \sqrt{10}.
Step 8: BC=∣BC→∣=72+12=50=52BC = |\overrightarrow{BC}| = \sqrt{7^2 + 1^2} = \sqrt{50} = 5\sqrt{2}.
Step 9: CA=∣CA→∣=(2−8)2+(2−0)2=(−6)2+22=36+4=40=210CA = |\overrightarrow{CA}| = \sqrt{(2 - 8)^2 + (2 - 0)^2} = \sqrt{(-6)^2 + 2^2} = \sqrt{36 + 4} = \sqrt{40} = 2\sqrt{10}.
Why: The dot product is positive, so the angle ABC^\widehat{ABC} is acute, which fits cos⁡ABC^>0\cos\widehat{ABC} > 0. The dot product equals 0, so the two vectors are perpendicular.
Result: a) BA→⋅BC→=10\overrightarrow{BA} \cdot \overrightarrow{BC} = 10, cos⁡ABC^=55\cos\widehat{ABC} = \frac{\sqrt{5}}{5}; b) AB→⊥AC→\overrightarrow{AB} \perp \overrightarrow{AC}; c) AB=10AB = \sqrt{10}, BC=52BC = 5\sqrt{2}, CA=210CA = 2\sqrt{10}.

Example 5

In the coordinate plane OxyOxy, given two points A(1;2)A(1; 2) and B(4;6)B(4; 6). Find the coordinates of point MM on the y-axis such that triangle MABMAB is right-angled at MM.

Show the solution to example 5

Step 1: Since MM lies on the y-axis, M(0;y)M(0; y).
Step 2: Calculate MA→=(1−0;2−y)=(1;2−y)\overrightarrow{MA} = (1 - 0; 2 - y) = (1; 2 - y) and MB→=(4−0;6−y)=(4;6−y)\overrightarrow{MB} = (4 - 0; 6 - y) = (4; 6 - y).
Step 3: Triangle MABMAB is right-angled at MM if and only if MA→⋅MB→=0\overrightarrow{MA} \cdot \overrightarrow{MB} = 0.
Step 4: MA→⋅MB→=1⋅4+(2−y)(6−y)=4+12−8y+y2=y2−8y+16\overrightarrow{MA} \cdot \overrightarrow{MB} = 1 \cdot 4 + (2 - y)(6 - y) = 4 + 12 - 8y + y^2 = y^2 - 8y + 16.
Step 5: Solve y2−8y+16=0y^2 - 8y + 16 = 0, that is (y−4)2=0(y - 4)^2 = 0, getting y=4y = 4.
Step 6: Check again with M(0;4)M(0; 4): MA→=(1;−2)\overrightarrow{MA} = (1; -2), MB→=(4;2)\overrightarrow{MB} = (4; 2), the dot product 1⋅4+(−2)⋅2=4−4=01 \cdot 4 + (-2) \cdot 2 = 4 - 4 = 0, it works.
Why: The two vectors MA→\overrightarrow{MA}, MB→\overrightarrow{MB} are both different from 0→\overrightarrow{0}, so the angle AMBAMB is right exactly when their dot product equals 0; point MM is constrained to the y-axis, so only one unknown yy remains, and the problem comes down to solving an equation of degree two in one unknown.
Result: M(0;4)M(0; 4).

Example 6

A helicopter starts from position O(0;0)O(0; 0) and flies in the direction of vector v⃗=(200;150)\vec{v} = (200; 150), with the unit on the axes being km. After 2 hours, the helicopter is at position MM. Given that the velocity vector of the helicopter is v⃗\vec{v} (km/h).
a) Find the coordinates of MM.
b) Calculate the distance the helicopter has flown after 2 hours.
c) If the helicopter keeps flying at that speed for 1 more hour, what are the new coordinates?

Show the solution to example 6

Step 1: The velocity vector v⃗=(200;150)\vec{v} = (200; 150) (km/h). After 2 hours, the displacement vector is 2v⃗=(2⋅200;2⋅150)=(400;300)2\vec{v} = (2 \cdot 200; 2 \cdot 150) = (400; 300).
Step 2: Since it starts from O(0;0)O(0; 0), the coordinates of MM are (400;300)(400; 300).
Step 3: The distance flown after 2 hours is the length of vector OM→\overrightarrow{OM}: OM=4002+3002=160000+90000=250000=500OM = \sqrt{400^2 + 300^2} = \sqrt{160000 + 90000} = \sqrt{250000} = 500 (km).
Step 4: After 1 more hour, the total time is 3 hours, and the displacement vector is 3v⃗=(600;450)3\vec{v} = (600; 450). The new coordinates are (600;450)(600; 450).
Why: Flying straight at a constant speed means the displacement vector is directly proportional to time.
Result: a) M(400;300)M(400; 300); b) distance 500500 km; c) new coordinates (600;450)(600; 450).

Terms

Coordinate expression
The formula for calculating the result of vector operations through the coordinates of the vectors.Example: u⃗+v⃗=(x1+x2;y1+y2)\vec{u} + \vec{v} = (x_1 + x_2; y_1 + y_2).
Coordinates of a vector
The pair of numbers (x;y)(x; y) used to write u⃗=xi⃗+yj⃗\vec{u} = x\vec{i} + y\vec{j}.Example: u⃗=(2;−3)\vec{u} = (2; -3).
x-coordinate, y-coordinate
The first number and the second number in the coordinate pair.Example: Vector (4;−1)(4; -1) has x-coordinate 4, y-coordinate −1-1.
Same direction
Two vectors whose lines are parallel or coincident. For v⃗≠0⃗\vec{v} \ne \vec{0}, u⃗\vec{u} to be in the same direction as v⃗\vec{v}, there must be kk such that x1=kx2x_1 = kx_2, y1=ky2y_1 = ky_2.Example: (2;4)(2;4) and (1;2)(1;2) are parallel because (2;4)=2(1;2)(2;4)=2(1;2).
Midpoint
The middle point of a line segment, its coordinates are the average of the two ends.Example: A(0;0)A(0; 0), B(4;2)B(4; 2) give the midpoint (2;1)(2; 1).
Centroid
The point of intersection of the three medians of a triangle, its coordinates are the average of the coordinates of the three vertices.Example: A(0;0)A(0; 0), B(3;0)B(3; 0), C(0;3)C(0; 3) give G(1;1)G(1; 1).
Dot product
A number determined by the sum of the two products of corresponding coordinates.Example: u⃗⋅v⃗=x1x2+y1y2\vec{u} \cdot \vec{v} = x_1x_2 + y_1y_2.
Length of a vector
The square root of the sum of the squares of the two coordinates.Example: ∣a⃗∣=x2+y2|\vec{a}| = \sqrt{x^2 + y^2}.
Distance between two points
The length of the vector joining those two points.Example: AB=(xB−xA)2+(yB−yA)2AB = \sqrt{(x_B - x_A)^2 + (y_B - y_A)^2}.