DEV Community

Cover image for Adding Vectors Algebraically & Graphically
BazengDev
BazengDev

Posted on

Adding Vectors Algebraically & Graphically

Adding vectors algebraically involves combining the corresponding components of the vectors. This operation is essential in both mathematics and applications like physics, engineering, and AI.

1. Vector Representation and Problem Setup

Letโ€™s say you want to add two vectors, a and b. Hereโ€™s how we represent these vectors:

Vector a: ๐‘Ž =[6,โˆ’2]

This means that the vector a has a magnitude of 6 along the x-axis and -2 along the y-axis.

Vector b: ๐‘ = [โˆ’4,4]

This means that the vector b has a magnitude of -4 along the x-axis and 4 along the y-axis.

vector-addition-image-1

2. How to Add Vectors Algebraically

To add vectors a and b, we simply add their corresponding components. For vectors in 2D (as we have here), the addition looks like this:

a+b=[a1 +b1,a2+b2]
Enter fullscreen mode Exit fullscreen mode

Where:

  • a1 and a2 are the x and y components of vector a.
  • b1 and b2 are the x and y components of vector b.

Now, substitute the values of a and b:

a + b=[6+(โˆ’4),โˆ’2+4]
a+b=[2,2]
Enter fullscreen mode Exit fullscreen mode

So, the sum of vectors a and b is a+b=[2,2].

3. Geometric Interpretation

In terms of geometry, we can visualize vector addition using the tip-to-tail method:

  • Place the tail of vector b at the tip of vector a.
  • Draw the resultant vector from the tail of a to the tip of b.

This geometric sum of vectors corresponds to the algebraic sum
[2,2], meaning the new vector moves 2 units in the positive x-direction and 2 units in the positive y-direction.

vector-addition-image-2

vector-addition-image-3

4. Properties of Vector Addition

- Commutative Property:
The order in which you add vectors doesn't affect the result.

a+b = b+a
Enter fullscreen mode Exit fullscreen mode

- Associative Property:
Vector addition is associative, meaning you can group vectors in any way when adding them.

(a+b)+c=a+(b+c)
Enter fullscreen mode Exit fullscreen mode

- Zero Vector:
Adding the zero vector to any vector doesnโ€™t change the original vector.

a+0=a
Enter fullscreen mode Exit fullscreen mode

- Additive Inverse:
Every vector has an additive inverse that "cancels it out".

a+(โˆ’a)=0
Enter fullscreen mode Exit fullscreen mode

6. Conclusion

Adding vectors algebraically is straightforward: you simply add the components of the vectors. Whether you're dealing with 2D, 3D, or higher dimensions, this operation is essential for everything from physics simulations to machine learning. In this case, the sum of vectors a=[6,โˆ’2] and b=[โˆ’4,4] gives the resultant vector
a+b=[2,2], which you can visualize geometrically and understand algebraically.

Top comments (0)