Lesson 17 of 42 · Geometry and trigonometry
Points, distances and lines in the plane
Find distances, midpoints and slopes, write the equation of a line, and spot parallel and perpendicular lines and where two lines meet.
About 22 minutes
In this lesson
- Compute the distance and the midpoint between two points, and the distance from a point to a line.
- Find the slope of a line from two points or from an equation in the form .
- Write the equation of a line through a point, parallel or perpendicular to a given line.
- Find the intersection of two lines by solving a system.
The idea
Points and distance
A point in the plane is a pair . The distance between and is the hypotenuse of a right triangle whose legs are the horizontal gap and the vertical gap :
Because each gap is squared, the order of the points does not matter and negative gaps cause no harm. The midpoint of averages the coordinates:
Distance subtracts; midpoint adds. Mixing the two is the commonest slip in this topic.
Slope
The slope of the line through and is the vertical change per unit of horizontal change:
Subtract in the same order on top and bottom. A positive slope rises from left to right, a negative slope falls, a slope of 0 is a horizontal line, and a vertical line (where ) has no slope at all. The slope is also the tangent of the angle the line makes with the positive -axis, which links this lesson to trigonometry: a slope of 1 means a 45° line.
Equations of a line
Every non-vertical line can be written as , where is the slope and the -intercept, the height at which it crosses the -axis. Two other forms are just as useful:
- Point and slope. The line through with slope is . This is the fastest way to write a line when a question gives a point and a direction.
- General form. covers every line, vertical ones included. If , solving for gives , so the slope is .
Vertical lines are ; horizontal lines are . A point lies on a line exactly when its coordinates satisfy the equation, which is also the quickest way to test an answer option.
Parallel and perpendicular
Two non-vertical lines are parallel when their slopes are equal, . They are perpendicular when the product of their slopes is , that is : flip the fraction and change its sign. A line of slope is perpendicular to every line of slope . The special case: a horizontal line is perpendicular to a vertical one, though neither formula covers it.
In general form there is a shortcut. The lines parallel to are for any : keep and , change the constant. The lines perpendicular to it are : swap and and change one sign. Then fix by substituting the given point.
Where two lines meet
The intersection point satisfies both equations, so solve them as a system, by substitution or by elimination. The system has exactly one solution when the slopes differ, none when the lines are parallel and distinct, and infinitely many when the two equations describe the same line (one is a multiple of the other).
Distance from a point to a line
The shortest distance from to the line is measured along the perpendicular:
The line must be in general form, with everything on one side, before you read off , and . This formula returns in the lesson on lines and conics, where comparing a distance with a radius decides whether a line cuts a circle.
Working without a calculator
Coordinates in these questions are chosen to give tidy numbers: gaps of 6 and 8 give a distance of 10, a denominator of divides cleanly. If your working produces an ugly root, recheck a subtraction before you trust it.
Worked examples
Example 1: Distance, midpoint, slope and equation
For and , find , the midpoint of , the slope of line and its equation.
Gaps: horizontally and vertically.
Distance: .
Midpoint: .
Slope: .
Point and slope through : . Multiply by 3: , so . Check with : .
Answer
, midpoint , slope , line . Writing the slope as , run over rise, is the tempting inversion.
Example 2: A perpendicular through a given point
Find the line through perpendicular to .
Slope of the given line: .
Perpendicular slope: flip and change sign, .
Point and slope: . Multiply by 3: , so .
Check with the shortcut: swapping and and changing one sign gives , and gives , so . The same line.
Answer
The line is . Taking only the negative () or only the reciprocal () gives a line that is not perpendicular.
Example 3: Where two lines cross
Find the intersection of and .
The slopes are and , which differ, so there is exactly one intersection. (Their product is , so the lines are not perpendicular.)
From the first equation, . Substitute into the second: , so and .
Then .
Check in both: and .
Answer
The lines meet at .
Example 4: Distance from a point to a line
Find the distance from to the line .
Put the line in general form first: , so , , .
Numerator: . Denominator: .
Distance: .
Second route: the perpendicular from runs in the direction . The point is on the line when , so , giving the foot . Its distance from is .
Answer
The distance is . Using , from the equation before it was rearranged, gives , which is wrong.
Common traps
Half a perpendicular
The perpendicular slope needs both moves: reciprocal and sign change. From slope , the perpendicular slope is ; is the slope of a line with the opposite tilt, and is a line of similar tilt. Check by multiplying: the product must be .
Reading the slope off the general form
In the slope is , not , not . For it is . If in doubt, solve for .
Mismatched order in the slope
Writing flips the sign of the slope. Subtract the coordinates of the same point first, top and bottom.
Distance formula on an unrearranged equation
The point-to-line formula needs everything on one side equal to zero. With the constant is , not .
Check yourself
Answer each question before you open its answer.
Question 1: Distance between two points
Points and distances
What is the distance between and ?
- A.
- B.
- C.
- D.
Show the answer
Answer: B.
Working
The gaps are and . Distance: .
Why the other options are wrong
- A. This adds the coordinates instead of subtracting them, giving gaps of 2 and 2. That is the route to the midpoint, not to the distance.
- C. This adds the two gaps, . A straight line is shorter than going across and then up: the gaps are legs of a right triangle.
- D. This is the sum of the squared gaps, the distance squared; the square root was left out.
What carries over
Distance squares the gaps, adds them and takes the root; the sign of each gap does not matter.
Question 2: A parallel through a point
Lines
Which line passes through and is parallel to ?
- A.
- B.
- C.
- D.
Show the answer
Answer: D.
Working
Parallel lines keep and : . Through : , so . Check by slopes: the given line has slope , and so does the answer.
Why the other options are wrong
- A. This line has slope , so it is perpendicular to the given line, not parallel.
- B. This line has slope , the reciprocal of the right slope; it comes from reading the slope of the given line as with a sign slip.
- C. This is the given line itself. It does not pass through : , not 0.
What carries over
For a parallel line, keep the coefficients of x and y and choose the constant that fits the point.
Question 3: Making two lines perpendicular
Lines
For which value of is the line perpendicular to the line ?
- A.
- B.
- C.
- D.
Show the answer
Answer: C.
Working
The second line is , slope 3. The first has slope . Perpendicular means , so . Check: the first slope is then , and .
Why the other options are wrong
- A. With the first line has slope 3, equal to the second: the lines are parallel, not perpendicular.
- B. This gives slope , the reciprocal of 3 without the sign change; the product of slopes is .
- D. This gives slope , the negative of 3 without the reciprocal; the product of slopes is .
What carries over
Perpendicular slopes multiply to minus one: reciprocal and sign change together.
Key points
Distance subtracts; the midpoint averages.
The slope of is .
Parallel: equal slopes. Perpendicular: slopes multiply to .
Point to line: , with the line written as first.
All questions here are original and written for UniExamer; none comes from the test maker.
Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.