How can the euclidean distance formula be proven for a set of coordinates?

In summary: Euclidean 2-norm measures the distance of a line segment (a line in the Euclidean sense, that is.) This question is somewhat tautological. You are essentially asking why is the straight-line distance between two points the Euclidean norm. The answer is that is that is how a straight line is defined.And why is curved space in general relativity also of this form an no other?It doesn't have this form in general. One key point of general relativity is that spacetime is not Euclidean.It does. Please look back at the equation I wrote. I did not write down Euclidean space in particular since there are covariant and contravariant (hope
  • #1
Gerenuk
1,034
5
How do you prove that for a set of coordinates you are supposed to take
[tex]\mathrm{d}s^2=\mathrm{d}x_i\mathrm{d}x^i[/tex]
for the distance? I mean in a very abstract fashion. All I know is that there is some coordinate mesh. Why don't I take other powers for the distance for example?

Or if that bilinear equation is only a special case, then why is our space obeying it?
 
Physics news on Phys.org
  • #2
Gerenuk said:
How do you prove that for a set of coordinates you are supposed to take
[tex]\mathrm{d}s^2=\mathrm{d}x_i\mathrm{d}x^i[/tex]
for the distance? I mean in a very abstract fashion. All I know is that there is some coordinate mesh. Why don't I take other powers for the distance for example?

Or if that bilinear equation is only a special case, then why is our space obeying it?

The formula only works in Euclidean coordinates but not in others. Area elements can have many forms and can differ from point to point.
 
  • #3
So back to my question: why is the reason that our real world has this property? And why is curved space in general relativity also of this form an no other?
 
  • #4
Gerenuk said:
So back to my question: why is the reason that our real world has this property?
Our everyday world is pretty much Euclidean. The Euclidean 2-norm measures the distance of a line segment (a line in the Euclidean sense, that is.) This question is somewhat tautological. You are essentially asking why is the straight-line distance between two points the Euclidean norm. The answer is that is that is how a straight line is defined.

And why is curved space in general relativity also of this form an no other?
It doesn't have this form in general. One key point of general relativity is that spacetime is not Euclidean.
 
  • #5
D H said:
It doesn't have this form in general. One key point of general relativity is that spacetime is not Euclidean.
It does. Please look back at the equation I wrote. I did not write down Euclidean space in particular since there are covariant and contravariant (hope that's the correct word) forms.
 
  • #6
Gerenuk said:
How do you prove that for a set of coordinates you are supposed to take
[tex]\mathrm{d}s^2=\mathrm{d}x_i\mathrm{d}x^i[/tex]
for the distance? I mean in a very abstract fashion. All I know is that there is some coordinate mesh. Why don't I take other powers for the distance for example?

Or if that bilinear equation is only a special case, then why is our space obeying it?

Gerenuk said:
So back to my question: why is the reason that our real world has this property? And why is curved space in general relativity also of this form an no other?

What property? You haven't actually named one... (I know, sometimes the correct question is the hardest part of asking.) By design, ||ds^2|| is invariant under a coordinate transformation. By design, the contravariant coordinates are defined to leave ||ds^2|| unchanged.

It's sometimes useful, such as considering spacetime, to model it as a manifold having a metric, so that distances are definable. Is this getting at what you're asking?
 
Last edited:
  • #7
Gerenuk said:
So back to my question: why is the reason that our real world has this property? And why is curved space in general relativity also of this form an no other?

the real world does not have that property, The world metric is curved not Euclidean.

If you are asking why the distance measure comes from an inner product it is - I think - because the world not only has distances distances but also angles. Without an inner product there is no concept of angle.
 
  • #8
Phrak said:
What property? You haven't actually named one... (I know, sometimes the correct question is the hardest part of asking.) By design, ||ds^2|| is invariant under a coordinate transformation. By design, the contravariant coordinates are defined to leave ||ds^2|| unchanged.

It's sometimes useful, such as considering spacetime, to model it as a manifold having a metric, so that distances are definable. Is this getting at what you're asking?
Actually I don't know what property is the key, so I'm looking for someone proposing a sensible axiom (maybe invariance under rotation?) from which the bilinear form derives. I vaguely know the concepts of this notation. What exactly is a *general* coordinate transformation? But in case the invariance under coordinate transformation is the key, then why don't we take other invariant expressions for the distance?

Or is it possible to relate the distance with changing x and y to distance of constant y?
So basically I have some squared paper and it is easy to count distances between cells if I stay horizontally or vertically. So I define how to get the distance if only one variable changes. But now I need another axioms to related diagonal distance to these. First I thought about rotations (rotate diagonal onto horizontal), but then I don't know how to define rotations without having a concept of distance.

wofsy said:
the real world does not have that property, The world metric is curved not Euclidean.

If you are asking why the distance measure comes from an inner product it is - I think - because the world not only has distances distances but also angles. Without an inner product there is no concept of angle.
First I repeat that the above notation is not restricted to Euclidean! Look up the concepts of tensor notation.
I'm not sure what you mean by the second reasoning. The world has angle because we defined distances and thus rotations. I don't think you can argue the other way round.
 
  • #9
Start with Euclidean space. That definition for distance, the Euclidean norm, is the distance measured by a straight line. That the Euclidean norm is the length of a straight line is the Pythagorean theorem. Your question is essentially tautological. The Euclidean norm is the straight line distance. You are asking why the straight line distance is the distance between two points. The answer is because that is how distance is typically defined.

The Euclidean norm is not the only definition for distance, even in Euclidean space. Others include the L1-norm or taxicab norm, the L-infinity norm, and in general, the Lp-norm. Yet another is the Mahalanobis distance, widely used in statistics. Note that this latter norm is very similar to the concept of a metric tensor.

The covariant tensor is related to the contravariant tensor via the metric tensor. The definition of length (or rather, differential length) in a curved metric space is

[tex]ds^2 \equiv g_{\mu,\nu} dx^{\mu}dx^{\nu}[/tex]

The metric tensor relates the covariant and contravariant vectors via

[tex]dx_{\mu} \equiv g_{\mu,\nu} dx^{\nu}[/tex]

Thus [itex]ds^2 = dx_{\mu}dx^{\nu}[/itex] is tautological.I think the question you are really asking is "Why is this definition useful?"
 
  • #10
Gerenuk said:
Actually I don't know what property is the key, so I'm looking for someone proposing a sensible axiom (maybe invariance under rotation?) from which the bilinear form derives. I vaguely know the concepts of this notation. What exactly is a *general* coordinate transformation? But in case the invariance under coordinate transformation is the key, then why don't we take other invariant expressions for the distance?

Or is it possible to relate the distance with changing x and y to distance of constant y?
So basically I have some squared paper and it is easy to count distances between cells if I stay horizontally or vertically. So I define how to get the distance if only one variable changes. But now I need another axioms to related diagonal distance to these. First I thought about rotations (rotate diagonal onto horizontal), but then I don't know how to define rotations without having a concept of distance.First I repeat that the above notation is not restricted to Euclidean! Look up the concepts of tensor notation.
I'm not sure what you mean by the second reasoning. The world has angle because we defined distances and thus rotations. I don't think you can argue the other way round.

You need to be more clear. I am beginning to think though that you are not thinking carefully enough about the replies that people are sending you.

To repeat.

- The only tensor that gives you a metric is a quadratic tensor.

- tensors are invariant under any coordinate transformation

- the idea of a tensor is a quantity which when measured in any set of coordinates gives the same answer.

- the metric ds^2 = sum dxi^2 only works for an orthonormal frame and is not coordinate invariant unless you only change coordinates only by orthogonal transformations. If you do not have an orthonormal frame the formula fails.

- A metric that does not have an idea of angle is not a tensor. The only metrics with an idea of angle are quadratic metrics. Without an idea of angle there would be no physics as we know it. Everything we know about the world is based on the idea of angle. Distance falls out from the idea of angle.
 
  • #11
D H said:
You are asking why the straight line distance is the distance between two points. The answer is because that is how distance is typically defined.
Please have a look at the "squared paper" thought I wrote about. It's not clear what a straight line is when only grid points are defined. A straight line can only be defined once you admit for an operation that rotates a diagonal line onto a horizontal line.
In any case the idea of straight line is not trivial. Isn't even a straight line defined by minimization of distance? So obviously straight line and distance metric are the same and so they cannot be the answer to my question why the distance isn't [itex]\mathrm{d}s^2=\mathrm{d}x^2+\mathrm{d}y^3[/itex]

D H said:
The Euclidean norm is not the only definition for distance, even in Euclidean space. Others include the L1-norm or taxicab norm, the L-infinity norm, and in general, the Lp-norm. Yet another is the Mahalanobis distance, widely used in statistics. Note that this latter norm is very similar to the concept of a metric tensor.
Thanks for this idea. I'm interested in reading up about them. My question is related to that: Why is our space not one of these extraordinary metrics or even more general than Mahalanobis?
As I said, maybe rotational invariance can be used as an answer to my question I just don't know how.

D H said:
Thus [itex]ds^2 = dx_{\mu}dx^{\nu}[/itex] is tautological.
I'm not sure what you mean by tautological, but that's basically my point. My metric is general. Btw, I did some "google science" and found that my question is probably related to asking why people use
http://mathworld.wolfram.com/RiemannianGeometry.html
for all of our space instead of
http://mathworld.wolfram.com/FinslerSpace.html

wofsy said:
You need to be more clear. I am beginning to think though that you are not thinking carefully enough about the replies that people are sending you.
I think it's the other way round. Some people only read my (slightly misleading) headline and do not care what I write further on. Instead they quote some random textbook knowledge. D.H. also explained that my metric isn't restricted to Euclidean.

wofsy said:
- The only tensor that gives you a metric is a quadratic tensor.
Apparently this is incorrect, if I understood that correctly:
http://mathworld.wolfram.com/FinslerSpace.html

wofsy said:
- tensors are invariant under any coordinate transformation
I wrote asked before: So is the neccessity of coordinate transformations the answer to my question? If so, what exactly are general coordinate transformations and how do you define them without having a concept of distance and so on?

wofsy said:
- the metric ds^2 = sum dxi^2 only works for an orthonormal frame
That is true, but not what my equation states.
 
  • #12
Gerenuk said:
Apparently this is incorrect, if I understood that correctly:
http://mathworld.wolfram.com/FinslerSpace.html

The things I have told you about metrics and tensors are true. Why don't you try proving it for yourself?

The Finsler metric is not a tensor. But it determines a quadratic tensor i.e. a metric tensor.

If you do not want to use tensors there are all kinds of ways to define distance. Like I said before, the key to quadratic tensors is that they give you an idea of angle.

A bilinear tensor is the tensor way to get a metric. It is not necessary to use a tensor in order to have a metric - but in Physics is has been the predominately useful metic type because it gives an idea of an inner product - or equivalently an idea of angle.
 
Last edited:
  • #13
wofsy said:
The things I have told you about metrics and tensors are true. Why don't you try proving it for yourself?
That's the point. The thing are correct textbook knowledge, but not related to my question. For example the line element I wrote down is not Euclidean only.

wofsy said:
If you do not want to use tensors there are all kinds of ways to define distance. Like I said before, the key to quadratic tensors is that they give you an idea of angle.
Saying you want to measure angles would be one step of an explanation, but now one has to explain why angles are important. And that has to be done in a mathematical abstract way best with my squared paper problem I mentioned.
Because all "intuitive" concept implicitily assume a quadric metric already.
 
  • #14
Gerenuk said:
That's the point. The thing are correct textbook knowledge, but not related to my question. For example the line element I wrote down is not Euclidean only.


Saying you want to measure angles would be one step of an explanation, but now one has to explain why angles are important. And that has to be done in a mathematical abstract way best with my squared paper problem I mentioned.
Because all "intuitive" concept implicitily assume a quadric metric already.

You are still not being clear.
A mesh by itself has no metric.
Are you saying that you are assuming that the mesh does partially imply a metric because you can count the number of mesh points in any direction? By the way I think that methodology already gives you a metric on the mesh. But you have no idea of angle. Further you have no way to find distance for points not on the mesh.

You were confusing because you wrote originally down a metric tensor in orthogonal coordinates and then asked why the world has to be that way. So we assumed that's what you were talking about. But you are not talking about tensors. What are you talking about?

Incidentally, inner products are important not only for the idea of angle per se but for the idea of breaking a vector down into components. For instance the component of a force in the direction of motion of a mass tells you the amount of work that it does. This kind of thing happens all over in Physics. Calculating work, flux, circulation and other physical quantities always requires an inner product.

Perhaps you could tell me how to compute the work done by a gravitation field on a mass that is constrained to move in a specific path without using an inner product. That would be interesting.
 
Last edited:
  • #15
Here is a thought for you.

One way to geometrize Physics is to replace forces - which are somewhat mystically defined concepts - by geometry. For instance, a particle moving in a potential can be thought of as traveling along a geodesic in a suitably defined metric - and the force in some sense goes away as a force and becomes a parameter of the metric. In this case the metric is a quadratic tensor. The idea applies in general realtivity for gravity and I imagine one might be able to geometrize other fields as well.
 
  • #16
Another thought

Given your square mesh you could define a set of transformations that compare any line segment to a standard ruler where you already know how to measure distance. These transformations would have to obey certain regularities in order to make sense. You could then declare for instance that these transformation preserve distance. In classical geometries these tranformations usually determine a quadratic metric tensor that makes the transformations into isometries. But I see no reason why this always has to be true.

But be that as it may - one idea of geometry is those properties of a space that are invariant under some set of transformations. The Euclidean metric - not written as a tensor thanks - makes Euclidean transformations into isometries. Moebius transformations on a disc determine non-Euclidean geometry - Gauss/Lobachevsky geometry.

From this point of view I do not necessarily think that starting with a mesh is the best way to go. What you really want is to preserve some set of geometric properties.

Be careful though. There are geometric spaces where there are not enough isometries to compare any two lengths. In fact there are spaces that have no isometries at all.
 
Last edited:
  • #17
wofsy said:
A mesh by itself has no metric.
Correct. So basically I'm looking for a mathematical "low-level" ingredient to add from our real world, as to make only Riemannian metrics permissible.

wofsy said:
Are you saying that you are assuming that the mesh does partially imply a metric because you can count the number of mesh points in any direction? By the way I think that methodology already gives you a metric on the mesh.
At least for motion along the mesh connections. It does not specify the diagonal distance.

wofsy said:
Further you have no way to find distance for points not on the mesh.
There are no points off the mesh. Or maybe one can define the mesh to be arbitrarily fine.

wofsy said:
You were confusing because you wrote originally down a metric tensor in orthogonal coordinates and then asked why the world has to be that way.
Actually I believe I didn't put any restrictions on the metric tensor, so I did not restrict myself to orthogonal coordinates?!

wofsy said:
Incidentally, inner products are important not only for the idea of angle per se but for the idea of breaking a vector down into components.
Could there be other artifical ways to break thing down into components? I mean I can break down any integer into primes and say only 4k+1 primes are along the x-axis and the rest is along the y-axis? No inner product necessary.

wofsy said:
Perhaps you could tell me how to compute the work done by a gravitation field on a mass that is constrained to move in a specific path without using an inner product. That would be interesting.
I could make up a crazy law. And that's the question here. Why everyone discards these crazy laws from the very start. They use crazy metrics, but all of them are Riemannian.

wofsy said:
One way to geometrize Physics is to replace forces - which are somewhat mystically defined concepts - by geometry. For instance, a particle moving in a potential can be thought of as traveling along a geodesic in a suitably defined metric
I don't think that's an answer I'm looking for, but it's interesting anyway. Can you recommend an introductory reading to that method? This method should work for all particles at once (don't introduce metric for every particle) and not be restricted to light only.
 
  • #18
wofsy said:
Given your square mesh you could define a set of transformations that compare any line segment to a standard ruler where you already know how to measure distance. These transformations would have to obey certain regularities in order to make sense. You could then declare for instance that these transformation preserve distance.
I think this would be a way to answer what I look for. Just the question is how to define these isometries (with some relation to our real world)? One cannot use distance though, since it hasn't been defined yet or could be defined arbitrarily.

wofsy said:
From this point of view I do not necessarily think that starting with a mesh is the best way to go. What you really want is to preserve some set of geometric properties.
At the moment I believe the mesh idea might be more artificial but somehow it should be possible to transfer any argument to it.
 
  • #19
Here is a thought of mine:

What would be different if we lived in a world with taxicab metric (non-Riemannian I believe?)

One difference is of course that there would be many shortest paths from A to B.

Another way to find differences is to measure the shortest distances between a set of points A, B, C, D,...

I believe if you take only three points, then in taxicab and Riemannian the restrictions are the same? Namely the triangle inequality.

Probably if you take 4 points and 3D space, then Riemannian geometry posed additional contraints on the distances AB, AC, AD, BC, BD, CD?
 
  • #20
Gerenuk said:
I think this would be a way to answer what I look for. Just the question is how to define these isometries (with some relation to our real world)? One cannot use distance though, since it hasn't been defined yet or could be defined arbitrarily.


There are many ways to define transformations that will give you ageometry -e.g. the examples I mentioned above. I think it would be helpful if you defined what properties of the space that you want to be preserved under transformation.

BTW: In the case of Euclidean motions or Moebius transformation the distance measure is uniquely determined (up to a constant)- so if done right you do not need to start with an idea of distance.
 
  • #21
wofsy said:
There are many ways to define transformations that will give you ageometry -e.g. the examples I mentioned above. I think it would be helpful if you defined what properties of the space that you want to be preserved under transformation.
I don't know. Basically that is the question: which restriction observed in the real world are needed to add to my mesh model to make it Riemannian?

Note that just preserving distance still allows for rotations in taxicab geometry.
 
  • #22
Gerenuk said:
I don't know. Basically that is the question: which restriction observed in the real world are needed to add to my mesh model to make it Riemannian?

Note that just preserving distance still allows for rotations in taxicab geometry.

I have thinking about your problem and wonder if there is more to it than what you are explaining.

Euclidean distance in the plane,it seems, comes from the Pythagorean Theorem, which is equivalent to the Theorem of similar triangles which on the surface seems to require a notion of angle. But on your mesh maybe you can say what triangles are similar by a simple rule on the corresponding coordinates. I'm not sure if this would work. Will think more.
 
  • #23
I had yet another thought. How about we require the world to have some "transformation" t(x) which doesn't break objects, i.e. leaves all distances unchanged.

Therefore we want to define d(x,y) and t(x) such that
[tex]\forall x,y: d(x,y)=d(t(x),t(y))[/tex]

Maybe under some circumstances this transformation should also have a fixed point (which corresponds to rotations).

Now the Euclidean solution for matrix notation is
[tex]d(x,y)=(x-y)^T(x-y)[/tex]
[tex]t(x)=Rx+A\qquad (R^TR=1)[/tex]

Is it hard to find other solutions than the Euclidean (or Riemannian) quadric distance?
 
  • #24
Gerenuk said:
I had yet another thought. How about we require the world to have some "transformation" t(x) which doesn't break objects, i.e. leaves all distances unchanged.

Therefore we want to define d(x,y) and t(x) such that
[tex]\forall x,y: d(x,y)=d(t(x),t(y))[/tex]

Maybe under some circumstances this transformation should also have a fixed point (which corresponds to rotations).

Now the Euclidean solution for matrix notation is
[tex]d(x,y)=(x-y)^T(x-y)[/tex]
[tex]t(x)=Rx+A\qquad (R^TR=1)[/tex]

Is it hard to find other solutions than the Euclidean (or Riemannian) quadric distance?

The matrix transformations - if they preserve the mesh - are elements of Gl(2,Z) - There are no rotations in Gl(2,Z) except rotations by multiples of 90 degrees. This assumes that say (1,0 and (0,1) generate the mesh linearly and rotation by 90 degrees just means the map (1,0) -> (0,1) (0,1) -> (-1,0). Requiring this map to be length preserving will not give you Euclidean distance by itself.
 
  • #25
For that last idea I wasn't so strict with the mesh. Maybe the distances are conserved only approximately. So for example, maybe for the taxcicab geometry it is impossible to define a transformation that conserves all distances and still leaves one point fixed (without fixed points of course translations are possible)?!
 
  • #26
Gerenuk said:
How do you prove that for a set of coordinates you are supposed to take
[tex]\mathrm{d}s^2=\mathrm{d}x_i\mathrm{d}x^i[/tex]
for the distance? I mean in a very abstract fashion. All I know is that there is some coordinate mesh. Why don't I take other powers for the distance for example?

Or if that bilinear equation is only a special case, then why is our space obeying it?
It finally dawned on me that Gernuk did NOT write [itex]ds^2= dx^idx^i[/itex], he wrote [itex]ds^2= dx_idx^i[/itex]. If the space is NOT Euclidean then [itex]dx_i= g_{ij}dx^j[/itex] so what he really wrote was that [itex]ds^2= g_{ij}dx^idx^j[/itex] the general formula for a metric tensor.
 

1. What is "Proof of Euclidean Distance"?

Proof of Euclidean Distance is a mathematical concept used to measure the distance between two points in a Euclidean space. It is based on the Pythagorean theorem and is commonly used in geometry and physics.

2. How is Euclidean Distance calculated?

To calculate Euclidean Distance, you need to find the square root of the sum of the squared differences between the coordinates of two points. In other words, it is the straight-line distance between two points on a plane.

3. What is the significance of Euclidean Distance in scientific research?

Euclidean Distance is an important tool in scientific research as it allows for the measurement of the distance between data points in a multidimensional space. This is helpful in fields such as machine learning, data analysis, and pattern recognition.

4. Can Euclidean Distance be used in non-Euclidean spaces?

No, Euclidean Distance can only be used in Euclidean spaces, which are flat and have a constant curvature. It cannot be applied to non-Euclidean spaces, such as a sphere or a curved surface.

5. Are there any limitations to using Euclidean Distance?

Yes, there are some limitations to using Euclidean Distance. It assumes that all dimensions are equally important, and it is sensitive to outliers. It also does not take into account the relationship between different variables, which can be important in certain applications.

Similar threads

Replies
13
Views
2K
  • Differential Geometry
Replies
27
Views
5K
Replies
3
Views
1K
  • Electrical Engineering
Replies
15
Views
2K
Replies
8
Views
7K
Replies
5
Views
584
Replies
13
Views
1K
  • Special and General Relativity
Replies
12
Views
1K
  • Classical Physics
Replies
8
Views
2K
  • Special and General Relativity
2
Replies
55
Views
3K
Back
Top