Maths Exploratorium Bubbles
Transcript
I'm here at Math City. It is the UK's first hands-on maths exploratorium. It's full of all sorts of fantastic mathematical hands-on activities. If you're anywhere near Leeds, I highly recommend coming along and checking it out. I've been very excited to come and play with some of their stuff, particularly this. This is their giant bubble, I don't know, contraption. I'm standing in a ring of bubble solution, and if I pull this cord, it lifts up this hoop and it brings, look at that, oh, I popped, brings the bubble mixture with it. So before we do any maths based on this, which we will, I'm gonna do what most kids do when they get in this and just see how high I can get the bubble to go. Yes, I'm in a bubble. I was in a bubble.
What I actually wanna look at is the shape that we get if we very slowly pull this up so that the bubble mixture reaches an equilibrium. So if I hold it there, you can see it's kind of bowing in towards me. So it's not forming a cylinder, it's curving in and that's because the bubble film wants to minimize its surface area, something-something energy, and instead of just being a cylinder, if it comes in a bit, it's going to have a smaller distance around, but if it slopes in that takes more bubble mixture. So there's kind of a balance where it comes in a bit to minimize the area then curves back out again. And we're going to try and mathematically calculate exactly what this shape is.
I'm going to start by setting up our system once we've drawn the hoop up. So we'll have a hoop, let me try and, I'm just going to sketch what I can see over there. We've got one hoop at the top like this, not a bad hoop, and then we've got one at the bottom, so this one down here, this is like the dish that the bubble mixture is all in, and then when we pull this one up, it's gonna have some kind of curve joining this point to this point, and we already know it's gonna look a bit like a curve like this, but let's draw in some kind of exaggerated, oh the curve, it might go in, it might come out, it's gonna do whatever it does and join on there. Of course this then rotates all the way around. So we're going to try and get an equation for the total surface area, minimize it, and that should give us the optimal shape, which should be what happened over there. However, it's actually slightly easier, if you don't mind, I'll flip it up this way, because
now what I can do is put in this one here, put in an axis here. So if I put in this is my horizontal x-axis right through the center and it means up here I can have my vertical y-axis where this I'm going to plot some function of x and that's what we're trying to find. Trying to find the function of x which gives us this surface such that when it's rotated all the way around minimizes the area. So we have to be able to calculate that area. Okay, we can do that. So we'll look at just one little bit. So I've got an exaggerated bit of the curve. Let's do here, where it goes from there to there. And we're going to call that, that's our tiny delta S for a small change in length along the curve. But we actually want our delta A, which would be the whole band all the way around. So let me
see if I can draw this in. This is going to be like, and it's going to come around here somewhere, I guess. So that's that edge and then it's going to come down here and then around and then like up here. So this, so that's an adequately drawn band all the way around. So that's going to have some area delta A. So to work out what S is, well I'm going to draw a zoomed in version here. So here's our delta S and we could have gone along some, that's some change in X, very small change along that axis. then there's been a change in height of the function and that's our delta, well there's delta y but it's whatever the gradient is times the distance and so I'm going to write this as delta x times the gradient which is just the first derivative of the functions. I'm going to use y dash for that gradient. So y, y is actually the radius here, so if I was to draw in the
radius up to there that radius is getting a little bit crowded but that's whatever the value of y is for x at that point, it's all a function of x, and then this is the derivative at that point, and so delta s equals, well it's Pythagoras right, so that's the square root of delta x squared plus delta x squared y dash squared. And actually you may have noticed there's two delta x's squared in there so we can simplify that by just bringing that delta x out the front. 1 plus first derivative squared. And now the area, so our small change in area, is that whole band, so it's all the distance, it's like the width times the circumference all the way around which is just 2 pi r where r is y. So that equals 2 pi y times that, so square root of 1 plus first derivative squared
times delta x. And already you can see where we're going with this. So we're just going to integrate across all of them. So from zero to wherever, I'm not even going to bother putting that on there, the total area equals two pi integral of the function times square root of one plus its derivative squared dx. What we got to do now, solve that, the integral, minimize it and we'll get the shape. Sadly, that's super difficult. So here's the deal. You need a bunch of identities to work this through. It's a nightmare.
I'll link below to the Math World page that does it. And right now we would just skip to the punchline. So it turns out that function y equals, it's cosh, right? So it's a times cosh of cosh. your x coordinate minus b divided by a again. And that's it. So, cosh is just the hyperbolic co-sign. It's a bit of a shame, it's like we've got sine, and then you've got the complement sign, and then you've got the hyperbolic version, and that's kosh. Don't be fooled by its two degrees of separation. It is a fantastic function in its own right. You may recognize it from when you hang a chain. So a catenary, which is like a suspended chain under the force of gravity, forms a kosh function. So the shape we should get on the bubble mixture
is a catenary, but then on its side, However, we still need to work out what a and b are, and these are just some constants because you've got different shaped cosh plots. You've got this one, you've got this one, you've got all sorts of weird things, and so there'll be some way that this will match up for the specific, you know, situation we've got here. It's not like a parabola where there's only one, two parabola. No, there are lots of continuary plots, so we need to work out what a and b are, and sadly, It can't be done.
There is no like proper way of doing it. The only way you can do it is because we happen to know the point here where it starts on this ring, we know what its coordinates are exactly, and we know what the coordinates are here, that gives us two points which will give us two equations so we can solve for these two unknowns, but you can't solve it algebraically, you've just got to do it numerically. So I wrote a little bit of terrible Python code and it starts with arbitrary values for A and B and then gradually iterates them until it has less and less error between where it thinks these two points should be and where they should actually be. And so that way it's able to like home in the optimal solution and give us values for A and B, but they will of course be slightly different depending on the actual
size of our setup because if we want to get the equation which gives us this specific bubble film shape we need to know exactly how big our hoop is and then we put those values into my code and we should get the equation. 1.2 0.16, pull this up. 1.12, we'll do that, 1.12. Mild problem, the hoop at one end is a slightly different size to the hoop at the other end, because it has to fit inside it, and there's a bit of give. So I've just averaged them. I've taken an average. This height here is 1.0688.
meters. So that's the value I'm going to use in all my calculations and we need to now decide how far apart they are. Of course in our situation they can move but I'm just going to assume that they're let's say half a meter apart, right? Just for argument's sake we're going to call that 0.5 and I can put those into my code. So I've got some terrible, terrible code, which will do these calculations. I'm going to say it's got a diameter of 1.068.
Actually, that's a good point. That's all the way across. So that is divided by two for that specific height. Thankfully, my code uses the full diameter. And then I'm going to say we've got 0.5 length. Okay, we run that and oh, okay, here we go. So I've now got my values for a and b. So in this specific case a equals 0.46519 0.46519 That's exciting and b equals 0.25 b equals 0.22 Ta-da! It's a bit underwhelming, I'll give you that. So I've also got this to spit out some values. So I can tell you that it should have a surface
area of 1.61 meters squared when we pull it up by half a meter. More importantly, I predict that the diameter inside this, when it curls in, that mid diameter should be 93 centimeters. So I think that's what we'll do. We will try pulling it up half a meter and I should be able to measure a gap of 93 centimeters. So this kind of, I'm drawing all over this now, I do apologize. Once you curl that in, that mid throat all the way across there should be 93 centimeters. And we'll see how close that gets. And if we go up to, you know what, while we're here, Let's do 60 centimeters as well, just so we've got that. And then that should be 85. So if we get excited, we can try
for two. Okay, first of all, I'm gonna pull this up very slowly until it's 50 centimeters off the top of the rim, which I think is gonna be about, actually, if I hold this out at the same time, it's gonna be about is roughly a little bit more there.
Okay, now without moving this, huh, I'm gonna stand up. Here we go. Yes. Oh, I can probably hold that between my knees. Come on. Here we go. All I have to do now, thank goodness for long arms, down here, just doing some serious maths here, and measure this. It's moving a little, but it's fairly stable. I think it's about 93 centimeters. That's insane. Maths. I mean, I shouldn't be so surprised it worked, but if people are familiar with my back catalog, I think I'm allowed to be surprised that works so well. Okay, let's go two for two. Let's see if we can get a 60 centimeter height and go for an 85 centimeter diameter. Here we go. Again, we'll bring it, actually, I don't think I'm gonna fit squatting down this
time. Where's 60? Slowly. Going past 50. Okay. 55. 60 centimeters. Okay, I'm gonna lock that. Come on. Got it. Oof. Oh. It's moving around a lot. Oh no, okay, it's settling down.
I'm trying to not pull on the cable by accident. The width is roughly... Oh, just over 80. I think I bumped it too soon. I'm currently getting a measurement of 83. with the wobbling, I'm gonna call that 85. 100% success. Thank you very much. Those two values work to treat. Question now is, what about all these other values, huh? All of these? You may have spotted, so far, I've only calculated the values of A and B, hence the shape of the curve for one, meh, kind of two specific cases of the height of the ring, but in theory I could do it for all of them and put together a nice animation of what it looks like as the rings move apart. So of course I will do that. Future Matt here and I've plotted the hyperbolic
cosine function for those values of a and b when the hoops are half a metre apart and actually I've plotted more than just this one. I can now animate as the distance increases. And I'll stop it here. Actually, a little bit too far. I'll go back. I've done every single millimeter. So there it is, exactly 0.6 meters apart. And you can see at the top there, that 56.1%, that's just comparing the separation between the hoops to the diameter of the hoop. And so in this case, the diameter of the hoop is just over a meter. And actually, because I've saved these all out, we can now slide through any separation we want. Before we ever...
too close to look at that. I just want to remind you of how I actually worked these out. So here is half a meter, but I've reset it to my first guess. A and B both equals 1. And the error value of 1.6, I'm just adding the total distance accumulative of both ends from where they should be. And then what I do is I just iterate each value of a and b a little bit at a time and here we go, then it comes flying in. You know, I'm gonna back that up a bit. So what I'm actually doing here is you can see when they're both equal to 1, it's so bad. Like, they're 1.6 meters combined, like, each end, I guess, on average is 0.8 meters away. You can't even see it on the plot. But then my code, first of all, realizes a and b both have to be smaller. and then smaller, and then smaller, and smaller, and eventually, oh, here we go, it's coming in. So now one end's close, but the other end's pretty bad. So it realizes it can keep A still and tweak B to bring the other one down. Still a lot of error, and it just keeps doing, and it does it in smaller and smaller steps
until the ends get closer and closer to where they should be. And then I've had like a cutoff. I say, keep going until the error is smaller than 10 to the negative seven. And so eventually it settles in on these values and then it locks in that plot. So now I can show you, actually if we go right back to the beginning, I can start it at zero and then just set it running. So this is where we're gradually drawing the hoops apart. The blue line's a little bit jumpy just because of the way that I've plotted it. It's trying to stay as close as it can, um, to that point but that's not the maths that's just the way I've done this visualization you can see here as the hoops are getting further and further apart it's starting to hang down I mean sagging like a chain but of course this is the soap film on the side until suddenly oh what happened there okay this really threw me when I was trying to work that originally because if I back that up again to here it's great and you can see here it really looks like the soap film moving quite organically but
then around about here watch that error The error is tiny, 10 to the negative 8 kind of level. And then suddenly here, I mean the error is so small here, registers as zero. And then, boom, it's off. Look at those ends, they're flying away. And that really confused me. And this is not because my technique of finding the value of A and B has broken. That's just the best A and B possible. And the error is huge. So over here, great. And then suddenly, where does it break? It's like... here somewhere. So it's tiny, tiny, tiny, massive.
So around there, about points, just over 0.7 meters, suddenly my mass falls apart. That bit where the curve separates off from the fixed points, which by definition should be on the curve, really confused me. And when I was debugging my code, I'd accidentally picked values, which were one of those points. And then suddenly it dawned on me. I'm like, I'm just getting crazy errors here but if I change the separation I get much much smaller errors. So I quickly plotted in Excel the magnitude of the error. So this is a log plot and so as you go up you're going up in orders of magnitude and for these ratios and so that's like the diameter of the hoop as a ratio of how far apart the hoops are, down here, fine, we're like at 10 to the negative 8, 10 to the negative 7, tiny, tiny errors. And that's just because I
only worked out A and B to a certain level of precision. And then suddenly here, bam, we jump up multiple orders of magnitude. So we were suddenly way off and it happened so abruptly and I accidentally started working on this side of this discontinuity and over here is where it actually works and that point is a very significant value. There are actually two key points as you lift up our two hoops. The first of them occurs at roughly 52.77% of the way up. It's called the Goldschmidt ratio and that is where, here we go, this ceases to become the globally minimum surface area. So for this set up, let's be honest, it's about a metre across on the ring, so it's gonna be about 53 centimetres. It's about there. So
here, this is where this arrangement of the bubble film ceases to be the global minimum, because this is where it exactly equals just the surface area the two disks. So technically you could fulfill the same boundary conditions by just having a flat disk of film at the top and a flat disk at the bottom. And at this point here if I go any further there this surface area is now bigger. But this is still a local minimum. So it's stable. It'll stay here even though technically if it collapse into two discs that will be better. The next point occurs at 66.274% of the distance up compared to the distance across here and that's where it ceases to be stable and it will collapse into the other solution. So what I'm going to do is I'm going to put my measuring tape here and I'm very
very slowly I'm gonna inch my way up and I'm gonna see at what height this ceases to be stable, which is about 70 centimeters. Oh, so we're now at 66 centimeters. Here it goes. No, it's still stable. I'm trying to not breathe on it. I'm worried it's wobbling a lot, so we may accidentally perturb ourself into the unstable region. So far so good, a little bit higher. Okay, it should be unstable about now. Here it goes.
You can see it's contracting in. And it's gonna flip to the other solution. Here we go. And now we're two discs! And it happened right on, let me get my exact distance, 71 centimeters. That is so close to the point where my error exploded when I was doing the numerical solutions. That's amazing. So what I love about this is I worked out theoretically how to model this as an equation and then just by playing with it I didn't know what was happening but my numerical solution broke. So me doing the maths fell apart and it fell apart right at a ratio of 66% which in reality is exactly when the bubble falls apart. So because the maths stopped working is exactly the same place where reality stopped working. So good.
Thanks for watching the video. If you're ever anywhere near Leeds in the UK, you must come and see Maths City. It's a huge amount of fun. It's in the Trinity shopping arcade thing up on the first floor, just past the food court. They're gonna be open for at least a year. So if you're watching this and it's before October 2022, they're definitely still open and maybe after that. Google it. you'll work it out. And I'm actually in Leeds, partly for this and partly tomorrow night, a friend of mine, Seb Lee Delisle, is doing a laser installation. And so I'm making a video about the maths of that. It's gonna be super great. That video is either already out or will be out soon. I don't know. My video release schedule is comprehended by no one. So keep an eye out for it. or go watch it. And finally, thank you to Nico, who's filmed both this video and the one I'm doing with Seb tomorrow night, which may already exist. And they've got a channel called Live to Ride, all about mountain biking. Now, I tend to bike
somewhere between road and gravel, but I will accept that mountains are also an acceptable place for bikes. Link in the description.

Ask anything
We've read this whole study set, so questions about it get the best answers.