What Is the Slope of a Line?
In analytic geometry, the slope (commonly denoted by the letter \(m\)) represents the rate of vertical change with respect to horizontal change along a straight line. It quantifies both the direction and the incline of the line.
m = Δy / Δx = (y2 - y1) / (x2 - x1)
Where Δy represents the vertical "rise" and Δx represents the horizontal "run".
The Four Types of Slope
- Positive Slope (\(m > 0\)): As you move from left to right along the x-axis, the line rises. Both variables increase proportionally.
- Negative Slope (\(m < 0\)): As you move from left to right, the line declines. As x increases, y decreases.
- Zero Slope (\(m = 0\)): A completely horizontal line. The vertical coordinates are equal (\(y_1 = y_2\)), yielding \(\text{rise} = 0\). The equation is simply \(y = k\).
- Undefined Slope (\(x_1 = x_2\)): A completely vertical line. The horizontal run is zero (\(\Delta x = 0\)). Since division by zero is mathematically undefined, a vertical line does not have a real numeric slope. Its equation is \(x = k\).
Formulas Derived From Slope
Once the slope \(m\) is calculated, several other geometric equations and properties can be derived:
y = mx + b (where b = y1 - m × x1 is the y-intercept)Point-Slope Form:
y - y1 = m(x - x1)Angle of Inclination:
θ = arctan(m) (converted from radians to degrees)Euclidean Distance:
d = √((x2 - x1)² + (y2 - y1)²)Segment Midpoint:
M = ((x1 + x2)/2, (y1 + y2)/2)
Worked Examples
Example 1: Positive Slope
Find the slope and equation of the line passing through points \(P_1(1, 2)\) and \(P_2(4, 8)\).
Run (Δx): 4 - 1 = 3
Slope (m): 6 / 3 = 2
Y-intercept (b): 2 - 2(1) = 0 → Equation: y = 2x
Example 2: Vertical Line (Undefined Slope)
Points: \(P_1(3, 1)\) and \(P_2(3, 7)\).
Run (Δx): 3 - 3 = 0
Slope (m): 6 / 0 = Undefined (Vertical line)
Line Equation: x = 3
Assumptions and Limitations
- Identical Points: If both points share identical coordinates (\(x_1 = x_2\) and \(y_1 = y_2\)), they define a single point rather than a unique line; an infinite number of lines pass through a single point.
- Cartesian Coordinates: All calculations assume standard Euclidean two-dimensional space.
- Rounding: Decimal values for angles, irrational slopes, and distances are rounded to 4-6 decimal places for clarity while preserving full internal floating-point accuracy.