arxiv: v1 [nlin.ao] 26 Oct 2012

Similar documents
REVIEW. Hamilton s principle. based on FW-18. Variational statement of mechanics: (for conservative forces) action Equivalent to Newton s laws!

Physics 5153 Classical Mechanics. Canonical Transformations-1

Electric and Magnetic Forces in Lagrangian and Hamiltonian Formalism

Assignments VIII and IX, PHYS 301 (Classical Mechanics) Spring 2014 Due 3/21/14 at start of class

the EL equation for the x coordinate is easily seen to be (exercise)

Statistical Mechanics Solution Set #1 Instructor: Rigoberto Hernandez MoSE 2100L, , (Dated: September 4, 2014)

Second quantization: where quantization and particles come from?

Classical Mechanics Review (Louisiana State University Qualifier Exam)

Classical Mechanics Comprehensive Exam Solution

HW 6 Mathematics 503, Mathematical Modeling, CSUF, June 24, 2007

M2A2 Problem Sheet 3 - Hamiltonian Mechanics

Curves in the configuration space Q or in the velocity phase space Ω satisfying the Euler-Lagrange (EL) equations,

VIBRATING BASE PENDULUM. Math 485 Project team Thomas Bello Emily Huang Fabian Lopez Kellin Rumsey Tao Tao

Distilling Free-Form Natural Laws from Experimental Data. Hod Lipson, Cornell University

for changing independent variables. Most simply for a function f(x) the Legendre transformation f(x) B(s) takes the form B(s) = xs f(x) with s = df

Time-Dependent Statistical Mechanics 5. The classical atomic fluid, classical mechanics, and classical equilibrium statistical mechanics

The Principle of Least Action

PHY 5246: Theoretical Dynamics, Fall September 28 th, 2015 Midterm Exam # 1

THE LAGRANGIAN AND HAMILTONIAN MECHANICAL SYSTEMS

Generalized Coordinates, Lagrangians

The Pendulum Plain and Puzzling

Principles of Optimal Control Spring 2008

15. Hamiltonian Mechanics

Relativistic Mechanics

HAMILTON S PRINCIPLE

In the presence of viscous damping, a more generalized form of the Lagrange s equation of motion can be written as

Physics 235 Chapter 7. Chapter 7 Hamilton's Principle - Lagrangian and Hamiltonian Dynamics

7 Pendulum. Part II: More complicated situations

The Principle of Least Action

The Particle-Field Hamiltonian

Math 115 ( ) Yum-Tong Siu 1. General Variation Formula and Weierstrass-Erdmann Corner Condition. J = x 1. F (x,y,y )dx.

Solutions to homework assignment #3 Math 119B UC Davis, Spring = 12x. The Euler-Lagrange equation is. 2q (x) = 12x. q(x) = x 3 + x.

Analytical Mechanics - Extra Problems

P321(b), Assignement 1

PhysicsAndMathsTutor.com

I ml. g l. sin. l 0,,2,...,n A. ( t vs. ), and ( vs. ). d dt. sin l

Lagrangian and Hamiltonian Mechanics (Symon Chapter Nine)

EULER-LAGRANGE TO HAMILTON. The goal of these notes is to give one way of getting from the Euler-Lagrange equations to Hamilton s equations.

Mass on a Horizontal Spring

Classical mechanics of particles and fields

Hamiltonian. March 30, 2013

Transient Phenomena in Quantum Bound States Subjected to a Sudden Perturbation

Problem 1: Lagrangians and Conserved Quantities. Consider the following action for a particle of mass m moving in one dimension

Sketchy Notes on Lagrangian and Hamiltonian Mechanics

Lecture 13: Forces in the Lagrangian Approach

Solutions 2: Simple Harmonic Oscillator and General Oscillations

Hamiltonian aspects of fluid dynamics

KEELE UNIVERSITY PHYSICS/ASTROPHYSICS MODULE PHY OSCILLATIONS AND WAVES PRACTICE EXAM

Lecture 41: Highlights

MATH 415, WEEKS 7 & 8: Conservative and Hamiltonian Systems, Non-linear Pendulum

Uncovering the Lagrangian from observations of trajectories

Lecture 4. Alexey Boyarsky. October 6, 2015

You may not start to read the questions printed on the subsequent pages until instructed to do so by the Invigilator.

From quantum to classical statistical mechanics. Polyatomic ideal gas.

D Alembert s principle of virtual work

NIU PHYS 500, Fall 2006 Classical Mechanics Solutions for HW6. Solutions

Hamilton-Jacobi theory

Lagrangian and Hamiltonian Dynamics

2 Canonical quantization

Physics 106a, Caltech 13 November, Lecture 13: Action, Hamilton-Jacobi Theory. Action-Angle Variables

Transverse Linearization for Controlled Mechanical Systems with Several Passive Degrees of Freedom (Application to Orbital Stabilization)

Lecture 19: Calculus of Variations II - Lagrangian

PhysicsAndMathsTutor.com

Lecture 2. Contents. 1 Fermi s Method 2. 2 Lattice Oscillators 3. 3 The Sine-Gordon Equation 8. Wednesday, August 28

+ dxk. dt 2. dt Γi km dxm. . Its equations of motion are second order differential equations. with intitial conditions

Physics 312, Winter 2007, Practice Final

PHY6426/Fall 07: CLASSICAL MECHANICS HOMEWORK ASSIGNMENT #1 due by 9:35 a.m. Wed 09/05 Instructor: D. L. Maslov Rm.

28. Pendulum phase portrait Draw the phase portrait for the pendulum (supported by an inextensible rod)

Part II. Classical Dynamics. Year

Robotics. Dynamics. Marc Toussaint U Stuttgart

STABILITY. Phase portraits and local stability

PHYSICS 311: Classical Mechanics Final Exam Solution Key (2017)

Variational principles and Hamiltonian Mechanics

Classical Mechanics in Hamiltonian Form

CDS 205 Final Project: Incorporating Nonholonomic Constraints in Basic Geometric Mechanics Concepts

Homework 4. Goldstein 9.7. Part (a) Theoretical Dynamics October 01, 2010 (1) P i = F 1. Q i. p i = F 1 (3) q i (5) P i (6)

LAGRANGIAN AND HAMILTONIAN

Homework 3. 1 Goldstein Part (a) Theoretical Dynamics September 24, The Hamiltonian is given by

PHY 5246: Theoretical Dynamics, Fall November 16 th, 2015 Assignment # 11, Solutions. p θ = L θ = mr2 θ, p φ = L θ = mr2 sin 2 θ φ.

Analytical Mechanics: Variational Principles

This module requires you to read a textbook such as Fowles and Cassiday on material relevant to the following topics.

Chapter 1. Principles of Motion in Invariantive Mechanics

Massachusetts Institute of Technology Department of Physics. Final Examination December 17, 2004

Lecture Notes for PHY 405 Classical Mechanics

1 Simple Harmonic Oscillator

class 25, Mon May 24 comments and summary Ph211 Spring 2010

Liouville Equation. q s = H p s

Physics 106a, Caltech 16 October, Lecture 5: Hamilton s Principle with Constraints. Examples

BACKGROUND IN SYMPLECTIC GEOMETRY

Solution Set Five. 2 Problem #2: The Pendulum of Doom Equation of Motion Simple Pendulum Limit Visualization...

Physics 200 Lecture 4. Integration. Lecture 4. Physics 200 Laboratory

Lecture 27: Generalized Coordinates and Lagrange s Equations of Motion

Stochastic Mechanics of Particles and Fields

Nonlinear Dynamic Systems Homework 1

L = 1 2 a(q) q2 V (q).

= U / x. That is, U d = m x x dt FRIDAY'S QUIZ QUESTION AN EXAMPLE IN THE CALCULUS OF VARIATIONS

A Short Essay on Variational Calculus

Relativistic Dynamics

Computational Physics (6810): Session 8

Review of Classical Mechanics

Transcription:

COMMENT ON THE ARTICLE DISTILLING FREE-FORM NATURAL LAWS FROM EXPERIMENTAL DATA CHRISTOPHER HILLAR AND FRIEDRICH T. SOMMER arxiv:1210.7273v1 [nlin.ao] 26 Oct 2012 1. Summary A paper by Schmi and Lipson [3, 4] introduced the idea that free-form natural laws can be learned from experimental measurements in a physical system using symbolic regression algorithms. The most important component of that work is a fitness function involving the pair-wise derivatives of time-series measurements of system state-space data, which is purported to contain no assumptions about physical laws. After a thorough examination of their paper [3] and supplemental materials [4], we submitted a technical comment to Science, which was eventually rejected. We state the summary of the findings from our investigation of [3, 4] here: The paper makes nonstandard use of mathematical terms and symbols such as dependent and independent variables, symbolic derivative, differential relationships, law equation, δf δx,, and lacks clear definitions for concepts. δx δy No theoretical justification is provided for their methods. The proposed fitness function [4, Equation S8] is flat for general systems. An alteration of their fitness function for higher order systems is able to find Hamiltonians and special classes of Lagrangians, but not general Lagrangians. Previous related work is not cited. Symbolic equation finding for time-series data appeared in [1], while [2] addressed fundamental issues with the approach. A direct incorporation of Hamilton s equations into a fitness function finds the unique) Hamiltonian of a system. One also finds Lagrangians by incorporating the Euler-Lagrange equations into such a function. If the fitness function for systems with more than two variables [4, Equation S8] is reinterpreted as discussed in Section 3), then the paradigm can discover non-canonical) compositions of Hamiltonians with differentiable functions and special classes of Lagrangians. This follows from the specific form of the fitness function: it is either encoding a consequence of Hamilton s equations of motion, Eqn. 7), or Newton s 2nd law for a force arising from a potential, Eqn. 8). In particular, the fitness directly incorporates laws of physics. Thus, a major claim that [w]ithout any prior knowledge about physics... the algorithm discovered Hamiltonians, Lagrangians and other laws [3] appears to be false. The organization of this document is as follows. In Section 2, we prove mathematically that the general fitness function of the authors is inadequate. In Section 3, we explain how a different fitness function than the one described in [4, Equation S8] might have been used by Schmi and Lipson to obtain their results. We also argue how physical laws are encoded in this measure. Finally, in Section 4, we offer another approach to the fitness which gives the unique Hamiltonian of a system as well as general Lagrangians. 1

2. A flat fitness function The authors of [3] search for conservation law equations between measured variables in a physical system by performing symbolic regression over special function classes. The basic ideas and building blocks are represented in [3, Figure 2]. Given a possible conservation function f, its fitness with respect to the data is calculated; functions with high fitness are then mated and mutated according to standard genetic) symbolic regression routines. The authors fitness measure for higher order systems [4, Equation S8] as extracted from a careful reading of [4]), however, is provably inadequate. We first go through the mathematical details that support this assertion. We then show how Schmi and Lipson had carried out this argument explicitly for the Hamiltonian f of a double pendulum system [4, Section S3]. The authors intended for this calculation to verify that, in this case, their fitness measure correctly identified the conservation law. As we now show, however, any function f would have produced this same fitness. Given a function fq 1,..., q d ; q 1,..., q d ) in d > 1 generalized coordinates, a system trajectory Γ = {q 1 t),..., q d t), q 1 t),..., q d t)) : t [0, a]}, and a pair of system variables x, y {q 1,..., q d, q 1,..., q d }, Schmi and Lipson define the following three quantities see [3, Figure 2], [4, Equation S4], [4, Section S2], and [4, Section S3]): 1) δf δy := + x, δf δx := x + ; δx δy pairing := δf δy /δf δx. Here, the quantity is standard notation for the partial derivative of the function f x with respect to the variable x and the quantity resp. ) is the rate of change of x with respect to y along the trajectory Γ: ẋt) := ẏt) = t) / t). The pair {x, y} is called a variable pairing, and the measure of predictive ability of a potential conservation law f is given by [4, p. 5]: { 2) min 1 N log 1 + k pairing N δx k )} pairing. k δy k k=1 The symbol k k similarly for δx k δy k ) is evaluation of at discretized time step k of Γ. We claim that for any pairing {x, y} and any function fq 1,..., q d ; q 1,..., q d ), the quantity δx δy pairing is identically equal to along all points of the trajectory. This implies that the fitness function 2) evaluates to zero for every function f. The following is the straightforward proof. For each pairing {x, y}, we have: 3) δx δy pairing = + x + x = ) 1 + x + x 2 = + x + x = 1 =.

In Section S3 of [4], the authors provide an example calculation of a partial derivative pair for a double pendulum Hamiltonian fθ 1, θ 2 ; ω 1, ω 2 ): 4) f = ω 2 1 + ω 2 2 + ω 1 ω 2 cosθ 1 θ 2 ) cos θ 1 cos θ 2. They compute δf δθ 1 5) and δf δθ 2 for the variable pairing {θ 1, θ 2 }, writing: 1 θ ) 2 θ 1 ) θ1 1 θ 2 δf δθ 1 = ω 1 ω 2 sinθ 1 θ 2 ) δf δθ 2 = ω 1 ω 2 sinθ 1 θ 2 ) + sin θ 1 + θ 2 θ 1 sin θ 2 + θ 1 θ 2 sin θ 1 + sin θ 2. Equation 5) is precisely definition 1) with x and y being θ 1 and θ 2, respectively. The authors then go on to calculate that the ratio δf δθ 2 / δf δθ 1 upon simplification is θ 1 θ 2. They claim this shows that the partial derivative ratio resolves numerically to our estimated partial derivative pair from the experimental data, relating Eqns. S1) and S2). As we proved here in 3), every function f gives an equality between Eqns. S1) and S2) in this way. Moreover, this is the case for each variable pairing, implying a flat fitness using the fitness function in [3, 4] for any f. 3. How Schmi and Lipson conceivably arrived at their results We believe that Schmi and Lipson are choosing a fitness measure Mf) with the following property: it is very large for potential law) functions f = fq 1,..., q d ; q 1,..., q d ) with d > 1) when 6) / x ± / is close to zero for some pair {x, y} {q 1,..., q d, q 1,..., q d } of variables, and some choice of sign ±. 1 Given that their fitness function for two variables d = 1) satisfies this property with the symbol δf interpreted as a partial derivative ), it is likely that 6) was the one used δy in their experiments. It remains to understand how making the expression in 6) small could find laws in the system. Consider first the possibility that y = ẋ and x is a coordinate. Then, expression 6) using the plus + sign is zero when 7) ẏ + y x = 0. Observe that if f = H is the Hamiltonian of the system, then f satisfies Hamilton s equations: = ẏ, = y. In particular, H solves 7). Notice also that for any x differentiable function g : R R, we have that f = gh) also satisfies 7). Thus, a high fitness should correspond to laws of the form gh); moreover, since dgh) = g H) dh = 0, these functions would be constants of motion. Since the class of solutions to 7) is so large it contains, for instance all power series in H), it is unclear why it would hone in on a 1 Quoting end of [4, Section S1]: The partial derivative pairs define a cloud of line segments in phase space, therefore we are only interested in matching the line but not necessarily the direction of the line. Negating the x/ y term or taking the absolute value of both can affect the signs of terms in the optimal law equation for example, sign differences between Lagrangian and Hamiltonian equations). 3

particular such function f, except that possibly the small-height operation tree setup of [3] constrains the complexity of f so much that it is biased to find scalar multiples of H. If instead, a minus sign had been chosen in 6), then one has an equation of the form ẏ = y. Suppose that f = L = T V is the Lagrangian of the system with T x the kinetic energy and V the potential energy. If it turns out that the kinetic energy T has the special form d 1 m 2 iẋ 2 i, then = my, and this fitness equation is equivalent to 8) mẏ = V x, which is Newton s second law for a force arising from a potential. However, if T does not have the special form indicated, then 6) will not find a Lagrangian. As a simple example, the Lagrangian of a double pendulum system cannot be found in this way. This is perhaps why the authors of [3] were unable to find the Lagrangian for a double pendulum system in their experiments but were able to find its Hamiltonian). In conclusion, once a sign is chosen in a modified fitness function 6), it is possible to find non-canonical) functions of Hamiltonians. When the opposite sign is chosen, it is possible in special circumstances to arrive at Lagrangians, but not possible in general. Nonetheless, in each case, the natural law determined by the vanishing of this fitness measure is a consequence of classical physics embedded in the measure. Given these considerations, it is unclear why one would not choose metrics specifically tailored to finding Hamiltonians and Lagrangians independently such as those in Section 4 below). 4. Fitness measures that find Hamiltonians and Lagrangians of a system Based on theoretical considerations, we propose fitness criteria for finding Lagrangians and Hamiltonians of a physical system. In classical physics, the Lagrangian L of a system with generalized) coordinates x i, ẋ i i = 1,..., d) solves the Euler-Lagrange equations: d L x i ) L x i = 0. If we now assume that L is a function of the coordinates x j and their time derivatives x j, then by the chain rule, we have for each i and all t [0, a]: 9) EL i L, t) := j=1 2 L x j ẋ i j + j=1 2 L ẋ j ẋ i dẋ j L x i = 0. If we are given a function f and discretized coordinate trajectory data coming from a physical system, then we may use EL i f, t) as a measure of the Lagrangian fitness LFit of a potential conservation function f. That is, we compute symbolically the partial derivatives in 9) and evaluate numerically the time derivatives j and dẋ j over discretized time steps t k to calculate: ) 10) LFitf) := 1 N log 1 + EL i f, t k ). N k=1 4

Consider now the equations for a Hamiltonian H of a physical system which hold at all times t of the trajectory and for each coordinate i): HQ i H, t) := H ẋ i i = 0, HP ih, t) := H x i + dẋ i = 0. Similar to above, we may measure the Hamiltonian fitness HFit of a function f over the discretized trajectory as follows: ) 11) HFitf) := 1 N log 1 + HQ i f, t k ) + HP i f, t k ). N k=1 It is straightforward to check that if HFitf) = 0 for all times t, then f is a conserved quantity as f is then the canonical scale-dependent Hamiltonian of the system). Clearly, however, the methods proposed here are limited to analyzing measurements given in canonical or generalized coordinates. Figure 1. Fitness functions for a harmonic oscillator. The points in blue come from using 2) while those in green are from 11). For an experiment, we considered the simple harmonic oscillator system ẍ = ω 2 x. Its equation of motion is xt) = A cosωt + φ), and its Hamiltonian is H = 1 2ẋ2 + 1 2 ω2 x 2. 5

Supposing candidate laws of the form f = αẋ 2 + βxẋ 2 + γx 2, we computed the fitness as a function of α, β, and γ using our metric 11) and the one from 2). We used the motion-tracked data supplied online in the supplementary materials of [4]. The optimal fitness using 11) occured when α, β, γ) =.5, 0, 3). In Figure 4, we plotted a linear section {α = r s, β = r 2s, γ = 5r/2 + s} of the different fitness measures as a function of two varying parameters r and s the peak for the Hamiltonian fitness occurs at r = 1, s =.5). As predicted by 3), the fitness given by 2) was flat. When we used the altered fitness 6), however, we do achieve optimal fitness at the same parameters not shown). References [1] J. P. Crutchfield and B. McNamara, Equations of motion from a data series, Complex Systems 1 1987) 417 452. [2] J. P. Crutchfield and K. Young, Inferring Statistical Complexity, Physical Review Letters 63 1989) 105 108. [3] M. Schmi, H. Lipson, Distilling free-form natural laws from experimental data, Science, 324 2009), 81 85. [4] M. Schmi, H. Lipson, Distilling free-form natural laws from experimental data, Supplementary online materials. Mathematical Research Sciences Institute, 17 Gauss Way, Berkeley, CA 94720 E-mail address: chillar@msri.org Redwood Center for Theoretical Neuroscience, Berkeley, CA 94720 E-mail address: fsommer@berkeley.edu 6