Distance and midpoint formulas

Click and drag endpoints A and B to move the line segment (or click and use the arrow keys).

Sorry, the GeoGebra Applet could not be started. Please make sure that Java 1.4.2 (or later) is installed and active in your browser (Click here to install Java now)

Can you figure out how GeoGebra is calculating the x and y values for the midpoint of the line segment?

Can you figure out how GeoGebra is calculating the distance of the line segment?

Alex Briasco-Brin, Created with GeoGebra