# Scalars and Vectors

## Introduction

Some physical quanties can be expressed by a single number, such as mass, temperature, volume, voltage, energy, pressure and charge. These are known as Scalars. Vector quantities need both a magnitude and direction. Examples include velocity, force, momentum, angular velocity and electric field.

## Vectors

If we are in a large room at point *A* and I move ten metres in straight line to point *B* then this can be represented as a vector. Starting from point *A* and moving in a new direction and moving 10 metres in a different direction results in a new vector AC.

Since the vector has direction we cannot specify it with one number, we need to define the position of the endpoint from some origin.

### Notation

Vectors are usually distinguished from scalar values by writing them in boldface. When writing them on paper, we usually denote them with an arrow or line above the letter. Eg, a or **a**.

### Vector Components

A single vector can be decomposed into two independent vectors in the same the direction as the coordinate axes. These are known as the components of the vector. The mqgnitude of the horizontal component is |**a**_{x}| = |**a**| cos θ and the magnitude of the vertical component is |**a**_{y}| = |**a**| sin θ, where θ is the angle between the vector **a** and the horizontal axis

Vectors provide a shortcut when thinking about equations in more than one dimension, we can write **F** = *m***a** to describe the force but in reality we are thinking about three equations,

*F*_{x} = *ma*_{x}

*F*_{y} = *ma*_{y}

*F*_{z} = *ma*_{z}

Where *F*_{x}, *F*_{y} and *F*_{z} are the three components of the vector **F** in the x, y and z directions respectively and *a*_{x}, *a*_{y} and *a*_{z} are the three components of the vector **a** in the x, y and z directions respectively. Sometimes we can reduce the problem to one dimension and we can drop the vector notation.

## Unit Vectors

The components of a vector are in the same direction as the axes of the coordinate system, if they are of unit length then they are also unit vectors in the direction of the axes.

## Addition

### Head to Tail Rule

Two vectors can be added together to make a new vector. Graphically, this is done by moving the head of one of the vectors up to the tail of another. A line drawn from the tail of one to the head of the other is the resultant.

### Parallogram Rule

## Writing Vectors

While drawings are great for showing the concept of vectors, drawing arrows to scale quickly becomes tedious and so we seek a less tiresome way to represent vectors. Luckly, we can also write vectors algebraicaly in terms of their components. Thus a vector may be written as a coordinates (*x*,*y*) which gives the position of the tip of the arrow from the origin. If we wish to use more than 2-dimensions we can simply add another component to the list. Alternatively, we may represent the components of a vector as a multiple of a vector with unit distance. These multiplying vectors are known as unit vectors. Conventionally, they are denoted by **i** and **j** (also **k** in 3-D). In this way, a vector **a** may be represented as **a**=*x***i** + *y***j**. Where *x* and *y*.

Two vectors add to produce another vector.

**c**=**a**+**b**

**c**=(*a*_{x}**i** + *a*_{y}**j**) + (*b*_{x}**i** + *b*_{y}**j**)

**c**=(*a*_{x}+*b*_{x})**i** + (*b*_{x}+*b*_{y}) **j**

Subtraction of vectors is treated in a similar way. So that, **c**=**a**-**b**

**c**=(*a*_{x}-*b*_{x})**i** + (*b*_{x}-*b*_{y}) **j**

## Magnitude

Having defined the vector in space how do we find out its length when it is pointing anywhere? At this point we remember, Pythagoras whose theorem, (he dihttdn't discover it) we need to obtain the distance. The components of a vector are perpendicular to each other and therefore we can determine the length of the vector from these.

Pythagoras's theorem is *c*^{2}=*a*^{2}+*b*^{2}. Where *a* and *b* are the perpendicular to each other and *c* is the hypoteneus.

Relating this to the vector, the magnitude of vector **a** is then |**a**|=√(a_{x}^{2}+a_{y}^{2}). We use the | lines around the vector to indicate the magnitude.

## Direction Cosines

## Dot Product

The dot product or scalar product is a special form of multiplying a vector. The dot product gives the projection of the vector onto the x-axis. It is represented by a dot between the two vectors one is multiplying, **a**.**b**. The result is not a vector but a scalar. **a**.**b**=|**a**||**b**| cos θ

Also, **a**.**b**=*a*_{x}.*b*_{x}+*a*_{y}.*b*_{y}+*a*_{z}.*b*_{z}. They both give the same result however, the latter may sometimes be more conveinient if one doesn't known the angle between the two vectors.

## Vector Product

The vector product is the other form of multiplication of vectors the result of a vector product is another vector that is perpenducular to the two vectors being multiplied. To obtain the vector product we must move into three-dimensional space.

We always work in a right-handed coordinate system. (ie the crossproduct of **a** and **b** is 1. **a** x **b** =**c**) and it is a good idea to draw the axis to make it clear.