Toolbox
Vectors: calculating sum, magnitude and unit vector
Add or subtract two vectors, multiply a vector by a number, calculate its norm or normalise it. Choose the operation in 2D or 3D; normalisation preserves direction and gives a norm of 1.
Vectors: calculating sum, magnitude and unit vector
Signed component of u on the x-axis, in the orthonormal coordinate system shared by the vectors.
Signed component of u on the y-axis, in the orthonormal coordinate system shared by the vectors.
Signed component of v on the x-axis, in the orthonormal coordinate system shared by the vectors.
Signed component of v on the y-axis, in the orthonormal coordinate system shared by the vectors.
Initial values are examples.
Results
Substitution in SI units
An orthonormal coordinate system shared by both vectors.
Addition using the triangle rule
Estimated reading time : 5 min · 818 words
Calculation details
Sum, difference and multiplication operations give the components of a vector. The norm is a number; normalisation gives the components of the unit vector.
02 · Result y component
Components, length and unit vector
A vector’s components depend on the chosen coordinate system. Here, the system is Cartesian and orthonormal, and the vectors are mathematical objects without units. Addition and subtraction are performed component by component. Multiplication by a negative number reverses direction. Normalisation divides the components by the norm to obtain a norm equal to 1, without changing direction or orientation.
Formulas and symbols
The following relationships use the symbols defined below.
(result x component)
(result y component)
(result x component)
(result y component)
(result x component)
(result y component)
(magnitude of u)
(result x component)
(result y component)
(result x component)
(result y component)
(result z component)
(result x component)
(result y component)
(result z component)
(result x component)
(result y component)
(result z component)
(magnitude of u)
(result x component)
(result y component)
(result z component)
- u and v: vectors with components ux, uy and optionally uz, and vx, vy, vz.
- k: real scalar multiplier.
- w: result vector.
- ‖u‖: Euclidean norm.
- û: unit vector with the same direction and orientation as u. All components have no units in this calculator; in 2D, no third component is involved.
Operations and results
| Operation | Data | Result |
|---|---|---|
| Sum | Two vectors of the same dimension | One vector |
| Scalar multiplication | A number k and a vector | One vector |
| Norm | One vector | A nonnegative number |
| Normalisation | A nonzero vector | A vector with norm 1 |
| Difference | Two vectors of the same dimension | A vector; order matters |
OpenStax — vector equations ; Wolfram MathWorld — Vector Norm.
Worked examples
Example 1: Sum u + v in 2D
For u = (3 ; −2) and v = (−1 ; 5), the sum is (2 ; 3).
Example 2: Difference u − v in 2D
For u = (3 ; −2) and v = (−1 ; 5), u − v is (4 ; −7).
Example 3: Multiplication in 2D
Multiplying u = (3 ; −2) by −2 gives (−6 ; 4): the direction is reversed and the norm doubled.
Example 4: Norm of u in 2D
For u = (3 ; −2), the sum of squares is 13 and the norm is , approximately 3,606.
Example 5: Unit vector of u in 2D
Dividing (3 ; −2) by gives approximately (0,83205 ; −0,55470), with norm 1.
Example 6: Sum u + v in 3D
The sum of (2 ; −3 ; 6) and (1 ; 4 ; −2) is (3 ; 1 ; 4).
Example 7: Difference u − v in 3D
The difference (2 ; −3 ; 6) − (1 ; 4 ; −2) is (1 ; −7 ; 8).
Example 8: Multiplication in 3D
Multiplying (2 ; −3 ; 6) by −2 gives (−4 ; 6 ; −12).
Example 9: Norm of u in 3D
The sum of squares of (2 ; −3 ; 6) is 49, so its norm is 7.
Example 10: Unit vector of u in 3D
The norm of (2 ; −3 ; 6) is 7; the unit vector is (2/7 ; −3/7 ; 6/7).
Assumptions and limitations
An orthonormal coordinate system shared by both vectors. Vectors with more than three components and physical units are not supported. Normalisation requires a nonzero vector. Unit-vector components are rounded for display; their norm recalculated from those rounded figures may differ slightly from 1.
Common mistakes
Add components, not norms. Distinguish , which gives a vector, from the dot product u · v, which gives a number and has a separate page. The zero vector has zero norm but no defined direction.
Frequently asked questions
Can the zero vector be normalised?
No, because division by its zero norm is undefined. The norm mode, however, correctly returns zero.
Does a negative component mean a negative norm?
No. The sign describes direction along an axis. The norm is the square root of a sum of squares, so it is always nonnegative.
Does input order change the result?
Addition is commutative. Reversing a subtraction reverses every component while preserving its norm. Identify start and end before interpreting a displacement.
Does a unit vector have all components equal to one?
No. Its total norm is one, so the sum of squared components is one. Components may be zero or negative.