Balls dropped on a double well curve (~ x^4 - x^2)

Sdílet
Vložit
  • čas přidán 14. 05. 2023
  • 1, 2, and 1000 balls dropped on the function y = x^4 - 3x^2.
    In the 1000-ball part balls are initially mutually separated by less than a millionth of the plot width.
    Thanks to those suggesting this system! If you announce yourself in the comments, I'll give you credit of course.
    Music by @gpcbass. The cool song was also used in our last video, well worth a second listening. It's called Polar_Mist.
    Visuals in Python & FFmpeg.
  • Věda a technologie

Komentáře • 228

  • @Orange_Pear
    @Orange_Pear Před 5 měsíci +15

    I felt so happy for the first one when it got to the right side

    • @SendyTheEndless
      @SendyTheEndless Před 3 měsíci

      I actually told the ball when it got close, "No way mate, you're stuck on that side for good"

  • @aspwil
    @aspwil Před rokem +394

    If you were to drop a ball from each pixel on the left side, and then color that pixel based on the number of bounces it takes to make it to the right side. I wonder how the pattern would turn out. Would it be fractal like?

    • @Sgrunterundt
      @Sgrunterundt Před rokem +9

      Probably

    • @landsgevaer
      @landsgevaer Před rokem +25

      There must be periodic orbits that stay on one side, and as you move away from those there must be orbits that move to the other side, so that pretty much guarantees that there must be some fractal structure surrounding those.

    • @DavidGuild
      @DavidGuild Před rokem +13

      ​@@landsgevaerThat doesn't necessarily mean it's fractal. There could be sharp boundaries between regions.

    • @landsgevaer
      @landsgevaer Před rokem +8

      @@DavidGuild Not sure what you mean by "sharp boundary". Mandelbrot has a sharp boundary, but it is infinitely convoluted.
      I can't draw or post links here unfortunately. Hard to explain in text. It is comparable to the fractal that you get when looking at multiple mirroring balls: images of balls in balls in balls etc. corresponding with light rays bouncing from one to another. Here you have domains that switch from the left concavity to the right, in which you have regions that switch to the left again, in which.. etc. If you record the bounces taking place on the Left or Right, you get sequences like LLRRRLRRLLLLRLRRRL.. similar to how that occurs in the logistic map.
      Sorry that I cannot explain it better.

    • @wkromhout8532
      @wkromhout8532 Před rokem +2

      I suspect it would be really random. Butterfly effect.

  • @yqisq6966
    @yqisq6966 Před rokem +97

    The best part about this channel is how the animations seamlessly links deterministic dynamics with statistical mechanics.

  • @CombustibleL3mon
    @CombustibleL3mon Před rokem +199

    Would love to see a wave packet falling into this double well!

    • @watsisname
      @watsisname Před rokem +8

      Same! The time evolution of a wave function in a double potential well can have really interesting behavior.

    • @Empisee
      @Empisee Před rokem +2

      I came here to say this.

    • @m.guypirate6900
      @m.guypirate6900 Před rokem +2

      I concur

  • @adampitt8782
    @adampitt8782 Před rokem +9

    "When fleas are placed in a jar, they try to jump out but after the lid is placed on, the fleas stop attempting the escape, as they learn the boundaries of the new environment they’re in. Even when the lid is removed, the fleas never jump out. Their thinking has created the ‘lid’ as the boundary, so has conditioned them to limit their jumping."

  • @SirPogsalotCreates
    @SirPogsalotCreates Před rokem +8

    The satisfaction of watching the first ball finally make it over the middle to the other side was unreal

  • @NeseComedy
    @NeseComedy Před rokem +10

    Wow the green blob really sticked together until the end

  • @copycat500
    @copycat500 Před rokem +57

    3:10 is it just me or do these middle balls sync up with the music? Either way, nice simulation!

    • @markgearing
      @markgearing Před rokem +3

      Came here to say exactly this. It seems like the music was timed around this point

    • @animations_ag
      @animations_ag  Před rokem +5

      Just a lucky coincidence. The music was specifically made for another of my visuals.

    • @CountDooku420
      @CountDooku420 Před rokem +1

      @@animations_ag Which one? Would love to watch it.

    • @animations_ag
      @animations_ag  Před rokem +1

      @@CountDooku420 czcams.com/video/q66kwizsUvk/video.html

    • @chanthachalmers8798
      @chanthachalmers8798 Před rokem

      @@animations_ag when I click the read more nothing happens 😂

  • @rosiefay7283
    @rosiefay7283 Před rokem +35

    This really came alive with the many balls. The two wells lend an interest to the video that you don't get with just different shapes of well. Next, how about a sinusoid y = sin x? So that the balls don't disperse too far too soon, make the wells high enough that jumping from one well to another is rare but still possible.

    • @Kualinar
      @Kualinar Před rokem +2

      Make that y= sin x * |x|

  • @dimi-desp
    @dimi-desp Před rokem +1

    Excellent choice of music! Really mesmerizing result

  • @apuji7555
    @apuji7555 Před rokem +8

    I think looking at cosh x could be really interesting! And also, maybe a video comparing x^2, x^4, and cosh x, and seeing how fast they go chatoic would be really interesting!

  • @ZenithWest169
    @ZenithWest169 Před rokem +21

    Just to clarify, the ball strikes the surface with perfect elasticity and its overall energy (KE+PE) is conserved?

    • @watsisname
      @watsisname Před rokem +9

      That's right -- otherwise the balls would reach lower maximum heights with each bounce, and eventually be unable to ever cross between the wells again.

    • @Thenoobyone2981
      @Thenoobyone2981 Před rokem +1

      ball strikes.

  • @mctonger
    @mctonger Před rokem +1

    still loving the content, keep it up!!

  • @ReD_RuM_
    @ReD_RuM_ Před rokem

    ❤ the moment when separation starts....love it

  • @Orange_Pear
    @Orange_Pear Před 5 měsíci +2

    3:09 this was timed perfectly with the music

  • @baarni
    @baarni Před rokem

    Nice… a beautiful demonstration of the progression of entropy…

  • @willhastings731
    @willhastings731 Před rokem +5

    Would be cool to have a marker that tracks the location of the center of mass. Maybe even draw the path.

  • @llahneb10
    @llahneb10 Před rokem +10

    Awesome! Would be super cool to add a slight attraction or repulsion between them, or color them based on their speed

    • @Dragon-Slay3r
      @Dragon-Slay3r Před 8 měsíci +1

      That was the cricket glove leg on the slip from the mop while the other leg was a iron needle

  • @MesaperProductions
    @MesaperProductions Před rokem

    A great demonstration of simulated annealing.

  • @Kualinar
    @Kualinar Před rokem +4

    Gorgeous visual and good music. What more can we ask ?

  • @bobczech7774
    @bobczech7774 Před rokem +1

    Underrated video

  • @timvanarsdel
    @timvanarsdel Před 3 měsíci

    The music makes me yearn to see a metropolitan magazine writer profess her love to an Australian rustic in a NY subway station

  • @danielevilone
    @danielevilone Před rokem +1

    Fascinating

  • @DouglasZwick
    @DouglasZwick Před rokem

    Man, this song absolutely *slaps*. Total banger right here.

  • @gamer4l1f34
    @gamer4l1f34 Před rokem

    1000 balls never ceases to amaze! 😮

  • @WangleLine
    @WangleLine Před rokem +1

    The music in this video is such a banger

  • @voidnull9438
    @voidnull9438 Před rokem +1

    Relaxing!

  • @MapSpawn
    @MapSpawn Před 6 měsíci

    I love all the music in each video, I am returning just for the music and I guess the balls too.

  • @tomfiddle7382
    @tomfiddle7382 Před rokem +1

    i like how the music bops even harder at 2x speed.

  • @Peterscraps
    @Peterscraps Před rokem +5

    2:40 interesting that the points diverge almost immediately after many smaller collisions.

  • @petterlarsson7257
    @petterlarsson7257 Před 5 měsíci

    1:09 I LOVE HOW SMOOTHLY IT BOUNCED

  • @pbarnes171
    @pbarnes171 Před 5 měsíci

    This makes me think of quantum wave functions 🌊⚛🤩. Fascinating

  • @alvargd6771
    @alvargd6771 Před rokem

    its cool to see sliding arise with a system where you just bounce balls back

  • @ogasdiaz
    @ogasdiaz Před rokem +4

    Do you know what kind of shape induces the fastest divergence? Of course something like a stochastic process would be an overkill. I just would like to have a function that maps curves into a scalar meaning how “chaotic” they are

  • @user-rt8je9pd5e
    @user-rt8je9pd5e Před rokem

    Wow that's the perfect illustration of thermodynamics and liquid physics, would be even more interesting if you add colour change depending on the speed of the ball

  • @drottercat
    @drottercat Před rokem +5

    What is the offset in the initial condition of many balls?

  • @arbieroo5679
    @arbieroo5679 Před rokem +6

    I always love the falling ball vids! I was wondering how you generate the colour spectrum for them? Are you using RGB triples? If so, how do you obtain the appropriate values? If not, how do you create the spectrum?

    • @haggisllama2630
      @haggisllama2630 Před rokem +1

      They may use hsb colour values instead of RGB, and changing the hue incrementally

    • @arbieroo5679
      @arbieroo5679 Před rokem

      @@haggisllama2630 Do you mean HSV?

  • @CalebSu-pv1bj
    @CalebSu-pv1bj Před 5 měsíci

    I had always heard that all of the variance in the universe was caused by a tiny discrepancy in the initial Big Bang singularity. This reminds me of that dynamic.

  • @ad10bv
    @ad10bv Před rokem

    NOW THESE ARE SOME SERIOUS BALLS

  • @Boxland_
    @Boxland_ Před rokem +1

    Very cool system! One part of the song reminds me of Dear Prudence.

  • @BboyKeny
    @BboyKeny Před rokem +5

    I find it curious that:
    The 1000 balls lost synchronization after sliding in the half pipe and kept synchronization when bouncing against the walls with an orthogonal angle.
    And eventually an even distribution shows up, with 1 clump of balls traveling together but seemingly losing mass.
    Making it seem that eventually it will end up with all the balls scattered and approximately an even amount apart.
    Is this because of the second law of thermodynamics?

    • @zaksmith1035
      @zaksmith1035 Před rokem +1

      It’s a related phenomenon in that statistically the balls will always separate, just as all energy is statistically converted to unusable energy over time. But this system is chaotic, which means the paths of the balls have a sensitive dependence on initial conditions. The balls are released at slightly different points, so very slightly different that it looks to be the same to the naked eye.
      The green clump represented an outlier clump that had more tendency toward similar behavior over a longer period of time. Eventually, though, the entire system would look completely random.

  • @wowutisforever
    @wowutisforever Před 4 měsíci

    Well I’m subscribed now

  • @ralseisleepsgaming8961
    @ralseisleepsgaming8961 Před 5 měsíci

    the edge is unreal

  • @Gretchaninov
    @Gretchaninov Před 7 měsíci

    We can't predict what a ball will do in a double parabola thing, but we can apparently predict the climate for the next 100 years (a complex and chaotic system).

  • @purple-edge
    @purple-edge Před rokem +1

    The prophecy is true!

  • @lorenzodeusebio6795
    @lorenzodeusebio6795 Před rokem +2

    And that kids, is why you always have to brush your teeth

  • @SatisfyingWhirlpools
    @SatisfyingWhirlpools Před rokem

    YES!

  • @flocon9388
    @flocon9388 Před 5 měsíci

    The dance of chaos

  • @garrettscholtes3113
    @garrettscholtes3113 Před 6 měsíci

    3:09 great timing with the music

  • @harrymoschops
    @harrymoschops Před 6 měsíci

    A catenary curve would be a good candidate for a similar animation

  • @KazmirRunik
    @KazmirRunik Před rokem +1

    when your balls dropped on a double well

  • @superdawolf9747
    @superdawolf9747 Před rokem

    this is what happens when confetti is brought to life

  • @me4321a
    @me4321a Před rokem +1

    Yo sick dude my balls dropped at Olive Garden💀

  • @christianlewis7055
    @christianlewis7055 Před rokem

    I was stoked when that first ball got over the hump.

  • @Dragon-Slay3r
    @Dragon-Slay3r Před 8 měsíci +1

    These are the 2 iron balls from yesterday which are short thats why the ball didnt travel into the hands

  • @curtisbrummitt5470
    @curtisbrummitt5470 Před rokem +1

    I really just watched a 4+ minute video on balls dropping.

  • @rick420buzz
    @rick420buzz Před rokem

    Imagine a boomerang roller coaster based on this. That hill in the middle would produce some WICKED airtime!

  • @WolfBravery
    @WolfBravery Před rokem

    I like how at the top after a bit of the 1000 balls it seems like tuere is an invisible barrier

  • @ಠಎಠ
    @ಠಎಠ Před rokem

    I bet I'm not the only person who cheered out loud at 0:33

  • @SomeoneCommenting
    @SomeoneCommenting Před 3 měsíci

    I wonder how this will look if the balls are made so that they can bounce with each other too. That would be total chaos.

  • @alexandreburov8529
    @alexandreburov8529 Před rokem

    running in reverse time would be very spectacular.

  • @haggisllama2630
    @haggisllama2630 Před rokem +4

    How do you calculate the collisions? Id love to see an explanation video or tutorial or whatever else on how you achieve these simulations as they are super neat

    • @stepanylmusic4257
      @stepanylmusic4257 Před rokem +1

      its all done by counting a derivative in x point and mirroring an angle

    • @radioforthebirds
      @radioforthebirds Před rokem

      How about intensity of the rebound? They seem to always bounce up to a fixed height..

    • @PhilBagels
      @PhilBagels Před rokem +3

      @@radioforthebirds That's just the natural way they would bounce if there was no loss of momentum or kinetic energy due to friction or distortion. Since those other realistic factors haven't been simulated here, they always bounce up to the height from which they were originally dropped.
      It's a good thing that friction isn't taken into consideration here, because then the video would be boring. Eventually, all the balls would wind up on the bottom, and they'd quickly lose any opportunity to get over the hill in the middle.

    • @HotelPapa100
      @HotelPapa100 Před rokem +1

      @@PhilBagels OTOH the rotational momentum transferred to the balls would give an interesting additional aspect. You could still do it energetically ideal.

    • @hoon_sol
      @hoon_sol Před rokem

      @@HotelPapa100:
      Yeah, zero torque makes this less interesting.

  • @JYouker
    @JYouker Před rokem

    I want this graphed 3D for each frame with the third dimension being time :D

    • @JYouker
      @JYouker Před rokem

      then we can rotate the camera angle

  • @patrickpredella
    @patrickpredella Před rokem

    What about computing a location probability map? The probability of the ball being in any point of the surface?

  • @SamFams.
    @SamFams. Před rokem

    Me: If he gets to that other well... Everyone is dead.
    Ball: *Immediately goes in the other well*
    Me: ...Well S#!t

  • @petterlarsson7257
    @petterlarsson7257 Před rokem

    1:10 i like how the balls just slide on it instead of bouncing

  • @deusexceraunius8229
    @deusexceraunius8229 Před rokem +1

    The bacterica inside of a tooth be like:

  • @protondium_8927
    @protondium_8927 Před rokem

    Imagine for April fool's next year it's 1000 balls in a square

  • @AbyssalTheDifficulty
    @AbyssalTheDifficulty Před rokem +3

    w

  • @hhurtta
    @hhurtta Před rokem

    Oh, my heart broke a little when the 2 balls were separated :(

  • @rabbit6872
    @rabbit6872 Před 3 měsíci

    I'd love to see this but with each of the 1000 balls having a very slightly different mass and starting from the same position/same velocity

  • @tonycook1624
    @tonycook1624 Před 6 měsíci

    I can hear snippets of Dear Prudence buried in the music

  • @BloxyGuyRBLX
    @BloxyGuyRBLX Před 4 měsíci

    Love the amongus legs!

  • @MePeterNicholls
    @MePeterNicholls Před rokem

    Help me understand. These balls seem to have infinite bounce, are we presuming zero friction ? What other presumptions ?

  • @brokenteletooby106
    @brokenteletooby106 Před rokem

    Can you do it with the ball losing energy

  • @paull2937
    @paull2937 Před rokem +1

    This is assuming the collisions are completely elastic.

  • @jan-lukas
    @jan-lukas Před rokem +1

    Why did the green balls stay together for so long?

  • @user-px3vw5ml5l
    @user-px3vw5ml5l Před 11 měsíci

    3:10 nice timing

  • @Bradley_UA
    @Bradley_UA Před rokem

    The plot thickens

  • @acompletelyawesomenameyay2587

    really want to see balls dropped on a catenary curve y=cosh(x)

  • @4DRC_
    @4DRC_ Před rokem

    The 1000 balls by the end is acting like a fluid

  • @scratchymarcus2517
    @scratchymarcus2517 Před 2 měsíci

    3:13 the music was a bit late, if it were earlier then it would perfectly sync with the balls

  • @Helloooogh
    @Helloooogh Před rokem

    It feels like the music is synced to the balls

  • @Ezzell_
    @Ezzell_ Před rokem

    This would be great at a Dentist office

  • @codingevolution1018
    @codingevolution1018 Před rokem +1

    🦷🥶Tooth Sensitivity Pain Visualized 😂🤣

  • @homierubikscubedude5
    @homierubikscubedude5 Před rokem

    Cavities forming in real time

  • @defunctuserchannel
    @defunctuserchannel Před rokem

    At 1:42 or so we have officially achieved chaotic motion

  • @glaseraaa
    @glaseraaa Před rokem

    tbh i want to see a website with 1000 balls in a random curve that occasionally changes

  • @nianyiwang
    @nianyiwang Před rokem

    the more you watch the more they look like patrick star's pants

  • @FizBliz
    @FizBliz Před rokem +1

    Cavities otw to my nerve:

  • @kennethmonroe2519
    @kennethmonroe2519 Před rokem

    2:51 goes so hard

  • @helo3309
    @helo3309 Před rokem

    water but each particle is almost weightless and super bouncy

  • @thee8017
    @thee8017 Před rokem

    nah whose molar did they do this in

  • @milowannebo-sorensen1776

    Balls

  • @torydavis10
    @torydavis10 Před rokem +1

    This is the perfect illustration of why all the air never randomly bunches up in one end of a room for a moment. Just imagine if the particles interacted with each other as well as the surface.

  • @bitonic589
    @bitonic589 Před 10 měsíci

    So I found the scientific name for a tooth shape. :D

  • @user-tc7nz6yi6c
    @user-tc7nz6yi6c Před rokem

    whoa my double well curve tastes like colors 2:47

  • @user-jn8zg2ez9q
    @user-jn8zg2ez9q Před rokem

    Hey, i tried to put (~ x^4 - x^2) into a graphing calculator but an error said something needs to be on both sides of ~.

    • @user-jn8zg2ez9q
      @user-jn8zg2ez9q Před rokem

      love your vids btw

    • @animations_ag
      @animations_ag  Před rokem

      Sorry, the ~ symbol just means that the polynomial is "proportional to"... The true polynomial used here is x^2 - 3x^2. Thus, just remove ~.

  • @triPocoPi9576
    @triPocoPi9576 Před rokem

    It’s interesting how there’s a height limit so to speak

  • @adbuuk
    @adbuuk Před rokem

    Where does the ball get it's energy from?