I have written about Vectors back in Feb 2020 (in this post called Introduction to Vectors) but seeing as that was so long ago I wanted to refresh my mind on the topic by writing a bit of a meatier post (as we covered more of this than we did at UWE).

// Notes taken from my lectures at the University of Kent 2022

Starting at the beginning, what is a vector? A vector is a line that has been given a length and a direction whereas a line only has a length. When we represent a vector mathematically, we do so with a lowercase letter that has been underlined i.e. \underline{a}. We say that any line that shares the same length and direction are the same vector and if we have a line going in the opposite direction then that is minus the vector i.e. \underline{-a}. If the line is twice as long then it is twice the vector or 2\underline{a}. If the line is half as long then we say half the vector or \frac{1}{2}\underline{a}. If the line is in a different direction or is a different size then it is a different vector.

Combining Vectors

We can combine vectors which is essentially the same as saying that you start at one point, travel along the first vector, then the second until you reach a second point at the end of the second vector. The vectors are lowercase underlined and the points are uppercase. The journey along these two vectors would be written \underline{a}+ \underline{b} which can also be written \vec{AB} (with an arrow above). Vector A & B are not interchangable as we are going from point A to point B.

The straight line that we get by joining A & B is the resultant and is NOT a vector. A resultant is a sort of “as the crow flies” distance between the starting and and points of the journey. If the vector can be drawn anywhere on the page then they are called “free vectors” as opposed to “position vectors” which are in a specific place on the page/grid.

When we use position vectors we need to be able to describe where about the vector is on the grid. To do this we can use grid points i.e. Point P equals (2,3) or we can use i & j notation i.e. 2i+3j, or we can use column vectors (which is essentially like a matrix) i.e. \begin{bmatrix} 2 \\ 3 \end{bmatrix}. To see this in action, let’s also say that Q equals (1,2) or i+2j, or \begin{bmatrix} 1 \\ 2 \end{bmatrix}.

When calculating position vectors we can only travel from the origin to P (\vec{OP}=\underline{p}) or from the origin to Q (\vec{OQ}=\underline{q}) so if we wanted to travel from P to Q we would need to do so via the origin i.e. \vec{PQ}= \vec{PO}+\vec{OQ} or \vec{PQ}= -\underline{p}+\underline{q}. Even though we’ve travelled all the way down to the origin and then back up again, the resultant is simply the distance between the two points. The resultant in this instance is PQ=-(2i+3j)+(i+2j)=-i-j.

To find the length, size, magnidude or modulus of a vector we use pythagoras. The notation for this is \lvert p \lvert. To find the size of \underline{p} we can say \lvert \underline{p} \lvert = \sqrt{2^2+3^2}= \sqrt{13} . To find the length of the resultant then we would use pythagoras on our previous \vec{PQ} calculation so  \vec{PQ}=-i-j meaning \lvert \vec{PQ} \lvert = \sqrt{1^2+1^2}= \sqrt{2} .

The last thing to dsicuss in the first prt of this post is to talk about what a unit vector is. A unit vector is a vector that has a length of 1 unit and has to be either parallel or inline with the original vector. If we calculated a vector that has a length of 5 i.e. \vec{OT} = 4i-3j then \lvert \underline{t} \lvert = \sqrt{4^2+3^2}= \sqrt{25}=5 meaning a unit vector would be a 5^{th} of the original i.e. \frac{4}{5}i-\frac{3}{5}j.

Dividing a Line (Midpoint)

When finding the midpoint of a line we need to know how to get from the origin to A and then the origin to B. So we would determine that \vec{OA}=\underline{a} and \vec{OB}=\underline{b}. We then need to find \vec{OX} where X is the midpoint of the line AB. We know how to get from A to B because \vec{AB}=-\underline{a}+ \underline{b} and if X is the midpoint, then we know it’s half way along i.e. \vec{AX}=\frac{1}{2}(-\underline{a}+ \underline{b}). We need to go from O to A and then to the midpoint ( O to X). If \vec{OX}=\vec{OA}+\vec{AX} then \vec{OX}=\underline{a}+\frac{1}{2}(-\underline{a}+\underline{b})= \frac{1}{2}(\underline{a}+\underline{b})

// The example above shows how we go about dividing a line in half and the way we need to think about doing it which will make understanding how to divide a line generically (not exactly in half) a bit easier to comprehend.

Dividing a Line (Generic)

As with the midpoint method we need to go from O to A and then to the point X which is somewhere between A and B.

\vec{AB}=-\underline{a}+ \underline{b}

\vec{AX}=\frac{m}{m+n}( \vec{AB} )= \frac{m}{m+n}(-\underline{a}+\underline{b})

\vec{OX}=\vec{OA}+\vec{AX}

\vec{OX}=\underline{a}+\frac{m}{m+n}(-\underline{a}+\underline{b})

\vec{OX}=\frac{m+n}{m+n}\underline{a}+\frac{m}{m+n}(-\underline{a}+ \underline{b})

\vec{OX}=\frac{n}{m+n}\underline{a}+\frac{m}{m+n}\underline{b}

Equation of a Line

When dealing with vectors there are two methods for finding the equation of a line.

  1. 1 fixed point and vector gradient
  2. 2 fixed points

One Fixed point and a gradient

Gradient is the change in y divided by the change in x or \frac{y}{x} . For a gradient of \frac{1}{2} you would go up one and across two. Let’s look at a fixed point example. Let’s say that our fixed point is A=(2,3) and that the gradient is \frac{1}{2} or \underline{m}=2i+1j . If we want to get from the origin to our point A=(2,3) then we know that \vec{OA}=2i+3j. What we’re aiming to do is to calculate our resultant which will get us to any point on the line.

At this stage we know how to get to point A and we know our gradient so by knowing that we can get to any point on the line. If we go from the origin to A and then some multiple of the gradient, we’ll get to our desirde point on the line P.

\vec{OP}= \vec{OA}+\lambda \underline{m}

\underline{r}=2i+3j+\lambda (2i+j)

\underline{r}= \underline{a} +\lambda  \underline{m}

Resultant: get to the fixed point and add a multiple of the gradient.

Two Fixed points

When using two fixed points we’re using points are on the line and not at the ends of the line. We know the two points A and B but we need to get to any point on the line P. If we can get from A to B, getting from A to P is just a multiple of that.

\vec{AP}=\lambda \vec{AB}

\vec{OP}= \vec{OA} \lambda \vec{AB}

\underline{r}=  \underline{a}+ \lambda (-a+b)

In the example above we know that A=(1,4) and that point B=(4,5) so \underline{a}=i+4j and  \underline{b}=4i+5j. The line goes through the points and to get to A we have to go from the origin to A (travelling along \underline{a}) and then to get to P we plus a multiple of A to B.

\underline{a}=i+4j and \underline{b}=4i+5j

The resultant of \vec{AB}=\underline{a}+\lambda(b-a) (which is the same as -a+b)

=i+4j+\lambda((i+4j)-(4i+5j))

=i+4j+\lambda(-3i+-j)

3D Vectors

So far we’ve looked at 2D vectors to understand the principles but now we’re going to look at 3D vectors. This means that we have the usual accross (x) and up and down (y) and now in/out (z) axis to consider.

Let P=(3, 12, 4)

\vec{OP}=\begin{bmatrix} 3 \\ 12 \\ 4  \end{bmatrix}=3i + 12j + 4k

The direction ratio is 3: 12: 4 which is also the gradient (shown by the orange line in the image).

Three methods for finding the equation of a line

We looked previously at finding the equation of a line using either a fixed point and a gradient or by using two fixed points which is the vector equation of a line. Now we are going to introduce another two methods for finding the equations of a line.

  1. Vector (Which we’ve seen already)
  2. Parametric
  3. Cartesian

All these methods are equivalent to each other in that they all describe the same line.

We’ve got our vector equation of a line i.e. \underline{r}=-2i+3j+k+\lambda(4i-2j+3k).

Parametric Form

From this vector expression, if we split the three dimensions (i, j and k or x, y and z) into their respective parts we would get:

x=-2+4\lambda

y=3+-2\lambda

z=1+3\lambda

Because we have specified what our x, y and z equal we don’t need to include the i, j or k in each expression. This is the parametric form of our lines equation.

Cartesian Form

When writing out the Cartesian form we take the parametric form and rearrange for \lambda.

\lambda=\frac{x+2}{4}

\lambda=\frac{y-3}{-2}

\lambda=\frac{z-1}{3}

\frac{x+2}{4}=\frac{y-3}{-2}=\frac{z-1}{3}

This is nearly it for writing out our equation in Cartesian form, the only issue is that we can’t have a negative denominator so for the y element of our equation we will need to multiply both the top and the bottom by -1. So \frac{-1 \cdot (y-3)}{-1\cdot(-2)}=\frac{3-y}{2} .

// Conversely, if we’re going from Cartesian form back to Parametric form, we need to ensure the letter is positive (not the denominator as we’ve just seen).

Our final Cartesian form expression for this example would therefore be \frac{x+2}{4} =\frac{3-y}{2}=\frac{z-1}{3}.

Leave a Comment

Your email address will not be published. Required fields are marked *