Constructing Linear Functions
A non-vertical line is determined by its slope and one point. Find slope from points, tables, or rates, then use slope-intercept or point-slope form to build and verify an equation. Distinguish vertical from horizontal lines, and use slope relationships to construct parallel and perpendicular lines.

Two Clues Make a Line
A mountain tram on a perfectly straight track provides a concrete picture of constant steepness. One equation can describe the entire straight track
Consider two points: A(3, -2) and B(-1, 6). Exactly one straight line passes through both. What is this line's equation? The first clue to building it is the slope, a number that describes the line's steepness. After finding the slope, we will use one of the points to write the equation
Finding Slope from Two Points
Slope measures how steep a line is. For points (x₁, y₁) and (x₂, y₂) with different x-values, the formula is m = (y₂ - y₁)/(x₂ - x₁). This is rise over run: the change in y divided by the change in x
Example: slope through A and B
Find the slope of the line through A(3, -2) and B(-1, 6). Label A as (x₁, y₁) and B as (x₂, y₂). Substituting gives m =
$$6 - (-2)$$
/(-1 - 3)
The numerator is 6 - (-2) = 6 + 2 = 8. The denominator is -1 - 3 = -4. Therefore, m = 8/(-4) = -2. The line falls 2 units for every 1 unit it runs to the right
Practice 1
Slope from Tables and Special Lines
A table is a collection of points
In the table below, each column pairs an x-value with the y-value directly beneath it. The columns represent (2, 9), (5, 7), (8, 5), and (11, 3). Because these points belong to a linear function, the slope is constant: any two columns give the same slope
| Coordinate | First point | Second point | Third point | Fourth point |
|---|---|---|---|---|
| x | 2 | 5 | 8 | 11 |
| y | 9 | 7 | 5 | 3 |
To find the slope, use (2, 9) and (5, 7): m = (7 - 9)/(5 - 2) = -2/3. Check with a different pair, (8, 5) and (11, 3): m = (3 - 5)/(11 - 8) = -2/3. Both pairs give the same slope
Practice 2: a rate from measurements
A pool is draining at a steady rate. After 2 minutes, it contains 30 gallons; after 6 minutes, it contains 18 gallons. Treat time as x and gallons as y, so the measurements form the points (2, 30) and (6, 18)
Vertical and horizontal lines
The vertical line through (-4, 1) and (-4, 3) has the same x-value at both points. The slope calculation gives m = (3 - 1)/
$$-4 - (-4)$$
= 2/0. Division by zero is not allowed, so the slope is undefined. Every point on this line has x = -4, which is also its equation
For the horizontal line y = 2, every point has the same y-value. Between distinct points on this line, the change in y is zero, so the slope is exactly 0
| Line type | Coordinate that stays fixed | Slope | Equation form |
|---|---|---|---|
| Vertical | x | Undefined | x = a |
| Horizontal | y | 0 | y = b |
Practice 3: classify the lines
Classify each line as having undefined slope or slope 0: the line through (5, -1) and (5, 6); the line y = -3; and the line through (-2, 4) and (6, 4)
The line through (5, -1) and (5, 6) is vertical and has undefined slope because x stays 5. The line y = -3 is horizontal and has slope 0. The line through (-2, 4) and (6, 4) is also horizontal and has slope 0 because y stays 4
Writing the Equation
Once the slope is known, two equation forms provide routes to the same non-vertical line. Choose the form that makes the given information easiest to use
| Form | Equation | Meaning and use |
|---|---|---|
| Slope-intercept | y = mx + b | m is the slope. b is the y-intercept: the y-value when x = 0. Use this form when b is known or easy to find. |
| Point-slope | y - y₁ = m(x - x₁) | m is the slope and (x₁, y₁) is a known point on the line. Use this form with a slope and any known point; the intercept is not required. |
What does m change?
For the family of lines y = mx + 1, a positive m makes the line rise from left to right, while a negative m makes it fall. Every line in this family passes through (0, 1). Changing m changes the tilt, but the y-intercept stays fixed because b remains 1
Equation from a table: two routes
The following table shows a linear function. Write its equation
| Coordinate | First point | Second point | Third point | Fourth point |
|---|---|---|---|---|
| x | 0 | 4 | 8 | 12 |
| y | -3 | 0 | 3 | 6 |
Route 1—slope-intercept form: use (0, -3) and (4, 0) to find m =
$$0 - (-3)$$
/(4 - 0) = 3/4. The table gives y = -3 when x = 0, so b = -3. Substituting into y = mx + b gives y = (3/4)x - 3
Route 2—point-slope form: use m = 3/4 and the non-intercept point (4, 0). Then y - 0 = (3/4)(x - 4). Distribute: (3/4)(-4) = -3, so y = (3/4)x - 3. Both routes produce exactly the same equation
Solving the opening mystery
For A(3, -2) and B(-1, 6), we found m = -2. Use A in point-slope form: y - (-2) = -2(x - 3), or y + 2 = -2(x - 3)
Distribute, noting that -2(-3) = +6: y + 2 = -2x + 6. Subtract 2 from both sides to obtain y = -2x + 4. Verify with B: when x = -1, y = -2(-1) + 4 = 6, exactly the y-coordinate of B
Practice 4: complete point-slope form
Complete the point-slope equation of the line with slope -2 through (3, 5): y -
$$value$$
= -2(x -
$$value$$
). The available values are 5, 3, -5, and -3
In y - y₁ = m(x - x₁), the value subtracted from y is the point's y-coordinate, 5, and the value subtracted from x is its x-coordinate, 3. The completed equation is y - 5 = -2(x - 3). Keep the coordinates in their proper roles and retain the subtraction signs already in the form
Parallel and Perpendicular Lines
When their slopes are defined, parallel lines have equal slopes: the same tilt without meeting. Perpendicular lines, when their slopes are defined, have opposite reciprocal slopes. To find an opposite reciprocal, flip the fraction and change its sign
For example, a slope of 3/2 becomes 2/3 after flipping, then -2/3 after changing the sign
Quick slope check
What is the slope of a line parallel to a line with slope -3? It is -3, because parallel lines have the same slope. What is the slope of a line perpendicular to a line with slope 3/2? It is -2/3, found by flipping the fraction and changing its sign
Example: building a parallel line
Write, in slope-intercept form, the equation of the line parallel to y = -3x + 4 that passes through (2, -1). Parallel means the new slope is m = -3. Reuse the slope, not the intercept: the new line must pass through the given point
Substitute into point-slope form: y - (-1) = -3(x - 2), so y + 1 = -3(x - 2). Since -3(-2) = +6, distribution gives y + 1 = -3x + 6. Subtract 1: y = -3x + 5
Check the point: -3(2) + 5 = -1. The equation passes through (2, -1), and its slope -3 matches the original line's slope
Example: building a perpendicular line
Write, in slope-intercept form, the equation of the line perpendicular to y = (3/2)x - 4 that passes through (6, 1). Transform the given slope in two steps: 3/2 → 2/3 → -2/3. The new slope is m = -2/3
Use the point (6, 1): y - 1 = (-2/3)(x - 6). Because (-2/3)(-6) = +4, distribution gives y - 1 = (-2/3)x + 4. Add 1 to both sides: y = (-2/3)x + 5
Verify at x = 6: (-2/3)(6) + 5 = -4 + 5 = 1. The line passes through (6, 1), and its slope -2/3 is the opposite reciprocal of 3/2
Practice 5
Summary
Slope: m = (y₂ - y₁)/(x₂ - x₁), provided the denominator is not zero. Keep each point's coordinates paired and use the same subtraction order on top and bottom. For a linear function, points taken from any two table columns give the same slope
Special lines: vertical lines have undefined slope and equations x = a. Horizontal lines have slope 0 and equations y = b. Undefined slope and zero slope are different
Two forms: use y = mx + b when the y-intercept b is known or easy to find. Use y - y₁ = m(x - x₁) when the slope and any point are known. These are two ways to describe the same non-vertical line
Related lines: when slopes are defined, parallel lines have the same slope and perpendicular lines have opposite reciprocal slopes. For a perpendicular slope, flip the fraction and change the sign. Get the correct slope first, substitute the given point, simplify, and verify that the final equation passes through that point
Quiz
Quiz 1: match each line to its slope
Match each line to its slope: the line through (0, 2) and (4, 10); the line through (-1, 3) and (5, 3); and the line through (2, -1) and (2, 6). The available slopes are 2, 0, and undefined
The line through (0, 2) and (4, 10) matches slope 2: m = (10 - 2)/(4 - 0) = 8/4 = 2. The line through (-1, 3) and (5, 3) matches slope 0 because both y-values are 3. The line through (2, -1) and (2, 6) matches undefined slope because both x-values are 2
Quiz 2: an equation from growth measurements
A bamboo shoot grows at a steady rate. At week 0 it is 1 cm tall, at week 2 it is 4 cm tall, and at week 4 it is 7 cm tall. Let x be the number of weeks and y be the height in centimeters