What is the slope of a vertical line

The slope of a vertical line is undefined. This is because the slope is defined as the ratio of the vertical change to the horizontal change between two points on a line. For a vertical line, there is no horizontal change (since it is perfectly upright), so the denominator is zero in the formula for slope. Division by zero is undefined, therefore the slope of a vertical line is undefined.

The slope of a vertical line is undefined. This is because for a vertical line, there is no change in the x-coordinate while the y-coordinate can change. In the slope equation (m = Δy/Δx), the denominator Δx becomes zero, resulting in an undefined value.