Vector equation of a line
Posted in Maths, Core 4The vector equation of a line consists of two vectors - a position vector, a vector from the origin to any point on the line - and a direction vector - which describes the gradient of the line. The vector equation of a line is given by:
Where is the position vector,
is the direction vector and
is a parameter which can take any value. Each point on the line has a different value of
Due to the nature of the vector equation of the line, the same line can have multiple equations. The position vector can be the position vector of any point on the line. The direction vector too can be written in many different ways. For example means the line goes 4 units up for every 2 across. This is the same as
or even
General vector form of the equation of a line
In general, the vector form of the equation of the line joining two points, A and B, with position vectors a and b is given by:
Converting to the cartesian form of a line
You may want to convert from the vector equation of a line to the cartesian form - involving x and y values. To do this firstly write r as , for example:
This enables you to see equations for x and for y:
From here, rearrnage both to make the subject:
You can now eliminate by equating the two expressions:
This is the final answer, however you may wish to tidy it up to make it look nicer!
General form (2 and 3 dimensions)
In general the vector form of an equation:
Can be written in cartesian form as:
For 3 dimensions:
Can be written in cartesian form as:
Converting from cartesian form to vector form
To convert from cartesian form to vector form you first want to find a position vector, to do this find any point on the line, the easiest way is to substitute x = 0 into the equation and find a value for y. You then need to calculate then convert the gradient of the line into vector form to give you your direction vector.
Example
Example question: Write y = 2x + 3 in vector form
Worked solution: Firstly find a point on the line, in this case substituting x = 0 gives y = 3, this point (0, 3) has the position vector and gives the first part of the vector form of the equation. The gradient in this example is 2 as the equation is in the form y = mx + c. This needs to be converted into vector form, a gradient of 2 means the line goes up 2 units for every 1 across, thus the direction vector is
. Hence the final equation is:
Intersection of two lines
Finding the points of intersection of two lines in vector form is similar to that involving lines in cartesian form. For example, take these two lines in vector form
is just a parameter like
.
Start by equating the two equations together:
You can now create two equations involving and
You now have to two simultaneous equations which can be solved to give value(s) of and
which satisfy both equations. This is example is pretty easy as the second equation gives us the value of
right away. Substituting this into the top equation gives
. You're not finished yet though, to find the position vector of the this point you need to substitue either
or
into the original equations:
OR
Hence the position vector of the point of intersection is