Monday, August 31, 2026

Math4Teens - Path Integrals

Notes to a video lecture on //www.unizor.com

Path/Line/Curvilinear Integral

Path Integral of Scalar Function

Recall the definition of a definite integral (Riemann integral) of real function F(x) defined on interval [a,b]:
I = abF(x) dx = lim Σi∈[1,N] F(xiΔxi
where {xi} is partitioning of segment [a,b] into N parts,
and we assume that N→∞, while the maximum width of intervals Δxi=xi−xi−1 converges to zero.

This definition pertains to a function F(x) defined on a straight segment [a,b] and traditionally interpreted as an area under a graph of a function on Cartesian XY plane restricted on the left and right by x=a and x=b correspondingly.

Consider a function that is defined not on a straight segment of real numbers [a,b], but on some path (curve) in space we call γ.
Let's assume for definitiveness that our path is in three-dimensional Cartesian space and is defined by a set of three smooth functions
γ={x(s),y(s),z(s)}
of some real parameter s∈[0,S].

Generally speaking, parameterization of a curve in N-dimensional space is just a set of N real functions xi(s) (i∈[1,N]) of real argument s such that
(a) all these functions have the same domain S - a finite or an infinite interval of real numbers;
(b) for each value of parameter sS a set of functions xi(s) used as a set of N coordinates correspond to some point on a curve;
(c) the parameterization covers the entire curve: for each point on a curve there is at least one value of parameter s within domain S such that a set of functions xi(s) represent the coordinates of this point.
The parameter s itself does not have any particular meaning. Depending on the problem, it can represent time, distance along the curve, arc length, or simply be an arbitrary convenient parameter.

For each position on this path a function F(x,y,z) is defined.

The path integral of this function F(x,y,z) along path γ is defined as
γF(x,y,z)·dγ = [0,S]F(x(s),y(s),z(s))·ds
The expression above defines a new concept of path integral by connecting it to a regular integral based on a parameterization of a curved path.
Thus defined path integral is alternatively named line integral or curvilinear integral.

Obviously, this definition can be expanded to any N-dimensional space by replacing three-dimensional path γ={x(s),y(s),z(s)} with N-dimensional γ={x1(s),x2(s),...,xN(s)}

Example
Consider a path γ in some mountainous area and a task of measuring the average barometric pressure along this path.
This is a typical problem with the path integral as a solution.
While path is three-dimensional, we can choose a length of a road from the beginning of the path s as a parameter and, for each value of this parameter (that is, for each point on a mountain path {x(s),y(s),z(s)}) we measure the barometric pressure H(s).
After integration of function H(s) by parameter s we can divide the result by the total length of a path to get the average barometric pressure.
So the most important issue in the path integral of a scalar function is to properly choose the parameter s to define the curved path as a function of a single parameter, thereby reducing the function defined for each point on a three-dimensional path to the function of a single parameter and reducing the path integral to a regular definite integral by a single variable.

Path Integral of Vector Function

Recall a concept of work in physics.
In a simple case of a straight road and a car moving along it from point A to point B, whose engine pulls the car with constant force F directed along the road, the work is a product of a force by a distance
W = F·d
where d is the length of segment AB.

In a more complicated case of a variable but still directed along the straight road force F=F(s) whose magnitude depends on position s on the road from A to B, the work can be approximated by dividing the segment AB into many small intervals, assuming that within each interval the force is practically the same, calculate the work on each interval as above, sum the work on all intervals and start increasing the number of intervals while decreasing their size.
In the limit, when the length of all intervals is infinitesimal, while their number increases to infinity, this calculation will result in an exact amount of work of an engine on a road AB expressed as an integral
W = [0,d]F(s)·ds

Consider now a case of a smooth but curved road from A to B with the force still directed along the road (that is, the direction of the force is always tangential to a road).
This case is no different than the above case where we introduced a path integral.
So, the work of an engine of a car moving along a curved road is just another example of application of path integral to physics.

The work evaluation in cases when the force is not directed along a path of a moving object, however, requires some other technique.
Simple algebraic product of the magnitude of force F(s) by ds and integrating by s would not produce the right result in these cases.

Let's generalize the definition of a path integral to accommodate the calculation of work performed by the force F(s) being a general vector-function not necessarily directed along the path of motion.

To come up with some meaningful formula, let's introduce a system of Cartesian X,Y,Z coordinates on a plane and define the curve by some vector-function r(s)={x(s),y(s),z(s)} parameterized by variable s∈[0,S] with r(0)=A and r(S)=B.

The force, as a vector, would be represented by a vector-function F(r) defined for each point on a curve by its three components
F(r) = {Fx(x,y,z),Fy(x,y,z),Fz(x,y,z)}

In physics the work performed by a constant vector of force F in case it's not colinear with a straight segment of movement s is defined as a product of a projection of the vector of force onto a direction of movement Fproj and the length |s| of the movement.

According to this rule for calculating the work, for the vector of force F and a segment s along which an object moves the work of this force is calculated as
W = |F|·|s|·cos(φ)
where φ is an angle between direction of the force and direction of the segment.

This formula can be written as a scalar (dot) product of two vectors:
W = F·s

Let's return to a task at hand - calculate the work performed by a generally directed force along a curved path.
Dividing, as before, curve AB into n small almost straight intervals, we see that on each interval the force is not directed along it, but makes some angle.
Therefore, for a small interval Δsi and force Fi acting within this small interval the work performed by the force is
ΔWi = Fi · Δsi
where dot between two vectors means scalar product.

The total work for all n intervals is
W = Σi∈[1,n]ΔWi
As the number of intervals increases to infinity and the size of each decreases to zero, this sum tens to some limit. This limit is called the path integral of vector F along path AB:
AB[F(r)·dr]
where dot between two vectors means scalar product.

This definition can be rephrased by using the coordinate representation of vectors.
F(r) = F(x,y,z) =
= {Fx(x,y,z),Fy(x,y,z),Fz(x,y,z)}
dr = {dx,dy,dz}
Hence, infinitesimal amount of work our force performs on infinitesimal interval of a curved path equals to
dW = F(r)·dr =
= Fx(x,y,z)·dx+Fy(x,y,z)·dy+Fz(x,y,z)·dz


Considering our curve is defined parametrically as
r = r(s) = {x(s),y(s),z(s)}
we can define the path integral of a vector function above as
AB[F(r)·dr] =
= [0,S]Fx(x(s),y(s),z(s))·dx(s) +
+ [0,S]Fy(x(s),y(s),z(s))·dy(s) +
+ [0,S]Fz(x(s),y(s),z(s))·dz(s) =
= [0,S]Fx(x(s),y(s),z(s))·(dx(s)/ds)·ds +
+ [0,S]Fy(x(s),y(s),z(s))·(dy(s)/ds)·ds +
+ [0,S]Fz(x(s),y(s),z(s))·(dz(s)/ds)·ds
thus reducing a path integral to a regular definite integral.

To bring our problem close to physics, we can use time t as a parameter instead of abstract s, having position of a moving object to be a function of time
x = x(t)
y = y(t)
z = z(t)
In this case dx(t)/dt is an X-component of the velocity of a moving object that we can denote as ẋ(t) and similar for other coordinates.

Using time as a parameter that defines the position of a moving object, the path integral that calculates the work would look like
AB[F(r)·dr] =
= [0,S]Fx(x(t),y(t),z(t))·ẋ(t)·dt +
+ [0,S]Fy(x(t),y(t),z(t))·ẏ(t)·dt +
+ [0,S]Fz(x(t),y(t),z(t))·ż(t)·dt

Either way, the calculation of a path integral of a vector-function have been reduced to regular integration.

Math4Teens - Path Integral Properties

Notes to a video lecture on //www.unizor.com

Path Integral Properties

The properties of path integrals below follow from the definition of path integral in terms of regular integral using the parameterization of the path
γ = γ(s) = {x(s),y(s),z(s)} for s∈[0,S]
and corresponding properties of regular integrals.

Path Integrals Properties
of Scalar Functions


1. γ [F(x,y,z)+G(x,y,z)] =
= γ F(x,y,z) dγ + γ G(x,y,z) dγ

With parameterization of path γ functions F and G become functions of one argument s
F(x(s),y(s),z(s)) = f(s)
G(x(s),y(s),z(s)) = g(s)
Hence,
γ[F(x,y,z)+G(x,y,z)] =
= [0,S][f(s)+g(s)] ds
and we can refer to the additive property of the regular integrals.


2. γ c·F(x,y,z) dγ = c·γ F(x,y,z) dγ
for the same reasons as above.


3. Going along a path in an opposite direction changes the sign of an integral.
Indeed, assume that path γ is from A to B and is parameterized by s∈[0,S], which implies
γ(0)=A, γ(S)=B
Then
AB F(x,y,z) dγ = [0,S]F(x(s),y(s),z(s))ds
BA F(x,y,z) dγ = [S,0]F(x(s),y(s),z(s))ds
and, by properties of regular definite integrals, the latter is opposite in sign to the former.

4. Assume, path γ from A to B is divided by point M into two parts:
α from A to M and
β from M to B.
So, we can say γ=α+β.
Then we can state the following additive property of path integrals:
γ F(x,y,z) dγ =
=
α F(x,y,z) dα + β F(x,y,z) dβ
Here is the proof of this statement.
Consider the parameterization of path γ={x(s),y(s),z(s)}, where s∈[0,S].
Using this, point A corresponds to s=0, point B corresponds to s=S.
Assume, point M corresponds to s=sM.
This allows to parameterize both parts of an original path:
α={x(s),y(s),z(s)}, where s∈[0,sM]
β={x(s),y(s),z(s)}, where s∈[sM,S]
Then, by definition of a path integral,
γ F(x,y,z) dγ=[0,S]F(x(s),y(s),z(s))ds
α F(x,y,z) dα=[0,sM]F(x(s),y(s),z(s))ds
β F(x,y,z) dβ=[sM,S]F(x(s),y(s),z(s))ds
From these definitions and the corresponding additive property of regular integrals follow the additive property of path integrals.


Path Integrals Properties
of Vector Functions


5. In physics we sometimes deal with gravitational, electrostatic and some other types of forces that have an important property called conservative.
Conservative force F={Fx,Fy,Fz}, as a vector, can be represented as partial derivatives of some scalar function f(x,y,z) by corresponding coordinates, which means:
Fx(x,y,z) = ∂f(x,y,z)/∂x
Fy(x,y,z) = ∂f(x,y,z)/∂y
Fz(x,y,z) = ∂f(x,y,z)/∂z
In physics concepts of potential and potential energy are based on such function.
Let's prove that path integral of a vector-function that represents a conservative force depends only on the endpoints of a path and does not depend on path itself between these endpoints.
In other words, no matter which path we choose between two fixed endpoints, path integral along it will be the same.
Given two endpoints in space A and B and a parametrically defined path AB that depends on parameter s∈[0,S]
r = r(s) = {x(s),y(s),z(s)}
with A={x(0),y(0),z(0)}
and B={x(S),y(S),z(S)}.
Our task is to integrate a vector-function that represents a conservative force F={Fx,Fy,Fz} along path AB.
This integral equals to
AB[F(r)·dr] =
under integral we have a scalar (dot) product of two vectors
F={Fx,Fy,Fz} and dr={dx,dy,dz}
= [0,S][Fx(x(s),y(s),z(s))·dx(s) +
+ Fy(x(s),y(s),z(s))·dy(s) +
+ Fz(x(s),y(s),z(s))·dz(s)]
Assuming our vector-function represents a conservative force, that is
Fx = ∂f/∂x
Fy = ∂f/∂y
Fz = ∂f/∂z
we can rewrite this path integral as
AB[F(r)·dr] =
= [0,S]{[∂f(x(s),y(s),z(s))/∂x]·dx(s) +
+
[∂f(x(s),y(s),z(s))/∂y]·dy(s) +
+
[∂f(x(s),y(s),z(s))/∂z·dz(s)]}
Notice that the expression in {...} is a full differential of function f(x,y,z).
Therefore,
AB[F(r)·dr] = [0,S]df(x(s),y(s),z(s))
According to the rules of integration, this equals to
f(x(S),y(S),z(S))−f(x(0),y(0),z(0))
As we see, the path integral of a conservative vector-function depends only on the values of this scalar function f(x) at endpoints of a path.


6. If a vector-function F represents a conservative force, then the path integral along any closed loop path is zero.
Assume, path γ is a closed loop and is parameterized by s∈[0,S], which implied that A=s(0)=s(S)=B.
According to property #5 above, the values of a path integral along this path is
f(x(S),y(S),z(S))−f(x(0),y(0),z(0))
But points A=s(0)={x(0),y(0),z(0)} and B=s(S)={x(S),y(S),z(S)} coincide, which makes the expression above to be zero.
Alternative proof might be as follows. Let's choose any two points on a closed loop of this path, M and N.
Consider two different ways of moving from M to N along two different routes within path γ that we conditionally call "left" and "right".
Since path integral from M to N for conservative vector-function F is independent of path chosen, but only on the endpoints,
[MleftN]F(γ)dγ = [MrightN]F(γ)dγ
Full loop along path γ can be represented as a sum of MleftN+NrightM.
But changing the direction of integration from MrightN to NrightM changes the sign of a path integral. [NrightM]F(γ)dγ = −[MrightN]F(γ)dγ
Full path integral is equal to
[MleftN]F(γ)dγ + [NrightM]F(γ)dγ =
= [MleftN]F(γ)dγ[MrightN]F(γ)dγ
As we see, we are subtracting a value from an equal value.
Therefore, integration along a full loop MleftNrightM results in zero.

Saturday, August 1, 2026

Physics+ 4 All - Lagrangian for Non-Conservative Systems

Notes to a video lecture on UNIZOR.COM

Lagrangian for
Nonconservative System


All the advantages of Lagrangian Mechanics are best visible in its approach to the analysis of conservative mechanical system, where the forces acting on system's components are conservative and, as such, can be represented as gradients of a potential - a scalar field with values at each point in space depending only on the location.

Attempts to extend this approach to nonconservative systems encounter technical difficulties but are nevertheless worthwhile.
This lecture exemplifies this case.

Assume a simple system with forces depending not only on position but on velocity of an object as well.
Let a stone of mass m fall vertically into the water with no initial velocity.
The force of gravity will pull it down, but the water exerts a resistive force opposite to the direction of motion.
Assume the resistive force is proportional to the stone's speed v. Then the drag force has magnitude k·v, where k is the coefficient of resistance, and it always acts opposite to the direction of motion.


Our first task is to analyze the movement using Newtonian Second law.
Newton's Second Law produces the following differential equation of motion (t) = m·g − k·(t)
that can be simplified to a standard linear form
(t) + (k/m)·(t) − g = 0

The solution to this equation with initial conditions
x(0)=0 and x'(0)=0
is
x(t) =
= (mg/k)·t+(m²g/k²)·(e−kt/m−1)

Condition x(0)=0 is satisfied.
The speed (time-derivative) is
x'(t) = (mg/k)·(1−e−kt/m)
Condition x'(0)=0 is satisfied.
The acceleration is
x"(t) = g·e−kt/m
Newton's differential equation of motion above is satisfied.

Two important conclusions:
1. Since the positive direction is downward, the acceleration remains positive but decreases exponentially toward zero.
2. Therefore, the speed is always increasing but asymptotically approaches its maximum mg/k.

Now we will try to approach this task from the Lagrangian viewpoint.
A simple Lagrangian in terms of a difference between kinetic and potential energy is not a good choice since the force of resistance to a movement is dependent on velocity and, therefore, is not conservative.

However, one possible Lagrangian, first proposed by Bateman and later developed by Caldirola and Kanai, is obtained as follows.
Consider again Newton's Second law equation for our system
(t) + (k/m)·(t) − g = 0
Suppose there exists a Lagrangian L(x(t),ẋ(t),t) suitable for this nonconservative system.
Then its Euler Lagrange equation
d/dt [∂L/∂ẋ] = ∂L/∂x
must be equivalent to Newton's Second equation above.
In other words, both equations must be transformable into each other.

1. Multiply Newton's Second law equation by ekt/m.
ekt/m[(t)+(k/m)·(t)−g] = 0
or
ekt/m[(t)+(k/m)·(t)] = g·ekt/m
2. Notice that
ekt/m[(t)+(k/m)·(t)] =
= d/dt
[ekt/m·(t)]
3. Notice that an expression in [...] on the right side of the equation above can be written as a derivative by
ekt/m· = ∂/∂[ekt/m·½²]
4. Therefore, we have an equation
d/dt ∂/∂[ekt/m·½²] = g·ekt/m
5. The right side of the equation in item 4 equals to
∂/∂x [x·ekt/m]
6. Our transformed Newton's Second law equation looks now as
d/dt ∂/∂[ekt/m·½²] =
=∂/∂x
[x·ekt/m]
7. Adding to the expression in [...] on the left side of the equation any function of x won't change the partial derivative by . Adding to the expression in [...] on the right side of the equation any function of won't change the partial derivative by x.
Hence, we may replace both bracketed expressions by the single function
ekt/m·½² + g·x·ekt/m
8. Multiplying the function by the constant m and writing it in a more compact form does not change the Euler-Lagrange equation.
Hence, both expressions in [...] can be replaced by a function
L = ekt/m·(½m·² + mg·x)
and we have the Euler-Lagrange equation
d/dt ∂L/∂ = ∂L/∂x

Surprisingly or not, the Lagrangian in this case differs from the Lagrangian for a conservative system only by a multiplier ekt/m since
½m·² is kinetic energy T of a falling stone,
−mg·x is its potential energy U and
½m·² + mg·x = T − U
and the Lagrangian for this nonconservative system is
L = ekt/m·(T−U)

Unlike the Lagrangian of a conservative system, this Lagrangian depends explicitly on time through the exponential factor ekt/m.
This explicit dependence reflects the continuous loss of mechanical energy caused by the resistive force. Therefore, although the motion can still be described by Euler-Lagrange equations, many of the elegant conservation properties of conservative systems no longer hold.

Thursday, July 16, 2026

Hamiltonian - General Approach

Notes to a video lecture on UNIZOR.COM

General Approach
to Hamiltonian


In the previous introductory lecture we have examined the way to simplify the system of n Euler-Lagrange differential equations of second order into a system of 2n equations of the first order using coordinates q={qi} and momenta p={pi}.

For simple classical systems the Lagrangian Mechanics uses Euler-Lagrange equations
∂L/∂qi = d/dt ∂L/∂q̇i
where Lagrangian L=T−U,
T is the full kinetic energy of a system (independent of coordinates),
U is its potential energy (independent of velocities).

Instead, we constructed mathematically equivalent system of Hamiltonian equations
i = ∂(T+U)/∂pi
−ṗi = ∂(T+U)/∂qi
and introduced a new function called Hamiltonian
H(q,p) = T(p) + U(q)
where q=(q1,...,qn) are coordinates
and p=(p1,...,pn) are momenta.

This transformation increased the number of variables from n to 2n, but reduced the complexity of differential equations to the first order and made them symmetric and esthetically more appealing.

However, this construction relied on special properties of the system:
kinetic energy T depended only on momenta,
potential energy U depended only on coordinates.

In general mechanical systems, the Lagrangian L(q,q̇,t) may depend on coordinates and velocities in a more complicated way, kinetic and potential energies might not be separable and the Lagrangian might not be written as a sum of a function of p and a function of q.
Therefore, the construction H=T+U is not applicable to the general case.

The Hamiltonian approach is attractive for these simple mechanical systems, so it is natural to ask whether it can be generalized.
More specifically, given a Lagrangian L(q,q̇,t), we'll construct a function H(q,p,t) whose partial derivatives generate the differential equations similar to above and equivalent to Euler-Lagrange equations of motion.

To accomplish this, we will reformulate the expression H=T+U to avoid explicitly using energies and, instead, express H in terms of coordinates, momenta and a Lagrangian.

Recall the calculations of the Hamiltonian for simple mechanical system in the previous introductory lecture:
T = Σi½mi·q̇i² = Σi½pi²/mi

Partial derivative of T by pi produces
∂T/∂pi = pi/mi = q̇i
Therefore,
i = ∂T/∂pi
Our expression for H=T+U in that case can be represented as
H = 2T − (T−U) = 2T − L =
=
Σimi·q̇i² − L =
=
Σi(mi·q̇i)·q̇i − L =
=
Σipi·q̇i − L

The above expression
H(q,p,t) = Σipi·q̇i − L(q,q̇,t)
formally seems to correspond to our task of constructing a function H(q,p,t) from coordinates, momenta and a given Lagrangian L(q,q̇,t).
It does not explicitly rely on kinetic or potential energy. Since it is written only in terms of the Lagrangian, generalized coordinates, generalized velocities, and generalized momenta, it is a natural candidate for the Hamiltonian in the general case.

It's very important to understand the change of a viewpoint on relationship between arguments, which is a key idea of the Hamiltonian Mechanics.
While in the Lagrangian formulation the independent variables are q, and t, in the Hamiltonian approach the independent variables are q, p and t with generalized velocities become dependent on them:
i = q̇i(q,p,t)

Let's check if this expression corresponds to differential equations involving the Hamiltonian.
∂H(q,p,t)/∂pk =
[take into consideration that now qi and pi are independent variables, while generalized velocities i are functions of these variables: i=q̇i(q,p,t)]
= ∂/∂pk
[Σipi·q̇i − L] =
[use chain rule]
= q̇k +
Σipi·(∂q̇i/∂pk) −
Σi(∂L/∂q̇i)·(∂q̇i/∂pk) =
= q̇k+
Σi[pi−∂L/∂q̇i]·(∂q̇i/∂pk) =
[recall that pi=∂L/∂q̇i by definition]
= q̇k

as required.

∂H(q,p,t)/∂qk =
=
Σipi·(∂q̇i/∂qk) − ∂L/∂qk
Σi(∂L/∂q̇i)·(∂q̇i/∂qk) =
=
Σi[pi−∂L/∂q̇i]·(∂q̇i/∂qk) −
− ∂L/∂qk =
[recall that pi=∂L/∂q̇i by definition]
= − ∂L/∂qk =
[using Euler-Lagrange equation]
= − d/dt ∂L/∂q̇k =
[using the definition of generalized momentum]
= − d/dt pk = −ṗk

as required.

So, from the definitions of momenta as
pi = ∂L/∂q̇i
the Hamiltonian as
H(q,p,t) = Σipi·q̇i − L(q,q̇,t)
and Euler-Lagrange equation for L
∂L/∂qi = d/dt ∂L/∂q̇i
follows that both differential equations for H are satisfied:
∂H/∂pi = q̇i
∂H/∂qi = −ṗ

In reverse, assuming Hamiltonian equations are satisfied, we can derive Euler-Lagrang equations.
∂H(q,p,t)/∂qk =
= ∂/∂qk
[Σipi·q̇i − L] =
=
Σipi·(∂q̇i/∂qk) − ∂L/∂qk
Σi(∂L/∂q̇i)·(∂q̇i/∂qk) =
=
Σi[pi−∂L/∂q̇i]·(∂q̇i/∂qk) −
− ∂L/∂qk =
[recall that pi=∂L/∂q̇i by definition]
= − ∂L/∂qk

Since we assumed that Hamiltonian differential equations are true,
∂H(q,p,t)/∂qk = −ṗk
Therefore,
− ∂L/∂qk = −ṗk

From the definition
k = dpk/dt = d/dt ∂L/∂q̇k
follows:
∂L/∂qk = d/dt ∂L/∂q̇k
which is the Euler-Lagrange equation.
That completes the proof that a system of n second order Euler-Lagrange differential equations is equivalent to 2n first order Hamiltonian equations.

The construction of the Hamiltonian
H = Σipi·q̇i − L
from the Lagrangian L is called the Legendre transformation.

Hamiltonian Introduction

Notes to a video lecture on UNIZOR.COM

Introduction to Hamiltonian

We assume you have a pretty good understanding of Lagrangian Mechanics. If not, the previous chapters of this course Lagrangian and Noether Theorem provide a description of its basic principles.

The Hamiltonian Mechanics is built upon Lagrangian Mechanics. The differences can be summarized as follows.

In Lagrangian Mechanics our main dynamic variables were generalized coordinates q=(q1,...,qn) and their time derivatives - generalized velocities q̇=(q̇1,...,q̇n) (here we use Newtonian 'dot notation' to indicate a time derivative).
In Hamiltonian Mechanics it's the same generalized coordinates {qi} and, separately from coordinates, generalized momenta p=(p1,...,pn) instead of velocities.

Generalized momenta of a mechanical system with the Lagrangian L(q,q̇,t) are defined as a set of components
pi=∂L/∂q̇i
This definition was already introduced in the lecture Noether p=m·v const of a previous chapter of this course.

Using this definition of generalized momentum, the Euler-Lagrange differential equation of the second degree
d/dt ∂L/∂q̇i = ∂L/∂qi (i∈[1,n])
would look simpler
d/dt pi = ∂L/∂qi or, shorter,
i = ∂L/∂qi

In Lagrangian Mechanics we had n functions of time {qi(t)} (generalized coordinates) and a system of n Euler-Lagrange differential equations of the second order.
The number of unknowns was equal to the number of equations.

Instead, in this momentum-based approach, we have 2n functions of time {qi(t)} (generalized coordinates) and {pi(t)} (generalized momenta) with only n differential equations
(A) i = ∂L/∂qi
We need n more equations to obtain a system of 2n first-order differential equations equivalent to n Euler-Lagrange equations of the second-order.

Consider a simple case of a conservative system of one point mass m in three-dimensional Euclidean space with Cartesian coordinates (q1,q2,q3), velocities i and time-independent Lagrangian L equaled to a difference between kinetic T and potential U energies
L = T − U

Since kinetic energy T is independent of position qi, the same equation (A) above can be written as
i = ∂(−U)/∂qi
or
−ṗi = ∂U/∂qi

In addition to these n differential equations, we can construct n more using the classical definition of the vector of momentum pi=m·q̇i and the kinetic energy expressed in terms of momenta p as
T = Σi½mi·q̇i² = Σi½pi²/mi

Partial derivative of T by pi produces
∂T/∂pi = pi/mi = q̇i
Therefore,
(B) i = ∂T/∂pi
We have constructed n more differential equations to complete the system.

The differential equation for a time derivative of the generalized momentum, as we stated above, is
i = ∂L/∂qi = ∂(T−U)/∂qi
Since kinetic energy is independent of coordinates, we can exclude it
(C) −ṗi = ∂U/∂qi

Equations (B) and (C) constitute 2n differential equations of the first order with 2n unknowns - coordinates and momenta
i = ∂T/∂pi
−ṗi = ∂U/∂qi
The problem is, the first n equations depend on kinetic energy T, while the second group of n equations depends on potential energy U.

We would like a formulation in which both sets of equations are generated by a single function of the same variables (q,p), whose partial derivatives with respect to p give time derivatives of coordinates, that is velocities , and with respect to q give time derivatives of the generalized momenta .

Recall that in our simple case the kinetic energy T is independent of positions qi (∂T/∂qi=0) and potential energy U is independent of momenta pi (∂U/∂pi=0).
Based on this property, we can add to partial differentiation of the first equation the potential energy U and add to partial differentiation of the second equation the kinetic energy T.
i = ∂(T+U)/∂pi
−ṗi = ∂(T+U)/∂qi

Let's introduce a new function called Hamiltonian
H(q,p) = T(p) + U(q)
where q=(q1,...,qn) are coordinates
and p=(p1,...,pn) are momenta.
With this notation our system of 2n differential equations of the first degree looks quite symmetrical (some might say "beautiful")
i = ∂H/∂pi
−ṗi = ∂H/∂qi

In this case of a simple mechanical system the Hamiltonian H=T+U represents a total (kinetic and potential) energy of our mechanical system, which makes our system of equation more related to real physical characteristics of a system.

In more general systems, however, the definition of the Hamiltonian is broader and not necessarily coincides with a total energy.

Looking ahead, let us state that the symmetric form of Hamilton's equations makes Hamiltonian Mechanics especially suitable for advanced topics such as canonical transformations, statistical mechanics and quantum mechanics.

Friday, July 3, 2026

Noether's Theorem Conservation: UNIZOR.COM -> Physics+ 4 All -> Lagrangian -> Noether's Theorem -> Conservation

Notes to a video lecture on UNIZOR.COM

Noether Theorem and
Conservation Laws



Background

Motion of a mechanical system is represented by a curve in extended configuration space with coordinates y={yi(x)} - a set of time-space coordinates describing a motion curve parameterized by independent variable x∈[a,b] for i∈[0,n].

These coordinates have physical meaning:
y0 is time t;
{yi} are a set of generalized coordinates {qi} for i∈[1,n];

The action functional
Φ[t,q] =
t(b)
t(a)
L(t,q,q')dt

was re-parameterized as an integral by independent parameter x∈[a,b]
Φ[t,q] =
b
a
L(t,q,qx/tx)·tx·dx

and expressed as
Φ[y] =
b
a
𝓛(y,yx)·dx

where
y(x)={yi(x)} (i∈[0,n]) signifies a set of all time-space coordinates parameterized by x∈[a,b], that is a trajectory in extended configuration space, with y0(x)=t(x), and yi(x)=qi(x) for i0 and
yx(x)={yix(x)} (i∈[0,n]) signifies a set of all derivatives of time-space coordinates by parameter x with y0x(x)=tx(x), and yix(x)=qix(x) for i0
and a new function 𝓛() is defined for i∈[0,n] as
𝓛(y,yx) = 𝓛({yi},{yix}) =
= L(t,q,qx/tx)·tx =
= L(t,
{qi},{qix/tx})·tx

The conclusion of the previous lecture:
d/dx Σi𝓛yix·ζi = 0 for i∈[0,n] where
ζ={ζi}={dyi(ε)/dε|ε=0} is a set of generators for each time-space coordinate
and where
x in a subscript indicates a derivative of a corresponding function by parameter x:
tx=dt/dx and
{qix}={dqi/dx} for i∈[1,n]

Linear Momentum Conservation

Let's choose a single kth space coordinate (k∈[1,n]) and consider the following ε-transformation of coordinates:
t(ε) = t,
qk(ε) = qk + ε,
qi(ε) = qi for all i≠k.
This represents a uniform movement along the kth space coordinate qk.

The corresponding generators of this transformation are
ζk = dyk/dε|ε=0 = 1 and
ζi = 0 for i≠k.

The main result of the Noether's theorem was:
as long as the action functional is invariant under the transformation,
an expression
J = Σi𝓛yix·ζi
is a constant of motion along a trajectory and its x-derivative equals to zero for all x∈[a,b]:
dJ/dx = 0

Considering all ζi=0 for i∈[0,n] except ζk=1,
J = 𝓛ykx
and, therefore,
dJ/dx =
= d/dx
𝓛ykx({yi},{yix}) = 0
or
d/dx ∂/∂ykx 𝓛({yi},{yix}) = 0

To see what follows from this equation, let's return to the original Lagrangian
L(t,{qi},{qi'}),
where apostrophe at q indicates a time-derivative, using yk=qk equivalence for k≠0 and taking into account our definition of function 𝓛:
𝓛(y,yx) = L(t,{qi},{qix/tx})·tx
Notice that we represented qi'=dqi/dt (a generalized velocity) as (dqi/dx)/(dt/dx)=qix/tx.

Now
∂/∂ykx 𝓛({yi},{yix}) =
= ∂/∂qkx
[L(t,{qi},{qix/tx})·tx]

As we indicated above, an expression qix/tx is a generalized velocity along ith space coordinate because
qix/tx = (dqi/dx)/(dt/dx) =
= dqi/dt = qi' = vi


Therefore, using the chain rule, we can write the expression above as
∂/∂qkx [L(t,{qi},{qix/tx})·tx] =
= ∂/∂qkx
[L(t,{qi},{vi})·tx] =
=
[∂/∂vk L(t,q,v)]·[∂vk/∂qkx]·tx =
[recall, vk=qkx/tx]
=
[∂/∂vk L(t,q,v)]·(1/tx)·tx =
= ∂/∂vk L(t,q,v) =
= ∂/∂qk' L(t,q,q')


Since pk=∂/∂qk' L(t,q,q') is a definition of generalized momentum, we conclude that under the ε-transformation of a single space coordinate qk described above that leaves the action functional invariant or, in other words, possesses translational symmetry the generalized momentum is conserved.

The conservation of momentum pk could be derived directly from the Euler–Lagrange equations once we know that the Lagrangian is independent of a coordinate qk. Indeed, from the Euler-Lagrange equation
d/dt ∂L/∂qk' = ∂L/qk
follows that, if the right-hand side is zero (independence of Lagrangian L of coordinate qk), the left-hand side is zero as well, which means that generalized momentum
pk = ∂L/∂qk'
is constant (conserved).

Noether's theorem is important because it reveals that momentum conservation is a consequence of a continuous symmetry of the action and extends this principle to every continuous symmetry. Momentum conservation is therefore not an isolated fact but one example of a universal connection between symmetry and conservation laws.

CONCLUSION

Assuming the translation
qk ⟶ qk + ε
leaves action functional invariant,
the Noether conserved quantity would be
J = ∂𝓛/∂ykx = ∂L/∂qk' = pk
which is a generalized momentum along kth generalized coordinate. Therefore,
dpk/dt = 0
which is the law of conservation of linear momentum.


Angular Momentum Conservation

Consider a rigid body rotating about a fixed axis with only two extended generalized coordinates describing its motion
y0 = t is time,
y1 = θ is an angle of rotation.

The ε-transformation (rotation) we would like to consider is the uniform rotation that can be expressed as
t(ε) = t,
θ(ε) = θ + ε.

Since the angle θ is simply a generalized coordinate, this situation is the same as in the previous one
t(ε) = t,
qk(ε) = qk + ε
with n=k=1,
generalized space coordinate being the angle of rotation q1=y1
and the derivation of Noether's conserved quantity is identical to the derivation for linear momentum.

Therefore, everything we derived for linear momentum in the above case is valid for angular momentum

Assuming the rotation
θ(=y1) ⟶ θ + ε (=y1 + ε)
leaves action functional invariant,
the Noether conserved quantity would be
J = ∂𝓛/∂θx = ∂L/∂θ' = ℒ
which is a generalized angular momentum.
Therefore, the angular momentum is conserved
dℒ/dt = 0
which is the law of conservation of angular momentum.


Energy Conservation

The third important application of Noether's theorem is the law of conservation of energy, which follows from the invariance of the action under translations of time.

Let's choose a uniform translation of the time coordinate that does not affect any space coordinates:
y0(ε) = y0 + ε,
which is time transformation
t(ε) = t + ε
and
yi(ε) = yi for all i∈[1,n],
which means that all generalized coordinates remain unchanged
qi(ε) = qi for all i∈[1,n].

For this kind of transformation the corresponding generators are
ζ0 = dy0/dε|ε=0 = 1 and
ζi = 0 for i≠0.

According to Noether's theorem, the conserved quantity is
J = Σi𝓛yix·ζi = 𝓛y0x·ζ0 =
= ∂
𝓛/∂tx = ∂/∂tx[L(t,q,qx/tx)·tx]
which is a constant of motion along a trajectory.

Let's perform all the required computations.
J = ∂/∂tx[L(t,q,qx/tx)·tx] =
[recall, vi=qix/tx=qi' - time derivative of a generalized coordinate]
= ∂/∂tx
[L(t,{qi},{qix/tx})·tx] =
[using a formula of a derivative of a product of two functions]
=
[∂/∂txL(t,{qi},{qix/tx})]·tx + L=
[apply the chain rule, taking into account that the dependence on tx enters only through the generalized velocities {qix/tx} = {vi} and using vi as a placeholder for qix/tx to shorter the notation]
=
[Σi(∂L/∂vi)·(d(qix/tx)/dtx)]·tx + L =
=
[Σi(∂L/∂vi)·(−qix/t²x)]·tx + L =
[substitute qix/tx²=vi·tx/tx²=vi/tx]
= −
Σi(∂L/∂vi)·vi + L =
[recall, ∂L/∂vi=∂L/∂qi' is s generalized momentum pi]
= −
Σi(pi·vi) + L

The final formula for a conserved quantity J is:
J = −Σi(pi·vi) + L

In all conservative mechanical systems considered in this course, the Lagrangian L has the form
L = T − U
where the kinetic energy T is a quadratic homogeneous function of generalized velocities and U is potential energy of a system.

Recall that
pi = ∂L/∂vi = ∂(T−U)/∂vi
Since potential energy U does not depend on generalized velocities,
pi = ∂T/∂vi

In classical mechanics the kinetic energy is a homogeneous quadratic (that is, of degree 2) function of the generalized velocities
T = Σi,jAijvivj

For any given quadratic homogeneous function
T = Σi,jAijvivj
the sum Σi[∂T/∂vi]·vi is equal to 2T as follows from the Euler theorem about homogeneous functions.
Here is a simple and elegant proof.
In case of quadratic homogeneous function
T(v1,...,vn) = Σi,jAijvivj
T(λ·v1,...,λ·vn) = λ²·T(v1,...,vn)
where λ - any real number.
Let's differentiate both sides by λ applying the chain rule for the left side
Σi[∂T/∂(λ·vi)]·vi = 2λ·T
Set λ=1 that results in λ·vi=vi, and the result is
Σi[∂T/∂vi]·vi = 2·T

Since generalized momentum is defined by
pi = ∂T/∂vi
and for ordinary mechanical systems L=T−U while U does not depend on the velocities, ∂L/∂vi = ∂T/∂vi
therefore,
Σi(pi·vi) = 2T
J = −2T + (T−U) = −(T+U)
which is a negative total energy of the system, whose conservation is equivalent to conservation of the total system's energy itself.

Therefore, the total energy is conserved under a time transformation that preserves the action functional, as described above.

Sunday, June 21, 2026

Noether's Theorem Derivation: UNIZOR.COM -> Physics+ 4 All -> Lagrangian -> Noether's Theorem -> Derivation

Notes to a video lecture on UNIZOR.COM

Derivation of Noether Theorem


Background

The previous lectures of the Noether Theorem part of the course Physics+ 4 All have introduced the concepts of symmetry, parameterized group of continuous transformations and a concept of an extended configuration space that combines time and generalized coordinates into one set of coordinates.

We suggested that the symmetries relevant to the laws of motion are transformations of extended time-space coordinates that leave the action functional invariant.

This lecture is about mathematical derivation of certain conservation laws as logical consequences from the symmetries of transformations.


Summary of Assumptions

(1) Let us consider an extended configuration space of a mechanical system with coordinates {t,q}, where t is time and q is a set of generalized coordinates qi(t) (i∈[1,n]).

(2) This system is described by its Lagrangian L(t,q(t),q'(t)) where q'(t) is a set of generalized velocities {qi'(t)} (time derivatives of generalized coordinates).

(3) The trajectory of the movement of this system, a curve in the extended configuration space, is described by parameterized functions
t(x) and
q(x)={qi(x)}, i∈[1,n]
where x is an abstract parameter changing from real value x=a to x=b with {t(a),q(a)} being the start and {t(b),q(b)} being the finish point of the movement.

(4) Given a group of continuous transformations of the extended configuration space parameterized by ε
tt(ε)=T(ε,t,q)
qq(ε)=Q(ε,t,q)
with ε=0 causing a transformation to be the identity transformation, that is t(0)=t and q(0)=q.
We assume, the transformation functions T(ε,t,q) and Q(ε,t,q) are sufficiently differentiable.

(5) This transformation of points (t,q)⟶(t(ε),q(ε))
induces the transformation of every trajectory
{t(x),q(x)}⟶{t(ε)(x),q(ε)(x)}
where x∈[a,b].
We further assume that the transformed trajectory
{t(ε)(x),q(ε)(x)}
belongs to the same class of physically admissible trajectories of a mechanical system defined by its properties and the laws of physics.

(6) Let's assume that the action functional of the movement of this mechanical system
Φ[t,q] =
t(b)
t(a)
L(t,q,q')dt

is invariant under this induced transformation of trajectories as parameter of transformation ε is infinitesimally changing from zero.
This assumption can be expressed as
(d/dε)Φ[t(ε),q(ε)]|ε=0 = 0
and we assume sufficient differentiability of the action functional by parameter ε.


Derivation of Noether Theorem

The problem with the above representation of the action functional is that not only an expression under an integral is transformed, but the limits of integration t(a) and t(b) change as well, which significantly complicates the analysis of the behavior of the action functional under ε-transformation of time and generalized coordinates.
The road to simplification is the parameterized representation of a trajectory {t(x),q(x)}.
Using this, we can replace
(a) dt = (dt/dx)·dx
(b) q' = dq/dt = (dq/dx)/(dt/dx)
(c) integration by t on [t(a),t(b)] can be now replaced with an integration by x - the parameter changing on a fixed segment [a,b].

Let's rewrite the action functional as the integral by x using abbreviations
dt/dx=tx (so, dt=tx·dx) and
dq/dx={dqi/dx}={qix}=qx
for brevity
Φ[t,q] =
b
a
L(t,q,qx/tx)·tx·dx

At this point we would like to bring some time-space uniformity.
Since both time t and generalized space coordinates q={qi} (i∈[1,n]) are all functions of one parameter x (x∈[a,b]) and all have equal standing as coordinates in an extended time-space configuration space, it makes sense to use a single letter
y={yi} (i∈[0,n]) with
y0=t and
yi=qi for all i∈[1,n]).

Also, we replace derivatives
dt/dx=tx with dy0/dx=y0x
and
dq/dx={dqi/dx}={qix}=qx
for i≠0 with
dy/dx={dyi/dx}={yix}=yx.

So, a set of all derivatives {tx,qix} can be written as
dy/dx={dyi/dx}={yix}=yx
where i∈[0,n].

Now we can simplify the formula for action functional by replacing the Lagrangian under the integration with a function that treats all time-space coordinates equally:
Φ[y] =
b
a
𝓛(y,yx)·dx

where
y(x)={yi(x)} (i∈[0,n]) signifies a set of all time-space coordinates parameterized by x∈[a,b], that is a trajectory in extended configuration space, with y0(x)=t(x), and yi(x)=qi(x) for i0 and
yx(x)={yix(x)} (i∈[0,n]) signifies a set of all derivatives of time-space coordinates by parameter x with y0x(x)=tx(x), and yix(x)=qix(x) for i0
and a new function 𝓛() is defined for i∈[0,n] as
𝓛(y,yx) = 𝓛({yi},{yix}) =
= L(t,q,qx/tx)·tx =
= L(t,
{qi},{qix/tx})·tx

This representation of the same action functional is simpler because a new function 𝓛() under the integral symmetrically depends on n+1 functions {yi(x)} (i∈[0,n]) that encompass t(x) and all {qi(x)} (i∈[1,n]) functions of parameter x and n+1 derivatives of these functions by x, and the parameter x is not a subject of ε-transformation.

In addition, the limits of integration by x are from a to b which are constant and not affected by the ε-transformation.

The latter form of function 𝓛() under an integral allows to express the assumption about the invariance of the action functional under ε-transformations
y⟶y(ε)
which means t⟶t(ε), q⟶q(ε)),
as
(d/dε)Φ[y(ε)]|ε=0 = 0
in a symmetrical way relative to all time-space coordinates in extended configuration space and use the known apparatus of Calculus to perform all the required operations.

Since our transformations are continuous, ε-transformations with infinitesimal ε are infinitesimal, that is the increments in coordinates
Δy(ε)=y(ε)−y
are infinitesimal as well.
At the same time, the ε-derivatives of the changing coordinates characterize the speed of their change by a transformation.
Expressions
ζ={ζi}={dyi(ε)/dε|ε=0}
are called generators of the transformation.
We will use them below.

Also,
d/dε[dy(ε)/dx]|ε=0 =
= d/dx
[dy(ε)/dε]|ε=0 = dζ/dx

Let's apply our assumption about invariance of the action functional under ε-transformation and equate the ε-derivative of the action functional at ε=0 to zero and do the calculations.
We'll abbreviate derivatives with subscriptors for brevity (like ζx for dζ/dx) and omit the |ε=0 to shorten the formulas:
0 = (d/dε)Φ[y(ε)] =
= (d/dε)
b
a
𝓛(y(ε),yx(ε))·dx =
where y and yx are group variables representing all time-space coordinates in extended configuration space {yi} and {yix} with i∈[0,n].
We can change the order of differentiation by ε and integration by x because we assumed that the function under the integral is sufficiently smooth, so the convergence theorem holds.

=
b
a
(d/dε) 𝓛(y(ε),yx(ε))·dx =

use the rules for differentiation of multi-variable functions, subscriptions to indicate the corresponding derivative, definition ζ=dy(ε)/dε|ε=0 and the rule for interchanging the differentiation by two different variables
dyx(ε)/dε = d/dε[dy(ε)/dx] =
= d/dx
[dy(ε)/dε] = dζ/dx = ζx
=
b
a
(𝓛y·dy(ε)/dε+𝓛yx·dyx(ε)/dε)·dx
=
b
a
(𝓛y·ζ+𝓛yx·ζx)·dx

where group item 𝓛y·ζ represents
a sum Σi𝓛yi·ζi with i∈[0,n]
which in expanded form is
Σi𝓛/∂yi·[dyi(ε)/dε|ε=0]
and group item 𝓛yx·ζx represents
a sum Σi(𝓛yix·ζix) with i∈[0,n]
which expands analogously with a subscript x indicating a derivative by x

We have derived with a fundamental identity


b
a
[Σ(i𝓛yi·ζi)+Σi(𝓛yix·ζix)]·dx = 0
where summation by i is for i∈[0,n].

Recall the following rules for integration by parts.

(d/dx)[𝓛yx·ζ] =
= (d
𝓛yx/dx)·ζ + 𝓛yx·ζx

b
a
(d/dx)[𝓛yx·ζ]·dx =

=
b
a
(d𝓛yx/dx)·ζ·dx +
b
a
𝓛yx·ζx·dx


[𝓛yx·ζ]|[a,b] =
=
b
a
(d𝓛yx/dx)·ζ·dx +
b
a
𝓛yx·ζx·dx


[𝓛yx·ζ]|[a,b]
b
a
(d𝓛yx/dx)·ζ·dx =

=
b
a
𝓛yx·ζx·dx


The above expression for
b
a
𝓛yx·ζx·dx

can be substituted into the fundamental identity presented above
b
a
(𝓛y·ζ+𝓛yx·ζx)·dx = 0

where group item
𝓛y·ζ represents Σi𝓛yi·ζi

getting
0 = [𝓛yx·ζ]|[a,b] +
+
b
a
[𝓛y − d/dx(𝓛yx)]·ζ·dx


Since the ε-transformation leaves the action functional invariant, it preserves the set of stationary trajectories of the action mapping one stationary trajectory onto itself (shift along a trajectory) or to another one (jump to another trajectory).
Since all physical trajectories are stationary for the action functional and, therefore, are the solutions of the Euler–Lagrange equations, the transformed trajectory, being stationary as well, also satisfies the Euler–Lagrange equation:
𝓛y = 𝓛/∂y = d/dx(∂𝓛/∂yx) =
= d
𝓛yx/dx
which nullifies an integral in the last identity.

Therefore,
[𝓛yx·ζ]|[a,b] = 0 or
𝓛yx(b)·ζ(b) − 𝓛yx(a)·ζ(a) = 0
where group parameter
𝓛yx·ζ represents Σi𝓛yix·ζi with the sum by i∈[0,n].

This means that the value of 𝓛yx·ζ is the same at x=a and x=b.
This holds for any subinterval [a,b] of any physically admissable trajectory.
Since the endpoints can be chosen arbitrarily along the trajectory, the above expression is constant along the trajectory and
d/dx[𝓛yx·ζ] = 0

Noether Theorem

Every continuous symmetry of the action functional (every ε-transformation of the extended configuration space that leaves the action functional invariant) is associated with a conserved quantity along physical trajectories.
In extended configuration space, the conserved quantity is
J = 𝓛yx·ζ
or, in expanded by coordinates format,
J = Σi𝓛yix·ζi with i∈[0,n]
Recall that
y={yi} is a set of time-space coordinates with i∈[0,n];
y0 is time t;
{yi} are a set of generalized coordinates {qi} with i∈[1,n];
ζ={ζi}={dyi(ε)/dε|ε=0} is a set of generators for each time-space coordinate;
𝓛(y,yx) = L(t,tx,q,qx/tx)·tx
where x in a subscript indicates a derivative of a corresponding function by parameter x:
tx=dt/dx and
{qix}={dqi/dx}

We have just proven that
J is a constant of motion and, therefore,
dJ/dx = 0