Equations of Lines in 2-Space
You already know . Vectors give you new ways to describe the same line: by a point and a direction, or by a point and a vector perpendicular to the line. These forms look like extra work in 2-space, but they’re the ones that carry over to 3-space, where slope stops making sense.
Key ideas
Section titled “Key ideas”Components are written in square brackets, like , as in most Ontario textbooks. Some books write or ; they mean the same thing.
The vector equation
Section titled “The vector equation”A line is fixed by one point on it and its direction. Let be a point on the line, with position vector , and let be a direction vector: any non-zero vector parallel to the line. Then every point on the line has position vector
Here and is a parameter. Think of it as a set of instructions: start at and walk copies of . Positive goes one way, negative the other, and gives itself.
Parametric equations
Section titled “Parametric equations”Write the vector equation one component at a time:
These are the parametric equations of the line. They’re handy for finding points: pick a value of and compute and .
The scalar equation and the normal vector
Section titled “The scalar equation and the normal vector”The scalar equation (or Cartesian equation) of a line is
The vector is a normal vector: it is perpendicular to the line.
Here’s why. Take a fixed point and any point on the line. The vector lies along the line, so it is perpendicular to , and their dot product is zero:
The bracket is a constant, . So to write a scalar equation, you need a normal vector and one point.
Switching between a normal and a direction
Section titled “Switching between a normal and a direction”In 2-space, swapping the components and changing one sign turns a normal into a direction vector (and back):
Check: , so they are perpendicular. The slope of the line is , which also equals (when the line isn’t vertical).
Vertical lines have no slope, but the vector forms handle them easily. The line (that is, ) has normal , which is horizontal, so the line is vertical, with direction : .
Converting between forms
Section titled “Converting between forms”| From | To | How |
|---|---|---|
| vector | parametric | read off the components |
| vector or parametric | scalar | get from , then find using the point |
| parametric | scalar | or: solve one equation for and substitute into the other |
| scalar | vector | get from ; find any point (set or ) |
None of these forms is unique. A different point, or a direction vector that is a non-zero multiple of , gives a different-looking equation for the same line.
Parallel and perpendicular lines
Section titled “Parallel and perpendicular lines”- Two lines are parallel when their direction vectors (or their normals) are scalar multiples of each other.
- Two lines are perpendicular when their direction vectors have a dot product of zero (equivalently, their normals do).
Parallel lines can still be the same line. To tell, check whether a point on one line is on the other.
Is a point on the line?
Section titled “Is a point on the line?”- Scalar equation: substitute the point; it’s on the line if you get .
- Vector or parametric equation: solve each component equation for . The point is on the line only if every component gives the same .
Where two lines meet
Section titled “Where two lines meet”Two lines in 2-space that aren’t parallel always meet in exactly one point. How you find it depends on the forms:
- One line in vector form, one scalar: substitute the parametric equations into the scalar equation and solve for .
- Both in vector form: give the lines different parameters, say and . Set the -components equal and the -components equal. That’s two equations in and . Solve them, then substitute into the first line (and check with in the second).
Why two parameters? The meeting point is usually reached at a different parameter value on each line. Using for both would ask for a point that both lines reach at the same , which is a different question.
That different question matters when is time. If two objects move along the lines, their paths cross at the intersection point, but they only collide if they get there at the same time, that is, with .
The closest point on a line
Section titled “The closest point on a line”The shortest distance from a point to a line is measured along the perpendicular. Any other segment from to the line is the hypotenuse of a right triangle, so it’s longer.
To find the closest point :
- Write as a general point of the line, in terms of .
- Write in terms of .
- Set (perpendicular to the line) and solve for .
The distance from to the line is then . You’ll meet a formula for this distance in distances to lines and planes; this method also gives you the point.
Worked examples
Section titled “Worked examples”Example 1: From a point and a direction
Section titled “Example 1: From a point and a direction”A line passes through and is parallel to .
- (a) Write its vector and parametric equations.
- (b) Find two more points on the line.
- (c) Are and on the line?
Solution.
(a) Use :
(b) gives . gives .
(c) For : gives , and gives . Same , so the point is on the line.
For : gives , but then . The point is not on the line.
Example 2: Scalar to vector
Section titled “Example 2: Scalar to vector”Write a vector equation of the line .
Solution. The normal is , so a direction vector is .
For a point, set : , so . The point is on the line.
Check: gives , and ✓.
Example 3: Vector to scalar
Section titled “Example 3: Vector to scalar”Find the scalar equation of the line .
Solution. The direction is , so a normal is . The scalar equation has the form
The point is on the line, so , which gives :
Another way: from the parametric equations and , solve the first for : . Substitute:
Both methods agree. This is the line in the figure above.
Example 4: Parallel and perpendicular through a point
Section titled “Example 4: Parallel and perpendicular through a point”Let be the line and let .
- (a) Find the scalar equation of the line through parallel to .
- (b) Find a vector equation of the line through perpendicular to .
Solution.
(a) A parallel line has the same normal, , so its equation is . Substitute : , so .
(b) A perpendicular line runs in the direction of ‘s normal, so use :
Check: has direction , and ✓.
Example 5: Two lines in vector form
Section titled “Example 5: Two lines in vector form”Find the point of intersection of
Solution. The directions and aren’t multiples, so the lines aren’t parallel and must meet. Set the components equal:
From , . Substitute into :
Then .
at : . Check with at : ✓. The lines meet at .
Notice and came out different. Had you used for both lines, you’d have found no solution and wrongly concluded the lines don’t meet.
Example 6: The closest point and the distance
Section titled “Example 6: The closest point and the distance”Find the point on the line closest to , and the distance from to the line.
Solution. A general point on the line is , so
Set :
So and . Check: ✓.
The distance is
(rounded to two decimal places).
Common mistakes
Section titled “Common mistakes”Using the normal as the direction vector. In , the vector is perpendicular to the line, not along it. Swap the components and change one sign to get a direction vector.
Checking only one component. To test a point with parametric equations, you need the same from every component. In Example 1, gives from , but that fails the equation.
Thinking there’s only one right answer. and are the same line. If your answer looks different from the back of the book, check that your point satisfies their equation and your direction is a multiple of theirs.
Sign slips when finding C. Substitute carefully: for at you get , so , not .
Assuming parallel means different. Two lines with parallel direction vectors might be the same line. Test a point from one in the other.
Using the same parameter for two lines. When you intersect two lines in vector form, use for one and for the other. In Example 5 the lines meet at and ; forcing gives no solution at all. (The only time you want the same parameter is when you’re asking whether two moving objects are in the same place at the same time.)
Practice
Section titled “Practice”1. (Warm-up) For the line :
- (a) State a point on the line and a direction vector.
- (b) Write the parametric equations.
- (c) Find the point where .
Solution
(a) Point ; direction vector .
(b) , .
(c) and , so .
2. (Warm-up) State a normal vector and a direction vector for the line .
Solution
Normal: . Direction: swap and change a sign, .
Check: ✓.
3. (Warm-up) The line has parametric equations , . Is on ? Is ?
Solution
For : gives , but then . Not on .
For : gives , and ✓. On .
4. (Core) Find vector, parametric, and scalar equations of the line through and .
Solution
, so is also a direction vector (half of it).
A normal is , so . Using : , so :
Check with : ✓.
5. (Core) Write the line as a scalar equation and as a vector equation.
Solution
Multiply by : , so
Normal , so direction (which matches the slope ). The -intercept gives the point :
6. (Core) Decide whether each pair of lines is parallel, perpendicular, or neither. If parallel, decide whether they’re the same line.
- (a) and
- (b) and ,
Solution
(a) The first line has normal , so direction . The directions are parallel. Test in the first equation: . So the lines are parallel and distinct.
(b) , so the lines are perpendicular.
7. (Core) Find the point of intersection of and . Check your point in both equations.
Solution
Set the components equal:
From , . Substitute into : , so and . Then .
at : . at : ✓. The lines meet at .
8. (Core) Find the point on the line closest to , and the distance from to the line.
Solution
A general point is , so . Set :
So and . Check: ✓.
The distance is (rounded to two decimal places).
9. (Challenge) Find the point where the line meets the line .
Solution
Any point on the first line is . Substitute into the second equation:
The point is .
Check: ✓.
10. (Challenge) A survey drone near Guelph starts at the point on a map grid measured in kilometres and flies in a straight line with velocity km/h, so after hours its position is .
- (a) Where is the drone after 1.5 hours?
- (b) What is its speed?
- (c) Does it fly over a cabin at ? If so, when?
- (d) A second drone’s position after hours is . Where do the two flight paths cross? Are the drones ever in the same place at the same time?
Solution
(a) , so the point .
(b) Speed is the magnitude of the velocity: km/h.
(c) gives , and gives . Same , so yes: the drone passes over the cabin after 4 hours.
(d) For the paths, give the second drone its own parameter :
Add the equations: , so , and then . The first drone at is at ; the second at is at ✓. The paths cross at .
But the first drone is there after 2 hours and the second after 3 hours. The paths cross only at that one point, so the drones are never in the same place at the same time.
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
Equations of lines aren’t unique, so your answer may look different from someone else’s and still be right. Check it by testing points and comparing directions.
Foundations
Section titled “Foundations”H1. (Foundations) A line passes through and is parallel to .
- (a) Write its vector equation and its parametric equations.
- (b) Find the points on the line where and where .
- (c) Show that is on the line, and state the value of that gives it.
- (d) Is on the line? Explain.
H2. (Foundations) Consider the line .
- (a) State a normal vector and a direction vector for the line. Use the dot product to show they are perpendicular.
- (b) Find the - and -intercepts.
- (c) Write a vector equation of the line that starts at the -intercept. Check that your equation passes through the -intercept too.
H3. (Core) A line passes through and .
- (a) Find , and a simpler direction vector parallel to it.
- (b) Write vector and parametric equations of the line.
- (c) Find the scalar equation, and check it using both and .
- (d) Use the parametric equations to find the -intercept. Confirm it with the scalar equation.
H4. (Core) Convert each line to the form asked for.
- (a) , to a scalar equation. Do it two ways: using a normal vector, and by eliminating .
- (b) to a vector equation.
- (c) to a vector equation. (What kind of line is this? What does its normal vector tell you?)
H5. (Core) Let be the line , and let .
- (a) Find the scalar equation of the line through that is parallel to .
- (b) Find a vector equation of the line through that is perpendicular to .
- (c) Decide whether each line below is parallel to , perpendicular to , or neither. If it is parallel, decide whether it is the same line as .
The lines for part (c) are
- : ,
- :
H6. (Core) Find the point of intersection of the lines
Explain why you need two different parameters, and . Check your point in both equations.
Challenge
Section titled “Challenge”H7. (Challenge) (Hypothetical data.) On a map grid measured in kilometres off the coast of Nova Scotia, ship A’s position hours after noon is
- (a) Where is ship A at 2:30 p.m.?
- (b) What is ship A’s speed, to two decimal places?
- (c) Does ship A pass a lighthouse at ? If so, at what time?
- (d) Ship B’s position hours after noon is . Find the point where the two ships’ paths cross.
- (e) Are the two ships ever at the same place at the same time? Explain carefully, using what you found in (d).
H8. (Challenge) Show that these two vector equations describe the same line:
Then decide whether is also the same line. Explain.
H9. (Challenge) Spot the error. Asked for a vector equation of the line through and , a student writes
- (a) Show that the student’s line does not pass through .
- (b) Explain the mistake in one or two sentences.
- (c) Write a correct vector equation and the scalar equation of the line through and .
H10. (Challenge) Let be the line , and let . You want the point on that is closest to .
- (a) Explain why must be perpendicular to the direction vector of . (A quick sketch helps.)
- (b) Write in terms of , and use the dot product to find .
- (c) Find the shortest distance from to , exactly and to two decimal places.