Basic vector operations¶
Vector sum¶
The simplest operation between vectors is the sum that results in another vector. In the following we will explain this concept in graphical form, we will comment on the mechanical aspects as to how to obtain the resulting sum vector (the algebra of the sum) and the properties of this operation will be discussed.
Concept¶
As it is shown in Fig. Fig. 7 the result of adding to vectors \(\vec{A}\) and \(\vec{B}\) is a new vector, \(\vec{R}\), obtained after placing the origin of the vector \(\vec{B}\) at the end tip of vector \(\vec{A}\). Vector \(\vec{R}\) is obtained by tracing the line from the origin of \(\vec{A}\) to the tip of \(\vec{B}\).
Algebra¶
When we express a vector in a particular basis the coordinates of the resulting vector is the sum of the coordinates of the vectors participating in the sum. If the basis vectors are \(\vec{u}_i\) where the index i runs over the dimensions of space (e.g. i can be \(x\), \(y\) o \(z\) in cartesian or \(\rho\), \(\theta\) o \(\varphi\) in spherical coordinates) and \(a_i\), \(b_i\) y \(r_i\) are, respectively, the coordinates of vectors \(\vec{A}\), \(\vec{B}\) and \(\vec{R}\), then,
Thus, we have,
Properties¶
Conmutative property: The result of adding \(\vec{A}+\vec{B}\) is the same as the sum \(\vec{B}+\vec{A}\)
This is, again, simple to demonstrate,
Associative property: In this case we will show that in sums with multiple terms one can choose the order in which the individual sums are carried out:
The proof can be carried out, like in previous cases, expressing the vectors using coordinates:
Multiplication by a scalar¶
Another possible operation is the multiplication by a scalar that results in a re-scaled vector.
Concept¶
When a vector is multiplied by a scalar (see la Fig. Fig. 10) what we are doing is changing its magnitude (module) without changing the direction. Depending on the sign of the scalar the sense of the vector can be the same the vector had initially (a positive scalar) or the opposite one (a negative scalar).
Algebra¶
Obtaining the result of multiplying a vector by an scalar is very simple as it follows easily from the usual algebra of scalar, it is just necessary to multiply all the coordinates of the vector by the same scalar:
Vector subtraction¶
Concept¶
When a vector, \(\vec{B}\), is subtracted from an initial one, \(\vec{A}\), a new resulting vector, \(\vec{R}\), is obtained where a vector with the direction and modulus of \(\vec{B} but opposite sense has been *added* to \)\vec{A}, as is shown in Fig. Fig. 11
Algebra¶
Just as with the sum and re-scaling, we can use algebra to check that the coordinates of the resulting vector of a subtraction is the subtraction of the coordinates of the vectors participating in the operation.