Barycentric coordinates in a triangle - proof

In summary: It is easy to see that $S_{PBC}=S_{PAB}=S_{PAC}$ because the lengths of the sides of the triangle are the same.
  • #1
Samwise1
15
0
I want to prove that the barycentric coordinates of a point $P$ inside the triangle with vertices in $(1,0,0), (0,1,0), (0,0,1)$ are distances from $P$ to the sides of the triangle.

Let's denote the triangle by $ABC, \ A = (1,0,0), B=(0,1,0), C= (0,0,1)$.

We consider triangles $ABP, \ BCP, \ CAP$.

The barycentric coordinates of $P$ will then be $(h_1, h_2, h_3)$ where $h_1$ is the height of $ABP$, $h_2 \rightarrow BCP$, $h_3 \rightarrow CAP$

I know that $h_1 = \frac{S_{ABP}}{S_{ABC}}$ and similarly for $h_2, \ h_3$

My problem is that I don't know how to prove that if $P= (p_1, p_2, p_3)$

then $(h_1 + h_2 + h_3)P = h_1 (1,0,0) + h_2 (0,1,0) + h_3 (0,0,1)$

Could you tell me what to do about it?

Thank you!

I have one more question. Similarly, barycentric coordinates of a point $p$ in a regular tetrahedron $\Delta_3$ are distances of $p$ from its faces. How can we prove that?
 
Last edited:
Physics news on Phys.org
  • #2
Samwise said:
I want to prove that the barycentric coordinates of a point $P$ inside the triangle with vertices in $(1,0,0), (0,1,0), (0,0,1)$ are distances from $P$ to the sides of the triangle.

...

The barycentric coordinates of $P$ will then be $(h_1, h_2, h_3)$ where $h_1$ is the height of $ABP$, $h_2 \rightarrow BCP$, $h_3 \rightarrow CAP$
Isn't it what you need to prove? Because the height of $ABP$ is the distance from $P$ to $AB$.

Samwise said:
I know that $h_1 = \frac{S_{ABP}}{S_{ABC}}$ and similarly for $h_2, \ h_3$

My problem is that I don't know how to prove that if $P= (p_1, p_2, p_3)$

then $(h_1 + h_2 + h_3)p = h_1 (1,0,0) + h_2 (0,1,0) + h_3 (0,0,1)$
What is $p$ in the last equation?
 
  • #3
Evgeny.Makarov said:
Isn't it what you need to prove? Because the height of $ABP$ is the distance from $P$ to $AB$.

What is $p$ in the last equation?

I see. I didn't express myself very well.

It was supposed to be a reformulation of the statement which I want to prove, that is that the barycentric coordinates of a point $p$ inside a triangle are distances of that point from the sides of the triangle = heights of respective smaller triangles.

So far I only know that $$1 = \frac{\frac{1}{2}(|AB|h_1 + |BC|h_2 + |CA|h_3)}{S_{ABC}} = \frac{S_{ABP}}{S} + \frac{S_{BCP}}{S} + \frac{S_{CAP}}{S}$$, but I don't know how to show that the condition :

$$(h_1 + h_2 + h_3)P = h_1 (1,0,0) + h_2 (0,1,0) + h_3 (0,0,1)$$

is satisfied.

And the $p$ in the last equation was a typo, I guess I didn't press "Shift" correctly :)
 
  • #4
First, the length of each side in $\triangle ABC$ where $A=(1,0,0)$, $B=(0,1,0)$ and $C=(0,0,1)$ is $\sqrt{2}$, and $S_{\triangle ABC}=\dfrac{\sqrt{3}}{2}$. Therefore, if $h_1$ is the height of $ABP$ and $h=\sqrt{\dfrac{3}{2}}$ is the height of $ABC$, then $h_1$ is indeed the distance from $P$ to $AB$, but $\dfrac{S_{\triangle ABP}}{S_{\triangle ABC}}=\dfrac{h_1}{h}\ne h_1$.

Samwise said:
I don't know how to show that the condition :

$$(h_1 + h_2 + h_3)P = h_1 (1,0,0) + h_2 (0,1,0) + h_3 (0,0,1)$$

is satisfied.
The general fact is that
\[
P=\dfrac{S_{PBC}}{S_{ABC}}A+\dfrac{S_{PAC}}{S_{ABC}}B+\dfrac{S_{PAB}}{S_{ABC}}C\qquad(*)
\]
and it is trivial to show that $\dfrac{S_{PAB}}{S_{ABC}}=\dfrac{h_1}{h}$ and similarly for other fractions. Do I understand right that you need a proof of (*)?
 
  • #5
Thank you.

I've come up with a proof of $(*)$.

Here it is:

Let $h_i : \Delta_3 \rightarrow \mathbb{R}$ be functions assigning $P \in \Delta_3$ its $i$-th barycentric coordinate. These maps are affine.

Then we consider a plane, an affine subspace of $T$ containing the triangle and extend the above mappings to $T$.

Next we define $H(P) = h_1(P) + h_2(P) + h_3(P)$

$T$ is $2$-dimensional. We take three non-collinear points - the vertices of our triangle and see that $H(A)=H(B)=H(C) = \frac{\sqrt{3}}{2}$

So $H$ is constant.

Next we set $f(P) = \frac{1}{H} (h_1(P) , h_2(P) ,h_3(P))$

Here $f(A)=A, f(B)=B, f(C)=C$, so $f$ is the identity map.

Is that right?
 
  • #6
Evgeny.Makarov said:
The general fact is that
\[
P=\dfrac{S_{PBC}}{S_{ABC}}A+\dfrac{S_{PAC}}{S_{ABC}}B+\dfrac{S_{PAB}}{S_{ABC}}C\qquad(*)
\]
and it is trivial to show that $\dfrac{S_{PAB}}{S_{ABC}}=\dfrac{h_1}{h}$ and similarly for other fractions. Do I understand right that you need a proof of (*)?

Yes, as a matter of fact, I do need the proof of that fact.

My "proof" doesn't seem to prove much.

Could you tell me why the equality $(*)$ is true?
 

FAQ: Barycentric coordinates in a triangle - proof

What are barycentric coordinates?

Barycentric coordinates are a mathematical concept used to represent points within a triangle. They are expressed as a set of three numbers, each representing the proportion of the triangle's three vertices that make up the point. These coordinates are useful for various applications in geometry, physics, and computer graphics.

How are barycentric coordinates calculated?

To calculate the barycentric coordinates of a point within a triangle, we first need to determine the area of the triangle. Then, we use this area to find the ratio of each vertex's area to the total area of the triangle. These ratios are the barycentric coordinates of the point.

What is the significance of barycentric coordinates in a triangle?

Barycentric coordinates allow us to express any point within a triangle using only three numbers, making it easier to perform calculations and geometric transformations. They also have applications in areas such as computer graphics, where they are used to interpolate values and create smooth curves.

Can we use barycentric coordinates to solve problems in other shapes besides triangles?

Yes, barycentric coordinates can be extended to other polygons and even higher dimensional shapes. However, the calculations become more complex as the number of vertices increases, and the concept is most commonly used in triangles.

Is there a proof for the use of barycentric coordinates in a triangle?

Yes, there is a proof for the use of barycentric coordinates in a triangle. It involves using the concept of linear interpolation and the properties of triangles to show that the coordinates of a point within the triangle can be expressed as a weighted sum of the coordinates of its vertices. This proof is commonly taught in geometry and linear algebra courses.

Similar threads

Replies
1
Views
1K
Replies
16
Views
5K
Replies
125
Views
18K
6
Replies
175
Views
22K
Back
Top