The distance formula as given in the image can be calculated based on the Pythagorean theorem.
The Pythagorean theorem states that the sum of the opposite square and the adjacent square equals the hypotenuse square.
In the diagram given
Applying the Pythagorean theorem,
Therefore,
The distance formula can be calculated based on the Pythagorean theorem.