This lesson builds the four core straight-line formulas: slope from two points, point-slope form, perpendicular slope, and the area of the triangle cut off by the axes. Each formula is derived, applied in worked examples, and checked against common traps so you can choose the right tool quickly.
A straight line is completely determined by two pieces of information: a point and a direction, or two points. Almost every straight-line problem reduces to finding a slope and then anchoring the line at a known point. In this lesson we derive the slope formula from similar triangles, convert it into point-slope form, extract perpendicular slopes from standard form, and finish with the intercept-triangle area formula. Every result below is verified by direct substitution, and each worked example is checked a second way where a valid alternate method exists.
| Given information | First step | Formula to use | Typical output |
|---|---|---|---|
| Two points | Compute slope | m = (y2 − y1)/(x2 − x1) | Slope value |
| Point and slope | Substitute directly | y − y1 = m(x − x1) | Line equation |
| Standard form Ax + By = C | Read A and B | slope = −A/B; m⊥ = B/A | Slope or perpendicular slope |
| Intercepts or axes mentioned | Set y = 0 and x = 0 | Area = |ab|/2 | Area in square units |
For two distinct points P(x1, y1) and Q(x2, y2) with x1 ≠ x2, the slope is m = (y2 − y1)/(x2 − x1). The numerator is the vertical change (rise) and the denominator is the horizontal change (run). Slope is dimensionless: it is a ratio of two lengths, so it carries no units unless the axes carry units, in which case it is 'units of y per unit of x'. The condition x1 ≠ x2 matters: if x1 = x2 the line is vertical, the run is zero, and the slope is undefined, not infinite in the arithmetic sense. A positive slope means the line rises left to right, a negative slope means it falls, m = 0 means horizontal, and undefined slope means vertical.
Take P(x1, y1) and Q(x2, y2). Draw a horizontal segment from P and a vertical segment from Q; they meet at R(x2, y1). Triangle PQR is right-angled at R, with PR = x2 − x1 and RQ = y2 − y1. Any other point S on the same line forms a triangle similar to PQR, so the ratio RQ/PR is the same for every pair of points on the line. That constant ratio is exactly what we call slope. This is why slope is a property of the line, not of the chosen points: similarity guarantees the ratio is invariant. It also explains why the slope of a line equals the tangent of its angle of inclination θ with the positive x-axis, since tan θ = opposite/adjacent = rise/run.
If a line has slope m and passes through (x1, y1), then for any other point (x, y) on the line the slope formula gives (y − y1)/(x − x1) = m, provided x ≠ x1. Multiplying both sides by (x − x1) gives the point-slope form y − y1 = m(x − x1). This form is the most efficient starting point because it needs no algebra to set up: substitute the point and the slope directly. Rearranging gives slope-intercept form y = mx + (y1 − mx1), where the bracket is the y-intercept b. Expanding and collecting gives standard form Ax + By = C when desired. Use point-slope when you know a point and a slope, or when you have computed a slope from two points and want the equation immediately.
If a line has slope m ≠ 0, any perpendicular line has slope −1/m. Proof sketch: let the first line make angle θ with the positive x-axis, so its slope is tan θ. A perpendicular line makes angle θ + 90°, and tan(θ + 90°) = −cot θ = −1/tan θ = −1/m. The product of the two slopes is m · (−1/m) = −1, which is the standard test for perpendicularity. For a line in standard form Ax + By = C with B ≠ 0, solving for y gives y = (−A/B)x + C/B, so its slope is −A/B and the perpendicular slope is B/A. Note the special cases: a horizontal line (m = 0) is perpendicular to a vertical line (undefined slope), and the negative-reciprocal rule does not apply numerically there.
A line that crosses the x-axis at (a, 0) and the y-axis at (0, b) forms, together with the two axes, a right triangle with legs of length |a| and |b|. The axes meet at the origin at a right angle, so the area is simply half the product of the legs: Area = |ab|/2. The absolute value is essential because intercepts can be negative, while area must be non-negative. To find the intercepts from an equation, set y = 0 to get the x-intercept and set x = 0 to get the y-intercept. For x + y = 2: setting y = 0 gives a = 2, and setting x = 0 gives b = 2, so Area = |2 · 2|/2 = 2 square units. The formula fails if the line passes through the origin (a = 0 or b = 0), because then no triangle is formed and the area is 0.
Decide from the information given, not from habit. If you have two points, compute slope first, then use point-slope form. If you have one point and a slope, go straight to point-slope form. If you are asked about a perpendicular line, convert to slope form or use B/A directly from standard form. If the question mentions the axes, intercepts, or an enclosed region, find both intercepts and apply the area formula. Keeping the target form in mind prevents wasted algebra: for example, if the answer must be in standard form, expand point-slope form and clear fractions at the end rather than in the middle.
Fast checks catch most errors. After finding an equation, substitute the original point back in: it must satisfy the equation. After computing a perpendicular slope, multiply the two slopes; the product must be −1. After computing an area, confirm both intercepts have the correct signs and that the absolute value was applied. A frequent trap is sign flipping from inconsistent subtraction order in the slope formula. Another is forgetting that a vertical line has no finite slope, so the negative-reciprocal rule cannot be applied blindly. A third is reporting a negative area, which is impossible. Finally, do not confuse the intercept value with the coordinate pair: the x-intercept is the number a, written as the point (a, 0).
Consider a line through (1, 2) and (3, 4). Slope: m = (4 − 2)/(3 − 1) = 2/2 = 1. Point-slope with (1, 2): y − 2 = 1(x − 1), so y = x + 1. Check with the second point: 4 = 3 + 1, correct. Now find the intercepts of y = x + 1: setting y = 0 gives x = −1, and setting x = 0 gives y = 1. The axis triangle has area |(−1)(1)|/2 = 1/2 square units. A perpendicular line through the same point (1, 2) has slope −1, so its equation is y − 2 = −1(x − 1), i.e. y = −x + 3. This chain shows how the four formulas connect: slope feeds point-slope, point-slope yields intercepts, intercepts yield area, and the slope gives the perpendicular family.
Apply m = (y2 − y1)/(x2 − x1) with (x1, y1) = (2, 3) and (x2, y2) = (4, 7). Numerator: 7 − 3 = 4. Denominator: 4 − 2 = 2. So m = 4/2 = 2.
Check by reversing the order: (3 − 7)/(2 − 4) = (−4)/(−2) = 2, same value.
Slope: m = (4 − 2)/(3 − 1) = 2/2 = 1. Point-slope with (1, 2): y − 2 = 1(x − 1). Expand: y − 2 = x − 1, so y = x + 1.
Check with (3, 4): 4 = 3 + 1, true. Alternate valid method: slope-intercept y = mx + b gives 2 = 1(1) + b, so b = 1, hence y = x + 1.
Use point-slope form directly: y − 3 = 4(x − 2). Expand: y − 3 = 4x − 8. Add 3: y = 4x − 5.
Check: at x = 2, y = 8 − 5 = 3, matching the given point.
Solve for y: 4y = −3x + 12, so y = (−3/4)x + 3. The slope is −3/4. The perpendicular slope is the negative reciprocal: −1/(−3/4) = 4/3.
Check: (−3/4)(4/3) = −1, confirming perpendicularity. Shortcut: for Ax + By = C, perpendicular slope = B/A = 4/3.
Here A = 3, B = 4, C = 7. Slope of the given line = −A/B = −3/4. Perpendicular slope = B/A = 4/3. Verify: (−3/4)(4/3) = −1. Note the constant C does not affect the slope, so the answer matches the previous example despite the different right-hand side.
The lines x = 0 and y = 0 are the axes. Find intercepts of x + y = 2: set y = 0, giving x = 2, so a = 2; set x = 0, giving y = 2, so b = 2. The triangle is right-angled at the origin with legs 2 and 2. Area = |ab|/2 = |2 · 2|/2 = 4/2 = 2 square units.
Check by the base-height formula: base 2, height 2, area = (1/2)(2)(2) = 2.
Area = |ab|/2 = |(−3)(4)|/2 = 12/2 = 6 square units. For the equation, use the two intercept points (−3, 0) and (0, 4). Slope: m = (4 − 0)/(0 − (−3)) = 4/3. Point-slope with (0, 4): y − 4 = (4/3)(x − 0), so y = (4/3)x + 4.
Check the x-intercept: setting y = 0 gives (4/3)x = −4, so x = −3, correct.
Use point-slope form when you know a point and a slope, because it requires no solving. Use slope-intercept form when you specifically need the y-intercept or want to read the slope and intercept directly from the equation.
No, provided you subtract in the same order in numerator and denominator. Reversing both gives the same value because both numerator and denominator change sign. Reversing only one flips the sign, which is the error to avoid.
Two vertical lines are parallel, not perpendicular. A vertical line is perpendicular to a horizontal line, whose slope is 0. The negative-reciprocal rule applies only when both slopes are finite and nonzero.
For Ax + By = C, set y = 0 to get x = C/A and set x = 0 to get y = C/B, provided A and B are nonzero. These give the intercept values a and b for the area formula.
Convert the angle to a slope using m = tan θ, then proceed with point-slope form as usual. Remember that an inclination of 90° corresponds to a vertical line with undefined slope.
They are linked through the intercepts. Once you have the line equation, setting y = 0 and x = 0 gives the intercepts, and those feed directly into Area = |ab|/2. Slope determines the equation, which determines the intercepts.