# IB Mathematics SL/Vectors

# Topic 4: Vectors[edit | edit source]

## Introduction[edit | edit source]

Vectors can be described mathematically by using Trigonometry.

We can define a vector to be an ordered pair consisting of a **magnitude** and a **direction**. In this diagram, *r* is the magnitude of this vector and θ is the direction. Notice, now, that we have moved horizontally *r* cos(θ) and vertically *r* sin(θ). These are called the *x-component* and the *y-component*, respectively.

We can also write a vector conveniently in terms of the x and y component. We write for vectors. In some texts, you may see the vector written sideways, like (*x*, *y*), but when you write it will help *greatly* to write them downwards in columns. In print we commonly bold vectors, but since you probably don't have a pen that writes in bold print, underline your vectors, i.e. write __v__, or put a tilde underneath your vectors or place an arrow pointing right overtop of your vector.

## Length of a vector[edit | edit source]

The distance formula can be used to find the magnitude, r, of a vector given its components with the following equation:

Where a1, a2, and a3 are the three components of the vector.

## Vector equality[edit | edit source]

Two vectors are said to be equal if they have the same magnitude and direction. However if we are talking about bound vector, then two bound vectors are equal if they have the same base point and end point.

For example, the vector **i** + 2**j** + 3**k** with base point (1,0,0) and the vector **i**+2**j**+3**k** with base point (0,1,0) are different bound vectors, but the same (displacement) vector.

## Scalar multiplication[edit | edit source]

For scalar multiplication, we simply multiply each component by the scalar. We commonly use Greek letters for scalars, and Roman letters for vectors.

So for a scalar value of λ and a vector **v** defined by *r* and θ, the new vector is now λ*r* and θ. Notice how the direction does not change.

#### Example[edit | edit source]

Say we have and we wish to double the magnitude. So, .

## Addition of vectors[edit | edit source]

Simply, to add two vectors, you must add the respective x-components together to obtain the new x-component, and likewise add the two y-components together to obtain the new y-component.

### Example[edit | edit source]

Say we have and we wish to add these. So, .

### Magnitude[edit | edit source]

The *magnitude* of a vector is its length in **R**^{+}

## The dot product[edit | edit source]

The *dot product* of two vectors is defined as the sum of the products of the components. Symbolically we write

For example,

The dot product of two vectors has an alternate form:

The angle θ then is important, as it shows that the dot product of two vectors is related to the angle between them. More specifically, we can calculate the dot product of two vectors - if the dot product is zero we can then say that the two vectors are perpendicular.

For example, consider simply

Plot these vectors on the plane and verify for yourself that these vectors are perpendicular.

## Vectors of 3D-lines[edit | edit source]

Cartesian equation: . where a, b, and c are the coordinates on the vector line.

Vector equation: r =