Vector operations are fundamental mathematical procedures performed on vectors - quantities that have both magnitude and direction. Unlike scalars, which only have magnitude, vectors require special mathematical treatment that preserves their directional properties.
The most basic vector operations include addition, subtraction, and scalar multiplication. Vector addition follows the parallelogram rule or tip-to-tail method, while subtraction is addition of the negative vector. Scalar multiplication scales the vector's magnitude while preserving (or reversing) its direction.
Advanced vector operations like the dot product and cross product have profound geometric and physical meanings. The dot product measures how much two vectors point in the same direction, while the cross product creates a new vector perpendicular to both original vectors.
For a 2D vector v = (x, y), its magnitude is |v| = √(x² + y²). For 3D vectors v = (x, y, z), the magnitude is |v| = √(x² + y² + z²). The unit vector is obtained by dividing each component by the magnitude: û = v/|v|.