Point $A$ lies at co-ordinate $(2,3)$ and point $B$ at $(8,7)$. Determine (a) the distance $A B$, (b) the gradient of the straight line $A B$, and (c) the angle $A B$ makes with the horizontal.
(a) Points $A$ and $B$ are shown in Fig. $12.8$ (a).
In Fig. $12.8(\mathrm{~b})$, the horizontal and vertical lines $A C$ and $B C$ are constructed.
Since $A B C$ is a right-angled triangle, and $A C=(8-2)=6$ and $B C=(7-3)=4$, then by Pythagoras' theorem
$$
A B^{2}=A C^{2}+B C^{2}=6^{2}+4^{2}
$$
and $A B=\sqrt{\left(6^{2}+4^{2}\right)}=\sqrt{52}=7.211$, correct to 3 decimal places.
(b) The gradient of $A B$ is given by $\tan A$, i.e. gradient $=\tan A=\frac{B C}{A C}=\frac{4}{6}=\frac{2}{3}$
(c) The angle $A B$ makes with the horizontal is given by $\tan ^{-1} \frac{2}{3}=33.69^{\circ}$