The distance formula is derived from the pythagorean theorem