∑ MockTestKart
⌂

0 0 0
Complete Formula Lesson

Straight Lines: Slope, Equations and Intercept Triangles

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.

On this page
  1. Slope as a Ratio of Changes
  2. Deriving the Slope Formula
  3. Point-Slope Form and Its Rearrangements
  4. Slope of a Perpendicular Line
  5. Intercepts and the Area of the Axis Triangle
  6. Choosing the Right Formula
  7. Shortcuts, Checks and Common Traps
  8. Putting It Together: A Worked Reasoning Chain
  9. Worked examples
  10. Common mistakes
  11. Frequently asked questions

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.

Core Straight-Line Formulas
Slope through two pointsm = (y2 − y1)/(x2 − x1), x1 ≠ x2
Point-slope formy − y1 = m(x − x1)
Slope-intercept formy = mx + b, b = y1 − mx1
Perpendicular slopem⊥ = −1/m; for Ax + By = C, m⊥ = B/A
Axis-triangle areaArea = |a · b| / 2
Given informationFirst stepFormula to useTypical output
Two pointsCompute slopem = (y2 − y1)/(x2 − x1)Slope value
Point and slopeSubstitute directlyy − y1 = m(x − x1)Line equation
Standard form Ax + By = CRead A and Bslope = −A/B; m⊥ = B/ASlope or perpendicular slope
Intercepts or axes mentionedSet y = 0 and x = 0Area = |ab|/2Area in square units
1Identify what is given: points, point and slope, standard form, or intercepts
2Compute the slope m from the appropriate formula
3Write the equation using point-slope form and rearrange if needed
4If perpendicular is asked, replace m by −1/m
5If area is asked, find both intercepts and apply |ab|/2
6Verify by substituting the known point and checking slope products
hb
Right triangle formed by the axes and a line with intercepts a and b; legs |a| and |b| meet at the origin, so Area = |ab|/2.

Slope as a Ratio of Changes

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.

  • Order matters consistently: subtract in the same point order in numerator and denominator.
  • (y2 − y1)/(x2 − x1) and (y1 − y2)/(x1 − x2) give the same value; mixing orders flips the sign.
  • Horizontal line y = k has slope 0; vertical line x = k has undefined slope.
m = (y2 − y1)/(x2 − x1), x1 ≠ x2

Deriving the Slope Formula

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.

  • Similar right triangles give a constant rise-to-run ratio along a line.
  • Slope equals tan θ, where θ is the inclination measured from the positive x-axis.
  • Because the ratio is invariant, you may pick the two easiest points on a line to compute m.
m = tan θ = rise/run

Point-Slope Form and Its Rearrangements

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.

  • Point-slope: y − y1 = m(x − x1).
  • Slope-intercept: y = mx + b with b = y1 − mx1.
  • Standard: Ax + By = C, obtained by clearing fractions and moving terms.
  • Two-point shortcut: first compute m, then substitute either point into point-slope form.
y − y1 = m(x − x1)

Slope of a Perpendicular Line

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.

  • Perpendicular slopes multiply to −1: m1 · m2 = −1.
  • From Ax + By = C: slope = −A/B, perpendicular slope = B/A.
  • Parallel lines share the same slope; perpendicular lines have negative-reciprocal slopes.
  • m = 0 pairs with an undefined (vertical) slope, not with −1/0.
m⊥ = −1/m, equivalently m⊥ = B/A for Ax + By = C

Intercepts and the Area of the Axis Triangle

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.

  • x-intercept: put y = 0 and solve for x.
  • y-intercept: put x = 0 and solve for y.
  • Area = |ab|/2, always non-negative.
  • A line through the origin gives area 0; a line parallel to an axis forms no bounded triangle.
Area = |a · b| / 2

Choosing the Right Formula

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.

  • Two points given → slope formula → point-slope form.
  • Point and slope given → point-slope form directly.
  • Perpendicular requested → negative reciprocal or B/A.
  • Axes or enclosed region mentioned → intercepts → area formula.
Given → Formula map

Shortcuts, Checks and Common Traps

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).

  • Substitute the known point into your final equation as a check.
  • Verify perpendicularity by multiplying slopes to get −1.
  • Keep subtraction order consistent in the slope formula.
  • Apply absolute value in the area formula.
  • Distinguish an intercept value from its coordinate pair.
Check: m1 · m2 = −1 and point satisfies equation

Putting It Together: A Worked Reasoning Chain

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.

  • Slope first, then equation, then intercepts, then area.
  • Each stage is independently checkable by substitution.
  • Perpendicular slope is a one-step transformation of the original slope.
m = 1 → y = x + 1 → intercepts −1, 1 → Area = 1/2

Worked examples

Find the slope of the line through (2, 3) and (4, 7).
Show solution

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.

m = 2
Find the equation of the line through (1, 2) and (3, 4).
Show solution

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.

y = x + 1
Find the equation of the line through (2, 3) with slope 4.
Show solution

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.

y = 4x − 5
Find the slope of the line perpendicular to 3x + 4y = 12.
Show solution

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.

4/3
Find the slope of the line perpendicular to 3x + 4y = 7.
Show solution

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.

4/3
Find the area of the triangle formed by x = 0, y = 0, and x + y = 2.
Show solution

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.

2 square units
A line has x-intercept −3 and y-intercept 4. Find its area with the axes and its equation.
Show solution

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.

Area = 6 square units; equation y = (4/3)x + 4

Common mistakes

  • Subtracting coordinates in different orders in numerator and denominator, which flips the sign of the slope.
  • Calling the slope of a vertical line 'infinity' instead of undefined, then applying the negative-reciprocal rule incorrectly.
  • Forgetting the absolute value in Area = |ab|/2 and reporting a negative area.
  • Confusing the x-intercept value a with the point (a, 0) when substituting into the area formula.
  • Using the slope of the given line instead of its negative reciprocal when a perpendicular line is requested.
  • Assuming the constant C in Ax + By = C affects the slope; only A and B determine it.
  • Applying the intercept-area formula to a line through the origin, where no triangle is formed.

Frequently asked questions

How do I decide between point-slope and slope-intercept form?

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.

Is the slope formula affected by which point I call first?

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.

Can two lines with undefined slopes be perpendicular?

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.

How do I find intercepts quickly from standard form?

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.

What if the question gives an angle of inclination instead of a slope?

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.

Are the area and slope formulas connected in any way?

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.