# Normalizing a vector: normalize unitV

### 5.42.2 Normalizing a vector: normalize unitV

The normalize command finds the unit vector in the direction of a given vector.
unitV is a synonym for normalize.

- normalize takes one argument:
  V, a vector (list).
- normalize(V) normalizes this vector for the l2 norm (the square root of the sum of the squares of its coordinates).

#### Example.

Input:

normalize([3,4,5])

Output:

⎡
⎢
⎢
⎢
⎢
⎣

3

5

√

2

,

4

5

√

2

,

5

5

√

2

⎤
⎥
⎥
⎥
⎥
⎦