1. Vectors

Jaime E. Villate. Topics of Mechanics,
University of Porto, Portugal, 2025.

You might probably be familiar with the idea that a list of 3 real numbers (x, y, z) is a vector in space. If that is the case, I ask you to forget about that while you read this chapter, where vectors are introduced as geometrical objects independent of any system of coordinates. Using the geometrical properties of vectors, without reference to any system of coordinates, will let you gain more insight into their physical meaning. After studying vectors from a geometrical point of view, we will introduce coordinate systems in the next chapter and we will make extensive use of vector components in later chapters.

1.1. Vectors and scalars

Physical quantities whose magnitude is given by a real value are called scalars. Examples of scalar quantities are time, temperature and pressure. Each scalar has units and if the units of two different scalars are compatible, they can be combined with the same rules as for real numbers: for example, we can add a mass, in kg, with other masses also in kg; we can divide a distance in km by a time in hours, to give a speed in km/h, and so on.

In contrast to scalars, a vector is a physical quantity that in addition to its magnitude it also has a direction. The magnitude of the vector is sometimes also called norm or module. A typical example of a vector is a force; the magnitude of a force is measured in units of force, i. e. newton (N) in the international system of units. The direction of the force is the direction in which it is exerted. We will denote vectors by letters with an arrow over them, for instance a force F, and their magnitude by enclosing the symbol inside vertical bars: |F|. In cases when F cannot be confused with other scalar quantities, we will simply write the magnitude of F as F. The magnitude of a vector is a scalar.

Figure 1.1 shows three forces; the weight W of a 10 kg sphere, which has a magnitude of 98 N and points downward in the vertical, and the forces F1 and F2 exerted by one the feet of a woman and a man on the ground.

Figure 1.1: Three examples of forces: the weight of an object and the forces exerted by two persons on the ground.

Two vectors are considered equal if their magnitude and direction are the same. In the example in Figure 1.1, the two forces F1 and F2 might be equal if they have the same magnitude and direction.

1.2 Addition of vectors

The sum of two vectors is defined as another vector which can be obtained by placing one of the vectors after the other and then joining the initial point of the first vector with the final point of the second one. The right-hand side of Figure 1.2 shows the sum A+B of two vectors A and B, which was obtained by displacing B until its initial point is at the final point of A.

Figure 1.2: Addition of two vectors A and B.

In the case of forces, the vector sum of two forces gives a force that produces the same effect as the two forces combined.

Example 1.1

Two forces are applied on the two sides of a string that passes through a pulley, as shown in the figure.

If the friction on the pulley's axle is negligible, the magnitude of the forces on both sides of the string are equal (and is called the tension on the string) and in this case it was measured to be 400 N. Find the total force exerted by the string on the pulley.

Solution: The following figure shows the sum F of the two forces, obtained by placing T1 after T2. We know that the distances PR and RS are both 400 (in units of N), PR makes an angle of 34° with the vertical and RS is horizontal.

The right-hand side of the figure above shows a copy of the triangle PQR reduced by a factor of 400. Since the hypotenuse of that smaller right-angled triangle is 1, the other two sides are sin 34° and cos 34°. Enlarging the small triangle by 400, we thus obtain the lengths PQ and QR:

PQ=400cos34=331.62 QR=400sin34=223.68

and the distance QS is then QR+RS=623.68. The magnitude of the total force is the hypotenuse of the triangle PQS which is obtained from the Pythagorean theorem:

F=331.622+623.682=706.4N

It is easy to see that the direction of the total force F will have to be 28° above the horizontal, since it has to make the same angle with the directions of T1 and T2, because they both have the same magnitude. If you are not convinced you can compute the angle RSP.


The addition of vectors has the following four important properties:

Commutative law: A+B=B+A
Associative law: A+(B+C)=(A+B)+C
Existence of a vector zero:  A+0=A
Existence of negatives: A+(A)=0

The commutative law can be proven by completing a parallelogram with the two vectors A and B as shown in Figure 1.3. The sum of the vectors is the diagonal of the parallelogram, which is obtained by either placing B after A or by placing A after B.

Figure 1.3: Proof of the commutative law of vector addition by means of the parallelogram rule.

The proof of the associative law is given in Figure 1.4, which shows three vectors A, B and C, together with the sums A+B and B+C. The sum of the three vectors can then be simply written as A+B+C without any need for parentheses. Regarding Figure 1.4, notice that even though the vectors seem to be on the same plane, they don't have to; in fact, A, B and C could even be along three of the edges of a tetrahedron.

Figure 1.4: Proof of the associative law of vector addition.

The vector zero, 0, is the only vector that when added to any vector A will not change that vector. It is unique and it has magnitude equal to zero; it is also the only vector that has no direction. For any vector A there is always a unique vector, called its negative, such that when added to A the result will be the vector zero. The negative of A is denoted A and it is easy to see that it must be a vector with the same magnitude |A|, but in the opposite direction to A (see Figure 1.5).

Figure 1.5: Negative of a vector.

In the case of forces, the uniqueness of the negative means that the only way to cancel the effect of a force is by adding another force with the same magnitude but opposite direction.

The subtraction of two vectors can be defined as the sum of the first vector and the negative of the second one:

AB=A+(B)
(1.1)

Thus, AB can be obtained by placing B at the final point of A, as in the left-hand side of Figure 1.6. The right-hand side of Figure 1.6 shows that AB can also be obtained as one of the diagonals of the parallelogram obtained with A and B. As we saw before, the diagonal that begins from the common point of the two vectors is A+B; the other diagonal, from the endpoint of B to the end point of A, is AB.

Figure 1.6: Subtraction of two vectors.
Example 1.2

A box weighing 50 N is hung from the ceiling by two strings, as shown in the figure. Find the forces in the two strings.


Solution: Since the block remains at rest, its weight must be canceled by the sum of the forces in the two strings. Thus, if T1 and T2 are the forces exerted by the two strings and W is the weight of the box, we have:

T1+T2=W

The left-hand side of the following image shows those three forces and the right-hand side shows a smaller triangle, pqr, similar to the forces triangle PQR.

The sides pq and qr are reduced copies of the two strings on the left and the right. The side qr was given the length of the string on the right divided by 20 cm, to make the triangle simpler; thus qr moves 2 units to the right and 1 unit up. Since qp must also move 2 units to the right, qp must be the string on the left divided by 10 cm and p is 2 units below q. Hence, pr is 3 units and the lengths of the other two sides can be computed with the Pythagorean theorem:

pq=22+22=22qr=22+12=5

Since |W|=50 N, we just have to multiply pq and qr by 50/3 N to obtain T1 and T2:

T1=10032=47.14NT2=5035=37.27N

and the directions of T1 and T2 are pointing upwards along the two strings.

1.3 Scalar multiplication

When we add a vector A with itself n times, the result is a vector in the same direction of A but with magnitude n times bigger and we write the result as nA. If n is a negative integer, we interpret nA as summing |n| times the negative of the vector, A, thus leading to a vector in the opposite direction of A and with magnitude |n| times bigger than the magnitude of A.

The generalization to any scalar k is that the product kA gives a vector with magnitude |k|A, in the same direction of A, when k is positive, or in the opposite direction when k is negative. When k=0, the product kA gives the vector zero, 0.

The following table shows the important properties of the product of scalars with vectors.

Unit multiplication: 1A=A
Associative law: k(pA)=(kp)A
Distributive law (vector addition):  k(A+B)=kA+kB
Distributive law (scalar addition): (k+p)A=kA+pA

We can also divide a vector by a scalar, as in A/k, which means that we are multiplying vector A by 1/k. In the case of the weight W of an object of mass m, the weight divided by the mass,

g=Wm

is always the same vector g, independently of the mass of the object, which is the acceleration of gravity. It has magnitude of approximately 9.8 m/s², in the vertical direction and pointing down. This is simply a consequence of Newton's second law, which states that a force F acting on an object of mass m produces an acceleration a given by the relation:

F=ma
(1.2)

The weight W is the force produced by the gravitational attraction of Earth on an object and g is the acceleration it produces near the surface of the Earth. A word of caution: even though we can write equation (1.2) as a=F/m, don't even think of writing it as m=F/a; a vector cannot be divided by another vector to give a scalar! If we were given two vectors F and a and were asked to find the value of m in equation (1.2), we should first make sure that the problem has solution, by checking that the two vectors have the same direction; having done that, we would then proceed to say that the magnitude of the vectors in both sides of equation (1.2) must be equal and therefore,

m=Fa

where we are dividing two scalars, and not two vectors. Another important point about scalar multiplication is that it is not just the product of a number by a vector, as in A+A=2A. For instance, the product ma in equation (1.2) changes a vector a, in the space of accelerations, into a vector in a different vector space, the space of forces.

1.4 Dot product

The dot product between two vectors A and B, denoted by A·B, gives a scalar, equal to the product of the magnitudes of the vectors times the cosine of the angle between their directions:

A·B=ABcosθ
(1.3)

Figure 1.7 shows two vectors A and B and the angle θ between their directions. The projection of A in the direction of B is equal to Acosθ; notice that it can be negative when θ>π/2, namely when that projection points in the opposite direction of B. The projection of B in the direction of A is Bcosθ. Therefore, the dot product A·B is also equal to the projection of one of the vectors along the direction of the other, times the magnitude of that other vector. The dot product is also referred to as scalar product.

Figure 1.7: Projections of each of two vectors along the direction of the other.

Since the angle θ between two vectors is within 0 and π radians, the cosine of that angle can be within ─1 and 1, so the dot product A·B will be within AB and AB. It will be positive if θ is an acute angle (less than π/2), negative if that angle is obtuse (greater than π/2) and zero when the two vectors are perpendicular (see Figure 1.8).

Figure 1.8: Sign of the dot product according to the angle between the vectors.

If two vectors A and B have the same direction, then A·B=AB, while if they have opposite directions then A·B=AB and if they are perpendicular, A·B=0.

The dot product has the following properties:

Possible values: ABA·BAB
Commutative law: A·B=B·A
Distribute law: A·(B+C)=A·B+A·C
Scalar associativity:  k(A·B)=(kA)·B=A·(kB)
Positiveness: A·A=A2
Example 1.3

Prove the law of cosines for a triangle.

Solution: Let us consider a triangle with sides A, B and C and an angle θ between the sides of lengths A and B. We can define three vectors A, B and C along the triangle sides, as in the following figure:

We then have C=AB and applying the properties of the dot product, the square of the magnitude of C is,

C2=C·C=(AB)·(AB) =A·AA·BB·A+B·B

Which leads to the law of cosines:

C2=A2+B22ABcosθ
(1.4)

With the law of cosines we don't have to try to arrange right-angled triangles to apply the Pythagorean theorem, as we did in the solution of example 1.1. We could have applied the law of cosines directly to triangle PRS, where the angle PRS is 124°, to obtain F immediately:

F=4002+40022×400×400cos124=706.4

1.5 Cross product

The cross produt between two vectors A and B is defined as another vector C, denoted as,

C=A×B
(1.5)

with magnitude equal to the product of the magnitudes of the two vectors, times the sine of the angle between their directions:

|A×B|=ABsinθ
(1.6)

The direction of A×B is, by definition, perpendicular to both vectors A and B and following the right-hand rule: if you point the four fingers of your right hand (excluding the thumb) in the direction of vector A, in such way that they can turn towards the direction of vector B, your thumb will then point in the direction of A×B, as shown in Figure 1.9. Notice that any two vectors for which sinθ is different from zero will always define a plane, and A×B will be perpendicular to that plane. Furthermore, equation (1.6) implies that the magnitude |A×B| is the area of the parallelogram generated by vectors A and B (shaded area in the figure).

Figure 1.9: Cross product between two vectors and right-hand rule.

Some important properties of the cross product are the following:

Anti-commutative law:  A×B=B×A
No associative law: A×(B×C)(A×B)×C
Distributive law: A×(B+C)=A×B+A×C
Scalar associativity: k(A×B)=(kA)×B=A×(kB)
Null result: A×A=0
Example 1.4

Prove the law of sines for a triangle.

Solution: For a triangle with sides A, B and C and angles α, β and θ, let us define vectors A, B and C as in the following figure:

We then have,

A+B+C=0

multiplying, with cross product, each term of that equation by A and using properties of the cross product we get,

0+B×A+C×A=0(A)×B=(C)×A ABsinθ=ACsinβ

If instead of multiplying by A we now multiply by B we get,

A×B+0+C×B=0(A)×B=(B)×C ABsinθ=BCsinα

Dividing the last two equations above by ABC, we arrive at the law of sines:

sinαA=sinβB=sinθC
(1.7)

Problems

  1. Proof that the diagonals of a rhombus are perpendicular.
    If the sides of the rhombus are vectors A and B, the two diagonals will be A+B and AB and they will be perpendicular if their dot product is equal to zero.
  2. Knowing that the three boxes remain at rest and the weight W2 in the figure is 64 N, compute the weights W1 and W3. W1=31 N and W3=49 N. The tension on each string is equal to the weight of the box attached to it. Then notice that the forces on the strings form a triangle with angles of 28°, 48° and 104°; knowing that the tension in the string attached to W2 has module 64 N, use the law of sines to find the tensions on the other two strings.
  3. Proof the following identities:
    1. A·B=14[|A+B|2|AB|2] On the right-hand side, simplify |A+B|2=(A+B)·(A+B) and |AB|2=(AB)·(AB) and you should get just A·B.
    2. |A×B|2+A·B2=A2B2     On the left-hand side, notice that |A×B|2=(ABsinθ)2 and A·B2=(ABcosθ)2 and use the identity sin2θ+cos2θ=1 to obtain the result on the right.