Finds where y = a₁x + b₁ and y = a₂x + b₂ cross. Setting the two right-hand sides equal gives x, and putting that back into either line gives y. The angle between the lines is also shown.
This finds where and cross. At that point both lines give the same , so setting the right-hand sides equal gives .
and are the slopes, and the intercepts. Putting that back into either line gives . The angle between the lines is also shown.
The angle comes from . When is 0, meaning the slopes multiply to , the lines are perpendicular and the angle is 90 degrees.
For and , setting gives , so . Putting that back into gives . The angle follows from , about 71.6 degrees.
Two lines with the same slope are parallel and never cross. If the intercepts match as well they are the same line, and no single crossing point exists. Neither case is calculated.
A vertical line such as cannot be written in this form, because it has no slope.