For two lines to be parallel,
![\begin{gathered} m_1=m_2 \\ m_1=Gradient\text{ of line AB} \\ m_2=\text{Gradient of line CD} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/zmf3pe5p7th0aljrsuy8e5n9jdl9pp34bo.png)
For two lines to be perpendicular,
![m_1* m_2=-1](https://img.qammunity.org/2023/formulas/mathematics/college/drvgj3vmsiwqhbbe0hcgk6m0betp6bgxci.png)
The formula for the gradient of a line passing through points (x1,y1) and (x2,y2) is given as
![m=(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2023/formulas/mathematics/high-school/78uaqhwt0aws3qfwxigaftpihnmb1gzxtp.png)
For line AB, the point given is
![\begin{gathered} (-3,8)\text{ and (3,2)} \\ x_1=-3,y_1=8,x_2=3,y_2=2 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/j7i0q0lpk0yk1yp3n2v6mcxgusl5r15nqt.png)
By substituting in the formula, we will have
![\begin{gathered} m=(2-8)/(3-(-3)) \\ m=-(6)/(3+3) \\ m_1=-(6)/(6) \\ m_1=-1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/5v0hh65w8b8lrx1ycsk181m15u562zhjip.png)
For line CD, the point given is
![\begin{gathered} (7,1)\text{ and (5,-1)} \\ x_1=7,y_1=1,x_2=5,y_2=-1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/7bk4i22tkanc6yaxj92cp1a3rny1ol7hl1.png)
By substituting the values in the formula, we will have
![\begin{gathered} m_2=(-1-1)/(5-7) \\ m_2=-(2)/(-2) \\ m_2=1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/ixzsh82fhskg4e3ssbrspst6edx1to3fxi.png)
![\begin{gathered} m_1\\e m_2 \\ \text{therefore the two lines are not parallel} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/3m9qiesmjpbqa4r8nrn7gdaoopbfqza4la.png)
![\begin{gathered} m_1* m_2 \\ =-1*1 \\ =-1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/lxwqf74pm9s35tkl1kv51g2fnj7ozejzlj.png)
Therefore,
![\begin{gathered} \sin ce \\ m_1* m_2=-1 \\ \text{Then the two lines are perpendicular} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/6zpq3etsraybxdbi08a01oymk49n03sg0t.png)
Hence,
Line AB and line CD are perpendicular