Legendre Transformation explained (with Animation)

Поділитися
Вставка
  • Опубліковано 9 лют 2025
  • A legendre transformation is a way of transforming a function of some variable into another function of another variable without losing any information. It is used for thermodynamic potentials or in theoretical mechanics when deriving the Hamilton function from the Lagrange function. In this video I show a geometric interpretation for the legendre transformation via a helpful little animation before deriving the legendre transform of a differentiable function from the definition.
    My explanation is mainly intended for people who have at least some basic knowledge of single and multi variable calculus and need a quick explanation and derivation of the legendre transformation. For that reason I am not overly exact and thorough in the mathematical details. Consider my explanation a Physicist's approach to a mathematical topic.

КОМЕНТАРІ • 37

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

    "A graphical derivation of the Legendre Transform" by Sam Kennerly (12 April 2011) and
    "Making sense of the Legendre transform" by Zia, Redish & McKay, American Journal of Physics, vol. 77, (7), July 2009 present enlightening discussions on the Legendre Transform.

    • @chenyang_wu
      @chenyang_wu 4 місяці тому +1

      I have to go back and hit the thumb for you! These resources are truly incredibly useful and crystal clear. Thanks for sharing!

  • @krhyni555
    @krhyni555 3 роки тому +43

    While there's a bunch of cool physics/math videos out there, somehow I feel Legendre transform is not getting attention it deserves. Thanks for the very essential explanation!

  • @salaa23
    @salaa23 3 роки тому +10

    thank god someone thought about making a video with a visual approach
    here have my sub

  • @carlosg.anguiano9584
    @carlosg.anguiano9584 3 роки тому +9

    Concise and well explained, thank you so much!

  • @1495978707
    @1495978707 Рік тому +1

    0:50 To be very explicit, that means this transformation must be *invertible*. Saying that we can get the original function back is not as clear of a statement.
    Not only that, but the Legendre Transformation is it’s own inverse! The term for such a transformation is an involution. This is part of why it makes so much sense to use the Legendre transformation in thermodynamics, you use one simple transformation to get between any of the representations of your system

  • @xyw8383
    @xyw8383 2 роки тому +3

    At 4:45, I don't understand why the first derivatives of g equal to x(p) and x ...

  • @mohsen0619
    @mohsen0619 6 років тому +8

    Thanks for the video. I didn't understand why you put zero in t(0,x).

    • @MathAndPhysics
      @MathAndPhysics  6 років тому +14

      First I compute the tangent of my function at the x-coordinate x0 and I call it t(x, x0). It is the tangent at a fixed point whose x-coordinate is x0. I am interested in the y-coordinate of this tangent at x=0, which is t(0, x0). This is just a single value for fixed x0. But if I vary the value of x0 I can get different values. So I take t(0, x0) and put in x instead of x0. This gives a new function g(x). I admit it happens very quickly in the video, but I hope this clears things up a bit.

  • @shaswatachowdhury9032
    @shaswatachowdhury9032 4 роки тому +2

    Brilliant explanation ! I loved it !

  • @dsllvv
    @dsllvv 2 роки тому +1

    Thank you! That was useful.

  • @Gajindrasahu
    @Gajindrasahu 4 роки тому +2

    Hey this is an excellent described 👍👍❤️❤️❤️

  • @timsmith9942
    @timsmith9942 4 місяці тому

    Хорошее видео!

  • @arnold-pdev
    @arnold-pdev 5 років тому +2

    Excellent!

  • @danbakana
    @danbakana Рік тому +1

    Your explanation was very good. However, I still have a question. I understood that the Legendre transformation is like a parameterization of the function f(x) by its derivative at x, f'(x), but I don't understand why g(p) = ±x. Did you arrive at this result or establish it? If you established it, why?

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

    Hi. Usually when we talk of transformations (Fourier, Laplace), these are usually a change of basis of the function (the former into sinusoids and the latter into damped sinusoids). These transforms are intuitive enough to grok. I'm wondering: the coordinates that we're in after taking the Legendre transform are of what exactly?

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

    I must admit this video is very helpful and splendid. But I cannot understand why none is referring to the annoying mouth sounds.

  • @NovaWarrior77
    @NovaWarrior77 4 роки тому

    thank you so much!

  • @uizuimama
    @uizuimama 2 роки тому

    super thanks a lot

  • @mattagona4585
    @mattagona4585 5 років тому +1

    f(x0) is not the y intercept at any point, so why is the equation for the tangent f'(x)(x - x0) + f(x0)? This is the form y = mx + b but f(x0) is not the y intercept.

    • @rominawild6235
      @rominawild6235 4 роки тому +2

      Some explanations for people who wonder how tangent = f'(x0)(x - x0) + f(x0) relates to the form y = mx + b:
      - first of all, you missed a zero in the derivative: f'(x0)(x - x0) + f(x0)
      (The x0 is just any number, like 2 or 101 or whatever, just a valid x input)
      - Also, the tangent equation is not exactly in the form y=mx + b:
      - It's clearer to see with an example how (tangent = f'(x0)(x - x0) + f(x0)) and (y = mx + b) relate:
      take y = f(x) = x^2
      so f'(x) = 2x
      let's get the tangent at point x = 3 using the equation:
      tangent t(x, 3) = f'(x0)(x - x0) + f(x0) = 2*3 (x - 3) + 3^2 = 6(x - 3) + 9
      you can simplify this now to get the form y = mx + b:
      tangent = 6(x - 3) + 9 = 6x - 6*3 + 9 = 6x - 9
      so: y = tangent = 6x - 9
      (-9) is your y intercept, which is not the same as f(x0), which you mentioned. f(x0) = f(3) = 3^2 =9
      - To know where the mysterious tangent equation came from:
      The f'(x0)(x - x0) + f(x0) is derived from the definition of the slope at a given point x0:
      Slope at x0 = f'(x0) = deltaY/deltaX = [ f(x0) - f(x) ]/[ x0 - x ].
      Now solve for f(x) to get the form f(x) = f'(x0)(x - x0) + f(x0)
      Expand the bracket if you want to see what the y intercept is: f(x) = f'(x0)x - f'(x0)x0 + f(x0)
      So your y intercept b of (y = mx + b) would be: (-f'(x0)x0 + f(x0))

  • @jingsyuenwong8214
    @jingsyuenwong8214 5 років тому +2

    Hi, I do not understand line 7 as you only said we have to express it in p and put into the function g. Later you mentioned we have to compute the inverse of f prime of x but on the screen, it shows inverse of f prime of p instead. Also, what is the difference between directly inserting p/2 as x into the g equation and doing all the inverse function which is confusing? Thank you.

    • @MathAndPhysics
      @MathAndPhysics  5 років тому +3

      Hi, the relation between x and p is given via f'(x) = p (this is the definition of p). f' is a function of x, but its inverse is a function of p. In the 7th line from the top I just inverted the relation f'(x) = p to obtain x = (f')^-1(p). This is also what I did with my example. I computed f'(x) = 2x = p and solved for x, which gave x = p/2. In doing so, I did actually calculate the inverse of f'(x) = 2x = p, it just happens to be very simple for this example. I hope this helps, if you have any further questions, do not hesitate to contact me.

  • @friedrichwilhelmhufnagel3577
    @friedrichwilhelmhufnagel3577 2 роки тому

    Hello,
    thanks for the video!
    Excuse me, x(p) is the inverse of the derivative of f at p. Isnt that just f again?
    Answer would be much appreciated! Thanks!

    • @ES-qe1nh
      @ES-qe1nh 2 роки тому

      Inverse of the derivative is not the same as the "Stammfunktion" or F

  • @kharanshu2854
    @kharanshu2854 4 роки тому +12

    Damn! I came here only to know how legendre is pronounced 😂

    • @jordanpayne6073
      @jordanpayne6073 3 роки тому

      This is actually my middle name and they all pronounce it wrong hahah

    • @jordanpayne6073
      @jordanpayne6073 3 роки тому

      It sounds more like lejawnd/lejeand and the re is silent lol

  • @李光平-x7g
    @李光平-x7g 6 років тому +1

    Tks. But, why g(p)=g(x(p))? It seems that, p=x(p). But x(p)=p/2, isn't it?

    • @李光平-x7g
      @李光平-x7g 6 років тому

      Sorry for my bad English. I mean, if g(p)=g(x(p)), then p=x(p).

    • @MathAndPhysics
      @MathAndPhysics  6 років тому +4

      I think you are referring to the line that appears at about 2:57, right?
      You have a very good point in that g(p) = g(x(p)) is not correct here in a strictly mathematical sense. In the sense of what they do with their argument, they are different functions! g(p) takes its argument, squares it and multiplies it by -1/4. g(x) takes its argument squares it and multiplies by -1. That makes them different functions of their argument. Choosing the same symbol g and not even using a subscript to distinguish the functions is a Physicist's laziness at work. What I mean are two different functions depending on whether the argument is x or p. g(x) is developed in line 3-5. g(p) is then found by plugging x(p) into g(x).

    • @李光平-x7g
      @李光平-x7g 6 років тому

      @@MathAndPhysics OK, thank you very much!

  • @beccacross7880
    @beccacross7880 Рік тому

    what is x_0?

  • @John87721
    @John87721 6 років тому

    Good.

  • @kartikkalia01
    @kartikkalia01 3 роки тому

    G O D

  • @vincebartle
    @vincebartle 4 роки тому

    wow