0% found this document useful (0 votes)
8 views2 pages

Example For Weak Fromulation

The document presents a two-parameter approximate solution to a differential equation with boundary conditions using the Galerkin Method. It derives the approximate solution by assuming a form for the function and solving for constants through weighted integrals. The final approximate solution is expressed as a polynomial in terms of x with specific coefficients calculated from the integrals.

Uploaded by

gv7c9xcpqq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Example For Weak Fromulation

The document presents a two-parameter approximate solution to a differential equation with boundary conditions using the Galerkin Method. It derives the approximate solution by assuming a form for the function and solving for constants through weighted integrals. The final approximate solution is expressed as a polynomial in terms of x with specific coefficients calculated from the integrals.

Uploaded by

gv7c9xcpqq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Find two parameter approximate solution of the equation


𝒅𝟐 𝝓 𝒅𝝓
𝟐
+𝟑 + 𝝓 = 𝟒𝒙 𝟎≤𝒙≤𝟏
𝒅𝒙 𝒅𝒙
subjected to boundary conditions
𝝓(𝟎) = 𝟎, 𝝓(𝟏) = 𝟐𝟎

Solution

Using weighted integral statement


1
𝑑2𝜙 𝑑𝜙
∫𝑤( 2 + 3 + 𝜙 − 4𝑥) 𝑑𝑥 = 0
𝑑𝑥 𝑑𝑥
0

1 1 1 1
𝑑𝜙 𝑑𝜙 𝑑𝑤 𝑑𝜙 𝑑𝜙
or, 𝑤 | −𝑤 | −∫ 𝑑𝑥 + 3 ∫ 𝑤 𝑑𝑥 + ∫ 𝑤𝜙𝑑𝑥 − 4 ∫ 𝑤𝑥 𝑑𝑥 = 0
𝑑𝑥 𝑥=1 𝑑𝑥 𝑥=0 𝑑𝑥 𝑑𝑥 𝑑𝑥
0 0 0 0

When we Galerkin Method, 𝑤 = 𝜙𝑖 and 𝜙𝑖 = 0 at 𝑥 = 0 and 𝑥 = 1, the above equation reduces


to
1 1 1 1
𝑑𝑤 𝑑𝜙 𝑑𝜙
∫ 𝑑𝑥 − 3 ∫ 𝑤 𝑑𝑥 − ∫ 𝑤𝜙𝑑𝑥 = −4 ∫ 𝑤𝑥 𝑑𝑥 ….(a)
𝑑𝑥 𝑑𝑥 𝑑𝑥
0 0 0 0

Assume that 𝜙0 = 𝑎𝑥 + 𝑏.

Substituting 𝜙0 (0) = 0 and 𝜙0 (1) = 20, we get


𝑏 = 0 and 𝑎 = 20.

∴ 𝜙0 = 20𝑥

We can choose 𝜙1 and 𝜙2 directly as


𝜙1 = 𝑥(𝑥 − 1) = 𝑥 2 − 𝑥
𝜙2 = 𝑥 2 (𝑥 − 1) = 𝑥 3 − 𝑥 2

∴ 𝜙 = 𝜙0 + 𝐶1 𝜙1 + 𝐶2 𝜙2 = 20𝑥 + 𝐶1 (𝑥 2 − 𝑥) + 𝐶2 (𝑥 3 − 𝑥 2 )

Substituting 𝑤 = 𝜙1 = 𝑥 2 − 𝑥 and 𝜙 into above equation (a), we get


1

∫(2𝑥 − 1){20 + 𝐶1 (2𝑥 − 1) + 𝐶2 (3𝑥 2 − 2𝑥)}𝑑𝑥


0
1

− 3 ∫(𝑥 2 − 𝑥){20 + 𝐶1 (2𝑥 − 1) + 𝐶2 (3𝑥 2 − 2𝑥)} 𝑑𝑥


0
1

− ∫(𝑥 2 − 𝑥){20𝑥 + 𝐶1 (𝑥 2 − 𝑥) + 𝐶2 (𝑥 3 − 𝑥 2 )}𝑑𝑥


0
1

= −4 ∫(𝑥 2 − 𝑥)𝑥 𝑑𝑥
0
3 1 34
𝐶1 + 𝐶2 = − ….(b)
10 10 3

Substituting 𝑤 = 𝜙2 = 𝑥 3 − 𝑥 2 and 𝜙 into above equation (a), we get


1

∫(3𝑥 2 − 2𝑥){20 + 𝐶1 (2𝑥 − 1) + 𝐶2 (3𝑥 2 − 2𝑥)}𝑑𝑥


0
1

− 3 ∫(𝑥 3 − 𝑥 2 ){20 + 𝐶1 (2𝑥 − 1) + 𝐶2 (3𝑥 2 − 2𝑥)} 𝑑𝑥


0
1

− ∫(𝑥 3 − 𝑥 2 ){20𝑥 + 𝐶1 (𝑥 2 − 𝑥) + 𝐶2 (𝑥 3 − 𝑥 2 )}𝑑𝑥


0
1

= −4 ∫(𝑥 3 − 𝑥 2 )𝑥 𝑑𝑥
0
1 13 29
𝐶1 + 𝐶2 = − ….(c)
5 105 5

Solving Equations (b) and (c) for 𝐶1 and 𝐶2 , we get


𝐶1 = −48.0185 and 𝐶2 = 30.7222.

Then the approximate solution of the given system can be expressed as


𝜙 = 20𝑥 − 48.0185(𝑥 2 − 𝑥) + 30.7222(𝑥 3 − 𝑥 2 ) = 30.7222𝑥 3 − 78.7407𝑥 2 + 68.018𝑥

You might also like