2079 13

MTH168 · 2079 · 5 marks

Define unit vector. Find a unit vector of u = (0, -2, 2, -3) in the direction of u.

Define unit vector. Find a unit vector of u = (0, -2, 2, -3) in the direction of u. [5]

Mathematics IIChapter 8: Orthogonality and Least SquaresInner product, Length, and orthoganilityNumerical: unit vector computation

Given

  • Vector $\mathbf{u} = (0, -2, 2, -3)$ in $\mathbb{R}^4$
  • Task: Define unit vector; find unit vector in the direction of $\mathbf{u}$.

Solution

Definition of Unit Vector

A unit vector is a vector whose length (norm) is equal to $1$. For any nonzero vector $\mathbf{v} \in \mathbb{R}^n$, the unit vector in its direction is obtained by dividing the vector by its norm:

$$\hat{v} = \frac{\mathbf{v}}{|\mathbf{v}|}, \qquad |\mathbf{v}| = \sqrt{v_1^2 + v_2^2 + \cdots + v_n^2}$$

Finding the Unit Vector of $\mathbf{u} = (0, -2, 2, -3)$

Step 1: Compute the norm

$$|\mathbf{u}| = \sqrt{(0)^2 + (-2)^2 + (2)^2 + (-3)^2} = \sqrt{0 + 4 + 4 + 9} = \sqrt{17}$$

Step 2: Divide by the norm

$$\hat{u} = \frac{\mathbf{u}}{|\mathbf{u}|} = \frac{1}{\sqrt{17}}(0, -2, 2, -3)$$

$$\boxed{\hat{u} = \left(0,\ \frac{-2}{\sqrt{17}},\ \frac{2}{\sqrt{17}},\ \frac{-3}{\sqrt{17}}\right)}$$

Step 3: Verification

$$|\hat{u}| = \sqrt{0 + \frac{4}{17} + \frac{4}{17} + \frac{9}{17}} = \sqrt{\frac{17}{17}} = 1 \checkmark$$

The vector $\hat{u}$ has norm $1$ and points in the direction of $\mathbf{u}$, so it is the required unit vector.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.