Editing Talk:2904: Physics vs. Magic

Jump to: navigation, search
Ambox notice.png Please sign your posts with ~~~~

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 14: Line 14:
  
 
The talk had a better explanation of why Thermodynamics, Conservation laws and Lagrangians are 'magic' than the actual explanation. I added a few paragraphs briefly explaining to the explanation, I hope that's helpful, but I left the paragraph about scientific laws being empirical themselves in place despite the fact that I'm pretty dubious about whether that's actually part of the joke. [[Special:Contributions/141.101.99.111|141.101.99.111]] 16:46, 9 March 2024 (UTC)
 
The talk had a better explanation of why Thermodynamics, Conservation laws and Lagrangians are 'magic' than the actual explanation. I added a few paragraphs briefly explaining to the explanation, I hope that's helpful, but I left the paragraph about scientific laws being empirical themselves in place despite the fact that I'm pretty dubious about whether that's actually part of the joke. [[Special:Contributions/141.101.99.111|141.101.99.111]] 16:46, 9 March 2024 (UTC)
:: To be frank I just think part of the joke is how naive definitions  of science can lead to baffling counterexamples [[Special:Contributions/198.41.230.214|198.41.230.214]] 08:03, 10 March 2024 (UTC)
 
 
 
<br>
 
<br>
 
 
'''About the stationary action concept'''
 
 
At first sight it looks as if Hamilton's stationary action implies some form of teleology. On closer inspection that turns out not to be the case.
 
 
I will use the following case as example of application of calculus or variations in physics: the [https://en.wikipedia.org/wiki/Catenary catenary] problem. The properties of the catenary problem that make it lend itself to variational treatment generalize to other areas of physics in which calculus of variations is applied
 
 
Take a catenary and divide it into subsections. Here's the thing: each of those subsections is an instance of the catenary problem. The ''ratio'' of horizontal and vertical displacement is different for each subsection, of course, but that is not an obstacle.
 
 
Solving the catenary problem with calculus of variations consists of the following: you subdivide the total length in infinitesimally small subsections. You then set up an equation that addresses all subsections concurrently.
 
 
That equation-for-every-infinitesimal-subsection-concurrently is the Euler-Lagrange equation. You solve the problem by restating the equation as a  ''differential equation''.
 
 
A differential equation is non-local in the sense that to solve the problem you require that the equation is to be satisfied over the whole domain ''concurrently''.
 
 
The derivation of the Euler-Lagrange equation is a generic derivation. That is, the result of that derivation is applicable for ''any'' problem that is stated in variational form.
 
 
Stating a problem in variational form means that it is stated as an integral. (In the case of the catenary problem that integral is the integral of the potential energy from one point of suspension to the next point of suspension.) The problem statement is then: which curve has the property that for that curve the ''derivative'' of the integral of the potential energy is zero.
 
 
In the case of the catenary problem: <br>
 
The integral is integration with respect to the horizontal coordinate. The variation that is applied is perpendicular to that; the variation is applied in the ''vertical'' direction. The derivative-is-zero criterion is for the derivative of the integral with respect to that ''vertical'' direction.
 
 
<br>
 
 
Key to the derivation of the Euler-Lagrange equation is that it works towards the goal of transforming the integral expression to a differential expression. That is essential: in order to make progress the integration must be replaced with differentiation.
 
 
The result of the transformation, the Euler-Lagrange equation, imposes a constraint that is just as demanding as the initial formulation with an integral. The differential equation is to be satisfied concurrently over the whole domain.
 
 
There is a derivation of the Euler-Lagrange equation that just skips stating the integral; it goes straight to the differential expression. [https://preetum.nakkiran.org/lagrange.html Geometric derivation of the Euler-Lagrange equation] Author: Preetum Nakkiran.
 
 
(Preetum Nakkiran uses the catenary problem as motivating example, the result has general validity.)
 
 
Further reading: discussion of Hamilton's stationary action in an answer I submitted to physics.stackexchange: [https://physics.stackexchange.com/a/670705/ Hamilton's stationary action]
 
 
<br>
 
 
'''The relation between Newtonian mechanics and conservation of energy'''
 
 
We have that in order to formulate a theory of mechanics we must at minimum use these three quantities: position, velocity, acceleration. These three are in a cascading relation: velocity is the time derivative of position, acceleration is the time derivative of velocity.
 
 
v = ds/dt, a = dv/dt &nbsp;&nbsp;&nbsp;&nbsp; (1)
 
 
In the case of uniform acceleration from a starting velocity of zero we have: <br>
 
v = at &nbsp;&nbsp;&nbsp;&nbsp; (2) <br>
 
s = &frac12;at&sup2; &nbsp;&nbsp;&nbsp;&nbsp; (3)
 
 
Take (3), multiply both sides with acceleration ''a'', and substitute according to (2):
 
 
as&nbsp;=&nbsp;a&frac12;at&sup2;&nbsp;=&nbsp;&frac12;a&sup2;t&sup2;&nbsp;=&nbsp;&frac12;(at)&sup2;&nbsp;=&nbsp;&frac12;v&sup2;
 
 
as&nbsp;=&nbsp;&frac12;v&sup2;&nbsp;&nbsp;&nbsp;&nbsp;(5)
 
 
The relation (5) is known as Torricelli's formula. <br>
 
In case the initial position coordinate and the initial velocity are non-zero the derivation works out as follows: <br>
 
v&nbsp;-&nbsp;v&#8320;&nbsp;=&nbsp;at&nbsp;&nbsp;&nbsp;&nbsp;(6) <br>
 
s&nbsp;-&nbsp;s&#8320;&nbsp;=&nbsp;v&#8320;t&nbsp;+&nbsp;&frac12;at&sup2;&nbsp;&nbsp;&nbsp;&nbsp;(7) <br>
 
Multiply all terms of (7) with acceleration ''a'': <br>
 
a(s&nbsp;-&nbsp;s&#8320;)&nbsp;=&nbsp;av&#8320;t&nbsp;+&nbsp;a&frac12;at&sup2;&nbsp;&nbsp;&nbsp;&nbsp;(8) <br>
 
a(s&nbsp;-&nbsp;s&#8320;)&nbsp;=&nbsp;v&#8320;(at)&nbsp;+&nbsp;&frac12;(at)&sup2;&nbsp;&nbsp;&nbsp;&nbsp;(9) <br>
 
a(s&nbsp;-&nbsp;s&#8320;)&nbsp;=&nbsp;v&#8320;(v&nbsp;-v&#8320;)&nbsp;+&nbsp;&frac12;(v&nbsp;-v&#8320;)&sup2;&nbsp;&nbsp;&nbsp;&nbsp;(10) <br>
 
a(s&nbsp;-&nbsp;s&#8320;)&nbsp;=&nbsp;vv&#8320;&nbsp;-&nbsp;v&#8320;&sup2;&nbsp;+&nbsp;&frac12;v&sup2;&nbsp;-&nbsp;vv&#8320;&nbsp;+&nbsp;&frac12;v&#8320;&sup2;&nbsp;&nbsp;&nbsp;&nbsp;(11) <br>
 
a(s&nbsp;-&nbsp;s&#8320;)&nbsp;=&nbsp;&frac12;v&sup2;&nbsp;-&nbsp;&frac12;v&#8320;&sup2;&nbsp;&nbsp;&nbsp;&nbsp;(12) <br>
 
 
Next we go to the more general case of allowing non-uniform acceleration. Interestingly, the result of the integration is identical to (12).
 
 
&int;&nbsp;a&nbsp;ds&nbsp;=&nbsp;&frac12;v&sup2;&nbsp;-&nbsp;&frac12;(v&#8320;)&sup2;&nbsp;&nbsp;&nbsp;&nbsp;(13)
 
 
(To understand (13): we have that integration is summation of infinitesimal strips. The integration consists of concatenating instances of (12), in the limit of infinitesimal increments. All of the in-between terms drop away against each other, resulting in (13))
 
 
<br>
 
 
The work-energy theorem is obtained as follows: start with ''F''=''ma'', and integrate both sides with respect to the position coordinate.
 
 
&int;&nbsp;F&nbsp;ds&nbsp;=&nbsp;&int;&nbsp;ma&nbsp;ds&nbsp;&nbsp;&nbsp;&nbsp;(14)
 
 
Use (13) to process the right hand side:
 
 
&int;&nbsp;F&nbsp;ds&nbsp;=&nbsp;&frac12;mv&sup2;&nbsp;-&nbsp;&frac12;m(v&#8320;)&sup2;&nbsp;&nbsp;&nbsp;&nbsp;(15)
 
 
(15) is the work-energy theorem
 
 
The work-energy theorem is the reason that it is useful to formulate the concepts of potential energy and kinetic energy. If we formulate potential energy and kinetic energy in accordance with the work-energy theorem then we have that the sum of potential energy and kinetic energy is a conserved quantity.
 
 
The work-energy theorem consists of two elements: ''F''=''ma'', and (13).
 
 
Here (13) was stated in terms of the familiar quantities of mechanics: position, velocity, acceleration. (13) generalizes to any set of three quantites that features that cascading relation: state, first time derivative, second time derivative.
 
 
Example: electric current and electromotive force in an LC circuit<br>
 
Amount of current  is a first derivative (displacement of charge per unit of time)<br>
 
''Change'' of current strength is a second derivative <br>
 
For current through an inductor: the rate of change of current strength (second time derivative) is proportional to the electromotive force. <br>
 
So we see that in the case of an LC circuit the elements necessary to result in a conservation property are present. <br>
 
[[User:Cleonis|Cleonis]] ([[User talk:Cleonis|talk]]) 11:50, 10 March 2024 (UTC)
 
 
Thinking further on this, I believe part of the apparent strangeness of the Lagrangian formalism is the fact that the system state is specified at both ends forces you into thinking 'backwards in time' in a way that you don't have to in the Newtonian formalism, but the Newtonian formalism is quite happy to infer the past state from the future and give sensible answers if you integrate backwards in time. So in that sense it's true to say that the Lagrangian formalism implies no more teleology than the Newtonian formalism, but only because the unsettling backwards propagation of cause and effect is actually hidden in the Newtonian approach too. Maybe the interesting thing here is a connection between entropy, whence we get a distinction between past and future, and the philosophical notion of 'purpose' or 'ends' or whatever the term in teleology is. I'm not a philosopher (nor a physicist) so forgive me if I'm mischaracterizing teleology. [[Special:Contributions/172.71.178.177|172.71.178.177]] 19:25, 10 March 2024 (UTC)
 
 
: I concur that assumption of some form of teleology is not in any way necessary.
 
 
: Chad Orzel, discussing Lagrangian formalism, offered a comparison. Let's say we have a train traveling to a destination at a constant velocity. We can state that case as an ''initial value problem'' as follows: the train travels at a velocity of 100 units of distance per hour. That constraint determines how much ''time'' it will take to reach a destination that is 100 units of distance away. We can state that case as a ''boundary value problem'' as follows: at one hour from t=0 the train must arrive at a destination that is 100 units of distance away. That constraint determines what the ''velocity'' must be.
 
 
: Next we introduce a potential, the potential introduces an acceleration profile to the case. When the problem is stated as an initial value problem we use the given initial velocity (and given acceleration profile) to extrapolate what the arrival time will be. When the case is stated as a boundary value problem we do what is effectively an interpolation: we infer which initial velocity will produce that travel duration of 1 hour.
 
 
: I used used the words 'extrapolation' and 'interpolation' because of their common element, of course. The element 'polation' is related to words such as 'polished'. A physical trajectory is free from discontinuity. Extrapolation and interpolation have in common that they capitalize on continuity. Calculation can proceed in any direction; that does not imply anything about causality. [[User:Cleonis|Cleonis]] ([[User talk:Cleonis|talk]]) 22:43, 10 March 2024 (UTC)
 
 
We haven't seen anything about daylight savings time yet... maybe we'll see one tomorrow... why am i eepy during the middle of the day... -- megan <sup>she</sup>/<sub>her</sub> <sup>[[user talk:megan|talk]]</sup>/<sub>[[special:contribs/megan|contribs]]</sub> 23:01, 10 March 2024 (UTC)
 
 
Conservation laws and Lagrangian refer to their role in particle physics. For example, conservation of electrical charge is simply postulated as something that your theory should satisfy, but physics does not tell us why it is there in the first place (hence: magic). Similarly, Lagrangians are usually formulated in a way that the outcomes are compatible with experimental observations and not starting out based on fundamental principles. The statement "Lagrangian mechanics instead takes the initial and final states of a system as inputs" is wrong by the way. The Euler-Lagrange equation yields a differential equation that is usually solved as an initial value problem, as it is done in Newtonian mechanics. {{unsigned ip|172.70.110.144|07:38, 11 March 2024}}
 
 
Probably not the clearest way to put that I suppose, but while the Euler-Lagrange equations might not take initial and final states as inputs, the least action principle from which they are derived is formalised that way, at least insofar as it takes the generalized coordinates at each end of an interval and gives a rule for the evolution between them. The fact that in practice you usually grind the Lagrangian into ELEs in order to solve it doesn't mean that there's anything stopping you doing it directly by, say, discretizing the interval to turn the action integral into a form you can minimize directly. I still think that the least-action principle from classical mechanics makes much more sense as the root for this joke than their use specifically in particle physics. [[Special:Contributions/172.70.86.189|172.70.86.189]] 17:50, 14 March 2024 (UTC)
 
 
: Sure, it is possible to implement stationary action numerically. For instance, around 2003 Edwin F. Taylor and Jozef Hanc collaborated on a series of articles, and Slavomir Tuleja created a Java simulation in which the concept of 'hunting for the true trajectory' is implemented. (I created a numerical implementation too, it's on my website.) In order to home in on the true trajectory an iterative algorithm must be implemented. The total time interval is subdivided in ''n'' time intervals: t_1, t_2, t_3, t_4, ... t_n. As seed for the iterations start with a straight line. First iteration: adjust the height at t_2, while keeping the height at t_1 and t_3 the same; next adjust the height at t_3, while keeping the height at t_2 and t_4 the same, and so on until you are at t_n. Start again with the triplet t_1, t_2, t_3. Keep iterating until the vertical increments become negligably small. In the Tuleja applet the size of the time increment is adjustable. The smaller the time increments the higher the accuracy of the numerical approximation. My point is: in the end the only distinction between implementing a differential solver and implementing a stationary action solver is order of operations; in both cases the ''unit of operation'' is inherently a ''differential operation''. To push for higher accuracy you must make the time increments smaller. General assertion: contrary to its appearance the stationary action concept is ''inherently'' a differential concept [[User:Cleonis|Cleonis]] ([[User talk:Cleonis|talk]]) 10:04, 17 March 2024 (UTC)
 
 
 
 
I feel like this explanation needs a Simple English rewrite. The introduction is ok, but I came here with the simple question "What are Lagrangians?" and the sci-speak is so opaque it might as well be just "magic". [[Special:Contributions/172.70.91.61|172.70.91.61]] 20:03, 15 March 2024 (UTC)
 
:Langrangian: [https://darthsanddroids.net/episodes/0003.html a kind of sofa with a double cup-holder...] ;) [[Special:Contributions/172.71.242.29|172.71.242.29]] 21:58, 15 March 2024 (UTC)
 
 
No comment on the "falls out of" terminology for the Lagrangian?  It's been yonks since I learnt anything to do with Lagrangians, and I can't say I ever mastered them, but I remember the solution "falling out of" the equations being a feature. [[Special:Contributions/172.68.144.147|172.68.144.147]] 12:20, 25 March 2024 (UTC)
 

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)

Template used on this page: