The Optimization Problem No One Cares About But My Son

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ •

  • @MathTheWorld
    @MathTheWorld  7 місяців тому +247

    I want to thank all of you for your comments and questions. I love the extensions that people have suggested and ideas others have offered. I (or we) haven't had time to respond to all, but here is the follow up video! Math Overkill Part 2: ua-cam.com/video/jSR-QR2GRqQ/v-deo.html

    • @itsyo42
      @itsyo42 7 місяців тому +1

      How many of the creases do I need to unfold for that angle?

    • @NathanK97
      @NathanK97 7 місяців тому +2

      that all is a great theoretical answer, but practically how many folds do you have to untuck to get closest to the optimal angle?

    • @Quxi
      @Quxi 7 місяців тому +2

      Hi, I don’t know if somebody asked this, but I feel like you’re overcomplicating the problem.
      In my mind if we’d integrate in a polar coordinate system from 0 to 2π we could simplify the problem to optimizing the area of our slice, which simplifies the problem. We can see the area of our slice being the area of a rectangle plus the area of the triangle, which we can describe as height * radius + 0.5 height ^ 2 * tan θ from here my math can be rusty, but if we do a derivative by height we get 0 = radius + height * tan θ, and a derivative by θ we get 0 = height * radius + 0.5 height ^2 * (sec θ)^2 which we can substitute to get 0 = 0.5 * height ^2 * (sec θ)^2 - height ^2 * tan θ, which assuming height is positive leaves us with 0 = 0.5 (sec θ)^2 - tan θ, which, if I didn’t make a mistake means that the optimal angle is π/4 regardless of size. The follow-up question of a sauce pile is harder because of the physics of what kind of a cone can the sauce form, but still we can simplify it to 2D slices of instead of integrating disks along y we integrate slice rotating around y.

    • @BirnieMac1
      @BirnieMac1 7 місяців тому +1

      We need more information to do the homework, it’s a wetting angle problem so don’t we need to know the surface tension of the sauce?
      I want those stickers dammit, we’re doing it properly

  • @FinleyRichard
    @FinleyRichard 7 місяців тому +989

    Wait 8 kids, you are the math problem guy

    • @popemon7608
      @popemon7608 6 місяців тому +32

      He must have calculated it's Cheaper By the Dozen

  • @carlospena98
    @carlospena98 7 місяців тому +2047

    8 KIDS???? IN THIS ECONOMY?

    • @itsyo42
      @itsyo42 7 місяців тому +97

      Free sauce is free sauce

    • @404-Error-Not-Found
      @404-Error-Not-Found 7 місяців тому +154

      When you know math, you can afford it apparently

    • @MAYBEMAYNOTBE2
      @MAYBEMAYNOTBE2 7 місяців тому +50

      He knows math don't question him😅

    • @gideonk123
      @gideonk123 7 місяців тому +5

      @@itsyo42which sauce are you referring?

    • @itsyo42
      @itsyo42 7 місяців тому +4

      @@gideonk123 mayo

  • @HawkulusQuest
    @HawkulusQuest 7 місяців тому +1369

    Your son is not the only one who cares! I wrote a python script to solve this very problem in 2021! I found it and dusted it off, and after plugging in your dimensions and accounting for the fact that I used the angle of the walls with the table as theta, I got the same answer! I used the calculus method by summing up tiny disks numerically without writing out the actual equation.
    Good to know someone else couldn't sleep without knowing this, and thanks for sharing it with the world!
    P.S. the question actually arose when my wife showed me a "life hack" that those paper cups were actually designed to do that. After some patent research I discovered that that is not true. It's just a very economical method to form paper cups from flat paper. But it did prompt me to ask what the optimal angle would be.

    • @HawkulusQuest
      @HawkulusQuest 7 місяців тому +88

      Also, for those who care, the total sauce capacity increases by 88% in this example, assuming I still understand the code I wrote 3 years ago. Not quite double, so I'm not sure I'd bother compromising the structural integrity of my cup, especially since you must also accurately gauge the angle to reach that 88%.

    • @dillonstrange5152
      @dillonstrange5152 7 місяців тому +39

      XD I think its great that you took the time to do "some patent research". Not, I think, to say "you are wrong and I'll prove it" but just to find out because you can.

    • @Nano-n
      @Nano-n 7 місяців тому +6

      may I have the codes if it still available? I'm still new to python and im just figuring things out.

    • @HawkulusQuest
      @HawkulusQuest 7 місяців тому +7

      @@Nano-n Sure thing! I'll add some better commentary and send it when I get home today.

    • @Nano-n
      @Nano-n 7 місяців тому +1

      @@HawkulusQuest thank you for the reply

  • @yanniammari1491
    @yanniammari1491 7 місяців тому +5142

    8 kids? bro keeping the fertility rates UP on his own

    • @gogo8965
      @gogo8965 7 місяців тому +846

      the optimal technique

    • @Pikasso2
      @Pikasso2 7 місяців тому +755

      Bro found the optimal impregnation time slot, with 8 nerd stickers to boot

    • @caspermadlener4191
      @caspermadlener4191 7 місяців тому +236

      Practising multiplication

    • @James2210
      @James2210 7 місяців тому +136

      7 boys and 1 girl. Can you imagine? that's like a 0.1% chance

    • @caspermadlener4191
      @caspermadlener4191 7 місяців тому

      @@James2210 The chance of getting 0 or 1 girl out of 8 children, assuming a fifty-fifty chance of getting a boy or a girl, is (1+8)/2⁸≈4%.

  • @rithishkr1697
    @rithishkr1697 7 місяців тому +1078

    This is the kind of question that should be asked on math exams to get students even a little bit less scared about the problem

    • @Kokurorokuko
      @Kokurorokuko 7 місяців тому +61

      I think it's quite common for olympiads to have these types of questions.

    • @magicmeatball4013
      @magicmeatball4013 7 місяців тому +27

      @@Kokurorokukoolympiads having calculus LMAOOOO you innocent soul

    • @carultch
      @carultch 7 місяців тому +33

      Usually in an introductory calc class, they try to give you optimization problems that can be solved analytically to an exact solution, and fairly easily without tedious algebra beyond the scope of the class, instead of relying on numeric methods. It can be very hard to come up with examples that simplify nicely, and this example, unfortunately didn't.

    • @Kokurorokuko
      @Kokurorokuko 7 місяців тому +3

      @@magicmeatball4013 what?

    • @magicmeatball4013
      @magicmeatball4013 7 місяців тому +3

      @@Kokurorokuko the math Olympiad has 0 calculus on it, it’s innocent to think that scary calc problems would appear on olympiad level stuff

  • @Funnymoney101
    @Funnymoney101 7 місяців тому +807

    Situations like these are where I most enjoy using math, not in finding an answer to a question that I know has already has been solved but in finding an answer to a question no one has asked.

    • @omerelhagahmed551
      @omerelhagahmed551 7 місяців тому +9

      In fact it is very likely asked and answered intensively or it's very hard on higher levels

    • @setusof
      @setusof 7 місяців тому +2

      Why human wanna be unique ? 🤔

    • @seeker296
      @seeker296 7 місяців тому +4

      Bc otherwise we're too easy to replace ​@@setusof

    • @alex.g7317
      @alex.g7317 7 місяців тому

      @@seeker296you say that like it’s a guarantee

    • @badabing3391
      @badabing3391 7 місяців тому

      ​@@alex.g7317its close to one

  • @ben_26
    @ben_26 7 місяців тому +443

    the funny thing is, when i was younger i used to go to a frozen yogurt place where you could sample frozen yogurt in cups like this, and my older brothers friends would sometimes try to get the best angle of the cup to get the biggest sample. so yes, this question has in fact been asked before

    • @siliconhawk
      @siliconhawk 7 місяців тому +65

      average day of a mathematician, trying to prove something for days because you couldn't find any relevant research on it. then once you are done you figure out some guy proved it 50 years ago but it was a different domain of problem that didn't coincide with your domain but since the domain is the same the proof is the same as well

    • @TheBlueArcher
      @TheBlueArcher 7 місяців тому +1

      @@siliconhawk you should have tried to fit the word domain in a few more times in that comment 😂😂

  • @malvoliosf
    @malvoliosf 7 місяців тому +203

    Don’t forget, the amount of sauce you can pile above the rim gets bigger with the CUBE of the radius of the rim, up to a certain point...

    • @dougcorey3830
      @dougcorey3830 7 місяців тому +26

      Great Point! I (the script writer) was just thinking about it leveling out, like water that is over the brim of a cup, but if it keeps a somewhat cone shape, you could get a lot more sauce and it would impact the optimal angle.
      I have thought about doing a video on the optimal angle of an iceccream cone (that is the actual shape of a cone) if the ice cream above the brim of the cone is a hemisphere. I think it would be much more like a plate than a typical ice cream cone.

    • @malvoliosf
      @malvoliosf 7 місяців тому +31

      @@dougcorey3830 With granular substances like sand, there is a thing called “angle of repose”: you can pile up sand as high as you like, and for a particular kind of sand, the heap will be a cone with a particular angle.
      With semi-solids like sauce, it’s different, I think because it’s about surface tension and viscosity fighting gravity...

    • @dougcorey3830
      @dougcorey3830 7 місяців тому +13

      @@malvoliosf I know about the angle of repose, but I don't know anything about semi-solids (except how good they can taste!). Thank you for the lead. I will venture over to a colleagues office in fluid dynamics and maybe they can help me understand it.

    • @WaffleAbuser
      @WaffleAbuser 7 місяців тому +12

      @@malvoliosfWith ketchup being a non-Newtonian fluid (seriously) I think treating it as a collection of particles might still be applicable!

    • @bbgun061
      @bbgun061 7 місяців тому +12

      I don't think think so. When it's sitting in the cup, it's not under any pressure. So it's non-newtonian properties won't have any effect.
      There's something similar to angle of repose for thick liquid suspensions called "slump." (It's used to measure concrete...)

  • @abduking.
    @abduking. 7 місяців тому +557

    8 kids💀💀💀bros trying to make a math clan

    • @pimage8047
      @pimage8047 6 місяців тому +10

      A math class.

    • @GregFRDT
      @GregFRDT 6 місяців тому +9

      Families in math problems be like

    • @flamingfire0
      @flamingfire0 6 місяців тому +4

      Bro IS the math problem

  • @HagalazI
    @HagalazI 7 місяців тому +67

    When I was younger I contemplated the optimal angle. I found that I could not establish an intuition about the problem and surrendered. Thanks to you and Wolfram for doing all the legwork I wasn't going to.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +10

      You are welcome! Do you have any other problems that have stumped you?

    • @HagalazI
      @HagalazI 7 місяців тому +2

      @@MathTheWorld Not any other that I can think of. I thought about this problem some more. I think something that would get me closer to getting an intuition would be to think of the problem in terms of two cylinders: The smaller one in the center, not accounting for the flare, and one which encompasses the whole cup.
      Maybe that means this problem could also be represented as: 1/2(BigCyl-SmallCyl) + SmallCyl
      Is there a reason this doesn't work?

    • @v0id_d3m0n
      @v0id_d3m0n 5 місяців тому +1

      @@HagalazI I think you'd end up with the same / very similar calculations to solve it because you'd have to take into account the heights of the cylinders and the radii as you expand the cup, which would probably still involve using the angle theta.

  • @5eurosenelsuelo
    @5eurosenelsuelo 7 місяців тому +122

    Optimization problems are always super interesting. They are a great tool for teaching and learning. Regarding the question at 8:25, I'd propose that rather than fixing an arbitrary value such as 5 mm over the rim, the problem can instead take into account the angle of repose which I think is a little more realistic and it is also an excuse to teach other interesting concepts.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +23

      Thank you we agree!

    • @bixenteartola6777
      @bixenteartola6777 7 місяців тому +4

      By considering an angle of repose of 45 degrees and that the shape above is a spherical shape (the top part of a sphere that is cut such that the angle at the base is the angle of repose), I found an optimal angle of about 44 degrees. So the approximation of 45 degrees is even more accurate! But I wonder if a dome shape is really accurate, perhaps is would be closer to a cone? Also the angle of repose is not exact. But anyway, adding a pile on top added only about 3 degrees to the optimal angle, so any shape or angle of repose will still give a value close to 45 degrees probably.

    • @CooperGiles-mv3jn
      @CooperGiles-mv3jn 7 місяців тому

      ua-cam.com/video/g4bNhXX1oRw/v-deo.html - I made this video in which I did just that!

    • @bumpty9830
      @bumpty9830 7 місяців тому +4

      I spent years focusing on optimization as an R&D engineer in the aerospace industry, and the most interesting lesson I learned was that your initial assumptions about the constraints of the problem are almost always wrong. In a toy problem like this with literally one degree of freedom in the design space, it's easy enough to nail down. But when you run a real-world optimization problem, your first results won't be about an optimum design, but about design space assumptions that need to be adjusted.

  • @dbarcene
    @dbarcene 7 місяців тому +275

    Mathematician: Let's calculate the optimal unfolding of this topology...
    Phycisist: If we assume the cup to be cilidrical cone...
    Engeneer: Fill more cups. Soucer go brrrrrr!!

    • @concerningindividual
      @concerningindividual 7 місяців тому +46

      Mathematician when the Arby's ends up closing because they spent too long trying to find the optimal cup angle (time was an unaccounted variable)

    • @scragar
      @scragar 7 місяців тому +12

      My niece had a similar problem.
      My solution was to grab a cup meant for drinks, rip the top of it off so it's shallow enough to dip stuff, and use that.
      Much faster and easier.

    • @siliconhawk
      @siliconhawk 7 місяців тому +15

      computer science guy - well since i am too lazy to do maths and stuff. let me make a simulation and figure out the best way to do it.
      1 day later - fu*k where is f the bug in the code.
      why the f did it crash.
      huh there is a fire in my pc.

    • @bumpty9830
      @bumpty9830 7 місяців тому +19

      As an R&D engineer I worked closely with both physicists and mathematicians, and my experience was more like:
      Mathematician: I've written a theorem and emailed each of you a PostScript copy of the paper including the proof. It's a shame we're constrained to real-valued angles.
      Physicist: Okay, but we are constrained to real-valued angles, so here's the optimal result.
      Engineer: We built a prototype yesterday. If you want to get closer than this, you're going to need a new factory for precision construction.

    • @empty_thesaurus
      @empty_thesaurus 7 місяців тому +8

      Programmers: ok, it took me about 30 mins to come up with a road plan to calculate this out like mathematician would, bow it would take me ~5 whole minutes to actually calculate it! Luckily, I can simply spend an entire weekend coding a script to do it for me!

  • @donniemorrow
    @donniemorrow 7 місяців тому +10

    Field Manual for the Practical Saucer:
    Optimal sauce fillage can be achieved by yanking apart alternate pleats in the cup to achieve a uniform 45° angle.
    Yank every 3rd pleat if you need a good balance of sturdiness and volume without risking sauce spillage, especially if the sauce is liquidy or you are on-the-go

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +2

      @donniemorrow Thank you for your post. We have had a lot of math and physics in the comments, but you have added some vital engineering. Well Done!

  • @schizoframia4874
    @schizoframia4874 7 місяців тому +111

    It’s funny how a problem so mundane can be solved with calculus. Love it

    • @Fire_Axus
      @Fire_Axus 7 місяців тому +3

      your feelings are irrational

    • @bumpty9830
      @bumpty9830 7 місяців тому +13

      Calculus (and really, differential equations) is more fundamental to daily experience than we tend to realize. For example, the basic relationship between position, speed and acceleration, which we understand intuitively enough to throw baseballs accurately, involves a second-order differential equation.
      The American education system treats calculus like rocket science, but that's a feature of the culture rather than a truth about mathematics.

    • @v0id_d3m0n
      @v0id_d3m0n 5 місяців тому

      @@bumpty9830 yeah basic calculus itself is so easy... I guess the troubling thing for people might be how abstract it gets and how it's like a gateway to the complex world of pure mathematics and advanced calculus.

  • @tiripoulain
    @tiripoulain 7 місяців тому +306

    My gut tells me that 45 degrees is optimal if the base has a 0 radius, whereas in the limit as the base gets really wide, the optimal angle ought to approach 0 degrees

    • @arctan4547
      @arctan4547 7 місяців тому +17

      thats two times the area of two triangles right? so maximize cos(theta)sin(theta)
      one multiplication rule later we get cos(theta)(cos(theta))-sin(theta)sin(theta)
      angle addition formulas say we get cos(2 * theta)
      thats pi/4 for the intercept, you were correct, and I survived self doubt of doing all of this while not even having taken a geometry class

    • @jestercab42
      @jestercab42 7 місяців тому +16

      If the base was 0 then the corresponding shape would be a regular cone and so we can just use the formula
      pi*base*height/3
      and writing it in terms of theta with the given 2.5 cm of the side we have the function
      (pi*(2.5*sin(theta))^2)(2.5*cos(theta))/3.
      Then if we optimize this we actually get an angle of about 54 degrees and not 45.

    • @jestercab42
      @jestercab42 7 місяців тому +4

      @@arctan4547 I don't understand what you mean by two times the area of two triangles. Isn't the case of a 0 radius base just a circular base cone?

    • @MikehMike01
      @MikehMike01 7 місяців тому +5

      @@jestercab42equilateral triangle has the most area so if the base is zero I would expect 60°

    • @alexanderbudianto7794
      @alexanderbudianto7794 7 місяців тому +8

      I decided to do the calculation myself with an arbitrary radius and slant height. Turns out, it really depends on the ratio between the radius and slant height, and the exact solution is very complicated, involving the arcsine of the cubic formula. As the radius approaches 0 (which makes it a cone), the optimal angle approaches arcsin(sqrt(2/3))=54.74° and the maximum volume if the slant height is 1 is 2sqrt(3)pi/27 (though deriving this is much easier by treating it as a cone to begin with; using the aforementioned formula would require using complex numbers as well).

  • @cappincrrunch4493
    @cappincrrunch4493 7 місяців тому +29

    Dude there is literally no reason on earth you should listen to me but this is exactly what math education needs. Application. I didn't know how to turn a question about the world into a math problem until I was an adult. And I didn't appreciate what I could do with math until that point. And now I love figuring out an equation for a real life scenario even when I cant solve the darn thing. I think this content is going to help a lot of people grow in their education. Much love and stay awesome!

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +9

      Thank you so much! I think there is a reason to listen to you, because I believe this is what Math Education needs as well. I have some empirical evidence, since so many of my calculus students appreciate my efforts to show them how powerful the tools are that I am teaching them.
      I actually think we have a better chance of changing things by starting an extra class in school (especially high school) called Real-World Problem Solving or maybe Modeling and Problem Solving. It is so hard to change the math curriculum, but we could start by showing kids some of the power and coolness in another class that isn't hampered by the "teach for the test" syndrome.

    • @v0id_d3m0n
      @v0id_d3m0n 5 місяців тому

      I think there's already a lot of this already (in the UK at least). But perhaps the teaching part is lacking -- allowing/pushing/teaching students to think about the right method to solve a problem. Often in lessons, you're already in "trig mode" or "linear algebra mode" etc so you skip the hard part of deciding what method to use. Then in the exam, you're left alone and confused. I think more practice in independent problem solving where the method isn't immediately obvious from context / explicitly provided would be great at helping people enjoy and learn maths.

  • @francescodenaro6081
    @francescodenaro6081 7 місяців тому +337

    Best channel on YT.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +15

      😭😭😭

    • @fspar
      @fspar 7 місяців тому +3

      A hundred percent.

    • @SmokeyChipOatley
      @SmokeyChipOatley 7 місяців тому +1

      Totally agree. Informative and wholesome to boot.

    • @FireyDeath4
      @FireyDeath4 7 місяців тому

      Every time I read a remark to this effect, it makes me sad about how much all the different people saying this about different channels miss out on, and how we'll never see how they get to respond to other people saying it
      But Of course We all Know #sweetheartthebest Roflololol

    • @Imhappy440
      @Imhappy440 7 місяців тому +1

      ...........

  • @aldomorelli6379
    @aldomorelli6379 7 місяців тому +4

    Although we cant use the fundamental theorem of calculus when differentiating the integral at 7:30, we can use the Leibniz Integral Rule/Differentiation Under the Integral Sign to still take this derivative without having to calculate the original integral first.

  • @0x4849
    @0x4849 7 місяців тому +10

    Commenting on 7:36: you _can_ apply the fundamental theorem of calculus when differentiating with respect to a different variable as integrating. So: d/dx int_{0}^{x} f(t) dt = f(x). The reason this doesn't work here, while the bound is a function of theta, is because theta is also the variable of integration, and not independent.

    • @viktorsmets29
      @viktorsmets29 7 місяців тому

      Yeah y is just a dummy variable, you can call it whatever you want, it doesn't matter outside the integral.

    • @someguyontheinternet9186
      @someguyontheinternet9186 7 місяців тому +1

      Couldn’t you do a funny little change of variables to fix this?

  • @mycoffee2654
    @mycoffee2654 7 місяців тому +9

    This channel is the best! It's just a little above my math skill, so I feel like I'm learning a lot every time something comes out! It also applies to real life questions with intuitive explanations! Thank you!

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +2

      You are welcome! We love the positive feedback!

  • @DragTheDecimator
    @DragTheDecimator 7 місяців тому +10

    surprisingly, my Calc2 professor mentioned a similar optimization problem when we were first discussing the topic. It wasn't specifically sauce cups, but trapezoidal bowls, and also about volume.
    we never did solve it in-lecture though.

  • @Aurea-Highdiocratis
    @Aurea-Highdiocratis 6 місяців тому +1

    Mrs.E showed this to us in class recently, I am just gonna say I am so amazed by how mathematicians can apply abstract content into real life. Your video made these abstract concept fun to watch!

    • @MathTheWorld
      @MathTheWorld  6 місяців тому

      Thank you! I am glad it was fun for you. I am also soooo happy that teachers/instructors/profs are using this in class. That is the dream for my channel is that they can be used to help students see the power math has to make sense of the world around us. Good Luck in Class!
      (I am actually amazed on the other side, how so many mathematicians tend to take such applicable/powerful mathematics and make it so abstract/disconnected from the real-world! )

  • @justgreg8756
    @justgreg8756 7 місяців тому +35

    My dad would always optimize it by grabbing a spare drink lid and filing one of those up with sauce.

    • @TarenNauxen
      @TarenNauxen 7 місяців тому

      I do this too, just make sure to put a napkin under the straw hole!

    • @bumpty9830
      @bumpty9830 7 місяців тому +1

      Your dad would've been a great engineer.

    • @ineedhelp8573
      @ineedhelp8573 6 місяців тому

      I put my fries on tissue and use the container for it. Trust me it works

  • @mrsheldon9134
    @mrsheldon9134 7 місяців тому +1

    This is just a simplified version of one of my final exam questions when I was 16, but with Arby's cups instead of a random generic container.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +1

      I am impressed, because I don't think I could have handled this question as a student without some guidance.

  • @ghosttwo2
    @ghosttwo2 7 місяців тому +46

    I actually worked this exact problem around 2006 when I was doing calculus homework at the Arby's I was working at. It's funny because I saw the ketchup and knew what it would be.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +11

      Wow! I'm so impressed! How many people are doing calculus while working at Arby's?

  • @jessehammer123
    @jessehammer123 7 місяців тому +2

    I watched silently as you went through the frustum strategy, then when you mentioned doing it via calculus I audibly muttered to myself “that’s how I’d do it!” That was fun.

  • @RenTheFen
    @RenTheFen 7 місяців тому +4

    Math is for sure my favorite subject. When I was in high school, it was easily my favorite class. I liked how you could learn so much from math and be able to apply it virtually everywhere. It is incredibly fascinating and satisfying! Watching this was a blast :)

  • @Kaptitanbear
    @Kaptitanbear 7 місяців тому +3

    nobody has ever asked this question, but i also haven't ever seen your channel before, and yet both are enrapturing me with their specificity

    • @error.418
      @error.418 7 місяців тому

      I have asked and solved this question in my own way like a decade ago

  • @manuelb__r
    @manuelb__r 7 місяців тому +5

    An chemistry and physics overkill would be to calculate the optimized shape in order to use less paper and take advantage of the viscosity of the sauce to allow it to get over the top without overflowing/spilling

  • @thedarkcity4084
    @thedarkcity4084 7 місяців тому +1

    As someone learning Optimization for the first time, I feel like I would do something like this in the future out of boredom

  • @keywestalert6329
    @keywestalert6329 7 місяців тому +12

    He did the math, and he could afford 8 kids plus himself.

  • @darring1070
    @darring1070 7 місяців тому +2

    I never thought that trying to figure out how much sauce goes in a cup would break my brain.

  • @LeventK
    @LeventK 7 місяців тому +4

    You have a unique and engaging style, never change it! It works.

  • @OLLGY69
    @OLLGY69 6 місяців тому +2

    4:00 If you're the short side of a right side triangle, consider yourself an opp

  • @MasterHigure
    @MasterHigure 7 місяців тому +45

    "No one has thought about before"? Excuse me, but not only have I thought about this. I have *taught* this in my class. And also I use it regularly when filling my ketchup cups at Micky D's. I remember being ecstatic the first time I realized I didn't need two cups to get enough ketchup to last me through all my fries.
    Taking into account the non-Newtonianness of ketchup and considering that the surface doesn't have to be flat and level will certainly push the optimum in the direction of flat-and-wide. My gut says "by a lot".

  • @er4795
    @er4795 7 місяців тому

    You can't apply FTC at 7:38 but you can apply the Reynolds Transport Theorem!!! Also known as differentiation under the integral sign. For those who don't know, there are two issues here.
    1) The variables with respect to which we are integrating and differentiating are different. In fact the integrand depends on both variables!
    2) The bounds of the integral vary with the derivitative integral.
    Reynolds Transport Theorem in 1 dimension solves this and yields a formula in terms of another integral and the net flux through the bounds.

  • @keaganhurter2550
    @keaganhurter2550 7 місяців тому +7

    btw, i love your channel, i always get so excited when you upload a new video, they're just such great explanations

  • @Airbigbawls
    @Airbigbawls 7 місяців тому

    Your handwriting is extremely satisfying. I know nothing about math and got lost after the first formula was written. Stayed for the mesmerizing handwriting.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому

      Wow what a compliment thank you 😭

  • @pi_xi
    @pi_xi 7 місяців тому

    I never thought about the idea to calculate the volume of a truncated cone with an integral, but it works.

  • @acursedhope
    @acursedhope 7 місяців тому +3

    That title is on point, made a fairly trivial problem interesting enough to click on
    Great video all around, keep it up!! I love practical calculations

  • @Pystro
    @Pystro 7 місяців тому +1

    Makes you wonder why the manufacturer of the cups doesn't maximize the volume.
    (It's probably because the optimized cup would be much wider and a stack of these cups would take up more volume. And putting that much sauce into the cup and then spreading it out into a plate for dipping can easily make it overflow.)
    But if the manufacturer wanted to maximize the volume, they could also change how much of the circular piece of paper they leave for the bottom.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому

      There's another good reason why they don't maximize the volume with their design. They're trying to keep people from taking too much sauce. The more sauce they take is money out of their pocket.

  • @-jes988
    @-jes988 7 місяців тому +4

    After being presented with the task, my intuition was, maybe a bit less than 45°. Feels good to be so spot on 😊🎉

    • @paradiselost9946
      @paradiselost9946 7 місяців тому +1

      i see it as two curves. at 45 degrees, the volume of the conical section has the max volume, rising from zero at either extreme. whereas the cylinder simply increases in volume with height.
      by bringing the height slightly above 45, the cylinder gains more volume than the conical section loses.
      and i came up at around 40 degrees being best...
      to write it as an equation? lol...

  • @CoolAsFreya
    @CoolAsFreya 7 місяців тому +2

    This sounds like exactly the kind of inconsequential math problem I'd focus on after ordering fast food

    • @MathTheWorld
      @MathTheWorld  7 місяців тому

      Yes! Earn that nerd sticker!

  • @Heightren
    @Heightren 7 місяців тому +4

    I've been thinking about this optimization problem to overkill with math too.
    What is the optimal time period to refuel your car, given inflation and cashback parameters?
    Cashback is when I get a weekly limit of how much money I get discounted from my purchases.
    I use a complete tank every two weeks.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +1

      great question! we'll add it to our list of potential future videos!

    • @dougcorey3830
      @dougcorey3830 7 місяців тому +1

      That might depend on how far out of the way you have to go for gas, since that will increase the cost of refueling.

    • @Heightren
      @Heightren 7 місяців тому

      @@dougcorey3830 assume fuel station is within commute route

    • @mycoffee2654
      @mycoffee2654 7 місяців тому

      That sounds like a great video idea!

  • @OmnipotentEntity
    @OmnipotentEntity 7 місяців тому

    I 100% have asked this question as a kid. Before I knew about calculus. My dad never finished high school, so I never actually figured it out. Thanks for satisfying my ancient nostalgic question that I never quite got back around to. You're an awesome dad.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому

      Thanks! My son Spencer loved that I made a video that came from his quest for maximum sauce.

  • @justinbrentwood1299
    @justinbrentwood1299 6 місяців тому +1

    Having recently taken an introductory analysis class, I have something to add. One could consider the volume of the ketchup as a function of the angle at which the cup is extended up from the ground, where the domain is the closed set from 0 to 90 degrees. Since closed intervals are compact sets (that's a separate proof but trust me), and this function is continuous by observation when comparing it with the definition, we know that the function has a maximum and that it attains its maximum. That is, we can justify that this problem even has a solution.

    • @fridging
      @fridging 6 місяців тому

      god tier shitposting

  • @christiansrensen8330
    @christiansrensen8330 7 місяців тому +3

    Brilliant! I love it. Thank you for using metric. It is appreciated :)

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +1

      The people have been heard

  • @noodles24601
    @noodles24601 7 місяців тому

    Another reason expanding the cups can be useful is that the wider rim and corners make it easier to get every last bit of sauce out onto your food. In their default state you often end up with either very shallow dips at the end or a lot left in the bottom.

  • @marivexx
    @marivexx 7 місяців тому +3

    i feel less alone in my love of solving math problems just to solve them for funzies

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +2

      There's a whole field of math called recreational mathematics just for people like us. Martin Gardner is the king of writing about recreational mathematics. Another nice place to start is the mathematical puzzles of Sam Loyd.

    • @Mythical_Myths16
      @Mythical_Myths16 7 місяців тому

      Ngl same

  • @HelPfeffer
    @HelPfeffer 7 місяців тому

    0:04 I was in a mathematics competition as a kid once, where one of the questions wondered how to fold a carton so the box made out of it would have the most volume under certain constraints
    which feels like the exact same problem for a mathematician

  • @jcorey333
    @jcorey333 7 місяців тому +3

    Cool video! As a fellow lover of Arby's sauce, I'll keep this in mind 🤤.

  • @yaoitiddieexpert1486
    @yaoitiddieexpert1486 7 місяців тому +2

    well. you could also account for the amount of sauce you can stack over the top of the shape, which would actually favour a wider top to give it more space to spill out

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +3

      This is what we give us the challenge problem at the end of the video. It's worth extra nerd stickers if you solve it!

    • @canis_lupus2220
      @canis_lupus2220 7 місяців тому

      @@MathTheWorld This is when a "simple" math problem turns into a complex physics question. What is the viscosity of the sauce? At what pressure does it exit the sauce dispenser?

  • @voidify3
    @voidify3 7 місяців тому +57

    The fact that your son has 7 siblings wasn’t even relevant to the story

  • @algorithminc.8850
    @algorithminc.8850 7 місяців тому +1

    Hahaha ... great stuff. Subscribed. I look forward to your other videos. Cheers ...

  • @jonasls
    @jonasls 7 місяців тому +3

    Bros optimizing for maximum kids though

  • @mujtabaalam5907
    @mujtabaalam5907 7 місяців тому +1

    Now model the % overlap due to folding and accout for that in the unfolding.
    There's also no need for the volume to be a frustum; you can use the surface area of the unfolded paper and variational calculus to find the shape that holds the most volume (accounting for the lump at the top with the surface tension, which you could model as as a lopped off sphere with some experimentally derived contact angle).

    • @someguyontheinternet9186
      @someguyontheinternet9186 7 місяців тому

      Now this is pod racing

    • @otavionunes6756
      @otavionunes6756 7 місяців тому

      hello, i'm very curious about this problem, would you mind elaborating on how this can be done? I will make an attempt myself.

  • @icantchooseaname6903
    @icantchooseaname6903 6 місяців тому +3

    your wife must really love math..

  • @37_tranhoangtuan73
    @37_tranhoangtuan73 7 місяців тому +1

    love this overkill man, sometimes I want UA-cam to be filled with videos like this and people like you

  • @annika6081
    @annika6081 7 місяців тому +3

    We have the maths.

  • @thepeterbro1
    @thepeterbro1 7 місяців тому

    You sound like the coolest professor ever, there needs to be more teachers like you!

    • @MathTheWorld
      @MathTheWorld  7 місяців тому

      Thank you! I don't know if my students learn much more math in my class, but I think we do have more fun!

  • @MXvsATVnovice
    @MXvsATVnovice 7 місяців тому +7

    Bro 8 kids dawg

  • @MisterLobb
    @MisterLobb 7 місяців тому +1

    I think there is another factor to consider: the objective isn’t to find optimal volume the cup can theoretically contain, but how you can deliver to the table in a single cup. When it’s unfolded, it loses rigidity in the walls and when you lift it, the force of the fingers deforming the walls will cause waste. I think you will find that the cup manufacturer took this into account in determining the size of the folds so the original shape and size maximizes deliverable volume then adjusts down for the sake of safety. So the actual max volume will slightly larger than the manufacturer’s fold size.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +1

      Thanks for bringing in the engineering aspect. That is something I haven't taken into account (and don't know the science enough to actually do so).

    • @MisterLobb
      @MisterLobb 7 місяців тому

      @@MathTheWorld Yeah, it was out of the scope of your experiment. I just pointed out that the design of the cups - for example; the paper quality/thickness, folds & wax coating are determined by the manufacturer’s engineers to get an optimal rigidity for cost. Things we take for granted often have a lot of thought behind them. Just like your experiment. Hopefully exposure to your channel inspires kids to pursue these interests into meaningful careers

  • @aircraftape
    @aircraftape 7 місяців тому +3

    48 seconds since the upload of the video lol

  • @SwankiestPants
    @SwankiestPants 7 місяців тому +1

    Pro strat (and likely a much harder calculation) you can bow out the sides of those paper cups without changing the diameter of the rim allowing for much higher volume of sauce

    • @MathTheWorld
      @MathTheWorld  7 місяців тому

      I actually think the optimal would be somewhere in between your and mine, where the rim is increased, but you aren't restricted to having straight sides. Stay tuned.

  • @c0d3w4rri0r
    @c0d3w4rri0r 7 місяців тому +1

    A more interesting extension would be to drop the assumption that you have to have a conic section and a flat base. The paper could theoretically be folded into any surface of revolution provided the cross-section had a line of the appropriate length. So as a problem consider using the calculus of variations to find the surface of revolution that for a particular radius Circular piece of paper gives the maximum volume.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +1

      You're right, that is a really nice extension! Now you have me thinking of doing this as a follow-up video.

    • @otavionunes6756
      @otavionunes6756 7 місяців тому

      @@MathTheWorld please do I am very interested, your channel is great!

  • @slowitty8918
    @slowitty8918 7 місяців тому

    I do this with the cups, and i have actually started the math, then just been like "I'll just grab more cups", lol.
    So many thanks for this answer to my laziness

  • @fluminox13
    @fluminox13 7 місяців тому

    That math was pretty harmless. And it is never overkill to save a bit of money. Nice video

  • @dillonstrange5152
    @dillonstrange5152 7 місяців тому +1

    Enjoyed watching this, then saw the BYU logo at the end and got really excited as I am a current BYU student. It's nice to see professors putting out content like this, keep it up!

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +1

      Come by my office sometime. I would love to meet you. 171A TMCB.

    • @voidify3
      @voidify3 7 місяців тому

      Ah, mormons, that explains the 8 kids

  • @Comp_Laments
    @Comp_Laments 7 місяців тому

    This is the greatest math video ive ever watched. Ive never found out more useful info from any video ever than what I found here

  • @eragonawesome
    @eragonawesome 7 місяців тому

    This is my favorite kind of math video, where you learn a whole bunch for a silly reason

    • @MathTheWorld
      @MathTheWorld  7 місяців тому

      Thanks! We enjoyed making it, and plan on making more. I do like the ones where someone learns a lot and learns something about the world as well (a not-so-silly reason), which is what most of our videos are..

  • @degariuslozak2169
    @degariuslozak2169 7 місяців тому +1

    Maths seems so cool, but when I do it I feel the worst I've ever felt

    • @MathTheWorld
      @MathTheWorld  7 місяців тому

      I am so sorry! Maybe you need different kinds of math problems. Are you talking about the math you do in school? Or the math you do out of school?

  • @nikk-named
    @nikk-named 5 місяців тому

    I am mourning the inner math nerd in me, given how little I understand of this. Love the maths overkill regardless. It's fun!

    • @MathTheWorld
      @MathTheWorld  5 місяців тому

      We're glad you enjoyed the video!

  • @37_tranhoangtuan73
    @37_tranhoangtuan73 7 місяців тому +1

    hey I love your idea, but for me, technically, to get more sauce, just open it all the way, and overfill, OVERFILL the disk to the edge hehe, I always do that, but I sure love the vibe here

  • @hippolippo
    @hippolippo 7 місяців тому

    You said that you guarantee no one has asked this but I was literally thinking about this yesterday, thank you for solving this now I can maximize how much ham I get in my omelet at the dining hall

  • @TheAnantaSesa
    @TheAnantaSesa 7 місяців тому

    My first guess was 45° angle was optimal just bc of the triangle areas that form on the sides. Glad to know that math supports my hunch.

  • @Ptaku93
    @Ptaku93 7 місяців тому +1

    I drifted off around the 4 minute mark, but congratulations on having 8 children!

  • @marcfoster2260
    @marcfoster2260 7 місяців тому

    I was preparing to complain that this solution was not quite overkill since we had not considered the angle of repose for this sauce, but you hinted at addressing this near the end of the video.

  • @yolandaconitzer7333
    @yolandaconitzer7333 6 місяців тому

    I adore this! Somehow I can hear your explanation but not my teachers, when teaching the same thing.
    Also this less than useful maths problems are great

  • @driksarkar6675
    @driksarkar6675 7 місяців тому +1

    7:47 Correct me if I'm wrong, but I think it would be better to say that it doesn't work because the integrand is a function of θ, since (by definition?) FTC still works if those two variables are different if the integrand isn't dependent on θ.

    • @tankulator5042
      @tankulator5042 7 місяців тому +1

      Indeed, and even if the integrand has θ dependence, we can use a generalized version of the FTC known as Leibniz's integral rule
      en.wikipedia.org/wiki/Leibniz_integral_rule#General_form:_Differentiation_under_the_integral_sign

  • @nearautomatons6987
    @nearautomatons6987 7 місяців тому

    An interesting thing about these paper cups is that it’s often possible to spread out the sides *without* breaking the circular rim creating a more pot like shape. This way you can expand out the sides without decreasing the height and still maintaining most of the structural integrity. I don’t know if it’s *mathematically* optimal, but in terms of actual use it’s pretty close

  • @camerynjane4421
    @camerynjane4421 7 місяців тому

    wow your son must be pretty cool for coming up with this question!

  • @BirnieMac1
    @BirnieMac1 7 місяців тому

    We don’t have arby’s here, but spencer’s plight is important to me (because optimisation and his enjoyment)

  • @dexterouslaboratory
    @dexterouslaboratory 6 місяців тому

    When I was young, I would do something like this, but I hadn’t come across the “hack” to open the paper cup. My mind came up with what I knew about increasing volume - blowing up a balloon. By placing the mouth of the cup against my mouth, placing my hand flat on the bottom of the cup and inflating the cup, it would get larger. I postulate that this method is more efficient. The height is affected minimally, but the surface area is expanded as the pleats unfold into a sphere-ish shape maximizing volume for a given and increased surface area.

  • @hrpang
    @hrpang 6 місяців тому

    This is a Food Theory level episode

  • @toast99bubbles
    @toast99bubbles 7 місяців тому

    This is something I thought about a few times years ago, back when this would be mentioned as a thing to do in life hack videos, but I never really fully thought about it because I don't really eat sauces when I go to fast food places with these paper cups. I'm glad this video came up in my feed though because I've given you a subscribe.

  • @Sg190th
    @Sg190th 7 місяців тому +1

    This is real life math that should be taught to kids and not the shit in school (except Calculus)

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +1

      That is why we have this channel. We are trying to show a side of math that doesn't make it in to the school curriculum. In fact, I think there should be two classes, School Math and Real-World Problem Solving. They are so different. I think we would have a lot more kids enjoying school math if they were able to engage in real-world problem solving.

    • @Sg190th
      @Sg190th 7 місяців тому

      @@MathTheWorld Love you

  • @2020_Gaming
    @2020_Gaming 6 місяців тому

    I 3D modeled and am currently printing one of these for the cups I have at home! Gonna have a nice little holder to keep them optimal!

  • @blobberberry
    @blobberberry 7 місяців тому

    Hi, loved the video! Thanks for making several dozen thousand people also interested in this problem, myself included. To vie for extra nerd credit, I have found a closed form for the optimal angle.
    Although the derivative in 7:30 is not a standard FTC problem, the issue is not that theta and y are different variables. In every application of FTC 1, the variable of integration is different from the variable of differentiation. Since y is integrated over, it looks like any other dummy variable. The real issue is that the integrand is a function of theta and y simultaneously.
    Fortunately, Leibniz's rule allows us to compute the derivative anyway (and FTC does show up in one half of the resulting expression). Sprinkle in Cardano's formula and a LOT of algebraic tedium, and you find a closed-form expression for the optimal angle:
    theta = arcsin( (A^1/3 + B^1/3 - 6)/15 ),
    where A = (1179 - 5sqrt(22741))/2 and B = (1179 + 5sqrt(22741))/2.
    This was a fabulous waste of time as I am putting off writing my thesis. Best!

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +1

      Well, that might be worth two stickers on your nerd helmet. Now put on that helmet and get back to your thesis!

  • @fruglemonkey
    @fruglemonkey 7 місяців тому +2

    I've always had a similar question - when you dip a fry into sauce, the level of the sauce rises in the cup, increasing the area of fry covered by sauce per dip distance.
    IE, if you had a sauce container that was only slightly wider than the width of a fry, you wouldn't have to push the fry into said container very far to cover it heavily with sauce.
    What would the optimum container shape be to minimise the dip distance required to cover a quarter of a fry with sauce, while still holding enough sauce to be able to be used for multiple fry dips?

    • @PopeGoliath
      @PopeGoliath 7 місяців тому

      Totally flat! Dip sideways. Never have to go much more than a fry-width deep.

  • @korochun453
    @korochun453 6 місяців тому +1

    Great video, but I am a bit disappointed that you didn't use the Leibniz integral rule for differentiating the integral, would've been a much better solution than "let's use Wolfram Alpha."

  • @shandrio
    @shandrio 7 місяців тому

    I felt so proud of myself when you paused for a while and asked why you couldn't cancel the derivative with the integral and I saw they where using different variables! I got it right! Ooohooo! YAY!! hahaha

  • @airship_elyta
    @airship_elyta 6 місяців тому

    as someone who also grew up on Arby's (and these paper cups) I always pinched the tops but pushed out the middles of the wall for these cups so it looked like a swollen barrel without a top.

  • @JC-km5rd
    @JC-km5rd 7 місяців тому

    You've done it again math the world man!

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +1

      Thanks! I'm glad you enjoyed the video!

  • @powderedphantom5765
    @powderedphantom5765 7 місяців тому

    This sounds like one of those extreme scenario maths problems you get given in primary school.

  • @99degreesnorth61
    @99degreesnorth61 6 місяців тому

    "my son spencer, who is perhaps 15" woah woah woah... PERHAPS?!?!

  • @CloudCoderChap
    @CloudCoderChap 7 місяців тому +2

    This was fascinating. What do I need to learn and how do I learn it to do things like this. I’m an adult software developer but I’ve not done math in 20 years but it was my strongest subject at GCSE but never done more than basic algebra. I’ll take playlists or books or websites. Anything. I just want to learn this cool wizardry to calculate the world.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому +1

      @cloudcoderchap I am so happy that you thought it was fascinating and that you would like to dive into this.
      I will see a few things here, but don't hesitate to email me later for more information. Our email is maththeworld "at" BYU "dot" edu.
      One of the reasons we started this UA-cam channel is because there is not a lot of good content like this out there. So I can't point you to some really good content about how to learn how to do this, but feels like this video. We do have other videos, where we take real world situations and analyze them in a similar way. You can find those on our UA-cam channel.
      If you have not learned trigonometry and calculus, those are good places to start, since they're such powerful tools. However, just taking those courses, is a long road and they don't give you the mathematical modeling skills. You could start by watching trigonometry and calculus playlists on UA-cam.
      Another place you could start is finding books or videos that talk about mathematical modeling or the mathematical modeling process. At least that's what we call it in the US, I don't know what they call it in the UK. The hard part here is that you don't know if the level is focused on secondary school, early college, or advanced college skills. Mathematical modeling means different things of these different levels.
      Search around a little bit and send me an email about what you're able to find. I'll try to do some thinking about it.

    • @CloudCoderChap
      @CloudCoderChap 7 місяців тому

      Thanks so much for the thought out reply. I’ll definitely dive into the topics you mentioned and drop you an email if I have any more questions.
      Thanks for being inspiring.

  • @rainytreecat3992
    @rainytreecat3992 7 місяців тому +1

    I once looked at a cup of ketchup and thought about this exact problem. I thought "Yeah this is definitely possible" then never thought about it again

  • @ThatZenDude
    @ThatZenDude 7 місяців тому +1

    NOW THIS IS A GOOD USE OF MATH

    • @MathTheWorld
      @MathTheWorld  7 місяців тому

      Thanks! But I think any use of math is a good use.

  • @juanca1991
    @juanca1991 7 місяців тому

    This is what i watch UA-cam for! Great great work. Thank you for taking the time to make this kind of content 🎉

    • @MathTheWorld
      @MathTheWorld  7 місяців тому

      You are welcome! I'm glad you enjoyed it.

    • @MathTheWorld
      @MathTheWorld  7 місяців тому

      You are welcome! I am glad you enjoyed it.