Skip to main content

Vectors

A vector is a specific quantity drawn as a line segment with a arrow at one end pointing in a specific direction. It has an initial point where the vector starts and a terminal point where the vector ends.

A vector is defined by its magnitude, or length of the line, and its direction which is indicated by an arrowhead at the terminal point.

Vector
Fig. 1 - Vector
note

There are various symbols that can be used to represent a vector such as...

  • A lower case, boldfaced type (with or without an arrow on top) such as v\mathbf{v} or v\vec{v}.
  • An upper case set of letters with an arrow on top such as AB\overrightarrow{AB} where AA is the initial point and BB is the terminal point.
  • With angle brackets such as a,b\langle a, b \rangle where aa and bb are the coordinates of the terminal point (a,b)(a, b) and the initial point is at the origin (0,0)(0, 0).

Standard Position

For a vector to be in standard position, its initial point must be at the origin of the coordinate plane. This means when a vector is written using angle bracket such as a,b\langle a, b \rangle, it is in standard position because the initial point is at the origin (0,0)(0, 0) and the terminal point is at (a,b)(a, b).

We can change any vector into standard position by translating the vector so that its initial point is at the origin. Thus, if the initial point of a vector AB\overrightarrow{AB} is A(x1,y1)A (x_1, y_1) and the terminal point is B(x2,y2)B (x_2, y_2), then the position vector can be found by calculating...

CD=x2x1,y2y1\overrightarrow{CD} = \langle x_2 - x_1, y_2 - y_1 \rangle

where CC is the initial point at the origin and DD is the terminal point at (x2x1,y2y1)(x_2 - x_1, y_2 - y_1).

note

Even though we change the position of a vector to be in standard position, the magnitude and direction of the vector remain unchanged meaning they are equivalent. This is because vectors are defined by their magnitude and direction, not by their specific location in the coordinate plane.

Magnitude and Direction

A vector is defined by its magnitude and direction which means we need to have a way to calculate these two properties if we want to work with vector. This is relatively easy because we can find a vectors magnitude using the Pythagorean Theorem or the distance formula and we can find its direction using the inverse tangent function.

Given a position vector v=a,b\mathbf{v} = \langle a, b \rangle, the magnitude is given by v=a2+b2|\mathbf{v}| = \sqrt{a^2 + b^2} and the direction is given by θ\theta = tan1(ba)\tan^{-1} \left( \dfrac{b}{a} \right) where θ\theta is the angle between the vector and the positive xx-axis.

Example\underline{Example}

Find the magnitude and direction of the vector with initial point P(8,1)P (-8, 1) and terminal point Q(2,5)Q (-2, -5).

First we need to translate the vector PQ\overrightarrow{PQ} to be in standard position by calculating the position vector RS\overrightarrow{RS} where RR is the initial point at the origin and SS is the terminal point at (x2x1,y2y1)(x_2 - x_1, y_2 - y_1)...

RS=x2x1,y2y1=2(8),51=6,6\begin{array}{cccccccccccccc} \overrightarrow{RS} &=& \langle x_2 - x_1, y_2 - y_1 \rangle \\[1em] &=& \langle -2 - (-8), -5 - 1 \rangle \\[1em] &=& \langle 6, -6 \rangle \end{array}

Now lets find the magnitude of the vector RS\overrightarrow{RS} using the formula v=a2+b2|\mathbf{v}| = \sqrt{a^2 + b^2} where aa and bb are the coordinates of the terminal point (a,b)(a, b)...

RS=62+(6)2=36+36=72=62\begin{array}{cccccccccccccc} |\overrightarrow{RS}| &=& \sqrt{6^2 + (-6)^2} \\[1em] &=& \sqrt{36 + 36} \\[1em] &=& \sqrt{72} \\[1em] &=& 6\sqrt{2} \end{array}

Finally, we can find the direction of the vector RS\overrightarrow{RS} using the formula θ\theta = tan1(ba)\tan^{-1} \left( \dfrac{b}{a} \right) where aa and bb are the coordinates of the terminal point (a,b)(a, b)...

θ=tan1(ba)=tan1(66)=tan1(1)=315\begin{array}{cccccccccccccc} \theta &=& \tan^{-1} \left( \dfrac{b}{a} \right) \\[1em] &=& \tan^{-1} \left( \dfrac{-6}{6} \right) \\[1em] &=& \tan^{-1} (-1) \\[1em] &=& 315^\circ \end{array}

Therefore, the magnitude of the vector is 626\sqrt{2} and its direction is 315315^\circ. This vector can be drawn as...

Vector Example
Fig. 2 - Vector Example
note

Now that we can calculate the magnitude and direction of any vector, we can test if two vectors are equivalent by comparing their magnitudes and directions. If two vectors have the same magnitude and direction, then they are equivalent even if they are in different positions in the coordinate plane.

Vector Addition

The sum of two vectors u\mathbf{u} and v\mathbf{v} also known as vector addition produces a third vector u+v\mathbf{u + v} which is the resultant vector. To find u+v\mathbf{u + v}, we first draw the vector u\mathbf{u} and from the terminal end of u\mathbf{u}, we draw the vector v\mathbf{v}. This means that the initial point of v\mathbf{v} is at the terminal point of u\mathbf{u}. Finally, we can draw the resultant vector u+v\mathbf{u + v} from the initial point of u\mathbf{u} to the terminal point of v\mathbf{v}.

Vector Addition
Fig. 3 - Vector Addition

Vector subtraction is similar to vector addition. To find uv\mathbf{u - v}, we view it as u+(v)\mathbf{u + (-v)} where v-v is the vector v\mathbf{v} with the opposite direction. This means that to find uv\mathbf{u - v}, we first draw the vector u\mathbf{u} and from the terminal end of u\mathbf{u}, we draw the vector v-v. Finally, we can draw the resultant vector uv\mathbf{u - v} from the initial point of u\mathbf{u} to the terminal point of v-v.

Example\underline{Example}

Given u=3,2\mathbf{u} = \langle 3, -2 \rangle and v=1,4\mathbf{v} = \langle -1, 4 \rangle, find two new vectors u+v\mathbf{u + v}, and uv\mathbf{u - v}.

We can find u+v\mathbf{u + v} by adding the corresponding components of u\mathbf{u} and v\mathbf{v} which gives us...

u+v=3+(1),2+4=2,2\begin{array}{cccccccccccccc} \mathbf{u + v} &=& \langle 3 + (-1), -2 + 4 \rangle \\[1em] &=& \langle 2, 2 \rangle \end{array}

We can find uv\mathbf{u - v} by subtracting the corresponding components of v\mathbf{v} from u\mathbf{u} which gives us...

uv=3(1),24=4,6\begin{array}{cccccccccccccc} \mathbf{u - v} &=& \langle 3 - (-1), -2 - 4 \rangle \\[1em] &=& \langle 4, -6 \rangle \end{array}

Therefore, u+v=2,2\mathbf{u + v} = \langle 2, 2 \rangle and uv=4,6\mathbf{u - v} = \langle 4, -6 \rangle.

Vector Addition and Subtraction Example
Fig. 4 - Vector Addition and Subtraction Example

Scalar Multiplication

Scalar multiplication is the process of multiplying a vector by a scalar (a real number). To find the product, we multiply each component of the vector by the scalar. Thus, to multiply v=a,b\mathbf{v} = \langle a, b \rangle by a scalar kk, we calculate...

kv=ka,kbk\mathbf{v} = \langle ka, kb \rangle

where kaka and kbkb are the components of the resulting vector. The magnitude of the resulting vector is k|k| times the magnitude of the original vector and its direction is the same as the original vector if kk is positive and opposite if kk is negative.

Example\underline{Example}

Find the scalar multiple 3u3 \mathbf{u} given u=5,4\mathbf{u} = \langle 5, 4 \rangle.

We can find 3u3 \mathbf{u} by multiplying each component of u\mathbf{u} by 33 which gives us...

3u=35,34=15,12\begin{array}{cccccccccccccc} 3 \mathbf{u} &=& \langle 3 \cdot 5, 3 \cdot 4 \rangle \\[1em] &=& \langle 15, 12 \rangle \end{array}

Therefore, 3u=15,123 \mathbf{u} = \langle 15, 12 \rangle.

Component Form

In some cases, it is helpful to break down a vector into its components. A vector can be expressed in component form as the sum of its horizontal and vertical components. The horizontal component is the projection of the vector onto the xx-axis and the vertical component is the projection of the vector onto the yy-axis.

For example, given a vector v=3,4\mathbf{v} = \langle 3, 4 \rangle, its horizontal component is 3,0\langle 3, 0 \rangle and its vertical component is 0,4\langle 0, 4 \rangle. Therefore, we can write v\mathbf{v} in component form as v=3,0+0,4\mathbf{v} = \langle 3, 0 \rangle + \langle 0, 4 \rangle which is equivalent to v=3,4\mathbf{v} = \langle 3, 4 \rangle.

Unit Vector

In addition to finding a vector's components, it is often useful to find a vector's unit vector which is a vector with a magnitude of 11 that points in the same direction as the original vector. If v=a,b\mathbf{v} = \langle a, b \rangle is a nonzero vector, then its unit vector u\mathbf{u} can be found by dividing each component of v\mathbf{v} by the magnitude of v\mathbf{v} which gives us...

u=vv=av,bv\mathbf{u} = \dfrac{\mathbf{v}}{|\mathbf{v}|} = \left\langle \dfrac{a}{|\mathbf{v}|}, \dfrac{b}{|\mathbf{v}|} \right\rangle

Unit vectors are also often defined in terms of components with a horizontal and vertical unit vector. The horizontal unit vector is written as i=1,0\mathbf{i} = \langle 1, 0 \rangle and is directed along the positive horizontal axis. While the vertical unit vector is written as j=0,1\mathbf{j} = \langle 0, 1 \rangle and is directed along the positive vertical axis.

Example\underline{Example}

Find a unit vector in the same direction as v=5,12\mathbf{v} = \langle -5, 12 \rangle.

We can start by finding the magnitude of v\mathbf{v} using the formula v=a2+b2|\mathbf{v}| = \sqrt{a^2 + b^2} where aa and bb are the components of the terminal point (a,b)(a, b)...

v=(5)2+122=25+144=169=13\begin{array}{cccccccccccccc} |\mathbf{v}| &=& \sqrt{(-5)^2 + 12^2} \\[1em] &=& \sqrt{25 + 144} \\[1em] &=& \sqrt{169} \\[1em] &=& 13 \end{array}

Now we can find the unit vector u\mathbf{u} by dividing each component of v\mathbf{v} by the magnitude of v\mathbf{v} which gives us...

u=vv=513,1213\begin{array}{cccccccccccccc} \mathbf{u} &=& \dfrac{\mathbf{v}}{|\mathbf{v}|} \\[1em] &=& \left\langle \dfrac{-5}{13}, \dfrac{12}{13} \right\rangle \end{array}

Therefore, a unit vector in the same direction as v\mathbf{v} is u=513i+1213j\mathbf{u} = \dfrac{-5}{13} \:\mathbf{i} + \dfrac{12}{13} \:\mathbf{j} or u=513,1213\mathbf{u} = \left\langle \dfrac{-5}{13}, \dfrac{12}{13} \right\rangle.

Unit Vector Example
Fig. 5 - Unit Vector Example
note

The magnitude is always a scalar and so dividing by a scalar is equivalent to multiplying by the reciprocal of the scalar.

Rectangular Form

Now that we have general strategies for working with vectors, we can represent vectors in rectangular form where we represent vectors in rectangular coordinates in term of i\mathbf{i} and j\mathbf{j} which are the horizontal and vertical unit vectors respectively. Given a vector v\mathbf{v} with initial point P=(x1,y1)P = (x_1, y_1) and terminal point Q=(x2,y2)Q = (x_2, y_2), we can write v\mathbf{v} in rectangular form as...

v=(x2x1)i+(y2y1)j\mathbf{v} = (x_2 - x_1) \:\mathbf{i} + (y_2 - y_1) \:\mathbf{j}

where x2x1x_2 - x_1 is the horizontal component of the vector and y2y1y_2 - y_1 is the vertical component of the vector.

Example\underline{Example}

Write the vector u\mathbf{u} with initial point P=(1,6)P = (-1, 6) and terminal point Q=(7,5)Q = (7, -5) in terms of i\mathbf{i} and j\mathbf{j}.

We can substitute the coordinates of the initial point and terminal point into the formula u=(x2x1)i+(y2y1)j\mathbf{u} = (x_2 - x_1) \:\mathbf{i} + (y_2 - y_1) \:\mathbf{j} which gives us...

u=(x2x1)i+(y2y1)j=(7(1))i+(56)j=8i11j\begin{array}{cccccccccccccc} \mathbf{u} &=& (x_2 - x_1) \mathbf{i} + (y_2 - y_1) \mathbf{j} \\[1em] &=& (7 - (-1)) \mathbf{i} + (-5 - 6) \mathbf{j} \\[1em] &=& 8 \mathbf{i} - 11 \mathbf{j} \end{array}

Therefore, the vector u\mathbf{u} can be written in rectangular form as u=8i11j\mathbf{u} = 8 \mathbf{i} - 11 \mathbf{j}.

Performing Operations

When vectors are written in terms of i\mathbf{i} and j\mathbf{j}, we can perform vector operations such as addition, subtraction and scalar multiplication by performing operations on each component of the vector.

Given v=ai+bj\mathbf{v} = a \mathbf{i} + b \mathbf{j} and u=ci+dj\mathbf{u} = c \mathbf{i} + d \mathbf{j}, we can find v+u\mathbf{v + u}, vu\mathbf{v - u}, and kvk \mathbf{v} by performing the following operations...

  1. v+u=(a+c)i+(b+d)j\mathbf{v + u} = (a + c) \mathbf{i} + (b + d) \mathbf{j}
  2. vu=(ac)i+(bd)j\mathbf{v - u} = (a - c) \mathbf{i} + (b - d) \mathbf{j}
  3. kv=(ka)i+(kb)jk \mathbf{v} = (ka) \mathbf{i} + (kb) \mathbf{j}

Example\underline{Example}

Find the sum of v1=2i3j\mathbf{v_1} = 2 \mathbf{i} - 3 \mathbf{j} and v2=4i+5j\mathbf{v_2} = 4 \mathbf{i} + 5 \mathbf{j}.

We can find v1+v2\mathbf{v_1 + v_2} by adding the corresponding components of v1\mathbf{v_1} and v2\mathbf{v_2} which gives us...

v1+v2=(2+4)i+(3+5)j=6i+2j\begin{array}{cccccccccccccc} \mathbf{v_1 + v_2} &=& (2 + 4) \mathbf{i} + (-3 + 5) \mathbf{j} \\[1em] &=& 6 \mathbf{i} + 2 \mathbf{j} \end{array}

Therefore, the sum of v1\mathbf{v_1} and v2\mathbf{v_2} is v1+v2=6i+2j\mathbf{v_1 + v_2} = 6 \mathbf{i} + 2 \mathbf{j}.

Component Form Using Direction

Calculating direction follows the same process used for polar coordinates but instead of using rr, we use the magnitude of the vector v|\mathbf{v}|. Given a position vector v=x,y\mathbf{v} = \langle x, y \rangle and a direction angle θ\theta...

  1. cosθ=xv\cos \theta = \dfrac{x}{|\mathbf{v}|}
  2. sinθ=yv\sin \theta = \dfrac{y}{|\mathbf{v}|}
  3. x=vcosθx = |\mathbf{v}| \cos \theta
  4. y=vsinθy = |\mathbf{v}| \sin \theta

meaning v=xi+yj=vcosθi+vsinθj\mathbf{v} = x \mathbf{i} + y \mathbf{j} = |\mathbf{v}| \cos \theta \mathbf{i} + |\mathbf{v}| \sin \theta \mathbf{j} where the magnitude of the vector is v=x2+y2|\mathbf{v}| = \sqrt{x^2 + y^2}.

Example\underline{Example}

Given a vector with length 77 and an angle of 135135^\circ, write it in component form.

We know the magnitude of the vector is v=7|\mathbf{v}| = 7 and the direction angle is θ=135\theta = 135^\circ. We can find the horizontal and vertical components of the vector using the formulas x=vcosθx = |\mathbf{v}| \cos \theta and y=vsinθy = |\mathbf{v}| \sin \theta which gives us...

x=vcosθy=vsinθx=7cos135y=7sin135x=7(22)y=722x=722y=722\begin{array}{cccccccccccccc} x &=& |\mathbf{v}| \cos \theta &&&&& y &=& |\mathbf{v}| \sin \theta \\[1em] x &=& 7 \cos 135^\circ &&&&& y &=& 7 \sin 135^\circ \\[1em] x &=& 7 \cdot \left(-\dfrac{\sqrt{2}}{2}\right) &&&&& y &=& 7 \cdot \dfrac{\sqrt{2}}{2} \\[1em] x &=& -\dfrac{7\sqrt{2}}{2} &&&&& y &=& \dfrac{7\sqrt{2}}{2} \end{array}

Therefore, the vector can be written in component form as v=722i+722j\mathbf{v} = -\dfrac{7\sqrt{2}}{2} \mathbf{i} + \dfrac{7\sqrt{2}}{2} \mathbf{j}.

Dot Product

Other than multiplying a vector by a scalar, we can also multiply two vectors together using the dot product. The dot product of two vectors v=a,b\mathbf{v} = \langle a, b \rangle and u=c,d\mathbf{u} = \langle c, d \rangle is the sum of the product of the horizontal components and the product of the vertical components...

vu=ac+bd\mathbf{v} \cdot \mathbf{u} = ac + bd

where the angle between the two vectors can be found using the formula...

cosθ=vvuu\cos \theta = \dfrac{\mathbf{v}}{|\mathbf{v}|} \cdot \dfrac{\mathbf{u}}{|\mathbf{u}|}

where θ\theta is the angle between the two vectors.

Example\underline{Example}

Find the dot product of v1=5i+2j\mathbf{v_1} = 5\mathbf{i} + 2\mathbf{j} and v2=3i+7j\mathbf{v_2} = 3\mathbf{i} + 7\mathbf{j}. Then, find the angle between the two vectors.

First, we can find the dot product v1v2\mathbf{v_1} \cdot \mathbf{v_2} by calculating the sum of the product of the horizontal components and the product of the vertical components which gives us...

v1v2=(5)(3)+(2)(7)=15+14=29\begin{array}{cccccccccccccc} \mathbf{v_1} \cdot \mathbf{v_2} &=& (5)(3) + (2)(7) \\[1em] &=& 15 + 14 \\[1em] &=& 29 \end{array}

Now to find the angle, we need to find the magnitudes of v1\mathbf{v_1} and v2\mathbf{v_2} using the formula v=a2+b2|\mathbf{v}| = \sqrt{a^2 + b^2} where aa and bb are the components of the terminal point (a,b)(a, b)...

v1=52+22v2=32+72v1=25+4v2=9+49v1=29v2=58\begin{array}{cccccccccccccc} |\mathbf{v_1}| &=& \sqrt{5^2 + 2^2} &&&&& |\mathbf{v_2}| &=& \sqrt{3^2 + 7^2} \\[1em] |\mathbf{v_1}| &=& \sqrt{25 + 4} &&&&& |\mathbf{v_2}| &=& \sqrt{9 + 49} \\[1em] |\mathbf{v_1}| &=& \sqrt{29} &&&&& |\mathbf{v_2}| &=& \sqrt{58} \end{array}

Finally, we can find the angle θ\theta between the two vectors using the formula cosθ=vvuu\cos \theta = \dfrac{\mathbf{v}}{|\mathbf{v}|} \cdot \dfrac{\mathbf{u}}{|\mathbf{u}|} which gives us...

cosθ=v1v1v2v2=5i+2j293i+7j58=529358+229758=152958+142958=292958=292958=291682θ=cos1(291682)=45\begin{array}{cccccccccccccc} \cos \theta &=& \dfrac{\mathbf{v_1}}{|\mathbf{v_1}|} \cdot \dfrac{\mathbf{v_2}}{|\mathbf{v_2}|} \\[1em] &=& \dfrac{5\mathbf{i} + 2\mathbf{j}}{\sqrt{29}} \cdot \dfrac{3\mathbf{i} + 7\mathbf{j}}{\sqrt{58}} \\[1em] &=& \dfrac{5}{\sqrt{29}} \cdot \dfrac{3}{\sqrt{58}} + \dfrac{2}{\sqrt{29}} \cdot \dfrac{7}{\sqrt{58}} \\[1em] &=& \dfrac{15}{\sqrt{29} \sqrt{58}} + \dfrac{14}{\sqrt{29} \sqrt{58}} \\[1em] &=& \dfrac{29}{\sqrt{29} \sqrt{58}} \\[1em] &=& \dfrac{29}{\sqrt{29 \cdot 58}} \\[1em] &=& \dfrac{29}{\sqrt{1682}} \\[1em] \theta &=& \cos^{-1} \left( \dfrac{29}{\sqrt{1682}} \right) \\[1em] &=& 45^\circ \end{array}

Therefore, the dot product of v1\mathbf{v_1} and v2\mathbf{v_2} is 2929 and the angle between the two vectors is 4545^\circ.

Dot Product Example
Fig. 6 - Dot Product Example