Calculate line equations from two points or point and slope. Get slope-intercept, point-slope, and standard forms with visualization.
Two-Point Formula: Given points (x₁, y₁) and (x₂, y₂), the slope is m = (y₂ - y₁)/(x₂ - x₁)
Then the line equation is: y - y₁ = m(x - x₁) or y = mx + b where b = y₁ - mx₁
Point-Slope Formula: Given point (x₁, y₁) and slope m, the line equation is: y - y₁ = m(x - x₁)
Slope-Intercept Form: y = mx + b where m is the slope and b is the y-intercept
In coordinate geometry, a straight line can be represented by various equations. The most common forms are slope-intercept, point-slope, and standard form. Each has its own advantages depending on the given information.
Key Line Equation Forms:
1. Slope-Intercept Form: y = mx + b
- m is the slope (steepness of the line)
- b is the y-intercept (where line crosses y-axis)
- Most common form for graphing and analysis
2. Point-Slope Form: y - y₁ = m(x - x₁)
- (x₁, y₁) is a known point on the line
- m is the slope
- Useful when you know a point and the slope
3. Standard Form: Ax + By = C
- A, B, and C are integers (usually with A ≥ 0)
- Useful for finding x and y intercepts easily
- Can represent vertical lines (B = 0)
Horizontal Lines: Slope m = 0, equation: y = b (constant)
Example: y = 3 is a horizontal line through (0,3)
Vertical Lines: Slope is undefined, equation: x = a (constant)
Example: x = 2 is a vertical line through (2,0)
Parallel Lines: Have the same slope (m₁ = m₂)
Example: y = 2x + 1 and y = 2x - 3 are parallel
Perpendicular Lines: Slopes are negative reciprocals (m₁ × m₂ = -1)
Example: y = 2x + 1 and y = -½x + 3 are perpendicular
| Slope Value | Line Direction | Angle with x-axis | Example |
|---|---|---|---|
| m > 0 | Rises to the right | 0° < θ < 90° | y = 2x + 1 (steep rise) |
| m < 0 | Falls to the right | 90° < θ < 180° | y = -3x + 2 (steep fall) |
| m = 0 | Horizontal | 0° | y = 5 (flat line) |
| m = 1 | 45° upward | 45° | y = x |
| m = -1 | 45° downward | 135° | y = -x |
| m = undefined | Vertical | 90° | x = 3 |
Calculator Features: