Resources / Functions
📍 Line through two points
Two points give the slope and, from it, the equation of the line. Then it is checked against the other point.
Examples:
y = 2x + 2
Points
- Point A:(0, 2)
- Point B:(3, 8)
- X-axis crossing:(−1, 0)
Equation of the line
- The slope is the rise in y divided by the run in x:
- m = (y₂ − y₁) / (x₂ − x₁) = (8 − 2) / (3 − 0) = 6 / 3 = 2
- Substitute point A into y = mx + b to find b:
- 2 = 2·0 + b → b = 2 − 0 = 2
- The line is y = 2x + 2
- Check with B: 2·3 + 2 = 8 ✓
Where it crosses the Y axis
- On the Y axis, x is 0. Substitute:
- y = f(0) = 2 → (0, 2)
Where it crosses the X axis
- On the X axis, y is 0. Solve:
- 2x + 2 = 0
- 2x = −2
- x = −2 / 2 = −1