2. Vectors - Vector, Parametric equations (2D)

Linear equation

For reference, this is the normal way to represent an equation

y=mx+c

Where

Find using n and 1 point (Proof)

xn=OPn

Expanded out:

ax+by=ax0+by0

Vector equation

Notation

Let Line (l) be a line through P=(x0,y0) with a direction d=[ab]

x=P+td     OR     x=(x0,y0)+[ab]
x represents a point on the line.

x=(x,y)
It's a bit weird but textbooks and online sources use it

Find vector equation using 2 points

l goes through P=(0,3) and Q=(9,0). Find the vector equation.
Steps:

  1. Find out the direction vector (PQ)
  2. x=P+PQ

Working:
PQ=[93]
x=(0,3)+t[93]

Linear Vector equation

Given 3x+4y=5, what is the vector equation?
Steps:

  1. Find out P
  2. Find out d

Step 1 (Find P):

Sub x=0,4y=5y=54

So P=(0,54)
Step 2 (Find d):
A line ax+by=c has the normal vector [ab]
So, n=[34]d=[43]

ANS: x=(0,54)+t[43]

Parametric equation

Notation

Let Line (l) be a line through P=(x0,y0) with a direction d=[ab]

{x=x0+tay=y0+tb      t(,)

This is basically vector equation expanded out

Finding shortest distance

Point to line

Given x=P+td and Q(x,y)

Dist from Q to line=||projnPQ||
PQ direction

P is a point on the line as the normal starts from the line too