Lesson 30 of 46 · Algebra
Coordinate geometry: lines, slopes and intercepts
Find slopes and intercepts, write the equation of a line, use parallel and perpendicular slopes, and find midpoints and distances on the plane.
About 22 minutes
In this lesson
- Find the slope of a line from two points or from its equation in any form.
- Write the equation of a line from a point and a slope, and find its intercepts.
- Use the slope rules for parallel and perpendicular lines.
- Find the midpoint of, and the distance between, two points.
The idea
Slope is rise over run
The slope of the line through and is
It measures how much changes when increases by 1. Take both differences in the same order: if you start the top with the second point, start the bottom with the second point too. Mixing the order flips the sign.
| Slope | The line |
|---|---|
| positive | rises from left to right |
| negative | falls from left to right |
| zero | horizontal, |
| undefined | vertical, |
Three forms of a line
Slope-intercept form, : is the slope and is the -intercept, where the line crosses the -axis. This is the most useful form for reading a line at a glance.
Point-slope form, : use it when you know one point and the slope. Then rearrange to .
Standard form, : common in questions. To read its slope, solve for : , so the slope is . Forgetting the minus sign is the usual slip.
Intercepts
The -intercept is where ; the -intercept is where . For , setting gives , and setting gives . Standard form makes intercepts quick; slope-intercept form makes the slope quick. Choose the form that suits the question.
Is a point on the line?
A point lies on a line exactly when its coordinates satisfy the equation. To test against , substitute : . It matches, so the point is on the line. This is often the fastest way through a question that lists points as options.
Parallel and perpendicular lines
- Parallel lines have equal slopes (and different intercepts).
- Perpendicular lines have slopes whose product is : each slope is the negative reciprocal of the other. A slope of pairs with ; a slope of pairs with .
Both parts of "negative reciprocal" matter. Flipping the fraction without changing the sign, or changing the sign without flipping, gives a line that is not perpendicular. A horizontal line (slope 0) is perpendicular to a vertical line, which has no slope; this is the one case the product rule does not cover.
Midpoint and distance
The midpoint of and averages the coordinates:
The distance between them comes from the Pythagorean theorem, with the horizontal and vertical gaps as the two legs:
Sketching the right triangle is often quicker than the formula, and it shows when the gaps form a familiar triple such as 6, 8, 10.
Regions on either side of a line
An inequality such as describes the points above the line , and the points below it. To check which side a region is on, test a convenient point such as : here is true, so the origin is in the region .
Draw it
Even a rough sketch on scratch paper catches sign errors. A line through and obviously falls, so a positive slope is impossible; a perpendicular slope that has the same sign as the original slope is impossible too.
Worked examples
Example 1: From two points to an equation
Find the equation of the line through and , and its -intercept.
Slope, taking both differences in the same order: .
Point-slope form with : , so .
Check with the other point: . It matches.
-intercept: set , so and .
Answer
, with -intercept 1 and -intercept 2. Computing as would give a slope of , which the check with rejects.
Example 2: A perpendicular line through a point
Find the line perpendicular to that passes through .
Slope of the given line: , so and the slope is .
Negative reciprocal: flip to and change the sign to get . Check: .
Point-slope form: , so .
Check the point: .
Answer
. Using (flipped but not negated) gives a line that is not perpendicular.
Example 3: The triangle cut off by a line
The line and the two axes enclose a triangle. Find its area and the length of its longest side.
Intercepts: gives ; gives . The vertices are , and .
The legs lie along the axes, with lengths 8 and 6, so the area is .
The longest side joins and : .
Answer
The area is 24 and the longest side is 10. Forgetting the gives 48.
Example 4: Midpoint and distance
Find the midpoint of, and the distance between, and .
Midpoint: .
Gaps: horizontal , vertical , which has length 8.
Distance: .
Check: the midpoint should be half the distance from each end; from to is .
Answer
The midpoint is and the distance is 10.
Common traps
Run over rise
Slope is the change in over the change in . Writing it upside down gives the reciprocal, which is often an option. Say "rise over run" as you write it.
The sign of a slope from standard form
has slope . For the slope is . Solving for is slower but safer than a remembered formula.
Half a negative reciprocal
A line perpendicular to slope has slope . Only flipping () or only negating () is wrong, and both are tempting options.
Subtracting a negative coordinate
, not 2. Write the brackets in every difference of coordinates.
Check yourself
Answer each question before you open its answer.
Question 1: From two points to the intercept
Coordinate Geometry
Line passes through the points and . What is the -intercept of line ?
- A.
- B.
- C.
- D.
- E.
Show the answer
Answer: A.
Working
Slope: . Then , so . Check with the other point: .
Why the other options are wrong
- B. Uses the slope upside down, , so .
- C. This is the -intercept, where , not the -intercept.
- D. Uses a slope of , with the differences taken in opposite orders, so .
- E. From , adds 4 instead of subtracting it.
What carries over
Find the slope, then substitute one point into and check with the other point.
Question 2: Comparing two slopes
Quantitative Comparison
Line has equation . Line is perpendicular to line .
| Quantity A | Quantity B |
|---|---|
| The slope of line | The slope of line |
- A.Quantity A is greater.
- B.Quantity B is greater.
- C.The two quantities are equal.
- D.The relationship cannot be determined from the information given.
Show the answer
Answer: A. Quantity A is greater.
Working
Solve for : , so , and the slope of is . The perpendicular slope is . Since , Quantity A is greater.
Why the other options are wrong
- B. Reads the slope of as by dropping the sign of ; then the perpendicular slope would be , which is larger.
- C. Equal slopes belong to parallel lines; perpendicular lines have slopes that multiply to .
- D. Line could be any of many perpendicular lines, but all of them share the slope .
What carries over
Rewrite a line in the form y = mx + b before reading its slope, then take the negative reciprocal for a perpendicular line.
Question 3: Which point is on the line?
Coordinate Geometry
A line has slope and -intercept 3. Which of the following points lies on the line?
- A.
- B.
- C.
- D.
- E.
Show the answer
Answer: C.
Working
The line is . At : , so is on the line. Testing the others: gives 5, gives 2.5, gives 1.5, and gives 2, none matching.
Why the other options are wrong
- A. Lies on the line with slope ; on the given line, gives .
- B. Lies on a line with slope , the slope flipped upside down; the given line has at .
- D. Treats 3 as the -intercept; the -intercept is 6, and at the line has .
- E. Lies on a line with slope 2, the reciprocal without the sign; the given line has at .
What carries over
To test a point, substitute its x-coordinate into the equation and compare the y-value.
Key points
Slope is rise over run, with both differences in the same order.
Read a slope from ; for it is .
Parallel lines share a slope; perpendicular slopes are negative reciprocals.
Intercepts: set for the -intercept and for the -intercept.
Distance is the Pythagorean theorem on the horizontal and vertical gaps.
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.