# 1.1: Vectors

**Directed Line Segments and Vectors**

A *directed line segment *is defined as an initial point, P, and a terminal point Q.

Example 1

\[P = (2,3) \;\;\; \text{and} \;\;\; Q = (-1,4)\]

Definition: Vector

A *vector *is the equivalence class of all directed segments of the same length and direction.

We can represent a vector by writing the unique directed line segment that has its initial point at the origin.

Example 2

The vector between

\[P = (2,3) \;\;\; \text{and} \;\;\; Q = (-1,4)\]

is equivalent to the directed line segment

\[Q - P = <-3, 1>\]

When we write the *\(<>\),* we mean that the vector has initial point at the origin and terminal point at \((-3,1)\). This notation is called the *component *form of the vector.

The length of the vector \(<x,y>\) is called the *norm* or *magnitude*.

We can find it by the formula:

Length of a Vector \[||<x,y>|| = \sqrt{x^2+y^2} \] |

Example 3

\[ ||<3,1>|| = \sqrt{3^2 + 1^1} = \sqrt{10} \]

We also use the notation

\[-3 \hat{\textbf{i}} + \hat{\textbf{j}} \]

to denote the vector \(<-3,1>\).

Example 4

A vector that has length 10 makes an angle of \(\dfrac{\pi}{6}\) with the x-axis. Find its components.

**Solution**

\[x= r \cos q, \;\;\; y = r \sin q \]

So that

\[x= (10)(\dfrac{\sqrt{3}}{2}), \;\;\; y = 10 (\dfrac{1}{2}) = 5. \]

We can write the vector as

\[5 \sqrt{3} \hat{\textbf{i}} + 5 \hat{\textbf{j}}. \]

**Unit Vectors in the Direction of **\(\textbf{v}\)

A vector is called a *unit vector* if it has magnitude = 1. If

\[\textbf{v} = <a,b>\]

Then the unit vector in the direction of **v** can be found by

The Unit Vector in the Direction of \( u = \dfrac{1}{||\textbf{v}||} \textbf{v} \) |

Example 5

The unit vector in the direction of \(<-3,1>\) is

\[- \dfrac{3}{\sqrt{10}}, \dfrac{1}{\sqrt{10}}.\]

We can use the \(<>\) notation and the \(\hat{\textbf{i}}\), \(\hat{\textbf{j}}\) notation interchangeably.

**Algebra of Vectors**

If

\[\textbf{v} = <a,b> \;\;\; \text{and} \;\;\; \textbf{w} = <c,d> \]

and \(k\) is a constant, then we can define the sum an scalar multiplication as follows

Sum and Scalar Multiplication of Vectors \(v + w = <a + c,b + d>\) and \(kv = <ka, kb>\). |

Example 6

\[\begin{align}3 <2,1> - 2<-1,3> = <6 + 2,3 - 6> = <8,-3> = 8\hat{\textbf{i}} - 3 \hat{\textbf{j}} \end{align}\]

Geometrically **v** + **w** is the vector that corresponds to the diagonal of the parallelogram with two sides **v** and **w**.

The appropriate diagram can also be drawn to show how

\[\textbf{v} - \textbf{w} = \textbf{v} + (-\textbf{w}).\]

**Properties of Vector Addition and Subtraction **

We have the following four properties of vectors: If **u**, **v** ,and **w** are vectors and a and b are scalars (numbers) then

- \[(\textbf{u} + \textbf{v}) + \textbf{w} = \textbf{u} + (\textbf{v} + \textbf{w}),\]
- \[a( \textbf{u} + \textbf{v} ) = a \textbf{u} + a \textbf{v}, \]
- \[a(b \textbf{v} ) = (ab) \textbf{v}, \]
- \[\textbf{u} + \textbf{v} = \textbf{v} + \textbf{u}. \]

Example 7: Vector Application

An boat captain wants to travel due south at 40 knots. If the current is moving northwest at 16 knots, in what direction and magnitude should he work the engine?

**Solution**

We have

\[\textbf{u} = \textbf{v} + \textbf{w} \]

where **u** corresponds to the velocity vector of the boat, **v** corresponds to the engine's vector, and **w** corresponds to the velocity of the current. We have

\[\textbf{u} = -40 \hat{\textbf{j}} \;\;\; \text{and} \;\;\; \textbf{w} = -8\sqrt{2} \hat{\textbf{i}}+ 8 \sqrt{2} \hat{\textbf{j}}\]

Hence

\[\textbf{v} = \textbf{u} - \textbf{w} = -40 \hat{\textbf{j}} - (-8 \sqrt{2} \hat{\textbf{i}} + 8 \sqrt{2} \hat{\textbf{j}} ) = 8 \sqrt{2} \hat{\textbf{i}} - (40+ 8\sqrt{2}) \hat{\textbf{j}}. \]

The magnitude is

\[[(8 \sqrt{2})^2 + (40 + 8 \sqrt{2})^2]^{\frac{1}{2}}= 52.5. \]

The direction is

\[ \tan^{-1} \Big(- \dfrac{40+8\sqrt{2}}{8 \sqrt{2}} \Big) = -1.35 \text{radians}. \]

**Dimensional Coordinates**

To generalize the plane to 3 dimensions, we draw a third axis, called the z-axis at a right angle from the plane so that if you grab on to the z-axis with your right hand your hand will curl from the positive x-axis to the positive y-axis. To plot a point in the xyz-space We first plot a point in the xy-plane and then draw a segment parallel to the z-axis of length equal to the z coordinate.

Example 8

Plot \((1,2,3)\)

**Solution**

We first draw the x,y, and z-axes. Then we plot the point \((1,2)\) in the xy-plane. Finally move up three units and plot the point.

Exercise

Plot \((2,4,3)\)

**The Distance Formula**

The distance formula is derived from the three dimensional version of the Pythagorean theorem, which is displayed below.

The distance between two points \(x_1, y_1, z_1 \) and \(x_2, y_2, z_2 \) and is given by

\[D = \sqrt{ (x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2-z_1)^2 } \] |

**Algebra of vectors in 3D **

A vector in space is given by

\[<x,y,z> = x \hat{\textbf{i}} + y \hat{\textbf{j}} + z \hat{\textbf{k}} \]

The algebra rules are similar to those in two dimensions.

### Contributors

- Larry Green (Lake Tahoe Community College)

Integrated by Justin Marshall.