This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 3.14 · HL only
Vector equation of a line
In three dimensions a line has no gradient and no y-intercept, so what do you write down instead, and how does that same equation track something that is moving?
What you will learn
HL Understand that a line is fixed by a point and a direction, written r = a + λb in two or three dimensions.
HL Know how to move between the vector, parametric and Cartesian forms of a line.
HL Know that the angle between two lines comes from the scalar product of their direction vectors.
HL Understand that, read as motion, the parameter is time, the direction vector is velocity and its length is speed.
You must be able to
HL Find a vector equation of a line through two points, or through a point with a given direction.
HL Convert a line between vector, parametric and Cartesian form.
HL Find the acute angle between two lines.
HL Show that a point lies on a line, or find an unknown coordinate of a point on it.
HL Find the speed and the position of a moving object from its vector equation.
HL Decide whether two moving objects collide, and find their closest approach.
In the exam. Paper 1 and Paper 2 Section A, as 4 to 7 mark questions: write the equation of a line through two points, change its form, test whether a point lies on it, find the angle between two lines. Section B questions on lines and planes open with it, and vector kinematics (ships, aircraft, drones) is a favourite Paper 2 context.
1The vector equation r=a+λb
r=a+λb, where a is the position vector of a known point on the line, b is a direction vector of the line, and λ∈R is the parameter. From the formula booklet.
Here r stands for the position vector of any point on the line. The equation says which points qualify. Figure 1 draws the line through A(2,1,3) with direction b=12−1.
Figure 1 · A point and a direction fix a line
r=213+λ12−1λ=0:r=213the point A itselfλ=1:r=332one step of b from Aλ=2:r=451the point R in Figure 1λ=−1:r=1−14one step backwards
Each real λ gives one point on the line. Negative λ is as good as positive: the line runs forever both ways.
The position vectora fixes where the line is. The direction vector b fixes which way it points.
Any non-zero multiple of b is an equally good direction vector, because 24−2 points the same way as 12−1. Any point on the line is an equally good a.
That is why an equation of a line is not unique, and why questions usually say "find a vector equation". Figure 2 shows one line in the plane with two different vector equations.
Figure 2 · One line, two vector equations
The same idea in two dimensions
Take r=(13)+λ(2−1). The direction says "2 across, 1 down", so the gradient is −21.
Eliminate λ for the Cartesian equation:
x=1+2λ,y=3−λλ=2x−1andλ=3−y2x−1=3−yx−1=6−2yx+2y=7the familiar straight line of 2.1
A direction (b1b2) has gradient b1b2. A vertical line (b1=0) has no gradient but a perfectly good vector equation.
Going the other way, a line of gradient m has direction (1m). So y=−43x+2 has direction (1−43), or (4−3) after scaling.
2A line through two points, and testing a point
To find a line through P and Q, use one of the points for a and the displacement between them for b. For P(1,−2,4) and Q(3,1,2):
PQ=q−p=3−11−(−2)2−4=23−2r=1−24+λ23−2
r=312+μ−4−64 is the same line. An equation that differs from the mark scheme's is still right. Its direction must be a multiple of theirs, and its point must be on their line.
Written this way, λ=0 is P, λ=1 is Q and λ=21 is the midpoint of [PQ]. Only 0≤λ≤1 gives the segment. The line goes on beyond both.
On such a line λis the fraction of the way. For M(3,6,−2) and N(11,−6,2), MN=8−124. The point three quarters of the way from M to N is as follows.
r=36−2+438−124=9−31
A λ outside [0,1] lands beyond an end: λ=−21 is half a step behind M.
A point lies on the line only if one value of λ gives all three of its coordinates. Find λ from one component, then test it in the other two.
R(7,7,−2):1+2λ=7, so λ=3y:−2+3(3)=7✓z:4−2(3)=−2✓one λ fits all three: R is on the line
S(5,4,1):1+2λ=5, so λ=2y:−2+3(2)=4✓z:4−2(2)=0=1×S is not on the line
S fails even though two coordinates agree. In a "show that" question, write all three checks.
"Verify that R lies on the line" asks for the same working. Find λ, substitute, show all three coordinates agree, and say so.
If T(k,−8,8) lies on the line, find λ from one known coordinate and confirm it with the other. The third gives k:
y:−2+3λ=−8, so λ=−2z:4−2(−2)=8✓x:k=1+2(−2)=−3
If the line is given in Cartesian form, substitute the point and show that all three fractions have the same value.
For R(7,7,−2) in 2x−1=3y+2=−2z−4, the fractions are 26=39=−2−6=3, so R is on the line.
The yz-, xz- and xy-planes are x=0, y=0 and z=0. To find where the line meets one, set that coordinate to 0, solve for λ, and substitute back.
Example: the line through P and Q meets the xy-plane where 4−2λ=0, so λ=2. The point is (5,4,0).
3Parametric and Cartesian forms
The vector equation is three equations stacked in one. Read it row by row to get the parametric form.
x=x0+λl,y=y0+λm,z=z0+λn, where (x0,y0,z0) is a point on the line and lmn is a direction vector. From the formula booklet.
Make λ the subject of each. Set them equal to get the Cartesian form:
lx−x0=my−y0=nz−z0. From the formula booklet.
Figure 3 shows the round trip for the line through P and Q.
From Cartesian form, the denominators are the direction. The numbers subtracted from x, y and z are the point.
So 4x−3=−7y+6=5z is the line through (3,−6,0) with direction 4−75: r=3−60+λ4−75.
Note the signs. y+6 is y−(−6), so y0=−6. And z on its own is z−0.
The trap: coefficients that are not 1
Reading off works only when x, y and z each have coefficient +1 on top. Take
32x−1=4y+2=21−zset each equal to λ:2x−1=3λ→x=21+23λy+2=4λ→y=−2+4λ1−z=2λ→z=1−2λr=21−21+λ234−2
The direction is 234−2, or 38−4 after doubling.
Reading 342 off the denominators and (1,−2,1) off the numerators is wrong twice. Setting each fraction equal to λ is safe every time.
A part with no denominator
In 3x−4=y+1=2−z the middle part is really 1y+1, and the last is −1z−2.
Setting all three equal to λ gives x=4+3λ, y=−1+λ, z=2−λ. That is the line through (4,−1,2) with direction 31−1.
A zero in the direction. For the line through (1,4,5) with direction 20−3, y=4+0λ is always 4. You cannot divide by zero, so the Cartesian form is written as follows.
2x−1=−3z−5,y=4
4The angle between two lines
The angle between two lines depends on their directions alone, not on where the lines are or whether they meet. So use the scalar product of 3.13 on the two direction vectors:
cosθ=∣b1∣∣b2∣∣b1⋅b2∣, using the direction vectors, never the position vectors. The modulus signs give the acute angle.
Why the modulus? A line has two directions, b and −b. So two lines make angles θ and 180∘−θ, and the angle between them means the acute one. Without the modulus you get whichever your two vectors happen to make.
Figure 4 shows it for b1=122 and b2=2−2−1.
Figure 4 · The angle between two lines
b1⋅b2=(1)(2)+(2)(−2)+(2)(−1)=−4∣b1∣=1+4+4=3,∣b2∣=4+4+1=3cosθ=3×3∣−4∣=94θ=arccos94=63.6∘the vectors meet at 116.4∘; the lines at 63.6∘
Paper 1, exact. Take L1 with direction 110 and L2 with direction 101:
b1⋅b2=1+0+0=1∣b1∣=2,∣b2∣=2cosθ=21, so θ=60∘=3π
If the scalar product is 0, the lines are perpendicular. The lines need not meet for this: two skew lines (3.15) can still be perpendicular.
If b1=kb2, the lines are parallel and the angle is 0∘ (cosθ=1). Positive k means the same way, negative the opposite.
A line parallel to a given one through a new point keeps b and changes only a.
Lines in the plane. A line y=mx+c has direction (1m), so the same formula works. For y=2x−1 and y=−3x+4, the directions are (12) and (1−3).
b1⋅b2=1−6=−5,∣b1∣=5,∣b2∣=10cosθ=505=21, so θ=45∘
Parallel and perpendicular with an unknown.
Parallel means one direction is a multiple of the other. Match one component to find the multiplier, then the rest follow.
Perpendicular means the scalar product is zero.
Example: L1 has direction 2k+16 and L2 has direction 133. The first and third components give multiplier 2 both times. So the lines are parallel when k+1=6, that is k=5.
Example: take instead k2−1 and 3k4. They are perpendicular when 3k+2k−4=0, so k=54.
An unknown in a direction vector. Given the angle, write the formula with the constant in it. Square both sides to clear the modulus and the root. Expect two values.
Example: L1 has direction 112 and L2 has direction k10. Find k when the acute angle is 60∘.
6k2+1∣k+1∣=cos60∘=214(k+1)2=6(k2+1)2k2−8k+2=0→k2−4k+1=0k=2±3both give 60∘
5Lines as motion: λ becomes time
Replace λ by t and read the equation as the position of a moving object.
r=a+tv: a is the position at t=0, v is the velocity vector (displacement per unit time), and the speed is ∣v∣.
Every unit of time the object moves by v: a straight line at constant speed. Figure 5 shows a drone whose position, in metres, after t seconds is r=2−31+t623.
Figure 5 · A drone flying in a straight line
speed=∣623∣=36+4+9=49=7ms−1t=2:r=2+12−3+41+6=1417height 16m:1+3t=16, so t=5t=5:r=32716distance flown in 5s=5×7=35m
Units come from the question
Positions in km and t in hours make v a velocity in kmh−1.
With x east, y north and z up, the map direction comes from the first two components of v. A bearing is clockwise from north, so draw the horizontal components and measure from the north axis.
Horizontal part (34): arctan43=36.9∘ east of north, bearing 037∘.
Horizontal part (−43): arctan34=53.1∘ west of north, bearing 360∘−53.1∘=307∘.
The climb angle compares the vertical part with the horizontal speed. For the drone, tanα=62+223=403, so α=25.4∘.
Scaling the direction changes the speed
As lines, r=a+t623 and r=a+t1246 are the same. As motion the second is twice as fast.
So in kinematics you may not simplify the velocity. Given a speed and a direction, build v as speed × unit vector.
Example: a speed of 14ms−1 in the direction 623 is v=14×7623=1246.
Starting at a time other than 0
An object that is at P at t=2 and moves with velocity v has position r=p+(t−2)v.
Check: at t=2 the bracket is zero, so r=p.
Two moving objects. Ship A's position after t hours is rA=(05)+t(41)km.
Ship B's is rB=(10−3)+t(13)km.
Three questions get asked, with three methods.
Do they collide? A collision means the same place at the same time, so use one t for both.
x:4t=10+t→t=310y:5+t=−3+3t→t=4different times, so the ships never occupy the same point together: no collision
Do their paths cross? The paths are lines, so give each its own parameter (the intersection method of 3.15).
4λ=10+μand5+λ=−3+3μfrom the first, μ=4λ−10; substitute:5+λ=−3+12λ−30→11λ=38→λ=1138≈3.45μ=1142≈3.82X=(4×1138,5+1138)=(11152,1193)≈(13.8,8.45)
The paths cross at X, but A is there at t≈3.45 h and B at t≈3.82 h. Figure 6 shows the near miss.
Figure 6 · Two ships: paths that cross, ships that do not meet
How close do they get? Write the vector from A to B at time t, find its length, and minimise it.
rB−rA=(10+t−4t−3+3t−5−t)=(10−3t2t−8)d2=(10−3t)2+(2t−8)2=13t2−92t+164minimum where dtd(d2)=26t−92=0→t=1346≈3.54hd2=164−4×13922=1316d=134≈1.11km
On Paper 2, graph d(t)=(10−3t)2+(2t−8)2 and use the GDC minimum: t≈3.54, d≈1.11. Minimising d2 gives the same t and avoids differentiating a root.
A third route: at the closest moment the line joining the ships is perpendicular to their relative velocityvB−vA=(−32).
So (10−3t2t−8)⋅(−32)=0, which gives −30+9t+4t−16=0 and again t=1346.
This is the closest the ships get, both measured at the same moment. The two paths cross at X, so they are 0 apart. Yet the ships never come nearer than 1.11 km. A distance between the objects needs the same t in both.
Closest approach to a fixed point. The drone of Figure 5 passes a tower at T(20,0,0), position vector p. It is closest when the line from the tower to the drone is perpendicular to the velocity: (r−p)⋅v=0.