If you have two lines, for example:
![y=mx+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/smsb8cbft03lwblmi49nf2l6jby2ofxzws.png)
with slope "m"
and
![y=nx+c](https://img.qammunity.org/2023/formulas/mathematics/college/lzt0gdx94tz6lilm11urm1978ne5azn45y.png)
with slope "n"
That are perpendicular, the relationship between the slopes is that one is the inverse negative of the others, symbolically:
![n=-(1)/(m)](https://img.qammunity.org/2023/formulas/mathematics/college/n5nhf1y0xcdz1d272tpuijq6tp0l5nj7ld.png)
So the first step is to use the known points of one of the lines to calculate the slope using the formula:
![m=(y_1-y_2)/(x_1-x_2)](https://img.qammunity.org/2023/formulas/mathematics/college/fimp7zvgzwrq4ecowqytytl3ydbrfr5mz1.png)
For (5,7) and (10,3)
![\begin{gathered} m=(3-7)/(10-5)=(-4)/(5) \\ m=-(4)/(5) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/af2r3is2jqee9jvmhd6rdptzi8xtge45iq.png)
Now that you have determined the value of the slope, you can determine the slope of a line perpendicular to it as:
![\begin{gathered} n=-(1)/(m) \\ n=-(-(5)/(4)) \\ n=(5)/(4) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/x5nub3vgzcodnayxhtkktxr667ws20xuiz.png)
The slope of the perpendicular line to one that passes through points (5,7) and (10,3) is 5/4