Skip to main content

Magic Carpet Level Curves

When starting to think about what function I wanted to print to show level curves, I immediately thought of the magic carpet that they ride in the movie Aladdin. In my head this was a perfect example of a function in three-dimensional space because you could clearly see the plane and its curves. When the magic carpet is flying, you can imagine that when the sun is in the perfect spot, the shadow of the magic carpet would produce a shadow of one set of level curves.
When attempting to find a function that mimicked a magic carpet, I started doing some research. I figured some sort of sine or cosine function would give me a nice curvy function so I attempted to use f(x,y)= sin(x-y), but this function was a little too wavy and did not give me the shape I wanted. So, I kept researching and found my function of: \[ f(x,y) =xy(\dfrac{x^{2}-y^{2}}{x^{2}+y^{2}})\] Something fun I discovered while researching functions was that most people don't think of level curves in terms of magic carpets, but I think it's helpful to think of something you are familiar with when explaining something unfamiliar. The function that I chose resembles a magic carpet when it's a little too windy outside. The three-dimensional graph below shows the function as well:
My function continues to increase in all directions, but since I wanted it to look like a magic carpet, I restricted it to only show when x and y were both between -2 and 2. Because of my restrictions in the x and y direction, the function only moves between -1 and 1 in the z direction. Since parameterized surfaces are functions in three-dimensions, they can be hard to visualize. In order to better visualize them we can draw them in two dimensions, we call these level curves. In order to find the level curves, you must set the function equal to a specific z-value and graph the new equation. You can do this for as many "heights", or z values, as you want or as you deem necessary. Since my functions z values range from -1 to 1, I chose 9 different z values to find 9 level curves. I calculated the functions for the following z values: -0.8, -0.6, -0.4, -0.2, 0, 0.2, 0.4, 0.6, and 0.8. The following functions resulted: \[ -0.8 =xy(\dfrac{x^{2}-y^{2}}{x^{2}+y^{2}})\] \[ -0.6 =xy(\dfrac{x^{2}-y^{2}}{x^{2}+y^{2}})\] \[ -0.4 =xy(\dfrac{x^{2}-y^{2}}{x^{2}+y^{2}})\] \[ -0.2 =xy(\dfrac{x^{2}-y^{2}}{x^{2}+y^{2}})\] \[ 0 =xy(\dfrac{x^{2}-y^{2}}{x^{2}+y^{2}}), y=0, x=0, y=x, y=-x\] \[ 0.2 =xy(\dfrac{x^{2}-y^{2}}{x^{2}+y^{2}})\] \[ 0.4 =xy(\dfrac{x^{2}-y^{2}}{x^{2}+y^{2}})\] \[ 0.6 =xy(\dfrac{x^{2}-y^{2}}{x^{2}+y^{2}})\] \[ 0.8 =xy(\dfrac{x^{2}-y^{2}}{x^{2}+y^{2}})\] When these functions are graphed on a graphing calculator in two dimensions, the following graph appears.
I enjoy looking at the level curves graph because you can easily tell multiple things about the function in three dimensions. You can easily tell that the function is centered around (0,0) and is perfectly symmetric. You can also see that the further the level curve is from the origin, the closer it is to the previous curve. The following image is what my print will look like with the level curves at their appropriate heights.
The dimensions of my print, including a stand for display, end up being about 54mm by 54mm by 48mm. I had to print with supports so the print time will be a bit longer.

Comments

Popular posts from this blog

Do Over: Integration Over a Region in a Plane

Throughout the semester we have covered a variety of topics and how their mathematical orientation applies to real world scenarios. One topic we discussed, and I would like to revisit, is integration over a region in a plane which involves calculating a double integral. Integrating functions of two variables allows us to calculate the volume under the function in a 3D space. You can see a more in depth description and my previous example in my blog post, https://ukyma391.blogspot.com/2021/09/integration-for-over-regions-in-plane_27.html . I want to revisit this topic because in my previous attempt my volume calculations were incorrect, and my print lacked structural stability. I believed this print and calculation was the topic I could most improve on and wanted to give it another chance. What needed Improvement? The function used previously was f(x) = cos(xy) bounded on [-3,3] x [-1,3]. After solving for the estimated and actual volume, it was difficult to represent in a print...

Minimal Surfaces

Minimum surfaces can be described in many equivalent ways. Today, we are going to focus on minimum surfaces by defining it using curvature. A surface is a minimum surface if and only if the mean curvature at every point is zero. This means that every point on the surface is a saddle point with equal and opposite curvature allowing the smallest surface area possible to form. Curvature helps define a minimal surface by looking at the normal vector. For a surface in R 3 , there is a tangent plane at each point. At each point in the surface, there is a normal vector perpendicular to the tangent plane. Then, we can intersect any plane that contains the normal vector with the surface to get a curve. Therefore, the mean curvature of a surface is defined by the following equation. Where theta is an angle from a starting plane that contains the normal vector. For this week’s project, we will be demonstrating minimum surfaces with a frame and soap bubbles! How It Works Minimum surfac...

Ruled Surfaces : Trefoil

Ruled Surfaces : Trefoil A ruled surface is a surface that consists straight lines, called rulings, which lie upon the surface. These surfaces are formed of a set of points that are "swept" by a straight line. This is relatively intuitive once you see a good visual, but can be a bit abstract without that concrete example. A very basic example of a ruled surface is a cylinder; if we have a straight line and move it in a circle we create a cylinder made entirely of straight line. Note that the surface will only be a cylinder if all the lines are parallel. If the lines are not parallel we can create hyperboloids and cones depending on how much we have rotated. The rotation we are describing here is not a simple turning action, but more of a twisting motion—less like rotating a can by turning it and more like wringing out a washcloth by twisting it. Specifically, a cylinder is essentially two circles connected by rulings, if we keep one of the circles...