Setting up integral over tetrahedron

In summary, according to the homework statement, the integral is to be evaluated over the tetrahedron S, which has vertices (0,0,0), (1,2,3), (0,1,2), and (-1,1,1). The attempt at a solution sets up the integral properly and finds that the integral is equal to the sum of the three squares of the distances from the origin to the vertices.
  • #1
JonnyG
233
30

Homework Statement


Let [itex]S[/itex] be the tetrahedron in [itex]\mathbb{R}^3[/itex] having vertices [itex](0,0,0), (1,2,3), (0,1,2), [/itex] and [itex] (-1,1,1)[/itex]. Evaluate [itex]\int_S f[/itex] where [itex]f(x,y,z) = x + 2y - z[/itex].

Homework Equations

The Attempt at a Solution


I just want to confirm that I am setting up the integral properly: Looking at the projection of the tetrahedron onto the [itex]xy[/itex]-plane, it looks like [itex]-1 \leq x \leq 1[/itex] and [itex]-x \leq y \leq 2x[/itex]. Now looking at the actual tetrahedron, it seems as if [itex]z[/itex] varies between [itex]0[/itex] and the plane [itex]-x + z - 2 = 0[/itex] so that the boundaries for [itex]z[/itex] are: [itex] 0 \leq z \leq x + 2[/itex]. Therefore [itex]\int_S f = \int_0^{x+2} \int_{-x}^{2x} \int_{-1}^1 f \text{ } dxdydz[/itex]. Is this correct?

EDIT: Wait, this makes no sense. If that is my setup, then my final integral will have an [itex] x [/itex] in it. Forget the projection onto the xy-plane. Looking at the tetrahedron, it looks as if [itex] x [/itex] is bounded between the two planes [itex] -x + 2y - z = 0 [/itex] and [itex] x + 4y - 3z = 0 [/itex] so that [itex] 2y - z \leq x \leq 3z - 4y [/itex]. It seems as if [itex] y [/itex] is bounded between the two planes [itex] x + 2y - z = 0 [/itex] and [itex] y = 2 [/itex] so that [itex] \frac{z}{2} - \frac{x}{2} \leq y \leq 2 [/itex]. It looks as if [itex] z [/itex] is bounded between the xy plane and [/itex] -x + z - 2 = 0 [/itex] so that [itex] 0 \leq z \leq x + 2 [/itex]. So that my integral should be [itex] \int_0^{x+2} \int_{\frac{z}{2} - \frac{x}{2}}^2 \int_{2y - z}^{3z - 4y} f \text{ } dxdydz [/itex]. Is this correct?

Also, the book gives a hint: Find a suitable linear transformation [itex] g [/itex] as a change of variables. I've been trying to find a linear diffeomorphism from the tetrahedron to the unit cube (or a diffeomorphism from a set that differs from the tetrahedron by measure zero to a set that differs from the unit cube by measure zero), but have been unable to find such a mapping. However, perhaps that is the easier route than to try and do what I am currently doing?
 
Last edited:
Physics news on Phys.org
  • #2
Your second integral looks worse than the first. There should be an order of integration which eliminates one free variable at a time. The last one must have a constant range.
I would look for a parametrization whereby changing one parameter (starting at the origin, say) takes you smoothly to another vertex. Three other vertices, three parameters.
 
  • #3
If I'm correct, with your 3 planes
##P_1 | x-2y + z = 0 ##
## P_2 | x-z+2 = 0##
## P_3 | x+4y - 3z = 0 ##

then your region is determined by the intersection of 3 half-spaces : ## R = E_1 \cap E_2 \cap E_3##, where
## E_i = P_i + t_i \vec u_i, \quad t_i \ge 0,\ i = 1,2,3##
with ##\vec u_1 = (-1,1,1)##, ##\vec u_2 = -\vec u_1##, ##\vec u_3 = (0,1,2)##

hope it helps
 
  • #4
I was able to find a linear diffeomorphism to a tetrahedron with vertices at the origin and at (1,0,0), (0,1,0) and (0,0,1). That integral is much easier to set up. But out of curiosity, if I wanted to avoid using the change of variables theorem, how would I go about setting this integral up?
 
  • #5
But nothing in the problem statement says this is to be a volume integral, and the notation suggests it is to be a surface integral.
 
  • #6
LCKurtz said:
But nothing in the problem statement says this is to be a volume integral, and the notation suggests it is to be a surface integral.
I guess you are reading S as surface, but it defines S to be the tetrahedron, then asks for an integral over S. Also, the hint (if quoted correctly) suggests a transformation, not multiple transformations. I agree it could be clearer (maybe the original is).
 
  • #7
JonnyG said:
I was able to find a linear diffeomorphism to a tetrahedron with vertices at the origin and at (1,0,0), (0,1,0) and (0,0,1). That integral is much easier to set up. But out of curiosity, if I wanted to avoid using the change of variables theorem, how would I go about setting this integral up?

You could express it as ##I = \int_S f dV = \int_{z=0}^3 F(z) \, dz##, with
[tex] F(z) = \int_{S(z)} f(x,y,z) \, dx \, dy [/tex]
and where ##S(z) = \{(x,y): (x,y,z) \in S \} ## is the slice through ##S## for given, fixed ##z##. By looking at the coordinates of the vertices, it is clear that the shape/description of ##S(z)## is different in the three regions ##z \in [0,1], \: z \in [1,2] \, \: z \in [2,3]##, so ##F(z)## would have a piecewise description, requiring a split of the integral into three ##z##-intervals.

For example, in the region ##z \in [0,1]## the region has edges ##(0,0,0) \to (-1,1,1)##, ##(0,0,0) \to (a,b,1)## and ##(0,0,0) \to (u,v,1)##, where ##(a,b,1)## is the point at ##z = 1## on the line segment from ##(0,0,0)## to ##(1,2,3)## and ##(u,v,1)## is the corresponding point on the other segment from ##(0,0,0)## to ##(0,1,2)##.

Alternatively, we could take ##yz## slices of ##S## for fixed ##x##; that might be more convenient, as it needs only two ##x##-regions ##x \in [-1,0], \: x \in [0,1]##.
 
  • #8
So how did you do with your transformation? It's interesting but you remain silent on this.

My idea is this:
You need to preserve planeity and alignments so you must have been looking for an affine transformation from the unit tetrahedron ##T_0## to ##T## right ?
For any point ##0,M \in T_0##, the transformation ##f## has the form ##f(M) = f(O) + \vec f ( \vec {OM} )##.

Let's name the vertices of ##T_0## and ##T##:
##T_0:\ A_0(0,0,0),A_1(1,0,0), A_2(0,1,0), A_3(0,0,1)##
## T :\ B_0(0,0,0),\ B_1(1,2,3),\ B_2(0,1,2),\ B_3(-1,1,1)##

Since you want ##f## bijective, then the linear part of ##f## must be bijective.
Since the ##(\vec{ A_0A_i})_{i=1,2,3}## form a basis of ##\mathbb{R^3}## (the canonical basis), then ##\vec f## is bijective iff ##(\vec f ( \vec {A_0A_i}))_{i=1,2,3}## also form a basis of ##\mathbb{R}^3##.

So you can set ##\vec f(\vec{A_0A_i}) = \vec { B_0B_i} ## ( the vertices of ##T## aren't coplanar), and it follows that ##f(A_i) = B_i## for all ## i=0,1,2,3##
Finally, in the canonical basis of ##\mathbb{R}^3##, the matrix of the linear part of ##f## is ##P = \begin{pmatrix}1 & 0 & -1 \\ 2 & 1 & 1 \\ 3 & 2 & 1 \end{pmatrix}## and ##f(M) = P (\vec {A_0M}) ##.

Is it what you get ?

Then, if I'm right ##T_0 = \{ (x,y,z):\ x,y,z \ge 0,\ x+y+z \le 1 \} = \{ (x,y,z): 0\le x\le 1,\ 0\le y \le 1-x,\ 0\le z \le 1 - x - y \} ##

So I get ;
##\int_T g = |\text{det} P|^{-1} \int_{T_0} g\circ f \ = |\text{det} P|^{-1} \int_0^1\int_0^{1-x}\int_0^{1-x-y} (g\circ f)(x,y,z)\ \ dzdydx ##

Is it correct ?
 
Last edited:
  • #9
geoffrey159 said:
So how did you do with your transformation? It's interesting but you remain silent on this.

My idea is this:
You need to preserve planeity and alignments so you must have been looking for an affine transformation from the unit tetrahedron ##T_0## to ##T## right ?
For any point ##0,M \in T_0##, the transformation ##f## has the form ##f(M) = f(O) + \vec f ( \vec {OM} )##.

Let's name the vertices of ##T_0## and ##T##:
##T_0:\ A_0(0,0,0),A_1(1,0,0), A_2(0,1,0), A_3(0,0,1)##
## T :\ B_0(0,0,0),\ B_1(1,2,3),\ B_2(0,1,2),\ B_3(-1,1,1)##

Since you want ##f## bijective, then the linear part of ##f## must be bijective.
Since the ##(\vec{ A_0A_i})_{i=1,2,3}## form a basis of ##\mathbb{R^3}## (the canonical basis), then ##\vec f## is bijective iff ##(\vec f ( \vec {A_0A_i}))_{i=1,2,3}## also form a basis of ##\mathbb{R}^3##.

So you can set ##\vec f(\vec{A_0A_i}) = \vec { B_0B_i} ## ( the vertices of ##T## aren't coplanar), and it follows that ##f(A_i) = B_i## for all ## i=0,1,2,3##
Finally, in the canonical basis of ##\mathbb{R}^3##, the matrix of the linear part of ##f## is ##P = \begin{pmatrix}1 & 0 & -1 \\ 2 & 1 & 1 \\ 3 & 2 & 1 \end{pmatrix}## and ##f(M) = P (\vec {A_0M}) ##.

Is it what you get ?

Then, if I'm right ##T_0 = \{ (x,y,z):\ x,y,z \ge 0,\ x+y+z \le 1 \} = \{ (x,y,z): 0\le x\le 1,\ 0\le y \le 1-x,\ 0\le z \le 1 - x - y \} ##

So I get ;
##\int_T g = |\text{det} P|^{-1} \int_{T_0} g\circ f \ = |\text{det} P|^{-1} \int_0^1\int_0^{1-x}\int_0^{1-x-y} (g\circ f)(x,y,z)\ \ dzdydx ##

Is it correct ?

I was going to suggest something similar, but the OP stated he/she had already done something like that---or was it, who knows?

Anyway the tetrahedron ##S## is convex with vertices ##\vec{V_1} = (0,0,0)##, ##\vec{V_2} = (1,2,3)##, ##\vec{V_3} = (0,1,2)##, and ##\vec{V_4} = (-1,1,1)##. Any point ##\vec{v} \in S## can be written (uniquely---in this case) as
[tex] \vec{v} = p_1 \vec{V_1} + p_2 \vec{V_2} + p_3 \vec{V_3} + p_4 \vec{V_4}, [/tex]
where all ##p_i \geq 0## and ##p_1 + p_2 + p_3 + p_4 = 1##. We can eliminate the equality by setting ##p_4 = 1-p_1-p_2-p_3##, so
[tex] \begin{array}{rcl} \vec{v} &= &p_1 \vec{V_1} + p_2 \vec{V_2} + p_3 \vec{V_3} +(1-p_1-p_2-p_3) \vec{V_4} \\
&=& (-1+p_1+2p_2+p_3,1-p_1+p_2,1-p_1+2p_2+p_3)
\end{array}
[/tex]
This implies
[tex] \begin{array}{l} x = -1+p_1+2p_2+p_3\\
y = 1-p_1+p_2\\
z = 1-p_1+2p_2+p_3
\end{array} [/tex]
in ##S##. We have ##f(\vec{v}) = 2 p_2## in ##S##. The rest is easy:
[tex] \int_S f \, dV = \int_{S_p} 2 p_2 \left| \frac{\partial(x,y,z)}{\partial(p_1,p_2,p_3)} \right| \, dp_1 \, dp_2 \, dp_3 [/tex]
where ##S_p = \{ (p_1,p_2,p_3) : p_1, p_2, p_3 \geq 0, p_1+p_2+p_3 \leq 1 \}##.
 
Last edited:
  • #10
I let [itex] g: \mathbb{R}^3 \rightarrow \mathbb{R}^3 [/itex], and defined the action of [itex] g [/itex] on the standard basis vectors by [itex] g(e_1) = (0,1,2), g(e_2) = (-1,1,1), g(e_3) = (1,2,3) [/itex], then defined the action of g on an arbitrary vector by [itex] g(x,y,z) = xg(e_1) + yg(e_2) + zg(e_3 = (z-y, x + y + 2z, 2x + y + 3z) [/itex]. Then [itex] g [/itex] is a linear isomorphism carrying [itex] T [/itex] onto [itex] S [/itex]. It's also a diffeomorphism onto [itex] S [/itex] because it is (obviously) smooth and has nonsingular Jacobian everywhere.
 
  • #11
JonnyG said:
I let [itex] g: \mathbb{R}^3 \rightarrow \mathbb{R}^3 [/itex], and defined the action of [itex] g [/itex] on the standard basis vectors by [itex] g(e_1) = (0,1,2), g(e_2) = (-1,1,1), g(e_3) = (1,2,3) [/itex], then defined the action of g on an arbitrary vector by [itex] g(x,y,z) = xg(e_1) + yg(e_2) + zg(e_3 = (z-y, x + y + 2z, 2x + y + 3z) [/itex]. Then [itex] g [/itex] is a linear isomorphism carrying [itex] T [/itex] onto [itex] S [/itex]. It's also a diffeomorphism onto [itex] S [/itex] because it is (obviously) smooth and has nonsingular Jacobian everywhere.

What do you do with the integrand ##f = x+2y-z##? What is your final answer?
 
  • #12
[itex] (f \circ g)(x,y,z) = 2z [/itex] and [itex] \mathrm{det}(Dg) = -2 [/itex], so that [itex] (f \circ g) \left| \mathrm{det} (Dg) \right| = 4z [/itex]. I get [itex] \int_S f = 4 \int_T z = 4 \int_0^1 \int_0^{1-x} \int_0^{1 - x -y} z \mathrm{dz} \mathrm{dy} \mathrm{dx} = \frac{1}{6} [/itex].

How come whenever I post on this site and start using LaTex, it slows down? The text I type lags behind my keystrokes. It only happens on this site.
 
  • #13
JonnyG said:
I let [itex] g: \mathbb{R}^3 \rightarrow \mathbb{R}^3 [/itex], and defined the action of [itex] g [/itex] on the standard basis vectors by [itex] g(e_1) = (0,1,2), g(e_2) = (-1,1,1), g(e_3) = (1,2,3) [/itex], then defined the action of g on an arbitrary vector by [itex] g(x,y,z) = xg(e_1) + yg(e_2) + zg(e_3 = (z-y, x + y + 2z, 2x + y + 3z) [/itex]. Then [itex] g [/itex] is a linear isomorphism carrying [itex] T [/itex] onto [itex] S [/itex]. It's also a diffeomorphism onto [itex] S [/itex] because it is (obviously) smooth and has nonsingular Jacobian everywhere.

It is disturbing because you don't clearly explain how your transformation sends a tetrahedron to another tetrahedron. How would you build a bijective transformation between 2 non-flat tetrahedrons ##(A_0,...,A_3)## and ##(B_0,...,B_3)##? I feel that this is the central question.
 
  • #14
It is very easy to check that [itex] g [/itex] sends [itex] \partial T [/itex] to [itex] \partial S [/itex], and since [itex] g [/itex] is a diffeomorphism, it sends [itex]\mathrm{int}(T) [/itex] to [itex] \mathrm{int}(S)[/itex].
 
  • #15
JonnyG said:
It is very easy to check that [itex] g [/itex] sends [itex] \partial T [/itex] to [itex] \partial S [/itex], and since [itex] g [/itex] is a diffeomorphism, it sends [itex]\mathrm{int}(T) [/itex] to [itex] \mathrm{int}(S)[/itex].

Instead, what I found a bit tricky (and not absolutely convincing!) is that using your transformation you "move the points", and transform the tetrahedron into another tetrahedron. I find it much easier to justify an approach in which the tetrahedron's points are not moved, but simply described in a different coordinate system. In my case I just used standard theorems about convex sets and their representation in terms of extreme points (vertices), allowing for a seamless switch to "barycentric coordinates". Of course, if you have never seen such material about convexity and convex hulls, etc., that approach might seem obscure.
 
  • #16
I have never seen that material before. I am taking a course in differential geometry next year. Can I expect to see it in the class? And I don't know if you actually calculated the integral, but did you get the same answer that I did?

EDIT: I have always looked at the change of variables thereom as, ok, suppose we have a surface that we want to integrate over. Let us find a diffeomorphism from that surface to another surface that may be easier to work with. It should transform "smoothly". But of course, there is a scaling factor which we must adjust for. The scaling factor turns out to be the absolute value of the determinant of the Jacobian. Is this the correct way to look at it? Or is there a better way to look at it?
 
  • #17
JonnyG said:
I have never seen that material before. I am taking a course in differential geometry next year. Can I expect to see it in the class? And I don't know if you actually calculated the integral, but did you get the same answer that I did?

Material on convexity and convex sets is not typically discussed in differential geometry; it is found in some linear algebra courses, and more generally in material on optimization modelling and methods. The result I used is really from very elementary convexity 101 and uses nothing deep at all.

I got the value 1/6 for the answer, as did you. For that reason I am inclined to "believe" your approach even though it leaves me unconvinced---at least as you have written it up.
 
  • #18
What is there to be "believed" though? It's just an application of the change of variables theorem. One may use the polar coordinate transformation, for example, to "transform" a sphere into a cube, so that the integral is easier to compute. In my case, I just did that but with tetrahedrons instead.
 
  • #19
JonnyG said:
What is there to be "believed" though? It's just an application of the change of variables theorem. One may use the polar coordinate transformation, for example, to "transform" a sphere into a cube, so that the integral is easier to compute. In my case, I just did that but with tetrahedrons instead.

Yes, a change-of-variables is exactly what I did; I am just not convinced that is what YOU did!

However, never mind. You did it your way and I did it my way, and we each prefer out own method.
 
  • #20
I agree with Ray, it is not clear what your thinking is. I feel like you are bluffing me honestly.
 
  • #21
JonnyG said:
What is there to be "believed" though? It's just an application of the change of variables theorem. One may use the polar coordinate transformation, for example, to "transform" a sphere into a cube, so that the integral is easier to compute. In my case, I just did that but with tetrahedrons instead.

Now that I have had a good night's sleep I am ready to expand on my response in #19.

Your verbal description of what you are doing does not match the actual mathematical formulas you end up using---which are exactly the same as mine, except where I use notation ##p_1,p_2,p_3## you re-use the same notation ##x,y,z## as in the original problem. In other words, you end up with an equation of the form
[tex] \int_S (x + 2y - z) dx dy dz =
4 \int_0^1 \int_0^{1-x} \int_0^{1 - x -y} z \mathrm{dz} \mathrm{dy} \mathrm{dx}[/tex]

Formally, that is OK because ##x,y,z## on both sides are ultimately dummy variables that get integrated over, so you can call them whatever you want. However, while formally correct it is perhaps "policitally" unwise: it tends to confuse the reader (or some readers, anyway---perhaps the reader who marks the question!). Using different variable names on the two sides makes everything much clearer.

Your description was that your are stretching and rotating the region, turning the vector (1,0,0) into (1,2,3), etc. And, when you write ##xg(e_1) + y g(e_2) + z g(e_3)## you are taking ##x,y,z## as now being the components of the vector in the ##\{ (1,2,3), (0,1,2), (-1,1,1) \}## basis, not in the original cartesian system. That would have been perfectly OK if the original question had not said that ##f = x + 2y - z##, because nowhere else in the original statement were the coordinates ##x##, ##y## and ##z## used. However, once the person writing the problem did use ##x,y,z##, you are not really entitled to change them without notice. If you had written ##x'g(e_1) + y'g(e_2) + z'g(e_3)## instead, that would have been OK. There is a genuine difference between writing ## x g(e_1) + y g(e_2) + z g(e_3) = g( x e_1 + y e_2 + z e_3)## and the corresponding formula with ##x',y',z'## in it (or with ##p_1, p_2, p_3##, as I used). In one case you are stretching and rotating the whole region---moving the actual points---but in the other case you are merely re-labelling the points without actually moving them or changing the geometrical shape. Of course, if you draw the region in ##(x',y',z')## coordinates it will have a different shape and size---that is the whole point of changing coordinates---but the actual region in ##(x,y,z)## space will not have changed.
 
  • #22
Ah, I see what you mean. That makes sense. Let me change my variables then to [itex] u,v[/itex] and [itex] w [/itex].So let [itex] g: T \rightarrow S [/itex] be given by [itex] g(u,v,w) = (w - v, u + v + 2w, 2u + v + 3w) [/itex].

@geoffrey159, look, it's simple. [itex] g [/itex] sends the boundary of [itex] T [/itex] onto the boundary of [itex] S [/itex]. For example, one edge in the boundary of [itex] T [/itex] is given by the line segment [itex] e_1 + t(e_2 - e_1) [/itex]. Plugging that into [itex] g [/itex], we get [itex] g(e_1) + t\left(g(e_2) - g(e_1)\right) [/itex], which you can check is the corresponding edge on [itex] S [/itex]. Furthermore, since [itex] g [/itex] is a diffeomorphism, it sends the interior of [itex] T [/itex] onto the interior of [itex] S [/itex] (we actually only need [itex] g [/itex] to be a homeomorphism for this to be true). So we see that [itex] g: S \rightarrow T [/itex] is surjective. To see that it is injective is simple. Suppose [itex] g(u,v,w) = g(u', v', w') [/itex]. Well, [itex] g(u,v,w) = ue_1 + ve_2 + we_3 [/itex] and [itex] g(u', v', w') = u'e_1 + v'e_2 + w'e_3 [/itex]. So obviously [itex] u = u', v = v', w = w' [/itex]. So [itex] g [/itex] is injective and thus its a bijection. It's obviously smooth, and since it has nonsingular jacobian everywhere, it's a smooth diffeomorphism.

Now just apply the change of variables theorem.
 

1. What is a tetrahedron?

A tetrahedron is a three-dimensional geometric shape that is made up of four triangular faces, six edges, and four vertices. It is a type of polyhedron and is often referred to as a triangular pyramid.

2. How do you set up an integral over a tetrahedron?

To set up an integral over a tetrahedron, you need to define the limits of integration for each variable in the integral. This is done by determining the coordinates of the vertices of the tetrahedron and using those coordinates to set up the limits for each variable.

3. What is the purpose of setting up an integral over a tetrahedron?

The purpose of setting up an integral over a tetrahedron is to calculate the volume or the surface area of the tetrahedron. This is useful in many fields of science and engineering, such as fluid mechanics, electromagnetism, and structural analysis.

4. Can you use any type of integral to calculate the volume of a tetrahedron?

No, only a triple integral can be used to calculate the volume of a tetrahedron. This is because the tetrahedron is a three-dimensional shape, and a triple integral is required to integrate over three variables.

5. Are there any special considerations when setting up an integral over a tetrahedron?

Yes, when setting up an integral over a tetrahedron, it is important to consider the orientation of the tetrahedron and the direction of the integration. This will affect the limits of integration and the final result of the integral.

Similar threads

  • Calculus and Beyond Homework Help
Replies
14
Views
663
Replies
1
Views
609
  • Calculus and Beyond Homework Help
Replies
8
Views
876
  • Calculus and Beyond Homework Help
Replies
4
Views
958
  • Calculus and Beyond Homework Help
Replies
27
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
853
  • Calculus and Beyond Homework Help
Replies
2
Views
544
  • Calculus and Beyond Homework Help
Replies
1
Views
463
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
Replies
11
Views
1K
Back
Top