Given a line segment with two end points AB
Step 1: Write out the coordinates and define the (x,y) values
![A(-2,2),x_1=-2,y_1=2](https://img.qammunity.org/2023/formulas/mathematics/college/isi3jrawjp3rib0qgoklyqosrqs7pd5iut.png)
![B(3,2),x_2=3,y_2=2](https://img.qammunity.org/2023/formulas/mathematics/college/urn5r2op4ttkvgcu1ljuodu186ki3tjllq.png)
Step 2: write out the formula for the distance between two point
![|AB|=\sqrt[]{(x_2-x_1)^2+(y_2-y_1)^2}](https://img.qammunity.org/2023/formulas/mathematics/college/z2rzx4xwfpe3tyhoh4ojgk2whdpajrnx21.png)
Step 3: Substitute the x and y values in the above formula
![\begin{gathered} |AB|=\sqrt[]{(3-(-2_{})^2+(2-2)^2} \\ =\sqrt[]{(3+2)^2-0^2} \\ =\sqrt[]{5^2} \\ =\sqrt[]{25} \\ =5\text{units} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/c2ca7qdb2k0sifigtkst4mpmh9ln3umrc0.png)
Hence the length of the side AB is 5 units