Skip to main content

Volume Under an Egg Carton

 




Fubini's Theorem asserts that for a function \(f(x,y)\) the volume under the surface which is bounded by a region \([a,b] \times [c,d]\) can be found either by first integrating with respect to y, or with respect to x. In either case, the other variable is treated like a constant. 
This means that if we make the bounds of y between c and d, and the bounds of x between a and b, then the two following integrals are equivalent!
\[\int_{c}^{d}\int_{a}^{b}{f(x,y)dxdy}\]
\[\int_{a}^{b}\int_{c}^{d}{f(x,y)dydx} \]
This really only works easily for continuous functions. The fact that we can integrate x and y (or any collection of independent variables) in any order is surprisingly fundamental to quantum chemistry. For the three-dimensional wavefunction for electronic orbitals for a molecule, to determine the electronic surface, each electron is given a volume integral over the whole space, for each spin. If we couldn't integrate freely in any direction, matter as we know it wouldn't exist!
Here, \(\Psi_1\) represents wavefunctions for electrons with spin 1 and \(\Psi_2\) represents electrons with spin 2, s represents energetic states, and r represents a basis set of functions for each particle in an N particle system. 
\[(\Psi_1, \Psi_2)  = \sum_{s_N}^{} \dots \sum_{s_2}^{} \sum_{s_1}^{} \iiint_V{r_1 dxdydz } \dots \iiint_V{r_N dxdydz} \]
Additionally, a region can also be bounded by functions of a certain variable. For instance, we could force the bounds of y to be \(g(x)\) and \(h(x)\) to yield the integral below: 
\[\int_{a}^{b}\int_{g(x)}^{h(x)}{f(x,y)dydx}\]
However, for the purpose of brevity, I choose to enclose my function in a rectangular region. I was thinking about how much I liked egg cartons, but how I hated eggs. Likewise, I didn't want to do anything as high flying and complicated as a wavefunction, though it would have been fun. So, I decided to make a surface which looked like an egg carton. Below I give my surface, which I created with Geogebra. 


I chose \(\displaystyle f(x,y) = 3\cos(x) - 4\cos(y)\) and bound x and y between \([0,4]\) and \([0,4]\) respectively since it roughly captured the geometry of an egg carton. 
I can find the volume under this region with the following integral:
\[V = \int_{0}^{4}\int_{0}^{4}{3\cos(x) - 4\cos(y) dxdy}\]
\[V = \int_{0}^{4}{3\sin(x) -4x\cos(y)\Big|_{0}^{4}dy}\]
\[V = \int_{0}^{4}{3\sin(4)-16\cos(y)dy}\]
\[V = (3y\sin(4) - 16\sin(y)\Big|_{0}^{4}\]
\[V=(3*4\sin(4) -16\sin(4)\]
\[V = -4\sin(4) \approx 3.027\]
My approximation had a high error, and the computed volume was \(V \approx 4.8 u^3\). I believe this was due to the high step size, and that integrating over a more dense grid would solve this problem.
To make a model of this surface, I divided the region into 20 squares and found the righthand endpoints. My model spanned 4 inches in both the x and y directions, and spanned almost 11 inches from top to bottom due to the height of the wave in the positive and negative z direction. 




Once again, I used Python to calculate the how \(f(x,y)\) changed over the region with my chosen subdivision. I give the output of this code below, as written to a CSV file, made from a Pandas DataFrame. 


My code only spans 20 lines, so I supply it as an image, rather than an interactable widget. 







Comments

Popular posts from this blog

Do Over: Double Integrals over Regions

Introduction Over the semester we've looked at many topics and created 3D models. For this we are going to revisit an old topic, double integrals over a region. In this we found the volume of a surface in the xyz-plane bounded by two curves. From the many topics I chose to revisit this topic. I have a couple reason to why I chose to redo this. First, the model did not print correctly. The print added spaces between the rectangular prisms. Another reason was that I think the surface and curves did not represent the topic entirely. The surface I chose just increased between the curves. Improvements When making the model on Onshape there were no spaces between the rectangles, which can be seen on the right. However, when printing this spaces were being added. The second issue was with the surface I chose which was \(f(x,y)=xy+x\). This function only increased over the two curves I chose \begin{align*} f(x) &= \sqrt{x} ...

The Septoil Knot

Knots are a very interesting topic and a field that has not quite been fully discovered, so mathematicians are still discovering new ideas and invariances about knots even today. While it may seem like knots are a simple skill you learn at camp, they actually have a lot of mathematical properties and in this blog post we are going to look at just a few. By mathematical definition, a knot is a closed curve in three dimensional space that does not intersect itself. Since we are working with three dimensional space and you are reading this on a two dimensional screen, we need a way to look at knots in two dimensions and that is where knot projections come in. A knot projection is simply a picture of a knot in two dimensions and where a knot crosses itself in the projection is simply a crossing of that projection. The number of crossings of a knot is the smallest number of crossings among all projections of a knot. Since a knot is not necessarily solid, one...

Knot 10-84

Introduction In mathematics, a knot is simply a closed loop. The simplest version of this is the unknot, which is a just a closed circle (imagine a ponytail holder). Knots, however, quickly become more complicated than this more basic example. This post will examine a particular knot (knot 10-84) and a few of its knot invariants. Crossing Number Knots are often defined by their crossing number, which is the number of times the knot’s strands cross each other. As indicated in its name, knot 10-84 is a 10 crossing knot. In order to visualize the knot, we can look at its knot projection, in which the knot is represented by a line segment broken only at its undercrossings: Tricolorability Now that we’ve looked at knot crossings, we will examine a potential property of knots: tricolorability. In order to understand tricolorability, it is first important to know that one strand of a knot is defined as an unbroken line segment in the knot p...