Professional Documents
Culture Documents
3 - Annotated Notes - Variational Principles - Wed Sept 22, 2021
3 - Annotated Notes - Variational Principles - Wed Sept 22, 2021
The previous section presented differential equations as a way to describe a physical phenomenon.
The quantities involved in these equations are defined by vectors fields. This approach that falls
under Newtonian mechanics deals with quantities such as forces, accelerations, and momentum.
In contrast, in analytical mechanics, we do not consider forces and their directions, and instead
we write down overall energy expressions for the system that are scalar. The number of degrees
of freedom is simplified by accounting for the problem’s constraints. For example, in the rigid
pendulum shown below, the angle θ describes the single degree of freedom of the mass, m that is
attached to it.
As a function of θ, the gain in potential energy V as the mass is raised through a height h is:
𝑉𝑉 = 𝑚𝑚𝑚𝑚ℎ = 𝑚𝑚𝑚𝑚𝑚𝑚 (1 − cos 𝜃𝜃 )
Minimizing the energy of the system is associated with equilibrium positions. A stationary position
is found through setting the derivative of V to zero.
𝑑𝑑𝑑𝑑
= 0 → sin 𝜃𝜃 = 0 → 𝜃𝜃 = 0, π
𝑑𝑑𝑑𝑑
In continuum mechanics, e.g. the response of a beam subjected to a distributed load can be found
both using Newtonian and analytical mechanics. The solution using analytical mechanics (energy)
is based on the balance of the internal energy and the external energy as follows:
Potential energy = strain energy + P. E. of external forces
𝑉𝑉 = 𝑈𝑈 + Ω
The strain energy in a continuous elastic body is the integral of the product of the stress and the
strain over the whole domain of volume Ω as follows:
𝑈𝑈 = � 𝜎𝜎𝜎𝜎 𝑑𝑑Ω
Ω
[17]
For a classical beam, it takes the following form:
2
𝑑𝑑2 𝑤𝑤
𝐿𝐿 𝐸𝐸𝐸𝐸
𝑈𝑈 = � � 2 � 𝑑𝑑𝑑𝑑
0 2 𝑑𝑑𝑥𝑥
where w is the deflection. With the same premise of force·distance, the external distributed load q
is multiplied by the deflection as follows:
𝐿𝐿
Ω = − � (𝑞𝑞𝑞𝑞𝑞𝑞 ) 𝑤𝑤
0
Note: if the force and displacement are in the same direction, then the potential is negative.
[18]
3.2 CALCULUS OF VARIATION
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 2
�
= 1 + � � = �1 + (𝑦𝑦 ′ )2
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
Arc length between A & B is:
𝐵𝐵 𝑥𝑥𝐵𝐵
𝐼𝐼 = � 𝑑𝑑𝑑𝑑 = � �1 + (𝑦𝑦 ′ )2 𝑑𝑑𝑑𝑑
𝐴𝐴 𝑥𝑥𝐴𝐴
[19]
𝑛𝑛
1) Substitute y1 in I
1
𝐼𝐼 (𝑦𝑦1 ) = � [𝑐𝑐12 (1 − 2𝑥𝑥 )2 − 𝑐𝑐12 𝑥𝑥 2 (1 − 𝑥𝑥 )2 − 2𝑐𝑐1 𝑥𝑥 2 (1 − 𝑥𝑥 )] 𝑑𝑑𝑑𝑑
0
∴ 𝐼𝐼 = 𝐼𝐼 (𝑐𝑐1 )
Note that yapprox < yexact. We will find that this is also true for all approximate solutions using finite
elements.
[21]
Example 3.3: Rayleigh-Ritz
Consider the same problem as in the WRM
𝑑𝑑 𝑑𝑑𝑑𝑑
DE ⇒ �𝑥𝑥 2 � = 6𝑥𝑥; 1 ≤ 𝑥𝑥 ≤ 2
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
BC ⇒ 𝑦𝑦(1) = 0, 𝑦𝑦(2) = 0
The corresponding functional is (without proof for now but we will prove this later):
2
𝐼𝐼 = � (𝑥𝑥 2 𝑦𝑦 ′2 + 12𝑥𝑥𝑥𝑥)𝑑𝑑𝑑𝑑
1
Using RR method,
𝜑𝜑1 = (𝑥𝑥 – 1)(𝑥𝑥 – 2)
𝜑𝜑2 = 𝑥𝑥 (𝑥𝑥 – 1)(𝑥𝑥 – 2)
𝜑𝜑3 = 𝑥𝑥 2 (𝑥𝑥 – 1)(𝑥𝑥 – 2)
Take 2 terms for approximate solution
𝑦𝑦2 = 𝑐𝑐1 (𝑥𝑥 − 1)(𝑥𝑥 − 2) + 𝑐𝑐2 𝑥𝑥 (𝑥𝑥 − 1)(𝑥𝑥 − 2)
Plug in I
2
𝐼𝐼 (𝑐𝑐1 , 𝑐𝑐2 ) = � [𝑥𝑥 2 (𝑐𝑐1 𝜑𝜑1′ + 𝑐𝑐2 𝜑𝜑2′ )2 + 12𝑥𝑥 (𝑐𝑐1 𝜑𝜑1 + 𝑐𝑐2 𝜑𝜑2 )𝑑𝑑𝑑𝑑 ]
1
For minimum I,
𝜕𝜕𝜕𝜕
=0
𝜕𝜕𝑐𝑐𝑖𝑖
i=1
∂𝐼𝐼
= 0 ⇒ 1.6𝑐𝑐1 + 2.60𝑐𝑐2 = 3.0 →
∂𝑐𝑐1
i=2
∂𝐼𝐼
= 0 ⇒ 2.60𝑐𝑐1 + 4.438𝑐𝑐2 = 4.6 →
∂𝑐𝑐2
Or in matrix form:
1.6 2.6 𝑐𝑐1 3.0
� � �𝑐𝑐 � = � �
2.6 4.438 2 4.6
These equations are identical to what we had in Galerkin’s WRM. In general, if we use the same
trial functions, Galerkin’s method and Rayleigh-Ritz method give identical results.
[22]
3.4 VARIATIONAL METHOD
Solution procedure
Form a comparison function (approximate)
𝑦𝑦� = 𝑦𝑦 + 𝜖𝜖𝜂𝜂
where y is the exact solution, ϵ is a real number and η is an arbitrary function satisfying the
homogeneous BC’s, i.e. 𝜂𝜂(𝑥𝑥1 ) = 𝜂𝜂(𝑥𝑥2 ) = 0. Such functions are referred to as admissible. Then:
𝑥𝑥2
𝐼𝐼 = � 𝑓𝑓 (𝑥𝑥, 𝑦𝑦�, 𝑦𝑦� ′ )𝑑𝑑𝑑𝑑 = 𝐼𝐼(𝜖𝜖)
𝑥𝑥1
The notation 𝐼𝐼(𝜖𝜖) is introduced, since for a given y(x) and η(x) the integral is now simply a function
of ϵ. Then, if I is to be a minimum (stationary) for 𝑦𝑦� (𝑥𝑥 ) = 𝑦𝑦 (𝑥𝑥 ) implies that I(ϵ) be stationary at
𝜖𝜖 = 0, i.e.
𝑑𝑑𝑑𝑑 (𝜖𝜖) 𝑑𝑑 𝑥𝑥2
= � 𝑓𝑓 (𝑥𝑥, 𝑦𝑦 + 𝜖𝜖𝜖𝜖, 𝑦𝑦 ′ + 𝜖𝜖𝜂𝜂′ )𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑥𝑥1
[23]
3.7 VARIATIONAL OPERATOR WITH RAYLEIGH-RITZ
The next example shows how the variational operator δ is used within the Rayleigh-Ritz method.
𝜕𝜕𝜕𝜕
It allows to bypass the step , shown towards the end of Example 3.3.
𝜕𝜕𝑐𝑐𝑖𝑖
or
𝐿𝐿 𝐿𝐿
𝑐𝑐𝑖𝑖 �� 𝐸𝐸𝐸𝐸𝜑𝜑𝑖𝑖′′ 𝜑𝜑𝑗𝑗′′ 𝑑𝑑𝑑𝑑 � 𝛿𝛿𝑐𝑐𝑗𝑗 − �� 𝑞𝑞0 𝜑𝜑𝑗𝑗 𝑑𝑑𝑑𝑑 � 𝛿𝛿𝑐𝑐𝑗𝑗 = 0
0 0
or
𝑐𝑐𝑖𝑖 𝑘𝑘𝑖𝑖𝑖𝑖 𝛿𝛿𝑐𝑐𝑗𝑗 = 𝑓𝑓𝑗𝑗 𝛿𝛿𝑐𝑐𝑗𝑗 𝑖𝑖, 𝑗𝑗 = 1, 2, … , 𝑛𝑛
where
𝐿𝐿 𝐿𝐿
𝑘𝑘𝑖𝑖𝑖𝑖 = � 𝐸𝐸𝐸𝐸𝜑𝜑𝑖𝑖′′ 𝜑𝜑𝑗𝑗′′ 𝑑𝑑𝑑𝑑 ⟶⟶ and ⟶⟶ 𝑓𝑓𝑗𝑗 = � 𝑞𝑞0 𝜑𝜑𝑗𝑗 𝑑𝑑𝑑𝑑
0 0
[31]