Vector Addition and Subtraction
When working with physical quantities like forces, velocities, or displacements, simply adding or subtracting their magnitudes isn't enough. These quantities have both magnitude and direction, making them vectors. To correctly combine or find the difference between two vectors, we need specific rules that account for their directional components. Understanding these operations is fundamental for fields ranging from physics and engineering to computer graphics and machine learning, where vectors represent data points or model parameters.
Geometric Vector Addition: The Head-to-Tail Rule
The head-to-tail rule provides an intuitive way to visualize vector addition. To add vector and vector , you place the tail of at the head (arrow tip) of . The resultant vector, , is then drawn from the tail of to the head of . This method directly reflects how successive displacements or forces combine to produce a net effect.
Another geometric method, the parallelogram rule, is useful when vectors start from the same point. Draw and from a common origin. Complete the parallelogram using these two vectors as adjacent sides. The diagonal from the common origin to the opposite vertex is the resultant .
Algebraic Vector Addition: Component-Wise
While geometric methods are great for intuition, algebraic vector addition is how we perform calculations in practice. If vectors are represented by their components (e.g.,
For two vectors
Properties of Vector Addition
Vector addition shares several properties with scalar addition. It is commutative, meaning the order of addition does not affect the result (). This is evident in both the head-to-tail and parallelogram rules. Vector addition is also associative, allowing us to group multiple vectors in any order when adding them (). These properties simplify complex vector calculations.
Geometric Vector Subtraction: Adding the Negative Vector
Vector subtraction, , can be thought of as adding the negative of vector to vector . The negative of a vector, , has the same magnitude as but points in the exact opposite direction. Geometrically, you draw and then place the tail of at the head of . The resultant is drawn from the tail of to the head of .
Algebraic Vector Subtraction: Component-Wise
Similar to addition, algebraic vector subtraction involves subtracting the corresponding components of the vectors. If
Unlike addition, vector subtraction is not commutative. is generally not equal to . In fact, . This means the order in which you subtract vectors is critical to obtaining the correct resultant.
Vectors in Higher Dimensions
The principles of component-wise addition and subtraction extend seamlessly to vectors in three or more dimensions. For a 3D vector, you simply add or subtract the -components along with the and components. This scalability is why algebraic methods are so powerful in fields like machine learning, where data points often exist in hundreds or thousands of dimensions. The underlying operation remains the same: combine corresponding elements.
F1 = [15, -8, 12] and F2 = [5, 10, -3], calculate their resultant force and the difference F1 - F2. Print both results.Vector addition combines two vectors to find a resultant vector, representing a net effect or sum of quantities with direction.
Geometrically, vector addition follows the head-to-tail rule (or parallelogram rule), where the resultant connects the start of the first vector to the end of the last.
Algebraically, vector addition is performed component-wise, adding corresponding components (e.g., , ).
Vector addition is commutative and associative, meaning the order of addition and grouping does not change the result.
Vector subtraction, , is equivalent to adding the negative of the second vector, .
Algebraic vector subtraction is also component-wise, subtracting corresponding components (e.g., , ).
Vector subtraction is not commutative; the order of subtraction significantly impacts the resultant vector.