TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to Turn Physics into an Optimization Problem

115 pointsby formalsystemover 5 years ago

11 comments

madhadronover 5 years ago
A couple points:<p>&gt; In Lagrangian Mechanics you minimize the total action of a system to find its motion<p>Strictly, realizable paths are an extremum (maximum, minimum, or inflection point) of the action.<p>&gt; it’s representation invariant<p>This form of representation invariance is true in Newtonian and Hamiltonian mechanics as well. It&#x27;s a statement that physics is invariant under changes of coordinates. I think a better way of stating what you&#x27;re after is that you work with a function of the whole state of the system rather than having to do the double entry bookkeeping for all the interactions among subsystems of what you&#x27;re modeling.<p>&gt; Studying the “shapes” of systems in this manner is part of larger field called Topology.<p>The geometry of configuration space (for Lagrangian mechanics) or phase space (for Hamiltonian mechanics) isn&#x27;t really part of topology. For phase space, it&#x27;s properly called symplectic geometry. For configuration spaces, it&#x27;s just high dimensional Euclidean geometry. It is sometimes interesting to look at the topology of these spaces, but it&#x27;s much more than just topology.<p>I&#x27;m glad to see a mention of SICM. That really is a great book. It might be worth pointing out that the field of mathematics that leads to the Euler-Lagrange equations goes under the name of &quot;calculus of variations.&quot; I learned it from Weinstock&#x27;s excellent old book by the same name.<p>Maybe also worth noting that you can&#x27;t add non-conservative forces to Lagrangian mechanics in any generally accepted way, so if you have friction in your system, you&#x27;re stuck in Newtonian.
评论 #21458171 未加载
评论 #21458431 未加载
评论 #21457630 未加载
petschgeover 5 years ago
The article claims &quot;In Lagrangian Mechanics you minimize the total energy of a system to find its motion&quot;. But if you actually look into it, you derive Lagrangian Mechanics by minimizing (or maximizing) the _action_. Action in this context is defined as the integral over the Lagrangian, or in other words the _difference_ between kinetic and potential energies (not their sums). The author knows that because later he states &quot;All physical processes take the path that minimizes total action.&quot; and gives the corresponding mathematical expressions.<p>Also the statement about the Lagrangian being representation independent is misleading. The formalism stays the same and this is great for picking &quot;suitable&quot; coordinates that makes solving the system easier, but how the Lagrangian looks and how the equations of motion for the coordinates look can be quite different. This is actually what makes Lagrangian mechanics so powerful. You can transform coordinates (possibly several times) to get the Lagrangian into a simple shape and get equations of motions you can actually solve. You have transformed some of the difficulty of solving differential equations into the difficulty of finding natural coordinates, something humans tend to be better at.<p>The point that the multipliers \lambda_i that appear when modeling constraints should be names &quot;Lagrange multipliers&quot; has already been raised.
评论 #21456375 未加载
评论 #21458308 未加载
pflatsover 5 years ago
I&#x27;m not sure what the author&#x27;s target audience is, but:<p>&gt; But we know from high school physics that a = v&#x27; = p&#x27;&#x27;<p>It would be exceedingly rare to see &quot;p&quot; used as the position variable in high school physics - it&#x27;s almost exclusively reserved for momentum.<p>Most high school students do 1D physics with position as &quot;x&quot;. Those who go on to study more physics usually use &quot;s&quot; as their displacement function&#x2F;vector and maybe &quot;r&quot; as a position vector.<p>(Also, the overwhelming majority of high school physics students never touch calculus-based physics -- only about 50-60 thousand students take the AP Physics C exam each year. 5 times that take AP Physics 1, and even more take non-AP Physics.)
评论 #21455913 未加载
_Microftover 5 years ago
In case you want to know more about the constraints, the search term is <i>Lagrange multiplier</i>.<p>Names shouldn&#x27;t be omitted because they are essential to searching for details. A name might <i>make sense</i> once you know it but you can not really derive it. If you do not know it, you are lost.<p>Nice article by the way!
评论 #21456015 未加载
评论 #21456099 未加载
tobmltover 5 years ago
Nice write up, truly after my own heart! Part of my research had to do with using Lagrange&#x27;s method of multipliers to design B-spline geometry via solution of constrained nonlinear optimization problems, where we had these bending energy measures included to smooth the resulting curves and surfaces. I realized in the course of things that the functional I was minimizing had this parallel with Physics. The answer to so much is at the minimum! Nice to see somebody with the same train of thought put it to print!<p>Annd... From the perspective a freshly minted PhD, who was always in a terrible fright before giving a talk, I look at the critiques in the following way: It&#x27;s hard to put yourself out there about such a topic, knowing at the same time such awe at the beautiful, towering edifice of mathematical theory, experiment, and geometry that makes up physics. But the critiques help refine one&#x27;s thinking, and are always to be welcomed. Good on them for pointing out the places where things need to be sharpened a bit. At the same time, I love the big picture. That&#x27;s what keeps me coming back. That&#x27;s the viewpoint where there are such similar structures and relationships between the way we solve problems in far flung fields. One can leverage what one has learned in one field to get a head start, (or at least a toe-hold!) learning another. Cheers.
TrackerFFover 5 years ago
I don&#x27;t know if this is a good analogy, but as an Electrical Engineer, the process of simplifying the analysis by going from Newtonian to Lagrangian gave me flashbacks from the first time we used Laplace transforms to solve (previously very, very tedious) circuit analysis problems. Almost felt like cheating.
评论 #21460213 未加载
afabischover 5 years ago
Maybe someone finds this interesting. This paper seems to be related: <a href="https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;1907.04490" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;1907.04490</a>
评论 #21460263 未加载
jshaqawover 5 years ago
Fantastic article but... “ The implementation here is in LISP which is a great language to learn but in my experience a tough language to use on larger projects.”<p>OBJECTION YOUR HONOR!!
评论 #21460254 未加载
Myrmornisover 5 years ago
Regarding SICM, Sussman et al. point out that the traditional notation for differential calculus contains &quot;type errors&quot;. In particular they point this out regarding the Euler-Lagrange equations. And they then make the point that their &quot;functional&quot; notation (based on Spivak Calculus on Manifolds) is free of these type errors.<p>Obviously Sussman has a special relationship to Scheme, but I am curious whether it would have been beneficial for the code implementation (scmutils) to have used a statically typed language.<p>Do you (formalsystem or anyone else) know whether the Julia implementation makes much use of typing? I don&#x27;t know Julia but from a few seconds googling it sounds like it&#x27;s also not statically typed. I do wonder whether something like Haskell wouldn&#x27;t make most sense for reimplementing scmutils -- you&#x27;d be able to make a lot of the pedagogical issues clear at compile time, in the type language alone (disregarding the actual implementation of the functions in the term language).
评论 #21460197 未加载
_raoulcousinsover 5 years ago
I see the article for a split second and then get an Error 500 page. This happening to anyone else?
评论 #21456680 未加载
评论 #21456562 未加载
nravicover 5 years ago
pleasantly surprised to see julia used in this
评论 #21456139 未加载