Interactive Lessons

Lines with vectors

Lecture notes

Definition

The vector equation of a line

A line is fixed by a point and a direction. In the vector is the position of , is the direction vector and the parameter is any real number: every gives one point, and gives . The same form works in the plane and in space.
abOAP
Example
. gives , gives and gives .
−2012
Rule

The line through two points

Through and the direction is , end minus start, so . Then gives , gives , gives the midpoint and lies beyond .
bAMB2
Example
and give , of length 7. gives , the midpoint; gives , beyond .
AMB2
Rule

Is the point on the line?

Put the coordinates of into and solve each coordinate for . If every coordinate gives the same , is on the line; if two values differ, it is not. A coordinate where has a 0 cannot change and must agree by itself.
Example
Line . → gives and gives : it is on the line. → gives but gives : it is not.
APQ
Tip

One line, many equations

The equation of a line is not unique: any point of the line may be the starting point and any non-zero multiple of the direction. Two equations give the same line when the directions are parallel and one point of the first lies on the second.
0123−101−1
Example
and : the direction is times the first, and the point of is the new start.So it is one line; its point for , , has .
Rule

The parametric form

Written coordinate by coordinate, the line is , and in space , with the direction. The number before tells how fast that coordinate changes, the number alone is its value at .
Example
is , , .At → , , , the point .
Rule

Eliminate t: the equation of the line

Solve one coordinate for and put it into the other: in the plane this gives . The other way round, a direction of is , and a point is found by choosing or .
Example
→ , so and .Back → has the point and the direction , so .
−3−101
Rule

The Cartesian form in space

In space the Cartesian form is a chain of equal fractions, : each fraction is . If a direction number is 0, that coordinate never changes and stands alone, like .
Example
→ .Direction through → and .
Watch out!

The normal is not the direction

From the numbers form the normal vector, at a right angle to the line, not along it. The direction is : swap the numbers and change one sign. Check with the scalar product, which must be 0.
dnO
Example
has the normal and the direction ., so they are perpendicular; taking the normal as the direction draws the perpendicular line.
dn
Definition

Two lines: four cases

Two lines are coincident (the same line), parallel (same direction, no common point), intersecting (one common point) or skew (not parallel and no common point, only in space). Test the directions first: they are parallel when one is a multiple of the other.
Example
→ .Direction through → is no multiple of , so parallel.Direction through → , so coincident.
Rule

The common point of two lines

For and use two different parameters. Equate the coordinates, solve two equations for and , then test the third. If it holds the lines meet; put into the first line for the point.
ACX
Example
and . → , → → , . → holds, so they meet at .
Watch out!

Skew lines and the vertical gap

If the third equation fails the lines are skew: they do not meet and are not parallel. The two points with the same and lie one above the other; the difference in is a vertical gap. It is not the distance between the lines.
Example
Start the second line at instead: again and , but gives against .So the lines are skew, with a vertical gap , measured straight up.
2
Rule

The angle between two lines

The angle between two lines is the acute angle between their directions, found with . The absolute value picks the acute angle: a negative scalar product gives an obtuse angle between the vectors, and the lines make its supplement. Skew lines have an angle too.
Oθ180°−θ
Example
and → , , , so and .With the vectors make , the lines still .
Rule

A missing value p

A letter in a line is a condition. For lines to meet, solve two equations for and and put them into the third: that equation gives . For parallel use ; for perpendicular , a quadratic in when is in both directions.
Example
as before and → . Again and ; the third equation gives .For or the lines are skew.
Tip

Lines through the corners of a solid

Lines through two corners of a solid are lines with two known points: put at the origin and write the corners as points. In a cuboid the four space diagonals meet at the centre; two edges or diagonals that do not meet and are not parallel are skew.
OAFGM
Example
Cuboid → and meet at the centre and make an acute angle of . (along ) and (up from ) do not meet and are not parallel: skew.
OACG
Rule

The foot and the mirror image

The foot of the perpendicular from to has . Then , is the distance from to the line and the mirror image is .
APNP'
Example
and the line → , , . and .
Rule

Points at a given distance

The points of the line at distance from : put into . This is a quadratic in : two points if , one (the foot) if , none if .
PNQQ
Example
Same and line, → gives , so ., about and : two points, as .
Rule

A right angle at Q

A right angle at means . With on the line this is a quadratic in (two, one or no points), and the points lie on the circle with diameter . Equal distances give a linear equation, so is on the perpendicular bisector.
PRQQ
Example
, and → , so and or . and lie on the circle with centre and radius 5.
Definition

Constant velocity

A point that starts at and moves with the constant velocity is at at time : a line with as the time. The speed is the length , the distance travelled is speed times time and the acceleration is zero.
v012
Example
A ship leaves with km/h: the speed is km/h.After 2 h it is at , having sailed km.
Rule

When and where?

To find when the point gets somewhere, solve for . A coordinate such as gives one . A target point is reached only if every coordinate gives the same . A given distance from the start is reached when equals it.
01T3U
Example
Start , . gives , , at . gives from both coordinates: reached. gives from but from : never reached.
Watch out!

Two moving points: meet or only cross?

Crossing paths are not a collision. Find where the two lines cross, with a separate parameter for each point. The points meet only if both parameters are equal there: they must be at the crossing at the same time.
X34
Example
Ship 1 → , ship 2 → . The paths cross at : ship 1 is there at , ship 2 at . They miss.Starting at instead, both are there at : a collision.
X3
Rule

The closest approach

The relative position is again a line in . Its length is smallest at , where is at a right angle to ; use it only if .
12Xd
Example
The same ships → , , so h and .The closest approach is km, so they pass each other safely.
Tip

Aircraft: crossing, meeting or passing over

The paths of two aircraft can cross in the plan view and still be apart. Find the time each is above the crossing, then compare the heights. Equal times and equal heights is a meeting; equal times and different heights is a pass-over with a vertical separation.
X2
Example
→ , → (km, min). Both are above at , at heights and : they meet.If starts at height 4, the heights are 5 and 6: a pass-over, 1 km apart.
Tip

A laser ray from a mast

A ray from the top of a mast is a line in space. It reaches the floor where ; the angle with the floor has . After a bounce changes sign and the ray goes on; a wall is where reaches its value.
TFW
Example
Mast 3 m, ray → gives , the floor at . Also , so .After the bounce : the wall is reached when , , at .
Tip

A pipe and a cable under the ground

A pipe and a cable are two lines with . They touch only if they meet. When they cross in the plan view, at the same and , the difference of their depths there is the vertical gap, and they are skew.
3
Example
Pipe , cable → gives , then → , so .The depths at that spot are m and m: they do not touch, the vertical gap is 3 m.
Tip

Which course needs what

Cambridge A level (Paper 3) asks for the vector equation of a line, parallel, intersecting or skew lines with their intersection, the angle and the foot of the perpendicular; the shortest distance between skew lines is not required. IB HL (both courses) has the line in 2D and 3D with kinematics; AA adds the four cases and the angle. Wiskunde B vwo has the vectorvoorstelling, parametervoorstelling and vergelijking of a line in the plane; wiskunde D vwo names no line. The UK A level has no vector line (Further Mathematics). AP Precalculus has straight-line motion in parametric form in an optional topic, not examined. IB SL, IGCSE and MEB: none.
Example
A question for Cambridge or IB HL: do and meet? Yes, at .A UK A level question stays out of vector lines: the length of is .

Exercises

A line goes through with direction . Write a vector equation and find the point for . Easy
?A?
Show solution
Point plus times the direction.
.
Put in → and .
, and gives .
Check → gives back.
Write a vector equation of the line through and and find its midpoint . Easy
AB?
Show solution
The direction is end minus start, .
.
The midpoint is , or half the sum → , , .
and .
Check → gives .
Is on the line ? Easy
AP
Show solution
Solve each coordinate for .
→ , so .
→ , so .
The values differ, so is not on the line.
No → asks and asks .
Check → at the line is at , one below .
A line has the equation . Write the parametric equations and the Cartesian equation . Easy
Show solution
Coordinate by coordinate → and .
From → .
Into → .
, and .
Check → gives and .
Give a vector along the line . Easy
Show solution
For the normal is .
The direction is : swap the numbers and change one sign → .
Not : that is the normal.
, or any non-zero multiple of it.
Check → , so it is perpendicular to the normal.
A boat starts at and moves with the constant velocity km/h. Find its speed and its position after 2 h. Easy
Show solution
The speed is the length of the velocity → km/h.
The position is at → and .
The speed is 5 km/h; after 2 h the boat is at .
Check → the distance sailed is km, and .
Write a vector equation of the line . Medium
Show solution
A point → gives , so .
The direction is .
.
(any point and any multiple of the direction will do).
Check → gives and .
Show that the lines and meet, and find the point. Medium
?
Show solution
The directions are no multiples, so not parallel.
→ and → .
Add the two → , so and .
→ and , equal; so the point is on the first line at .
They meet at , for and .
Check → the second line at is .
Find the acute angle between the lines with directions and . Medium
Show solution
Scalar product → .
Lengths → and .
, so .
.
Check → the scalar product is positive and below , so the angle is acute.
Take → and → . For which do they meet? Medium
Show solution
→ and → .
Then and , so and .
→ , so .
So .
, and then the lines meet at . For every other they are skew.
Check → at is , and at is .
Find the foot of the perpendicular from to the line , the distance from to the line and the mirror image of . Medium
Show solution
and , so and .
, with , so .
Mirror image → .
, and .
Check → .
A boat starts at and moves with km/h. When is , and does it ever reach ? Medium
Show solution
, so h; then , at .
For → gives , so .
gives , so .
The values differ, so is never reached.
after 6 h, at . The boat never reaches : its path misses it.
Check → at the boat is at , and at at : neither is .
Show that the lines and are skew, and find the vertical gap over their common plan point. Hard
?
Show solution
The directions are no multiples, so not parallel.
→ . → , so .
→ for the first line, for the second.
, so the lines do not meet: skew.
The lines are skew, with a vertical gap over the point .
Check → no , satisfy all three equations; the gap is a vertical distance, not the distance between the lines.
The vectors and are the directions of two lines. Find so that the lines are perpendicular. Hard
Show solution
Perpendicular means the scalar product is 0.
.
, so .
or .
Check → → . → .
Ship 1 starts at with and ship 2 at with (km, km/h). Find their closest approach. Hard
Show solution
Relative position .
and , so .
, with length .
, so it counts.
After 3 h the ships are closest, 5 km apart.
Check → ship 1 is at and ship 2 at → , and .
Find the points of the line that are at distance 5 from , and the foot of the perpendicular from . Hard
Show solution
, and , so and with .
As there are two points: with .
, so .
, so or .
; the points are (for ) and (for ).
Check → both points are at distance 5 → .
The line is . Find the points of the line with a right angle at in the triangle , where and . Hard
PR??
Show solution
, and .
.
Factor → , so or .
and .
Check → both lie on the circle with diameter : centre , and .
A laser ray leaves the top of a mast with direction . Find the floor point, the angle with the floor and, after a bounce with direction , the point on the wall . Hard
Show solution
Floor where → , so at ; , so .
After the bounce → , and the wall gives , so , and , .
The floor at , the angle and the wall at .
Check → .
Are you a teacher?

Start live lessons with these applications for your whole class. Free to try for one month.

Try it free

Fits these school years

IB (MYP, Diploma): Diploma, year 1, Diploma, year 2

Cambridge International: A Level

Netherlands: Vwo · Mathematics B, Vwo · Mathematics D, Havo · Mathematics B

England (GCSE, A Level): Year 12 (A Level), Year 13 (A Level)

USA (Common Core): Precalculus

What the applications of this topic teach 6 applications

Vector equation of a line: r = a + t b

  • Writing the vector equation r = a + t b of a line
  • Telling whether a point is on the line by the value of t
  • Seeing that one line has many equations

Forms of a line: vector, parametric, Cartesian

  • Writing a line in parametric form and reading its rate
  • Eliminating t to get the equation of a line
  • Writing the Cartesian form of a line in space

Two lines: parallel, intersecting or skew

  • Telling whether two lines coincide, are parallel, intersect or are skew
  • Finding the common point and the angle between two lines
  • Finding the value p that makes lines meet, parallel or perpendicular

A line and a point: foot, distance, right angle

  • Finding the foot of the perpendicular, the distance and the mirror image
  • Finding points of a line at a given distance with a quadratic in t
  • Finding the point Q where an angle is right or QP = QR

Constant velocity: r = r₀ + t v

  • Writing the position of a point moving at constant velocity
  • Finding when and where a point reaches a coordinate or a point
  • Telling whether two moving points collide and finding closest approach

Lines with vectors in everyday life

  • Using lines for aircraft: where paths cross and whether heights agree
  • Finding a collision or closest approach for two ships
  • Deciding whether a pipe and a cable underground touch