**Euclidean Distance in Various Coordinate Systems**

The distance formula in Cartesian coordinates is derived from the Pythagorean theorem. If (*x*_{1}, *y*_{1}) and (*x*_{2}, *y*_{2}) are points in the plane, then the distance between them, also called the Euclidean distance, is given by

More generally, in Euclidean *n*-space, the Euclidean distance between two points, and, is defined, by generalization of the Pythagorean theorem, as:

If Cartesian coordinates are *not* used, for example, if polar coordinates are used in two dimensions or, in more general terms, if curvilinear coordinates are used, the formulas expressing the Euclidean distance are more complicated than the Pythagorean theorem, but can be derived from it. A typical example where the straight-line distance between two points is converted to curvilinear coordinates can be found in the applications of Legendre polynomials in physics. The formulas can be discovered by using Pythagoras' theorem with the equations relating the curvilinear coordinates to Cartesian coordinates. For example, the polar coordinates (*r*, *θ*) can be introduced as:

Then two points with locations (*r*_{1}, *θ*_{1}) and (*r*_{2}, *θ*_{2}) are separated by a distance *s*:

Performing the squares and combining terms, the Pythagorean formula for distance in Cartesian coordinates produces the separation in polar coordinates as:

using the trigonometric product-to-sum formulas. This formula is the law of cosines, sometimes called the Generalized Pythagorean Theorem. From this result, for the case where the radii to the two locations are at right angles, the enclosed angle Δ*θ* = π/2, and the form corresponding to Pythagoras' theorem is regained: The Pythagorean theorem, valid for right triangles, therefore is a special case of the more general law of cosines, valid for arbitrary triangles.

Read more about this topic: Pythagorean Theorem, Consequences and Uses of The Theorem

### Famous quotes containing the words systems and/or distance:

“Before anything else, we need a new age of Enlightenment. Our present political *systems* must relinquish their claims on truth, justice and freedom and have to replace them with the search for truth, justice, freedom and reason.”

—Friedrich Dürrenmatt (1921–1990)

“Like a man traveling in foggy weather, those at some *distance* before him on the road he sees wrapped up in the fog, as well as those behind him, and also the people in the fields on each side, but near him all appears clear, though in truth he is as much in the fog as any of them.”

—Benjamin Franklin (1706–1790)