
There are several basic facts and equations to do with straight lines that you need to know by heart. Remind yourself of the straight line basics below - you'll need to use these processes in the next section.
The distance between two points,
is given by the formula ![]()
So the distance between (2,3) and (1,5) is
![]()
The gradient m between two points
and
is given by the formula
where ![]()
If
then the gradient is undefined. The gradient between (2,3) and (1,5) is ![]()
If a line with gradient m makes an angle a with the positive direction of the x-axis then m = tan a

so ![]()

so ![]()