HSC Study

Vector Equations of Lines

The vector equation r = a + λb of a line, its link with y = mx + c, finding equations of lines and segments in two and three dimensions, and deciding whether lines are parallel, whether intersecting lines are perpendicular, and whether a point lies on a line.

55 min · Vectors

Assumes you have read The Scalar Product and Vector Proofs.

The full teaching. Start here.

The short version

  • : a known point plus any multiple of a direction.
  • Through and : . The segment is the part with .
  • 2D link: direction corresponds to gradient . The line has direction and passes through .
  • Point on line: find from one component, then check that the same fits every other component.
  • Parallel: the directions are scalar multiples. Then test one point to decide whether the lines are distinct or the same line.
  • Intersect: give each line its own parameter, equate components, solve two equations, and check the third.
  • Perpendicular: the directions have dot product . In 3D, also show the lines actually meet.

The equation of a line

To reach any point on the line, go from to a known point , then travel some multiple of the direction :

Aλ = 0Bλ = 1λ < 0λ > 1Oab
The line with . The value gives and gives . The segment is , points beyond have , and points behind have .

Writing out the components gives parametric equations. For example, means , and . The vector equation of a line is not unique: any point on the line and any non-zero multiple of the direction give the same line.

CheckpointAnswer before reading on.

In , what does represent?

Select one answer

Hint 1a fixes a point.

Hint 2b fixes a direction.

Hint 3 moves along it.

CheckpointAnswer before reading on.

For the line , which values of give points beyond (on the far side from )?

Select one answer

Hint 1 at B.

Hint 2 at A.

Hint 3Keep going past B.

CheckpointAnswer before reading on.

Which is not an equation of the line ?

Select one answer

Hint 1Any point on the line may be used.

Hint 2Any non-zero multiple of the direction works.

Hint 3Test each base point.

Exam question

Standard · about 3 min

2 marks

Write as three parametric equations, and hence explain why a point lies on the line only if one value of satisfies all three.

Hint 1One equation per component.

Hint 2, and so on.

Hint 3Same λ in each.

Where students lose marks on this one
  • Allowing different λ values in different components.

    Why it happens: Treating components independently.

    One λ fixes one point.

Written for this site.

Connection with y = mx + c

In the plane, direction means "across , up ", so the gradient is . Going the other way, passes through with direction , so . The vector form is more general, because it also handles vertical lines (direction ). It also works unchanged in three dimensions, where there is no single "gradient".

CheckpointAnswer before reading on.

Find the Cartesian equation of the line in the form .

Hint 1Gradient is .

Hint 2Through (1, 2).

Hint 3.

CheckpointAnswer before reading on.

Write in the form .

Hint 1Find a point on the line.

Hint 2(0, 5).

Hint 3Gradient 2 means direction (1, 2).

CheckpointAnswer before reading on.

Which line has a vector equation but no equation of the form ?

Select one answer

Hint 1Which direction has no gradient?

Hint 2Run of zero.

Hint 3Vertical lines.

Finding lines and testing points

Worked example4 marks

A line through two points, and testing points

and . (a) Find a vector equation of line and of segment . (b) Does lie on the line? On the segment? (c) Does lie on the line?

(a) Direction

End minus start.

. The line is , and the segment is the same equation with .

(b) Test P

Find λ from x, check y and z.

gives . Then and . Both agree, so is on the line. Since , is beyond and not on the segment.

(c) Test Q

Same method.

gives . Then agrees, but . So is not on the line.

Answer

(a) , with for the segment. (b) On the line, not on the segment. (c) Not on the line.

Is that answer sensible?

For , two of the three components matched. That is why every component must be checked.

CheckpointAnswer before reading on.

Find a vector equation of the line through and .

Hint 1Direction .

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

Write a vector equation for the line segment from to , and give the parameter value at the point that divides in the ratio .

Hint 1Restrict .

Hint 2 at and at .

Hint 3One third of the way.

CheckpointAnswer before reading on.

Find a vector equation of the line through parallel to .

Hint 1Same direction.

Hint 2Base point .

Hint 3Write it down.

Exam question

Straightforward · about 3 min

2 marks

Determine whether (a) and (b) lie on .

Hint 1Solve for λ from one component.

Hint 2Check the others with the same λ.

Hint 3All three must agree.

Where students lose marks on this one
  • Checking only the x-component.

    Why it happens: Stopping after finding λ.

    Every component must give the same λ.

Written for this site.

Exam question

Standard · about 3 min

2 marks

The point lies on . Find .

Hint 1Use the y-component to find .

Hint 2.

Hint 3Check z, then find x.

Where students lose marks on this one
  • Not checking z.

    Why it happens: Assuming consistency.

    Confirm with the remaining component.

Written for this site.

Exam question

Standard · about 3 min

2 marks

Use a vector equation of a line to decide whether , and are collinear.

Hint 1Line through A and B.

Hint 2.

Hint 3Test C.

Where students lose marks on this one
  • Checking only one component.

    Why it happens: Partial check.

    Every component must fit λ = 3.

Written for this site.

Exam question

Standard · about 3 min

2 marks

Find where the line meets the -plane.

Hint 1xy-plane: z = 0.

Hint 2.

Hint 3.

Where students lose marks on this one
  • Setting x = 0.

    Why it happens: Wrong plane.

    The xy-plane is z = 0.

Written for this site.

Exam question

Standard · about 4 min

3 marks

Find the points where the line meets the sphere .

Hint 1Substitute the components.

Hint 2.

Hint 3.

Where students lose marks on this one
  • Giving only λ = 2.

    Why it happens: Forgetting the negative root.

    A line through the centre meets the sphere twice.

Written for this site.

Parallel lines

Two lines are parallel when their directions are scalar multiples. Parallel lines are either distinct or coincident (the same line), so after checking the directions, test whether a point of one line lies on the other.

Worked example3 marks

Parallel, and possibly the same line

and . Are the lines parallel? Are they the same line?

Directions

Look for a scalar multiple.

, so the lines are parallel.

Test a point

Is (3, −3, 7) on ℓ₁?

gives . Then and . Both agree.

Answer

The lines are parallel, and they share the point , so they are the same line.

Is that answer sensible?

The two equations use different base points and directions, which is why they look different.

Exam question

Standard · about 4 min

3 marks

Show that and are parallel but distinct.

Hint 1.

Hint 2Is on ?

Hint 3Test with one component.

Where students lose marks on this one
  • Concluding parallel lines are distinct without checking.

    Why it happens: Forgetting coincident lines.

    Parallel lines might be the same line.

Written for this site.

Exam question

Standard · about 3 min

2 marks

The lines with directions and are parallel. Find .

Hint 1.

Hint 2 and .

Hint 3.

Where students lose marks on this one
  • Setting 6 = a/2.

    Why it happens: Using the scale factor the wrong way.

    Find the factor from the complete pair (2 and 4).

Written for this site.

Intersecting and perpendicular lines

Give each line its own parameter and equate components. In 3D this gives three equations in two unknowns: solve two, then check the third. If the third fails and the lines are not parallel, they are skew, meaning they never meet and are not parallel. Skew lines cannot happen in the plane.

3D model

Line 1 is fixed. Line 2 passes through (0, 1, h) and its direction is set by an angle around the z-axis and a tilt up from the xy-plane. In two dimensions two lines either meet or are parallel; in three dimensions they can also miss each other without being parallel. Such lines are skew, and the short orange segment joins their closest points.

1.5
120 °
0 °

Line 1 passes through in the direction . Line 2 passes through . With and the tilt at zero, line 2 stays at height while line 1 stays in the -plane, so the two lines never meet, yet they point in different directions: they are skew. The orange segment is the shortest distance between them.

Lines r = a + λu and r = b + μv are parallel when u and v are multiples of each other. Otherwise solve a + λu = b + μv component by component: if all three equations are satisfied the lines intersect, and if they are inconsistent the lines are skew. The shortest distance is measured along the common perpendicular, in the direction u × v. Drag to turn the model; scroll or pinch to zoom.

Set and the lines lie in the same plane, so they intersect unless they are parallel. Tilting line 2 can also make the lines meet: set and , then tilt line 2 to and it passes through on line 1. Try with zero tilt to make the lines parallel, and notice that the shortest distance then stays the same all along them.

Worked example4 marks

Lines meeting at right angles

Show that and intersect at right angles, and find the point of intersection.

Perpendicular directions

Dot product of the directions.

.

Equate components

Separate parameters.

, , and .

Solve and check

Two equations fix λ and μ; the third confirms.

The third gives , and the first gives . Check the second: . Consistent.

Answer

The lines meet at , and their directions are perpendicular, so they intersect at right angles.

Is that answer sensible?

at gives , and at gives .

CheckpointAnswer before reading on.

The lines with directions and are perpendicular. Find .

Hint 1Dot product of directions is 0.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

Find the acute angle between and , in degrees.

Hint 1Angle between direction vectors.

Hint 2Dot product 1.

Hint 3.

Exam question

Standard · about 5 min

3 marks

Find the point of intersection of and .

Hint 1Equate components.

Hint 2, , .

Hint 3Check all three.

Where students lose marks on this one
  • Using the same parameter for both lines.

    Why it happens: Writing λ for both.

    Each line needs its own parameter.

Written for this site.

Exam question

Harder · about 6 min

4 marks

Show that and intersect at right angles, and find the point of intersection.

Hint 1Dot the directions.

Hint 2.

Hint 3Equate components to find the point.

Where students lose marks on this one
  • Stopping after the dot product.

    Why it happens: Assuming perpendicular lines intersect.

    In 3D they might be skew.

Written for this site.

Exam question

Harder · about 5 min

3 marks

Show that and do not intersect.

Hint 1Equate and solve two equations.

Hint 2, .

Hint 3Test the third.

Where students lose marks on this one
  • Solving two equations and declaring an intersection.

    Why it happens: Not checking the third.

    Three equations, two unknowns: always verify.

Written for this site.

Exam question

Harder · about 6 min

4 marks

Find the foot of the perpendicular from to the line , and hence the shortest distance from to the line.

Hint 1A general point is .

Hint 2.

Hint 3.

Where students lose marks on this one
  • Using |OP| as the distance.

    Why it happens: Measuring to the wrong point.

    The shortest distance is along the perpendicular.

Written for this site.

Common mistake

ℓ₁: r = (1, 0, 1) + λ(1, 1, 0) and ℓ₂: r = (3, 1, 0) + λ(0, 1, 1). Equate and solve for λ.

Why it happens: Using one parameter forces both points to be at the same parameter value, which is almost never true where the lines meet.

Rename one parameter () before equating. With a single you will usually find a false "no intersection".

What lifts this to a Band 6

In 3D line questions, write the check of the third equation as a separate line ("Check : ✓"). Markers look for it explicitly, and it is the step that tells intersecting lines apart from skew lines.

Shortest distance from a point to a line

The closest point on a line to an external point is where is perpendicular to the direction. Write as a general point on the line, then set and solve for . This is the vector projection in disguise: is the projection of onto . So the distance is . The same "general point, then a perpendicular condition" method also finds the shortest distance between two skew lines, which is a common extension.