Professional Documents
Culture Documents
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]
This is the Euler-Lagrange differential equation and its solution y(x) that satisfies the prescribed
BC’s at x1 and x2, is said to be the extremum of the variational problem.
Without proof, the equivalent variational problem is to find y (x) s.t. I is minimized
1
𝐼𝐼 = � [(𝑦𝑦 ′ )2 − 𝑦𝑦 2 − 2𝑥𝑥𝑥𝑥] 𝑑𝑑𝑑𝑑
0
We will show that I is a minimum when y (x) satisfies the DE and BC exactly.
Consider an approximate function as follows:
𝑦𝑦�(𝑥𝑥 ) = 𝑦𝑦(𝑥𝑥 ) + 𝜖𝜖𝜖𝜖 (𝑥𝑥 )
where 𝜖𝜖 is an arbitrary amplitude and η is an arbitrary shape s.t. 𝜂𝜂(𝑥𝑥𝑎𝑎 ) = 0 and 𝜂𝜂(𝑥𝑥𝑏𝑏 ) = 0 (i.e.
η vanishes on the boundaries).
Let’s substitute 𝑦𝑦�(𝑥𝑥 ) in I and then minimize (or make I stationary).
1
𝐼𝐼 = � [(𝑦𝑦� ′ )2 − (𝑦𝑦�)2 − 2𝑥𝑥𝑦𝑦�] 𝑑𝑑𝑑𝑑
0
𝑑𝑑𝑑𝑑 1 2 𝑑𝑑2 𝐼𝐼
𝐼𝐼 = 𝐼𝐼 (𝜖𝜖) = 𝐼𝐼 (0) + 𝜖𝜖 � + 𝜖𝜖 � +⋯
𝑑𝑑𝑑𝑑 𝜖𝜖=0 2! 𝑑𝑑𝜖𝜖 2 𝜖𝜖=0
I will be stationary if
𝑑𝑑𝑑𝑑
� =0
𝑑𝑑𝑑𝑑 𝜖𝜖=0
[24]
Now,
𝑑𝑑𝑑𝑑 1
= � [2𝑦𝑦 ′ 𝜂𝜂′ + 2𝜖𝜖𝜂𝜂′2 − 2𝑦𝑦𝑦𝑦 − 2𝜖𝜖𝜂𝜂2 − 2𝑥𝑥𝑥𝑥] 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 0
𝑑𝑑𝑑𝑑 1
� = � [2𝑦𝑦 ′ 𝜂𝜂′ − 2𝑦𝑦𝑦𝑦 − 2𝑥𝑥𝑥𝑥] 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝜖𝜖=0 0
For stationary I
𝑑𝑑𝑑𝑑 1
� = [2𝑦𝑦 ′ 𝜂𝜂]10 − � (2𝑦𝑦 ″ + 2𝑦𝑦 + 2𝑥𝑥 )𝜂𝜂𝜂𝜂𝜂𝜂 = 0
𝑑𝑑𝑑𝑑 𝜖𝜖=0 0
For arbitrary η, the only way that the integral would be zero is for the term (𝑦𝑦 ″ + 𝑦𝑦 + 𝑥𝑥 ) to
vanish.
∴ 𝑦𝑦 ″ + 𝑦𝑦 + 𝑥𝑥 = 0 ⇒ DE
We recovered the differential equation from the integral form.
▀
Example 3.5: Use Euler-Lagrange equation to solve the curved path problem
Find the equation of the curve joining 2 points A and B in a plane such that the distance along
the arc is a minimum.
𝑏𝑏 1
𝐼𝐼 = � (1 + 𝑦𝑦 ′2 )2 𝑑𝑑𝑑𝑑 𝑎𝑎 < 𝑏𝑏
𝑎𝑎
Here,
1
𝑓𝑓 = �1 + 𝑦𝑦 ′ 2 �2
𝜕𝜕𝜕𝜕
=0
𝜕𝜕𝜕𝜕
𝜕𝜕𝜕𝜕 1 1
′ 2 −2
=− �1 + 𝑦𝑦 � (2𝑦𝑦 ′ )
𝜕𝜕𝑦𝑦 ′ 2
[25]
Euler-Lagrange equation becomes
𝑑𝑑 ∂𝑓𝑓 𝑑𝑑 𝑦𝑦 ′
� �=0 ⇒ � �=0
𝑑𝑑𝑑𝑑 ∂𝑦𝑦 ′ 𝑑𝑑𝑑𝑑 �1 + 𝑦𝑦 ′2
Solution to this DE is:
𝑦𝑦 ′ 2 = 𝐶𝐶1 �1 + 𝑦𝑦 ′ 2 �
𝑦𝑦 ′ = 𝐶𝐶2 = const.
∴ 𝑦𝑦 = 𝐶𝐶2 𝑥𝑥 + 𝐶𝐶3
Now,
𝐸𝐸𝐸𝐸 ″ 2
𝑓𝑓(𝑥𝑥, 𝑤𝑤, 𝑤𝑤 ′ , 𝑤𝑤 ″ , … ) = (𝑤𝑤 ) − 𝑞𝑞𝑞𝑞
2
So that,
∂𝑓𝑓
= −𝑞𝑞
∂𝑤𝑤
∂𝑓𝑓
=0
∂𝑤𝑤 ′
∂𝑓𝑓
= 𝐸𝐸𝐸𝐸𝑤𝑤 ″
∂𝑤𝑤 ″
[26]
3.5 DEFINITION OF VARIATIONAL OPERATOR − 𝛿𝛿
( x ) y ( x ) + ε 2η ( x )
y2=
y
δ y1 ( x ) = ε1η ( x )
( x ) y ( x ) + ε1η ( x )
y1=
𝛿𝛿𝛿𝛿 = 𝜖𝜖𝜖𝜖 → 1st variation of 𝑦𝑦
y ( x)
Consider the same functional
𝑏𝑏
𝐼𝐼 = � 𝑓𝑓(𝑥𝑥, 𝑦𝑦, 𝑦𝑦 ′ , … )𝑑𝑑𝑑𝑑 η ( x)
𝑎𝑎
a x b x
𝑏𝑏
𝐼𝐼 (𝜖𝜖) = � 𝑓𝑓(𝑥𝑥, 𝑦𝑦 + 𝜖𝜖𝜖𝜖, 𝑦𝑦 ′ + 𝜖𝜖𝜂𝜂′ , … )𝑑𝑑𝑑𝑑
𝑎𝑎
where
𝛿𝛿𝛿𝛿: 1st variation of functional
𝛿𝛿 2 𝐼𝐼: 2nd variation of functional 1 2 1 3
� 𝛥𝛥𝛥𝛥 = 𝛿𝛿𝛿𝛿 + 𝛿𝛿 𝐼𝐼 + 𝛿𝛿 𝐼𝐼 + ⋯
𝛿𝛿 3 𝐼𝐼: 3rd variation of functional 2! 3!
⋮
𝑑𝑑𝑑𝑑
𝛿𝛿𝛿𝛿 = 0 or � =0
𝑑𝑑𝑑𝑑 𝜖𝜖=0
The same rules that apply to differentiation and integration apply to variations.
For example:
𝑦𝑦� ′ = 𝑦𝑦 ′ + 𝜖𝜖𝜂𝜂
�′
𝛿𝛿𝑦𝑦 ′
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑 𝑑𝑑
𝛿𝛿 � � = 𝛿𝛿 (𝑦𝑦 ′ ) = 𝜖𝜖𝜂𝜂′ = 𝜖𝜖 = (𝜂𝜂𝜂𝜂) = (𝛿𝛿𝛿𝛿)
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
𝑑𝑑
That is δ and are commutable (i.e. the order of their operation is interchangeable).
𝑑𝑑𝑑𝑑
[27]
Similarly,
𝑥𝑥2 𝑥𝑥2
𝛿𝛿 �� 𝑦𝑦𝑦𝑦𝑦𝑦 � = � 𝛿𝛿𝛿𝛿𝛿𝛿𝛿𝛿
𝑥𝑥1 𝑥𝑥1
𝑏𝑏
Now go back to our functional 𝐼𝐼 = ∫𝑎𝑎 𝑓𝑓(𝑥𝑥, 𝑦𝑦, 𝑦𝑦 ′ )𝑑𝑑𝑑𝑑 .
𝑏𝑏 𝑏𝑏
𝛿𝛿𝛿𝛿 = � 𝛿𝛿𝛿𝛿𝛿𝛿𝛿𝛿 = � (𝛿𝛿𝛿𝛿)𝑑𝑑𝑑𝑑
𝑎𝑎 𝑎𝑎
𝑏𝑏 ∂𝑓𝑓 ∂𝑓𝑓 ∂𝑓𝑓 𝑏𝑏 ∂𝑓𝑓 𝑏𝑏 ∂𝑓𝑓
=� � 𝛿𝛿𝛿𝛿
�+ 𝛿𝛿𝛿𝛿 + ′ 𝛿𝛿𝑦𝑦 ′ � 𝑑𝑑𝑑𝑑 = � 𝛿𝛿𝛿𝛿𝛿𝛿𝛿𝛿 + � ′
𝛿𝛿𝑦𝑦 ′ 𝑑𝑑𝑑𝑑
𝑎𝑎 ∂𝑥𝑥 0 ∂𝑦𝑦 ∂𝑦𝑦 𝑎𝑎 ∂𝑦𝑦 𝑎𝑎 ∂𝑦𝑦
[28]
Strain energy for the whole system (bar) is
which is the DE for any bar with no disrupted load along the axis. (Euler-Lagrange equation of
the variational problem). Additionally, the conditions for the admissible boundary conditions:
At 𝑥𝑥 = 0 either 𝛿𝛿𝛿𝛿
��� =��
0 𝑜𝑜𝑜𝑜 ���′
𝐸𝐸𝐸𝐸𝑢𝑢 =0
essential BC natural BC
At 𝑥𝑥 = 𝐿𝐿 either 𝛿𝛿𝛿𝛿
��� =��
0 𝑜𝑜𝑜𝑜 𝐸𝐸𝐸𝐸𝑢𝑢
�� ��� ′−
��𝑃𝑃 = 0
essential BC natural BC
[29]
Now according to our problem, we have:
𝐸𝐸𝐸𝐸𝑢𝑢 ′ |𝑥𝑥=𝐿𝐿 − 𝑃𝑃 = 0 → True
𝐸𝐸𝐸𝐸𝑢𝑢 ′ |𝑥𝑥=0 = 0 → Not true (not specified)
𝛿𝛿𝛿𝛿 |𝑥𝑥=𝐿𝐿 = 0 → Not true (not specified)
𝛿𝛿𝛿𝛿 |𝑥𝑥=0 = 0 → True
▀
For example, in the bar problem the differential equation is 2nd order and the order of highest
derivative in the functional is 1.
• Natural boundary conditions involve all derivatives of order 𝑚𝑚 and higher up to 2𝑚𝑚 − 1.
The natural boundary conditions of the beam involve 2 nd and 3rd derivatives of w:
Moment, 𝐸𝐸𝐸𝐸𝑤𝑤 ″ = 𝑀𝑀 → �2nd derivative�
Shear force, 𝐸𝐸𝐸𝐸𝑤𝑤 ‴ = 𝑉𝑉 → �3rd derivative�
[30]
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]
Since δcj are arbitrary variations in cj we can eliminate it from both sides of 𝑐𝑐𝑖𝑖 𝑘𝑘𝑖𝑖𝑖𝑖 𝛿𝛿𝑐𝑐𝑗𝑗 = 𝑓𝑓𝑗𝑗 𝛿𝛿𝑐𝑐𝑗𝑗
and have
𝑘𝑘𝑖𝑖𝑖𝑖 𝑐𝑐𝑖𝑖 = 𝑓𝑓𝑗𝑗 𝑖𝑖, 𝑗𝑗 = 1, 2, … , 𝑛𝑛
The equation above is now a system of n simultaneous algebraic equations with kij the matrix
of coefficients, ci the column vector of unknowns that we are solving for fj the force vector on
the right-hand side.
For the current choice of φi, for 2-term approximation, we have
𝐿𝐿 𝐿𝐿 𝐿𝐿
⎡� (𝜑𝜑1′′ )2 𝑑𝑑𝑑𝑑 � 𝜑𝜑1′′ 𝜑𝜑2′′ 𝑑𝑑𝑑𝑑 ⎤ ⎧� 𝜑𝜑1 𝑑𝑑𝑑𝑑 ⎫
⎢ ⎥ 𝑐𝑐1 ⎪ 0 ⎪
𝐸𝐸𝐸𝐸 ⎢ 0𝐿𝐿 0
𝐿𝐿 ⎥ � 𝑐𝑐2 � = 𝑞𝑞0
⎢� 𝜑𝜑′′ 𝜑𝜑′′ 𝑑𝑑𝑑𝑑 ⎨ 𝐿𝐿 ⎬
� (𝜑𝜑2 ) 𝑑𝑑𝑑𝑑 ⎥
′′ 2
⎪� 𝜑𝜑2 𝑑𝑑𝑑𝑑 ⎪
⎣ 0 2 1 0 ⎦ ⎩ 0 ⎭
4 2𝐿𝐿 𝑐𝑐1 𝐿𝐿3 2
→ 𝐸𝐸𝐸𝐸𝐸𝐸 � � � � = 𝑞𝑞 � �
2𝐿𝐿 4𝐿𝐿2 𝑐𝑐2 0
12 𝐿𝐿
𝑞𝑞0 𝐿𝐿2
𝑐𝑐1 = ; 𝑐𝑐2 = 0
24𝐸𝐸𝐸𝐸
𝑞𝑞0 𝐿𝐿3 𝑞𝑞0 𝐿𝐿2 2
∴ 𝑤𝑤 (𝑥𝑥 ) = 𝑥𝑥 − 𝑥𝑥
24𝐸𝐸𝐸𝐸 24𝐸𝐸𝐸𝐸
The exact solution (i.e. the solution of the DE satisfying all 4 BC’s) is given by
𝑞𝑞0 𝐿𝐿3 𝑞𝑞0 𝐿𝐿 3 𝑞𝑞0 4
𝑤𝑤𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒 (𝑥𝑥 ) = 𝑥𝑥 − 𝑥𝑥 + 𝑥𝑥
24𝐸𝐸𝐸𝐸 12𝐸𝐸𝐸𝐸 24𝐸𝐸𝐸𝐸
The 3-term approximation (i.e. including 𝜑𝜑3 = 𝑥𝑥 3 (𝐿𝐿 − 𝑥𝑥 )) yields
4 2𝐿𝐿 2𝐿𝐿2 𝑐𝑐1 𝑞𝑞0 𝐿𝐿3 2
�
𝐸𝐸𝐸𝐸𝐸𝐸 2𝐿𝐿 4𝐿𝐿 2
4𝐿𝐿3 � � 𝑐𝑐 �
2 = � 𝐿𝐿 �
4 𝑐𝑐3 12
2 3
2𝐿𝐿 4𝐿𝐿 4.8𝐿𝐿 0.6𝐿𝐿2
𝑞𝑞0 𝐿𝐿2
→ 𝑐𝑐1 = 𝑐𝑐2 𝐿𝐿 = −𝑐𝑐3 𝐿𝐿2 =
24𝐸𝐸𝐸𝐸
and the 3-term approximation of w coincides with the exact solution.
▀
[32]
3.8 FORMULATING THE VARIATIONAL PROBLEM FROM THE DE
provided that
i) A is symmetric (or also called self-adjoint)
Minimization of I gives the differential equation 𝐴𝐴𝐴𝐴 = 𝑓𝑓 and all the possible boundary conditions.
[33]
For classical beam BC’s, for example:
u =0 u ≠0 u =0 u =0
0 L 0 L
u′ = 0 u′ ≠ 0 u′ ≠ 0 u′ ≠ 0
0 L 0 L
V ≠0 V =0 V ≠0 V ≠0
0 L 0 L
M ≠0 M =0 M =0 M =0
0 L 0 L
that is
𝑢𝑢0 𝑉𝑉0 = 𝑢𝑢𝐿𝐿 𝑉𝑉𝐿𝐿 = 0
𝑢𝑢0′ 𝑀𝑀0 = 𝑢𝑢𝐿𝐿′ 𝑀𝑀𝐿𝐿 = 0
𝑑𝑑4 𝑣𝑣
𝐿𝐿 𝐿𝐿
″ ″
𝐿𝐿 𝑑𝑑4 𝑢𝑢
∴ � 𝑢𝑢𝑢𝑢𝑢𝑢 4 𝑑𝑑𝑑𝑑 = � 𝐸𝐸𝐸𝐸𝑢𝑢 𝑣𝑣 𝑑𝑑𝑑𝑑 = � 𝑣𝑣𝑣𝑣𝑣𝑣 4 𝑑𝑑𝑑𝑑
0 𝑑𝑑𝑥𝑥 0 0 𝑑𝑑𝑥𝑥
i.e. the operator is symmetric.
Rewrite DE as:
−𝑥𝑥 2 𝑦𝑦 ″ − 2𝑥𝑥𝑦𝑦 ′ = −6𝑥𝑥
or
𝑑𝑑 𝑑𝑑𝑑𝑑
− �𝑥𝑥 2 � = −6𝑥𝑥
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
[34]
Then,
𝑑𝑑 𝑑𝑑
𝐴𝐴 ≡ − �𝑥𝑥 2 � operator
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
𝑓𝑓 ≡ −6𝑥𝑥 forcing function
We seek the function y that satisfies DE and related BC’s or minimizes I. They should be the
same functions.
▀
[35]