Basic Relation
Basic Relation
To find the coordinates of the vector AB, knowing the coordinates of its initial point A and terminal point
B is necessary subtract the appropriate coordinates of initial point from terminal point.
Formulas determining coordinates of a vector by given coordinates of its initial and terminal points
In the case of the plane problem the vector AB set by the coordinates of the points A(Ax ; Ay) and B(Bx ; By) can be found
using the following formula
AB = {Bx - Ax ; By - Ay}
In the case of the spatial problem the vector AB set by the coordinates of the points A(Ax ; Ay ; Az) and B(Bx ; By ; Bz) can
be found using the following formula
AB = {Bx - Ax ; By - Ay ; Bz - Az}
In the case of the n dimensional space problem the vector AB set by the coordinates of the points A(A1 ; A2 ; ... ; An) and
B(B1 ; B2 ; ... ; Bn) can be found using the following formula
Examples of tasks
Example 7. Find the coordinates of vector AB, if A(1; 4; 5; 5; -3), B(3; 0; 1; -2; 5).
Solution: AB = {3 - 1; 0 - 4; 1 - 5; -2 - 5; 5 - (-3)} = {2; -4; -4; -7; 8}.
Example 8. Find the coordinates of point B of vector AB = {5; 1; 2; 1}, if coordinates of point A(3; -4; 3; 2).
Solution:
AB1 = B1 - A1 => B1 = AB1 + A1 => B1 = 5 + 3 = 8
AB2 = B2 - A2 => B2 = AB2 + A2 => B2 = 1 + (-4) = -3
AB3 = B3 - A3 => B3 = AB3 + A3 => B3 = 2 + 3 = 5
AB4 = B4 - A4 => B4 = AB4 + A4 => B4 = 1 + 2 = 3
Answer: B(8; -3; 5; 3).
Example 9. Find the coordinates of point A of vector AB = {5; 1; 4; 5}, if coordinates of point B(3; -4; 1; 8).
Solution:
AB1 = B1 - A1 => A1 = B1 - AB1 => A1 = 3 - 5 = -2
AB2 = B2 - A2 => A2 = B2 - AB2 => A2 = -4 - 1 = -5
AB3 = B3 - A3 => A3 = B3 - AB3 => A3 = 1 - 4 = -3
AB4 = B4 - A4 => A4 = B4 - AB4 => A4 = 8 - 5 = 3
Answer: A(-2; -5; -3; 3).
Definition.
The length of the directed segment determines the numerical value of the vector is called the length of vector AB.
The magnitude of a vector is the length of the vector.
The length of the vector AB is denoted as |AB|.
Basic relation. The length of vector |a| in Cartesian coordinates is the square root of the sum of the squares of its
coordinates.
In the case of the plane problem the length of the vector a = {ax ; ay} can be found using the following formula:
|a| = √ax2 + ay2
In the case of the spatial problem the length of the vector a = {ax ; ay ; az} can be found using the following formula:
|a| = √ax2 + ay2 + az2
In the case of the n dimensional space problem the length of the vector a = {a1 ; a2; ... ; an} can be found using the
following formula:
n
|a| = ( Σa ) 2 1/2
i
i=1
Examples of tasks
Definition. The direction cosines of the vector a are the cosines of angles that the vector forms with the coordinate axes.
The direction cosines uniquely set the direction of vector.
Basic relation. To find the direction cosines of the vector a is need to divided the corresponding coordinate of vector by
the length of the vector.
The coordinates of the unit vector is equal to its direction cosines.
Property of direction cosines. The sum of the squares of the direction cosines is equal to one.
Direction cosines of a vector formulas
In the case of the plane problem (Fig. 1) the direction cosines of a vector a = {ax ; ay} can be found using the following
formula
ax ay
cos α = ; cos β =
|a| |a|
Property:
cos
2
α + cos2 β = 1
Fig. 1
In the case of the spatial problem (Fig. 2) the direction cosines of a vector a = {ax ; ay ; az} can be found using the
following formula
ax ay az
cos α = ; cos β = ; cos γ =
|a| |a| |a |
Property:
cos2 α + cos2 β + cos2 γ = 1
Fig. 2
Examples of tasks
ax 3
cos α = = = 0.6
|a| 5
ay 4
cos β = = = 0.8
|a| 5
Answer: direction cosines of the vector a is cos α = 0.6, cos β = 0.8.
Example 2. Find the vector a if it length equal to 26, and direction cosines is cos α = 5/13, cos β = -12/13.
Solution:
ax = |a| · cos α = 26 · 5/13 = 10
ay = |a| · cos β = 26 · (-12/13) = -24
ax 2 1
cos α = = =
|a| 6 3
ay 4 2
cos β = = =
|a| 6 3
az 4 2
cos γ = = =
|a| 6 3
Definition. Vectors a and b is an equal vectors if they are in the same or parallel lines, their directions are the same and
the lengths are equal (Fig. 1).
Two vectors are equal if they are collinear, codirected and have the same length:
a = b, if a↑↑b and |a| = |b|.
Conditions of vectors equality.Vectors are equal if their coordinates are equal.
Fig. 1
Examples of tasks
Definition.
Addition of vectors (sum of vectors)
a
+
b
is operation of a finding of a vector
c
, coordinates of which are equal to the sum of all corresponding coordinates of vectors
a
and
b
, can be defined as:
ci = ai + bi
Definition.
Subtraction of vectors (difference of vectors)
a
-
b
is operation of a finding of a vector
c
, coordinates of which are equal to a difference of all corresponding coordinates of vectors
a
and
b
, can be defined as:
ci = ai - bi
In the case of the plane problem the sum and difference of vectors a = {ax ; ay} and b = {bx ; by} can be found using the
following formulas:
a + b = {ax + bx; ay + by}
a - b = {ax - bx; ay - by}
In the case of the spatial problem the sum and difference of vectors a = {ax ; ay ; az} and b = {bx ; by ; bz} can be found
using the following formulas:
a + b = {ax + bx; ay + by; az + bz}
a - b = {ax - bx; ay - by; az - bz}
The formulas of addition and subtraction of vectors for n dimensional space problems
In the case of the n dimensional space problem the sum and difference of vectors a = {a1 ; a2 ; ... ; an}
and b = {b1 ; b2 ; ... ; bn} can be found using the following formulas:
Geometric interpretation.
The product of non-zero vector by the number is a vector collinear with given (codirectional given if the number is
positive, having the opposite direction if the number is negative) and its magnitude is equal to the module of the vector
multiplied by the module of number.
Algebraic interpretation. The product of non-zero vector by the number is a vector which coordinates are equal to the
corresponding coordinates of the vector, multiplied by the number.
In the case of the spatial problem the product of vector a = {ax ; ay ; az} by the number k can be found using the following
formula:
k · a = {k · ax ; k · ay ; k · az}
The formula multiplying the vector by a number for n dimensional space problems
In the case of the n dimensional space problem the product of vector a = {a1 ; a2; ... ; an} by the number kcan be found
using the following formula:
k · a = {k · a1; k · a2; ... ; k · an}
If the vector b is equal to the product of a non-zero integer k and non-zero vector a, then:
Examples of tasks
Geometric interpretation. Dot product of two vectors a and b is a scalar quantity equal to the product of magnitudes of
vectors multiplied by the cosine of the angle between vectors:
a · b = |a| · |b| cos α
Algebraic interpretation. Dot product of two vectors a and b is a scalar quantity equal to the sum of pairwise products of
coordinate vectors a and b.
Dot product is also call scalar product or inner product.
In the case of the plane problem the dot product of vectors a = {ax ; ay} and b = {bx ; by} can be found by using the
following formula:
a · b = ax · bx + ay · by
In the case of the spatial problem the dot product of vectors a = {ax ; ay ; az} and b = {bx ; by ; bz} can be found by using
the following formula:
a · b = ax · bx + ay · by + az · bz
In the case of the n dimensional space problem the dot product of vectors a = {a1 ; a2 ; ... ; an} and b = {b1 ; b2 ; ... ; bn}
can be found by using the following formula:
a · b = a1 · b1 + a2 · b2 + ... + an · bn
1. The dot product of a vector with itself is always greater than zero or equal to zero:
a · a ≥ 0
2. The dot product of a vector with itself is zero if and only if the vector is the zero vector:
a · a = 0 <=> a = 0
3. The dot product of a vector with itself is equal to the square of its magnitude:
a · a = |a|2
a · b = b · a
5. If the dot product of two not zero vectors is is zero, then these vectors are orthogonal:
6. (αa) · b = α(a · b)
7. The dot product operation is distributive:
(a + b) · c = a · c + b · c
Example 1. Find the dot product of vectors a = {1; 2} and b = {4; 8}.
Solution: a · b = 1 · 4 + 2 · 8 = 4 + 16 = 20.
Example 2. Find the dot product of vectors a and b, if their magnitudes is |a| = 3, |b| = 6, and the angle between the
vectors is equal to 60˚.
Solution: a · b = |a| · |b| cos α = 3 · 6 · cos 60˚ = 9.
Example 3. Find the dot product of vectors p = a + 3b and q = 5a - 3 b, if their magnitudes is |a| = 3, |b| = 2, and the
angle between the vectors a and b is equal to 60˚.
Solution:
p · q = (a + 3b) · (5a - 3b) = 5 a · a - 3 a · b + 15 b · a - 9 b · b =
Example 4. Find the dot product of vectors a = {1; 2; -5} and b = {4; 8; 1}.
Examples of calculation of the dot product of vectors for n dimensional space problems
Example 5. Find the dot product of vectors a = {1; 2; -5; 2} and b = {4; 8; 1; -2}.
Definition. Cross product (vector product) of vector a by the vector b is the vector c, the length of which is numerically
equal to the area of the parallelogram constructed on the vectors a and b, perpendicular to the plane of this vectors and the
direction so that the smallest rotation from a to b around the vector c was carried out counter-clockwise when viewed
from the terminal point of c (Fig. 1).
Fig. 1
Cross product of two vectors a = {ax; ay; az} and b = {bx; by; bz} in Cartesian coordinates is a vector whose value can
be calculated using the following formulas:
Geometric interpretation.
The magnitude of the cross product of two vectors a and b is equal to the area of the parallelogram constructed
on these vectors:
Ap = |a × b|
Geometric interpretation.
The area of the triangle constructed on the vectors a and a is equal to half the magnitude of the cross product of
this vectors:
1
AΔ = |a × b|
2
Cross product of two non-zero vectors a and b is equal to zero if and only if the vectors are collinear.
The vector c that is equal to the cross product of non-zero vectors a and b, is perpendicular to these vectors.
a × b = -b × a
(k a) × b = a × (k b) = k (a × b)
(a + b) × c = a × c + b × c
Cross product examples
Example 1. Find the cross product of a = {1; 2; 3} and b = {2; 1; -2}.
Solution:
1 1 1 1 5√2
AΔ = |a × b| = √02 + 52 + 52 = √25 + 25 = √50 =
2 2 2 2 2
Answer: AΔ = 2.5√2.
Scalar triple product of vectors is equal to the determinant of the matrix formed from these vectors.
Scalar triple product of vectors a = {ax; ay; az}, b = {bx; by; bz} and c = {cx; cy; cz} in the Cartesian coordinate system
can be calculated using the following formula:
ax ay az
a · [b × c] b b b
x y z
=
cx cy cz
Geometric interpretation.
Module of scalar triple product of vectors a, b and c is equal to the volume of the parallelepiped formed by
these vectors:
Geometric interpretation.
The volume of the pyramid formed by three vectors a, b and c is equal to one-sixth of the modulus of the scalar
triple product of this vectors:
1
Vpyramid = |a · [b × c]|
6
If the mixed product of three non-zero vectors equal to zero, these vectors are coplanar.
a · [b × c] = b · (a · c) - c · (a · b)
a · [b × c] = b · [c × a] = c · [a × b] = -a · [c × b] = -b · [a × c] = -c · [b × a]
a · [b × c] + b · [c × a] + c · [a × b] = 0 - Jacobi identity.
Example 1. Find the scalar triple product of vectors a = {1; 2; 3}, b = {1; 1; 1}, c = {1; 2; 1}.
Solution:
= 1 + 4 + 0 + 6 + 2 - 0 = 13
Calculate the volume of the pyramid using the following properties:
1 13 1
Vpyramid = |a · [b × c]| = = 2
6 6 6
Scalar Product of Vectors
The scalar product and the vector product are the two ways of multiplying vectors which see
the most application in physics and astronomy. The scalar product of two vectors can be
constructed by taking the component of one vector in the direction of the other and
multiplying it times the magnitude of the other vector. This can be expressed in the form:
Index
Vector
If the vectors are expressed in terms of unit vectors i, j, and k along the x, y, and z directions,
the scalar product can also be expressed in the form: concepts
The scalar product is also called the "inner product" or the "dot product" in some mathematics
texts.
Go Back
HyperPhysics***** Mechanics R Nave
Scalar Product Calculation
You may enter values in any of the boxes below. Then click on the symbol for either the
scalar product or the angle. The vectors A and B cannot be unambiguously calculated from the
scalar product and the angle. If the angle is changed, then B will be placed along the x-axis
and A in the xy plane.
Active formula: please click on the scalar product or the angle to update calculation.
Index
( )( )+( )( )+( )( )=
Note: The numbers above will not be forced to ba consistent until you click on either the
scalar product or the angle in the active formula above.
Go Back
HyperPhysics***** Mechanics R Nave
Scalar Product Applications
Geometrically, the scalar product is useful for finding the direction between arbitrary vectors
in space. Since the two expressions for the product:
involve the components of the two vectors and since the magnitudes A and B can be
Index
calculated from the components using:
Vector
concepts
then the cosine
of the angle can be calculated and the angle determined.
One important physical application of the scalar product is the calculation of work:
The scalar product is used for the expression of magnetic potential energy and the potential of
an electric dipole.
Go Back
HyperPhysics***** Mechanics R Nave
Matrix Representation of Scalar Product
It is sometimes convenient to represent vectors as row or column matrices, rather than in terms of unit
vectors as was done in the scalar product treatment above. If we treat ordinary spatial vectors as column
matrices of their x, y and z components, then the transposes of these vectors would be row matrices. We
could then write for vectors A and B:
Then the matrix product of these two matrices would give just a single number, which is the sum of the
products of the corresponding spatial components of the two vectors. This number is then the scalar
product of the two vectors.
When represented this way, the scalar product of two vectors illustrates the process which is used in
matrix multiplication, where the sum of the products of the elements of a row and column give a single
number.
Given the geometric definition of the dot product along with the dot product formula in terms of components, we are ready
Example 1
Calculate the dot product of a=(1,2,3)a=(1,2,3) and b=(4,−5,6)b=(4,−5,6). Do the vectors form an acute angle, right angle,
or obtuse angle?
a⋅b=1(4)+2(−5)+3(6)=4−10+18=12.a⋅b=1(4)+2(−5)+3(6)=4−10+18=12.
Since a⋅ba⋅b is positive, we can infer from the geometric definition, that the vectors form an acute angle.
Example 2
Calculate the dot product of c=(−4,−9)c=(−4,−9) and d=(−1,2)d=(−1,2). Do the vectors form an acute angle, right angle,
or obtuse angle?
c⋅d=−4(−1)−9(2)=4−18=−14.c⋅d=−4(−1)−9(2)=4−18=−14.
Since c⋅dc⋅d is negative, we can infer from the geometric definition, that the vectors form an obtuse angle.
Example 3
If a=(6,−1,3)a=(6,−1,3), for what value of cc is the vector b=(4,c,−2)b=(4,c,−2) perpendicular to aa?
You can double-check that the vector b=(4,18,−2)b=(4,18,−2) is indeed perpendicular to aa by verifying
that a⋅b=(6,−1,3)⋅(4,18,−2)=0a⋅b=(6,−1,3)⋅(4,18,−2)=0.