Mathematics · Foundation article
Straight lines, slope and intercepts
Read a straight line as a stated relationship, calculate its slope from consistent signed coordinate changes, and interpret its intersections with the axes. Keep horizontal, vertical and coincident-point cases distinct, attach units and domain conditions to context models, and use numerical scales rather than appearance alone to judge a line’s change.
Useful background article: Coordinates, tables and plotting points
Back to MathematicsAfter reading, you can
- Calculate slope as vertical change divided by nonzero horizontal change between two distinct points, keeping the subtraction order consistent.
- Interpret y = mx + b, find axis intersections with their conditions, and distinguish positive, negative, fractional, horizontal and vertical cases.
- Separate a full stated line from selected samples, preserve context units and domains, and check a slope or intercept against the original relationship and axis scales.
A stated line includes all its permitted points
The scalar equation y = 2x + 1 with real x allowed describes a straight line: every permitted pair satisfying the equation belongs to it. The pairs (−1, −1), (0, 1) and (1, 3) are examples, not the complete line. A drawn segment inside a viewing window shows the visible part of that stated relationship.
Two distinct points determine one straight line. That fact does not prove that an observed situation follows a straight-line model between and beyond two observations. State the equation or the straight-line assumption and its domain before extending samples. Here the explorer stipulates seven full scalar lines; its connections are justified by those equations.
Name the two points and keep their changes signed
Name the first point A = (xA, yA) and the second B = (xB, yB). The horizontal change from A to B is Δx = xB − xA, and the vertical change is Δy = yB − yA. The symbol Δ means change. The differences use coordinate values, not the screen lengths of arrows.
For A = (−1, −1) and B = (0, 1), Δx = 0 − (−1) = 1 and Δy = 1 − (−1) = 2. Both changes are positive. From B back to A, the horizontal change is −1 and the vertical change is −2. A signed change includes direction; it is not always a nonnegative distance.
Divide vertical change by nonzero horizontal change
For a nonvertical straight line, slope is m = (yB − yA)/(xB − xA) = Δy/Δx, requiring Δx ≠ 0. It reports the vertical change per horizontal coordinate unit. With A = (−1, −1) and B = (0, 1), m = 2/1 = 2: increasing x by one increases y by two along this line.
The slope is constant between any two distinct points on the same nonvertical line. In y = mx + b, subtracting the equation at A from the equation at B gives yB − yA = m(xB − xA); the fixed b cancels. Dividing by nonzero Δx explains why the ratio equals m. A longer selected interval changes both differences proportionally while retaining the same slope.
Reverse both differences together
Subtract the coordinates in the same point order in the numerator and denominator. For A = (−1, −1) and B = (1, 3), m = (3 − (−1))/(1 − (−1)) = 4/2 = 2. Reversing the roles gives (−1 − 3)/(−1 − 1) = (−4)/(−2) = 2. Both signed differences reverse, so the slope stays the same.
Reversing only one difference gives a wrong sign. The mismatched ratio (3 − (−1))/(−1 − 1) = 4/(−2) = −2 does not describe this line. Write the point labels and both differences before simplifying. The terms sometimes called rise and run are signed vertical and horizontal changes, not instructions to ignore negative values.
Do not replace a change ratio with y divided by x
Slope compares changes between points. On y = 2x + 1, the point (1, 3) gives y/x = 3, while the line’s slope is two. The offset one makes the coordinate ratio different. The point (0, 1) still belongs to this line even though y/x is undefined there.
For a line through the origin, y = mx, the ratio y/x equals m at points with x ≠ 0 because it compares that point with (0, 0). This is a special case, not the general definition. At the origin itself, 0/0 does not give a slope; select two suitable distinct points instead.
Read the multiplier and the value at horizontal zero
In y = mx + b, m is the slope and b is the equation’s y value at x = 0. For the full scalar line, its vertical-axis intersection is (0, b), called the y-intercept point. In y = 2x + 1, the slope is two and the y-intercept point is (0, 1). The point has two coordinates; b alone is its vertical coordinate.
The fixed b sets the starting level of this written relationship while m describes its change per x unit. If m and a point are known, the same equation gives b = y − mx. A context may allow only some x values. An actual vertical-axis intersection belongs to the allowed graph only if x = 0 is permitted; otherwise b describes the extended equation’s value at zero.
Find an axis intersection by setting its other coordinate to zero
At a horizontal-axis intersection, y = 0. For y = mx + b with m ≠ 0, solve 0 = mx + b to obtain x = −b/m. On y = 2x + 1, this gives x = −1/2 and point (−1/2, 0). Check: 2 × (−1/2) + 1 = 0. A context restriction can exclude the resulting x even when the extended scalar line crosses the axis there.
If m = 0, the equation is y = b. For b ≠ 0 it has no horizontal-axis intersection. For b = 0 the line coincides with the horizontal axis, so every point on that axis is an intersection in the full scalar domain. Do not invent one unique x-intercept for an entire coincident axis. Vertical lines need a separate check of their defining equation.
| Stated line | Horizontal-axis intersections | Vertical-axis intersections |
|---|---|---|
| y = 2x + 1 | One: (−1/2, 0) | One: (0, 1) |
| y = −x + 2 | One: (2, 0) | One: (0, 2) |
| y = (1/2)x − 1 | One: (2, 0) | One: (0, −1) |
| y = 2 | None | One: (0, 2) |
| y = 0 | Every point on the horizontal axis | One: (0, 0) |
| x = 2 | One: (2, 0) | None |
| x = 0 | One: (0, 0) | Every point on the vertical axis |
Interpret positive, negative and zero changes
A positive slope means y increases when x increases; a negative slope means y decreases when x increases. On y = −x + 2, increasing x by one decreases y by one, so m = −1. On y = (1/2)x − 1, increasing x by two increases y by one, so m = 1/2. Exact fractional slope is a change ratio, not an approximate description of the drawing.
A horizontal line has equal y coordinates at different x coordinates. For A = (−1, 2) and B = (1, 2), m = (2 − 2)/(1 − (−1)) = 0/2 = 0. Zero vertical change with nonzero horizontal change is a valid zero slope. This differs from a zero horizontal change, which cannot be used as a divisor.
Keep an undefined vertical slope separate from repeated points
On the vertical line x = 2, distinct points such as (2, −2) and (2, 2) have Δx = 0 and Δy = 4. Their slope ratio would divide by zero, so the slope is undefined. It is not zero or a very large finite number. A vertical line cannot be written as y = mx + b with finite real m and b: one x value has many y values on that line.
If A and B are the same point, both changes are zero and the ratio is 0/0, also undefined. One repeated point does not determine a unique line; many lines pass through it. This differs from two distinct points that determine a vertical line. The explorer always selects distinct A and B, so coincident-point reasoning is explained here rather than offered as a selector state.
Carry units and domain conditions, and read the scale
Suppose a stipulated running distance total has already reached 3 km when its clock is set to t = 0, then grows at constant rate 2 km/h. Its model is D = (2 km/h)t + 3 km for elapsed time t ≥ 0. The slope has unit km/h, and the vertical-axis value is 3 km. The extended equation has horizontal-axis value t = −3/2 h, but negative elapsed time is outside this model, so the permitted graph has no horizontal-axis intersection.
A line’s apparent steepness also depends on the drawing’s axis scales and proportions. Increasing vertical screen space per y unit makes the same numerical relationship look steeper without changing m. Read tick values and units and calculate the change ratio. The explorer keeps equal fixed scalar scales for comparisons; a context plot’s rate units still depend on its named axes.
Change the point pair without changing the line
Start with y = 2x + 1 and pair A = (−1, −1), B = (0, 1). The explorer shows Δx = 1, Δy = 2 and m = 2. Its horizontal and vertical change legs display the signed coordinate changes between the two labelled points. They support reading the ratio and do not represent a travelled path.
Choose among seven stated scalar lines and four point-pair choices, giving 7 × 4 = 28 states. For nonvertical lines the pair choices use x values (−1, 0), (0, 1), (−1, 1) or reversed (1, −1). For the vertical lines the corresponding y values are (−2, 0), (0, 2), (−2, 2) or reversed (2, −2). Every pair contains two distinct points on the chosen line. Reversing their roles replaces each change with its opposite; a zero change remains zero. The defined slope stays the same.
The numerical axes keep the fixed interval −4 to 4 and equal scale. Each full line is clipped to that window, while A, B and their change legs are shown. Horizontal lines report zero slope; vertical lines report undefined slope. Axis intersections are reported as one point, every point on that axis or none, according to the full stated line. Switching the line retains the pair choice, and switching the pair retains the line.
| Line | Slope | Vertical-axis behavior |
|---|---|---|
| y = 2x + 1 | 2 | Point (0, 1) |
| y = −x + 2 | −1 | Point (0, 2) |
| y = (1/2)x − 1 | 1/2 | Point (0, −1) |
| y = 2 | 0 | Point (0, 2) |
| y = 0 | 0 | Point (0, 0) |
| x = 2 | Undefined | No intersection |
| x = 0 | Undefined | Every point on the vertical axis |
Compare two points on a stipulated line
Choose a line and two distinct points A and B. Calculate both signed changes in the same order, from A to B. The full line follows its stated equation; the two selected points help measure its slope.
y = 2x + 1. A(−1, −1) → B(0, 1). Δx = 1; Δy = 2. Slope: 2.
Both axes show scalar coordinates. The chosen points and line stay on the same numerical scales; no physical units are assigned in this explorer.
Each point-pair button lists A first and B second. For nonvertical lines, the four choices use x-values (−1, 0), (0, 1), (−1, 1), and (1, −1). For vertical lines, the corresponding y-values are doubled: (−2, 0), (0, 2), (−2, 2), and (2, −2).
Subtract in the same order
Δx = xB − xA = 0 − (−1) = 1.
Δy = yB − yA = 1 − (−1) = 2.
Divide vertical change by horizontal change
m = Δy / Δx = 2 / 1 = 2.
Reversing A and B negates both signed changes; a zero change remains zero. For a nonvertical line, multiplying both numerator and denominator by −1 leaves their quotient unchanged, so the slope stays the same.
These choices use distinct points. Repeating the same point would give Δx = Δy = 0; 0/0 is undefined and cannot determine a slope.
| Point | x-coordinate | y-coordinate | Original equation check |
|---|---|---|---|
| A | −1 | −1 | −1 = −1 (True) |
| B | 0 | 1 | 1 = 1 (True) |
Check each axis intersection separately
| Axis | Intersection type | Point or extent |
|---|---|---|
| x-axis (y = 0) | One point | (−1/2, 0) |
| y-axis (x = 0) | One point | (0, 1) |
A fixed window into the stated line
A is the blue circle; B is the violet diamond. An amber ring marks a unique x-axis intersection; a green plus marks a unique y-axis intersection. Larger intersection symbols remain visible when they coincide with A or B. Dashed legs show horizontal and vertical changes.
A(−1, −1); B(0, 1).
All displayed coordinates, changes, slopes and intersection points are exact. Changing a point pair keeps the line and viewing scale; changing the line keeps the pair choice.
Check the equation before interpreting the picture
Verify that both selected points satisfy the stated equation, compute the two differences in the same order, and divide only by a nonzero horizontal change. Check axis intersections by substituting the appropriate zero coordinate into the original relationship. Retain an undefined or all-intersection conclusion when that is the correct mathematical case.
A pair calculation describes a line’s slope under the stated straight-line relationship; it does not establish that an unknown real situation is linear over every input. Preserve any context domain and rate units, and read the drawing’s scales before comparing appearance. The next lesson, Reading graphs and spotting misleading scales, develops how to assess the information a graph displays and the choices that can change its impression.
Worked examples
Reverse a pair and keep the same slope
For the stated line y = 2x + 1, use A = (−1, −1) and B = (1, 3). Find the slope in both point orders, identify b and verify the horizontal-axis intersection.
- Check the points: 2 × (−1) + 1 = −1 and 2 × 1 + 1 = 3, so both satisfy the stated line.
- From A to B, Δx = 1 − (−1) = 2 and Δy = 3 − (−1) = 4, giving m = 4/2 = 2.
- From B to A, Δx = −2 and Δy = −4, giving m = (−4)/(−2) = 2. The same order is used in both differences.
- At x = 0, y = 1, so b = 1 and the y-intercept point is (0, 1). Setting y = 0 gives x = −1/2; the check 2 × (−1/2) + 1 = 0 confirms (−1/2, 0).
Both point orders give slope two. The full scalar line has y-intercept point (0, 1) and horizontal-axis intersection (−1/2, 0).
Read a fractional slope through exact changes
For the stated line y = (1/2)x − 1, use the points (−2, −2) and (2, 0). Calculate m and identify both axis intersections. Why does another suitable pair on the same line give the same slope?
- Check the supplied example points: (1/2) × (−2) − 1 = −2 and (1/2) × 2 − 1 = 0.
- The horizontal change is 2 − (−2) = 4, while the vertical change is 0 − (−2) = 2. Thus m = 2/4 = 1/2.
- At x = 0, y = −1, giving (0, −1). At y = 0, solve (1/2)x − 1 = 0 to obtain x = 2, giving (2, 0).
- For any other two distinct points on this line, Δy = (1/2)Δx. Dividing by their nonzero Δx therefore gives the same slope 1/2.
The slope is exactly 1/2; the y-intercept point is (0, −1) and the x-intercept point is (2, 0). Different suitable endpoint choices give the same line slope.
Separate zero slope, vertical slope and one repeated point
Compare A = (−1, 2), B = (1, 2); C = (2, −2), D = (2, 2); and the repeated pair E = F = (2, 2). Which slope ratios are defined, and what line information does each pair provide?
- For A and B, Δy = 0 and Δx = 2, so m = 0/2 = 0. They determine the horizontal line y = 2.
- For C and D, Δy = 4 and Δx = 0. Division by zero is undefined, but the two distinct points determine the vertical line x = 2.
- For E and F, both changes are zero. The ratio 0/0 is undefined and one repeated point does not determine a unique line.
- The horizontal line y = 2 has no horizontal-axis intersection and meets the vertical axis at (0, 2). The vertical line x = 2 meets the horizontal axis at (2, 0) and does not meet the vertical axis.
Only the horizontal pair has a defined ratio, giving zero slope. The distinct vertical pair gives a vertical line with undefined slope; the repeated pair gives neither a defined slope nor a unique line.
Try it yourself
For A = (−1, −1) and B = (0, 1), compute Δx, Δy and slope. Reverse both point roles. What happens if only the denominator’s subtraction order is reversed?
Show the answer and reasoning
From A to B, Δx = 1, Δy = 2 and m = 2. Reversing both gives Δx = −1, Δy = −2 and still m = 2. Reversing only the denominator wrongly gives −2.
Both coordinate differences must use the same point order. Reversal changes both signs and leaves their defined ratio unchanged.
The point (1, 3) lies on y = 2x + 1. Is its ratio y/x = 3 the line’s slope? Does the point (0, 1) make the line’s slope undefined because y/x is undefined there?
Show the answer and reasoning
No: the slope is two, computed from changes between suitable points. The undefined coordinate ratio at (0, 1) does not make the line’s slope undefined.
A coordinate ratio equals the slope of a line through the origin only when x is nonzero. For a general offset line use Δy/Δx, not y/x.
On y = −x + 2, compare (−1, 3) and (1, 1). On y = (1/2)x − 1, compare (−1, −3/2) and (1, −1/2). Find both slopes and explain their changes as x increases.
Show the answer and reasoning
The first has m = (1 − 3)/(1 − (−1)) = −2/2 = −1. The second has m = (−1/2 − (−3/2))/2 = 1/2. As x rises by two, their y values change by −2 and one respectively.
Read the full signed difference, preserve exact fractions and divide by the same nonzero horizontal change. A negative slope decreases y; a positive fractional slope increases y at the stated rate.
Give the horizontal-axis intersections of y = 2x + 1, y = 2 and y = 0. Give the vertical-axis intersections of x = 2 and x = 0. Which cases have a unique intersection, none, or every point on the axis?
Show the answer and reasoning
y = 2x + 1 has the one horizontal-axis point (−1/2, 0); y = 2 has none; y = 0 has every horizontal-axis point. x = 2 has no vertical-axis intersection, while x = 0 has every point on that axis.
Use y = 0 to test the horizontal axis and x = 0 to test the vertical axis. A line coinciding with an axis has all its points as intersections, not a single invented intercept.
Why does a horizontal pair with Δy = 0 and Δx = 2 have slope zero, while a distinct vertical pair with Δy = 4 and Δx = 0 has undefined slope? Does repeating the same point twice resolve the vertical case?
Show the answer and reasoning
0/2 is defined and equals zero, while 4/0 is undefined. Repeating a point produces 0/0, also undefined, and does not identify a unique line.
Check the denominator and whether the points are distinct. A valid zero numerator is different from a zero denominator or a repeated-point pair.
A stated distance-total model is D = (2 km/h)t + 3 km for elapsed time t ≥ 0. What are its slope units and vertical-axis value? Does the extended equation’s t = −3/2 h at D = 0 belong to the permitted model?
Show the answer and reasoning
The slope is 2 km/h and the vertical-axis value is 3 km at t = 0. The extended horizontal-axis point at −3/2 h is excluded, so the permitted model has no horizontal-axis intersection.
The change rate uses vertical quantity per horizontal quantity, while the offset has the vertical quantity’s unit. Algebraic extension does not remove an elapsed-time restriction.
Two observations fit a proposed line. Do they prove the entire situation follows it at every input? If the graph is stretched vertically while its tick values stay the same, has the numerical slope changed? What evidence should you read?
Show the answer and reasoning
The observations alone do not prove a full straight-line model. Vertical stretching changes its visual steepness, not the coordinate change ratio. Read the stated rule and domain, coordinate values, tick scales and units.
A geometric line determined by points and a real-world modeling claim are different. The plotted appearance depends on display scales, whereas slope is computed from the represented quantities.
What to carry forward
- A full stated line contains all permitted pairs satisfying its equation; selected observations alone do not prove a straight-line model.
- Slope is Δy/Δx with Δx ≠ 0. Use the same subtraction order, and reverse both changes together when reversing the pair.
- In y = mx + b, m describes change per x unit and b is the equation’s value at x = 0; slope is generally not y/x.
- Axis intersections can be unique, absent or an entire coincident axis. Horizontal slope is zero; vertical and repeated-point ratios are undefined.
- Keep units and domain restrictions, verify the original equation, and read axis scales before interpreting visual steepness.
References
Sources for the concepts and teaching approaches in this article.
- TIMES · Introduction to Coordinate GeometryAustralian Mathematical Sciences Institute (AMSI)Teaching resource
- Mastery Professional Development · 4.2 Graphical representationsNational Centre for Excellence in the Teaching of Mathematics (NCETM)Teaching resource · PDF
- Explanatory Notes to Junior Secondary Mathematics Curriculum (2020) · Learning Unit 26Education Bureau, Hong Kong · Curriculum Development InstituteReference guide · PDF