Angle α is called the inclination of a line L, and is defined in the range
0° ≤ α < 180°. A line parallel to
the x-axis has an inclination of 0°, and any two parallel lines have
the same inclination.
Because working directly with inclination in analytic geometry can be inconvenient,
we instead use the slope m
of the line, which is defined in terms of the inclination.
Notice that the tangent of the angle α is positive in the first quadrant (0° − 90°),
and negative in the second quadrant (90° − 180°). It starts at 0 when α = 0
and increases to infinity as α approaches 90°
(therefore, the slope m is not defined at this point). Beyond 90°, the tangent decreases from negative infinity
and returns to 0 at 180°.
If two points along the line are known, then the slope can be calculated as:
Note that subtracting the coordinates of point 1 from point 2 gives the same result as
subtracting point 2 from point 1, since both the numerator and denominator change sign, leaving the ratio unchanged.