Is the billiard in a stadium reversible?

Sdílet
Vložit
  • čas přidán 25. 04. 2021
  • 200 non-interacting particles in a stadium-shaped domain. Their color changes at each reflection on the boundary. Leonid Bunimovich has shown that their dynamics is chaotic (ergodic and mixing). But is it really reversible, as it should be, according to the laws of classical dynamics? Let's find out...
    Reversible means here that reversing the velocities of all particles (rotating their direction by 180° but keeping their speed) should be equivalent to changing the direction of time.
    For context, see Richard Feynman's lectures on entropy: • Richard Feynman's Lect...
    Music: Dispersion Relation by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 licence. creativecommons.org/licenses/...
    Source: incompetech.com/music/royalty-...
    Artist: incompetech.com/
    This is a higher-quality remake of the video • Billiard in a stadium that has become a casualty of the CZcams compression algorithm.
    Current version of the C code used to make these animations: github.com/nilsberglund-orlea...
    www.idpoisson.fr/berglund/sof...
    You may be interested in some science outreach articles: images.math.cnrs.fr/_Berglund...
  • Věda a technologie

Komentáře • 113

  • @leviewings4689
    @leviewings4689 Před 3 lety +274

    There just had to be that one little bastard at the end who couldn’t stay in the pack.

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +151

      That's right, probably a round-off error. At least it shows I didn't cheat doing the simulation!

    • @12-343
      @12-343 Před 3 lety +22

      @@NilsBerglund Yeah I guessed there would be some rounding issues. This is a really good demonstration still though.

    • @rogerkearns8094
      @rogerkearns8094 Před 3 lety +3

      Typical, he had just one job.

    • @dawidek4267
      @dawidek4267 Před 3 lety

      @@NilsBerglund yes it's nice to see you reversing it at the end so they all go back to where they went, could you do it more often?

    • @Kualinar
      @Kualinar Před rokem

      @@NilsBerglund Absolutely rounding errors. Double precision calculations are just not accurate enough. Probably need at least quadruple precision.

  • @minewarz
    @minewarz Před 3 lety +86

    that one little sneaky particle to the right at the end...

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +47

      I call it Brian, because of the Pythons...

  • @lordnoodle1192
    @lordnoodle1192 Před 3 lety +94

    And the moral of the story is, if you're moving in any direction and instantaneously turn 180° whilst maintaining speed you will travel back in time

    • @DeclanMBrennan
      @DeclanMBrennan Před 3 lety +17

      No but you'lll fall over and bang your head so hard that you will think you are travelling back in time.

    • @Operational117
      @Operational117 Před 3 lety +13

      Assuming your entire body doesn't turn into red confetti from the sheer centrifugal forces it'd experience from instantaneously turning 180° on the spot... then again, I'm probably just overthinking the situation.

    • @DanteBarboza
      @DanteBarboza Před 3 lety +2

      This is why I enter CZcams

  • @vanderkarl3927
    @vanderkarl3927 Před 3 lety +53

    I think it's interesting how quickly it's apparent that the mixing is reversed, our minds must be attuned to subtle trends in the behaviors of systems such as this.

    • @LukePalmer
      @LukePalmer Před 3 lety +5

      Yeah I noticed the same thing, right away, like, something is off....

    • @Kualinar
      @Kualinar Před rokem +1

      Our brains are hard wired to find patterns, and are extremely good at it.

  • @CallenderMan
    @CallenderMan Před 3 lety +42

    I love that you are not only able to make these really cool simulations, but you're also able to explain, to a degree, how and why the simulations work. I'm normally not interested in things like this, but seeing you respond to common questions in the comments is actually quite informative.

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +18

      Thanks! I believe that quite a few important concepts of physics and mathematics can be made easier to grasp by appropriate graphical illustrations - at least to people with an eye for such things. It's cool that it seems to work.

  • @melwugon3687
    @melwugon3687 Před 3 lety +59

    Reminds me of reversible cellular automata like critters. Good content.

  • @Ches_Nogat
    @Ches_Nogat Před 3 lety +59

    Me:*sees the title* what
    Also me:haha funny points go brr

  • @JorgeLuis-ts6qp
    @JorgeLuis-ts6qp Před 3 lety +77

    Nils has heard our prayers. Praise Nils.

  • @ShakeyBox
    @ShakeyBox Před 3 lety +2

    I appreciate this being done correctly, rather than the second half just being the first half played backwards.

  • @gabewrsewell
    @gabewrsewell Před 3 lety +26

    oddly fascinating despite any other outcome not making sense. any reason you can think of as to why most but not all particles ended up red at the end?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +22

      That's probably because they have all made about the same number of collisions with the boundary. That would change if I let the simulation run for a longer time, though at some point round-off errors destroy reversibility.

    • @gabewrsewell
      @gabewrsewell Před 3 lety +1

      Nils Berglund I find that pretty interesting

  • @Ondohir
    @Ondohir Před 3 lety +22

    Would something interresting happen if you rotate them by 270°? Maybe a time of i? i as sqrt(-1)

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +20

      You mean changing the reflection rule? I'm not sure right now which one would give interesting dynamics, but I can look into it.

    • @entized5671
      @entized5671 Před 3 lety +2

      @@NilsBerglund I think they meant, rotating 270° instead of 180 like you did. Idk what it’s supposed to do either.

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +11

      I see. Most probably, it would keep looking very random. The point is, the configuration of the particles when I briefly stop the animation in the middle of the video is quite disordered (it has a large entropy), and only by reversing velocities in this very particular way will you be able to return to the ordered state.

    • @Ondohir
      @Ondohir Před 3 lety +3

      I did mean whar EnTi Zed said. What I meant is that if rotating it 180° means multiplying the flow of time by -1, rotating it by 270° could mean multiplying it by i. I didn't think it would do anything interesting or that even the idea was correct, but I found the idea of a time on the complex plane, almost as if it were two-dimensional, interesting

  • @adrianriebelbrummer5792

    This is the best illustration of the second law I've seen.

  • @StanSerebryakov
    @StanSerebryakov Před 3 lety +12

    Thanks for sharing!

  • @elenap15227
    @elenap15227 Před 2 lety

    I was honestly not expecting that. My intuition has been wrong before but never in such a satisfactory manner.

  • @yoavmal
    @yoavmal Před 3 lety +7

    That makes me curious, is there a non trivial position (say, all rays aim at the perpendicular of the shape) that can return to its original position? Something that would become chaotic but return to order?
    Edit: I saw the response for another comment saying that if you wait long enough you can get as close as you want to your original position.
    So it begs two questions: can we approximate how long? And, is there a guarantee to reach the same position, or just a limit of it?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +3

      I dont't know if you can estimate the recurrence time very precisely. But there are simplified model, such as the Ehrenfest urn model (look for it on Wikipedia, or here for an impression: czcams.com/video/U_XOy9GtfGw/video.html ) allows to give an estimate - the time is exponentially long in the number of distinguishable states. And regarding your second question, it will only be an approximation. The closer you want to get, the longer you have to wait.

  • @soymoder
    @soymoder Před 3 lety +2

    I'm so happy for them!!

  • @greateridahomapping7722
    @greateridahomapping7722 Před 3 lety +6

    I like your simulations

  • @lightninghell4
    @lightninghell4 Před 3 lety +1

    This is awesome! What would make it nonreversible would be to add coupling inter-billiard force terms. That would be a cool demonstration of entropy!

    • @NilsBerglund
      @NilsBerglund  Před 3 lety

      Coupling the particles by reversible forces would leave the system reversible. This is very nicely explained by Richard Feynman in the talk linked to in the video description.

    • @lightninghell4
      @lightninghell4 Před 3 lety

      @@NilsBerglund Right, I guess what I meant was that it would seem ergodic in the time scale of the video.

  • @rivers4753
    @rivers4753 Před 3 lety +11

    Is there any initial state that, if run long enough will converge again?

    • @rivers4753
      @rivers4753 Před 3 lety +3

      Not including straight up or directly sideways

    • @rivers4753
      @rivers4753 Před 3 lety +2

      Maybe sideways would be cool

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +15

      Poincaré's recurrence theorem says that if you wait long enough, you will come as close as you like to the initial state. However, long enough may mean very, very long...

    • @alenzhang4854
      @alenzhang4854 Před 3 lety

      The focis

    • @teamupleft7097
      @teamupleft7097 Před 3 lety

      @@NilsBerglund Is the simulation discrete?

  • @extracomp56
    @extracomp56 Před 3 lety

    Congratulation! You made the billiard science into the bullet hell room

  • @Arikayx13
    @Arikayx13 Před 3 lety

    The out of order colors at the end confuses me!
    Did they mostly return yet encoded with information about the shape they were in?
    Or is the miss match the difference between the central release point and the larger return point (and thus if the calculations more accurate, the colors would line up better too)?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +2

      The color of each particle changes with each collision with the boundary. The colors at the end are different because the particles have not all made the same number of collisions.

  • @michaelschon4671
    @michaelschon4671 Před 3 lety

    If you would not stop after reaching the origin again but let it run into "negative time", do you think there would be some kind of symmetry emerging? I cannot think of an obvious relationship, but it would be interesting to see.

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +2

      In general, I don't see an obvious symmetry either. Unless the initial condition is itself symmetric, for instance with respect to one of the symmetry axes of the stadium.

  • @arturtrzebinski2112
    @arturtrzebinski2112 Před 3 lety +1

    Impossibruuuu!! What precision do you work with in your calculations? Shouldn't the results go into a chaos at reverse?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +4

      I use double-precision floating point. You're right that if I were to run it much longer, the round-off errors would prevent it from returning to the initial state.

  • @Kualinar
    @Kualinar Před rokem

    Reversible ? Yes. The disparity at the end is only caused by computational errors from the limited granularity of the FPU. In this case, 64 bits of precision is just not enough. Need about double. We desperately need 128 bits, quad precision, FPUs, or even 256 bits ones, octuple precision.

  • @nicolabombace2004
    @nicolabombace2004 Před 3 lety +1

    I imagine if there was friction involved with the walls, the system would be non reversible?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +2

      That's right, because energy would be lost to the walls. The same would hold for viscous drag inside the billiard domain, if this were filled with some kind of fluid.

  • @benjamincurran5799
    @benjamincurran5799 Před 2 lety

    I dunno about you but I just put Touhou OST over this and it was actually fitting for how chaotic this becomes.

  • @77guard
    @77guard Před 2 lety

    Just like that, I imagine that the cycles of nature and existence work.

  • @xcreeperbombx61
    @xcreeperbombx61 Před 3 lety

    Now what if they interacted (bounced off each other like they were walls)?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +1

      It would not change the dynamics, because all particles have the same mass and velocity, so bouncing off each other is the same as just crossing each other. For more complicated interactions between the particles, the simulation would probably become much more sensitive to round-off errors.

  • @thozkaz
    @thozkaz Před 3 lety +2

    any bullet hell game be like:

  • @David_Rg
    @David_Rg Před rokem

    enthropy always goes up
    this is both intuitive and very confusing, because this is one of the tricks your brain uses to know if the video is in reverse or not. When doesn't follow this rule, something feels off, yet nothing seems impossible when observed carefully.
    enthropy is just the numbers of posible microstates that a macrostate has, and, because of statistics, there are more ways to put all those lines at random than to have them all in the same place, so is more likely to have them at random than to have them synchronized, not because it's impossible, just by mere chance, because it's a more likely scenario (that's why this is not actually a law of enthropy, but our brain is made to think that is a law, and it always works)

    • @NilsBerglund
      @NilsBerglund  Před rokem

      Ludwig Boltzmann couldn't have said it better.

  • @henrytang2203
    @henrytang2203 Před 3 lety

    Under ideal theoretical conditions, entropy is reversible. Damn.

  • @kvolikkorozkov
    @kvolikkorozkov Před 3 lety

    this is interesting

  • @sethbettwieser
    @sethbettwieser Před 3 lety

    I would say that so long as only geometric interaction occurs, it will always be reversable.

  • @user-lx4de9wv4m
    @user-lx4de9wv4m Před 2 lety

    could you show how billiard in doughnut look like

  • @triynizzles
    @triynizzles Před 3 lety +1

    You could try how reflections would work inside of company logos?

  • @robertdeaton4720
    @robertdeaton4720 Před 3 lety

    shouldn't any system like this that progresses with time always be reversible, even if it behaves chaotically? (ignoring very fine rounding errors)

  • @iamnotsure1351
    @iamnotsure1351 Před rokem

    it gets increasingly hard to follow just one

  • @normal_internet_user
    @normal_internet_user Před 3 lety

    Woah!!!

  • @2false637
    @2false637 Před 3 lety +1

    Is there a situation where it would not be reversible?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +7

      If you add a magnetic field, it would only be reversible if you change the direction of the field when reversing velocities. Another way of making the system non-reversible would be to add randomness.

  • @GretgorPooper
    @GretgorPooper Před 3 lety +1

    Holy crap, man. The fact that the entire thing returns to the intial state by simply inverting the velocities at a random point in the simulation baffles my monkey brain.

    • @yoavmal
      @yoavmal Před 3 lety +1

      Well, it is pretty intuitive if you think about it - inverting the velocities was simply making them trace the very same path they went beforehand, nothing more. Infact, it was almost the same as playing the video in reverse!

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +1

      @@yoavmal I added a link to a lecture by Richard Feynman in the description, for more context.

    • @GretgorPooper
      @GretgorPooper Před 3 lety

      @@yoavmal I kinda realize that now. I'm just rather slow.

  • @loopiloop
    @loopiloop Před 3 lety

    Why would any Billard simulation not be reversable?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +5

      You're right, of course, that it should be. Except for round-off errors.

  • @wagnerramosmidichannelabso514

    Why is it reversible?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +4

      Because Newton's laws of dynamics are. You can also see it by considering each individual particle, moving at constant speed on straight lines with occasional changes of direction.

    • @wagnerramosmidichannelabso514
      @wagnerramosmidichannelabso514 Před 3 lety

      @@NilsBerglund On the start of this video, you'll see that the billiard lines are perfectly placed with carefulness. And, in the end of this video, what will happen if the billiard lines are imperfectly placed with awareness?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety

      @@wagnerramosmidichannelabso514 Not sure what you mean there.

  • @regem9121
    @regem9121 Před 3 lety

    Daamn

  • @dougthedonkey1805
    @dougthedonkey1805 Před 3 lety

    Mmm sprinkles

  • @FenrizNNN
    @FenrizNNN Před 3 lety +1

    Ants!

  • @olasdorosdiliusimilius2174

    Goose

  • @thefractalistic3761
    @thefractalistic3761 Před 3 lety

    Why is the stadium so chaotic though?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety

      It has to do with a "focussing-defocussing" mechanism. Particles reflected on one of the circular arcs tend to be focussed towards the arc's center, but when traveling to the other arc, they tend to spread out even more.

    • @thefractalistic3761
      @thefractalistic3761 Před 3 lety

      @@NilsBerglund ah

  • @lilguy6065
    @lilguy6065 Před 3 lety

    looks like a buncha bugs walkin around (:

  • @andrewherrera2819
    @andrewherrera2819 Před 3 lety

    I here the music, but I do not see jobbythehong transforming soemthing 0/10
    I hope to all that is holy someone gets that's a joke

  • @cleiton1648
    @cleiton1648 Před 3 lety

    Why are these on my recommended now

  • @satvera2770
    @satvera2770 Před 3 lety

    Jobby fans where y'all at?

  • @sibedir
    @sibedir Před 3 lety

    а... эммм... чё? wtf is this?

  • @KatzRool
    @KatzRool Před 3 lety

    gauss

  • @PythonPlusPlus
    @PythonPlusPlus Před 3 lety +1

    This is what happened when the Doctor reversed the polarity of the neutron flow

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +3

      Yeah, TARDIS probably has to mess with entropy somehow...

  • @DankSouls37
    @DankSouls37 Před 3 lety

    You know, people think I'm smart enough to understand shit like this, but ever since I came to realization that I'm a complete dumbass I don't so, what's the point of this experiment? Why wouldn't it go back to it's original state if it was essentially reversed?

    • @NilsBerglund
      @NilsBerglund  Před 3 lety +2

      In a way, it's not surprising at all, you're right. It is just that to us, the state in the middle of the animation looks very random (it has a high entropy), so if we were to start from there, it would look a bit like a heap of trash spontaneously assembling to become a Boeing 747, or something.