vectors basics

Introduction to vectors

There are two types of quantities that you should know of: Scalars and Vectors

scalars

A scalar only has magnitude and is specified by a real number. Examples of such scalars are mass, speed, distance, volume and time. They have one value "attaced" to them and thats it.

 Temperature:  273K \text{ Temperature: } \ 273K

In the example above,  Temperature  \text{ Temperature } is the quantity, 273273 is the magnitude, and KK is the unit.

vectors

A vector has both magnitude and direction. They are specified by a real number and a direction. Examples of vectors are forces, displacement, velocity and acceleration.

 Force:  10N [ NW ] \text{ Force: } \ 10N \ [ \text{ NW } ]

In the example above,  Force  \text{ Force } is the quantity, 1010 is the magnitude, NN is the unit and [ NW ] [ \text{ NW } ] is the direction.

notation

Vectors can be written in two ways.

Typically in physics and other subjects, vectors are written as a variable with an arrow above them: a \vec {a} , F \vec{F} , d \vec {d}

They are also written as two points AB \overrightarrow {AB} where the vector points from points AA to BB.

Formation of vectors using points

You can form a vector that goes from one point to another by subtracting them.

For two points AA and BB, the vector pointing from AA to BB is determined by:

AB=BA \vec {AB} = B - A

Say, we have two points A(1, 2, 3) A(1, \ 2, \ 3) and B(4, 5, 6) B(4, \ 5, \ 6) . Then AB \vec {AB} would be:

AB=BA=(4, 5, 6)(1, 2, 3)=(3, 3, 3) \vec {AB} = B - A = (4, \ 5, \ 6) - (1, \ 2, \ 3) = (3, \ 3, \ 3)

Representation of vectors

Cartesian representation

You may be most familiar with cartesian representation, since it resembles points on a graph.

The cartesian representation of vectors consists of a ordered pair of coordinates as follows:

a=(x, y) \vec {a} = (x, \ y)

In this representation, you draw an arrow from the origin (0, 0) (0, \ 0) to the coordinates (x, y) (x, \ y) . The arrow's "head" points at the ordered coordinate pair.

Here is a visualization of cartesian vectors:

Polar representation

The polar representation of a vector consists of a magnitude (length) denoted as nn as well as an angle that it makes with the positive x-axis denoted as θ \theta .

a=(n, θ) \vec {a} = (n, \ \theta)

The magnitude is always positive, and the angle is positive in the clockwise direction.

Here is what it looks like on a graph:

Converting representations

Both cartesian and polar coordinates can easily be converted from one to the other.

Cartesian to polar

As stated previously, cartesian coordinates are a pair of xx and yy coordinates. You can actually use trigonometry to calculate the magnitude and angle of the vector!

Think of the vector as a right angle triangle. For the magnitude, you need to get the hypotenus. For the angle, you need to get the angle between the vector's arrow and the positive x-axis.


To calculate the magnitude of the vector, use the Pythagorean Theorem. Note that v \left \| \vec {v} \right \| is notation for the magnitude of a vector. The angle of the vector is calculated by using inverse the tan function (tan \tan^- ):

v=x2+y2θ=tan(yx) \left \| \vec {v} \right \| = \sqrt { x^2 + y^2 } \newline \theta = \tan^- (\frac {y} {x})

example

Convert the following vector v=(3, 4) \vec {v} = (3, \ 4) to polar coordinates:

No description

answer

v=x2+y2=(3)2+(4)2=9+16=25=5 \left \| \vec {v} \right \| = \sqrt { x^2 + y^2 } = \sqrt { (3)^2 + (4)^2 } = \sqrt { 9 + 16 } = \sqrt {25} = 5

θ=tan(yx)=tan(43)=0.927 rad=53.1o \theta = \tan^- (\frac {y} {x}) = \tan^- (\frac {4} {3}) = 0.927 \ \text{rad} = 53.1^o


 v=(v, θ)=(5, 53.1o) \therefore \ \vec{v} = (\left \| \vec {v} \right \|, \ \theta) = (5, \ 53.1^o)

Polar to cartesian

You can also convert polar coordinates to cartesian. Just like before, if you think of the vector as a right angle triangle, you can use trigonometry to determine the xx and yy coordinates.


To get the xx coordinate, you multiply the magnitude of the vector by the cosine of the angle. For the yy coordinate, use the sine of the angle:

vx=vcosθvy=vsinθ \vec {v}_x = \left \| \vec {v} \right \| \cos \theta \newline \vec {v}_y = \left \| \vec {v} \right \| \sin \theta

example

Find the xx and yy coordinates of the following vector:

No description

answer

vx=vcosθ=(5)cos53.1=3 \vec {v}_x = \left \| \vec {v} \right \| \cos \theta = (5) \cos 53.1 = 3

vy=vsinθ=(5)sin53.1=4 \vec {v}_y = \left \| \vec {v} \right \| \sin \theta = (5) \sin 53.1 = 4


 v=(x, y)=(3, 4) \therefore \ \vec {v} = (x, \ y) = (3, \ 4)

Types of vectors

There are two type vectors that you should know when solving problems involving them.

Algebraic vectors

Algebraic vectors are the vectors that we have seen up to now. They are vectors that have a reference to some coordinate axes/plane.

Here are a couple examples of algebraic vectors:

No description

Geometric vectors

Geometric vectors are vectors without a reference frame. Their magnitude is identified by the length of the vector itself, and their direction is indicated by the orientation of the vector.

Here is a parallelogram formed by four geometric vectors:

Notice that there is not a coordinate axes
Notice that there is not a coordinate axes

Vectors in the 3rd dimension

As of now, we have only dealt with vectors in second dimension, or R2 \mathbb{R}^2 . Vectors in the 3rd dimension, or R3 \mathbb{R}^3 are very similar.

Instead of two coordinates, they have three:

v=(x, y, z) \vec {v} = (x, \ y, \ z)

In fact, vectors are not only limited to R2 \mathbb{R}^2 or R3 \mathbb{R}^3 . They be in any dimension Rn \mathbb{R}^n where nn is any real number, however, it may be difficult for you to visualize it, since you live only in the 3rd dimension!

The unit vector

The unit vector is vector that points in a certain direction, and has a magnitude equal to 11.

You can think of the unit vector as a "direction" vector. Whatever constant you multiply to it, its magnitude will be equal to that constant.


For example, the vector v=(12, 12) \vec {v} = (\frac {1} {\sqrt{2}}, \ \frac {1} {\sqrt{2}}) is a unit vector.

Its magnitude is v=(12)2+(12)2=12+12=1=1 \left \| \vec {v} \right \| = \sqrt { (\frac {1} {\sqrt{2}})^2 + (\frac {1} {\sqrt{2}})^2 } = \sqrt { \frac {1} {2} + \frac {1} {2} } = \sqrt {1} = 1

notation

Vectors can be written as a combination of the unity vectors i^ \hat {i} , j^ \hat {j} and k^ \hat {k} , where i^=(1, 0, 0) \hat {i} = (1, \ 0 , \ 0) , j^=(0, 1, 0) \hat {j} = (0, \ 1 , \ 0) and k^=(0, 0, 1) \hat {k} = (0, \ 0 , \ 1) .


For example, the vector v=(2, 3, 4) \vec {v} = (2, \ -3, \ 4) can be written as v=2i^3j^+4k^ \vec {v} = 2 \hat {i} - 3 \hat {j} + 4 \hat {k} . This is because the sum of the unit vectors times their coefficents equals v \vec {v} .

Converting vectors to a unit vector

You can convert any vector to a unit vector by dividing it by its magnitude:

u=vv \vec {u} = \frac { \vec {v} } { \left \| \vec {v} \right \| }

example

Convert v=(2, 3, 4) \vec {v} = (2, \ -3, \ 4) to a unit vector.

answer

The magnitude of v \vec {v} is v=(2)2+(3)2+(4)2=4+9+16=29 \left \| \vec {v} \right \| = \sqrt { (2)^2 + (-3)^2 + (4)^2 } = \sqrt { 4 + 9 + 16 } = \sqrt {29}


Now plug it into the formula:

u=vv \vec {u} = \frac {\vec{v}} {\left \| \vec {v} \right \|}

u=129(2, 3, 4) \vec {u} = \frac {1} { \sqrt {29} } (2, \ -3, \ 4)

u=(229, 329, 429) \vec {u} = (\frac {2} { \sqrt {29} }, \ \frac {-3} { \sqrt {29} }, \ \frac {4} { \sqrt {29} })


\therefore The unit vector of v \vec {v} is u=(229, 329, 429) \vec {u} = (\frac {2} { \sqrt {29} }, \ \frac {-3} { \sqrt {29} }, \ \frac {4} { \sqrt {29} })