Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Magnitude of a 2D Vector

We can calculate the magnitude (a.k.a. length or size) of a vector in 2D using Pythagorean's Theorem:

Image illustrating Magnitude of a Vector



Example

Find the lengths of the vectors v⃗=[−3, 4]\vec{v}=[-3,\ 4] and u⃗=[0, −1]\vec{u}=\left[0,\ -1\right]

∣∣v⃗∣∣=(−3)2+(4)2=25=5\left|\left|\vec{v}\right|\right|=\sqrt{\left(-3\right)^2+\left(4\right)^2}=\sqrt{25}=5

∣∣u⃗∣∣=02+(−1)2=1=1\left|\left|\vec{u}\right|\right|=\sqrt{0^2+\left(-1\right)^2}=\sqrt{1}=1


Magnitude of a 3D Vector

We can calculate the magnitude of a vector in 3D using an extension of this formula.



Practice: Magnitude of a Vector

An aircraft's location is 200 miles from base, at a direction of 30° W of S, at an altitude of 35,000 ft. Find the distance between the aircraft and the base.


Note: 1 mile = 5280 feet

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Unit Vector

A unit vector is a vector that has a magnitude of 1.


Example

Show that the following vectors are all unit vectors

u⃗=[1, 0]\vec{u}=\left[1,\ 0\right] is a unit vector

∣∣u⃗∣∣=12+02=1\left|\left|\vec{u}\right|\right|=\sqrt{1^2+0^2}=1





v⃗=[12, −12]\vec{v}=\left[\frac{1}{\sqrt{2}},\ -\frac{1}{\sqrt{2}}\right] is a unit vector

∣∣v⃗∣∣=(12)2+(−12)2=12+12=1=1\left|\left|\vec{v}\right|\right|=\sqrt{\left(\frac{1}{\sqrt{2}}\right)^2+\left(-\frac{1}{\sqrt{2}}\right)^2}=\sqrt{\frac{1}{2}+\frac{1}{2}}=\sqrt{1}=1





w⃗=[0, 35, −45]\vec{w}=\left[0,\ \frac{3}{5},\ -\frac{4}{5}\right] is a unit vector

∣∣w⃗∣∣=02+(35)2+(−45)2=925+1625=1=1\left|\left|\vec{w}\right|\right|=\sqrt{0^2+\left(\frac{3}{5}\right)^2+\left(-\frac{4}{5}\right)^2}=\sqrt{\frac{9}{25}+\frac{16}{25}}=\sqrt{1}=1


Finding a Unit Vector in a Certain Direction

Given a vector v⃗\vec v, the unit vector in the same direction as v⃗\vec v is v^=v⃗∣∣v⃗∣∣\displaystyle \hat v=\frac{\vec v}{||\vec v||}

Example

Find the unit vector in the same direction as u⃗=[1, 2, −3]\vec u=\left[1,\ 2,\ -3\right]

u^=[1, 2, −3]∣∣ [1, 2, −3] ∣∣\displaystyle \hat u=\frac{[1,\ 2,\ -3]}{||\ [1,\ 2,\ -3]\ ||}

u^=[1, 2, −3]12+22+(−3)2\displaystyle \hat u=\frac{[1,\ 2,\ -3]}{\sqrt {1^2+2^2+(-3)^2}}

u^=[1, 2, −3]14\displaystyle \hat u=\frac{[1,\ 2,\ -3]}{\sqrt {14}} or [114, 214, −314]\left[\frac{1}{\sqrt{14}},\ \frac{2}{\sqrt{14}},\ -\frac{3}{\sqrt{14}}\right]



Special Unit Vectors

In 2D, we have the following special unit vectors:

  • i⃗=[1, 0]\vec i=[1,\ 0] → unit vector along the positive xx-axis
  • j⃗=[0, 1]\vec j=[0,\ 1] → unit vector along the positive yy-axis

In 3D, we have the following special unit vectors:

  • i⃗=[1, 0, 0]\vec i=[1,\ 0,\ 0] → unit vector along the positive xx-axis
  • j⃗=[0, 1, 0]\vec j=[0,\ 1,\ 0] → unit vector along the positive yy-axis
  • k⃗=[0, 0, 1]\vec k=[0,\ 0,\ 1] → unit vector along the positive zz-axis


Example

2i⃗−3j⃗+k⃗=2\vec i-3\vec j+\vec k= ________

Practice: Unit Vector

Find the unit vector in the same direction as i⃗−5k⃗\vec i-5\vec k.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Directional Cosine for 3D Vectors

Given any vector v⃗=[v1, v2, v3]\vec v=[v_1,\ v_2,\ v_3] in 3D, we can define the following angles:

  • α\alpha is the angle v⃗\vec{v} forms with the xx- axis
  • β\beta is the angle v⃗\vec{v} forms with the yy- axis
  • γ\gamma is the angle v⃗\vec{v} forms with the zz- axis


If v⃗\vec{v} is a unit vector, then v⃗=[cos⁡α, cos⁡β, cos⁡γ]\vec{v}=\left[\cos\alpha,\ \cos\beta,\ \cos\gamma\right] ⟶ these 3 components are called the directional cosines of the vector v⃗\vec{v}.


General Directional Cosines

Given any vector v⃗=[v1, v2, v3]\vec{v}=\left[v_1,\ v_2,\ v_3\right],

  • cos⁡α=v1∣∣v⃗∣∣\displaystyle\cos\alpha=\frac{v_1}{\left|\left|\vec{v}\right|\right|}
  • cos⁡β=v2∣∣v⃗∣∣\displaystyle\cos\beta=\frac{v_2}{\left|\left|\vec{v}\right|\right|}
  • cos⁡γ=v3∣∣v⃗∣∣\displaystyle\cos\gamma=\frac{v_3}{\left|\left|\vec{v}\right|\right|}