SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
Solving ODE-BVP through Galerkin’s Method
FEM: Introduction
Suddhasheel Ghosh, PhD
Department of Civil Engineering
Jawaharlal Nehru Engineering College
N-6 CIDCO, 431003
Series on Advanced Numerical Methods
shudh (JNEC) Concepts MEStru2k1617 1 / 14
DiffEq1
Introduction to terminology
Given a differential equation
Ψ
d2
y
dx2
,
dy
dx
,y,x = 0, (1)
and the initial conditions,
F1
dy
dx
,y,x = a = 0 F2
dy
dx
,y,x = b = 0
So, given the points a and b, it is desired to find the solution of the
differential equation using the Galerkin’s Method.
shudh (JNEC) Concepts MEStru2k1617 2 / 14
DiffEq1
A second-order Boundary Value Problem
A boundary value problem is given as follows:
d2
y
dx2
+ P(x)
dx
dy
+ Q(x)y = R(x)
along with the conditions
y(x = a) = A, y(x = b) = B
shudh (JNEC) Concepts MEStru2k1617 3 / 14
GM
Concept of Linear Independence
In Vector Algebra, n vectors, namely v1,v2,...,vn are linearly independent,
when
n
i=1
aivi = 0 ⇐⇒ ai = 0,∀i = 1,...,n
Linear independence means that no vector can be expressed as a linear
combination of other vectors.
This concept of linear independence is not only limited to vectors, but has
also been extended to the area of functions and various algebraic
polynomials.
shudh (JNEC) Concepts MEStru2k1617 4 / 14
GM
Galerkin’s method I
Formulation
The Galerkin’s Method is a “weighted-residual” method. We will try to
solve the following differential equation:
d2
y
dx2
+ P(x)
dy
dx
+ Q(x)y = R(x)
with the following boundary conditions y(x = a) = A and y(x = b) = B.
Let us assume that the solution is in the form
y = α0 + α1x + α2x2
+ ··· + αnxn
=
n
i=0
αixi
shudh (JNEC) Concepts MEStru2k1617 5 / 14
GM
Galerkin’s method II
Formulation
Differentiating the above form, with respect to x, we have:
dy
dx
=
n
i=0
iαixi−1
(2)
d2
y
dx2
=
n
i=0
i(i − 1)αixi−2
(3)
Substituting, these into the differential equation we have:
n
i=0
αi i(i − 1)xi−2
+ iP(x)xi−1
+ Q(x)xi
= R(x) (4)
shudh (JNEC) Concepts MEStru2k1617 6 / 14
GM
Galerkin’s method III
Formulation
From the boundary conditions, we have
n
i=0
αiai
= A, (5)
n
i=0
αibi
= B (6)
We work out the residual function as follows:
(x) =
n
i=0
αi i(i − 1)xi−2
+ iP(x)xi−1
+ Q(x)xi
− R(x) (7)
If there are n − 1 unknowns, then there should be n − 1 linearly
independent polynomials chosen to be multiplied as weights to the
shudh (JNEC) Concepts MEStru2k1617 7 / 14
GM
Galerkin’s method IV
Formulation
residual function. Therefore, for each j = 1,...,n − 1, we should have
n − 1 equations
b
a
Nj(x) (x)dx = 0 (8)
where Nj(x) denotes the jth polynomial.
These equations are solved using linear algebra to obtain the values of
αi, i = 0,...,n
shudh (JNEC) Concepts MEStru2k1617 8 / 14
GM
Example I
Galerkin’s Method
Problem: Use the Galerkin’s method to solve the following differential
equation:
d2
y
dx2
− y = x
Use the boundary conditions y(x = 0) = 0 and y(x = 1) = 0. (Desai, Eldho,
Shah)
Solution: Let us assume that the solution to the given differential
equation is in the following form, where there are four unknowns:
y = α0 + α1x + α2x2
+ α3x3
shudh (JNEC) Concepts MEStru2k1617 9 / 14
GM
Example II
Galerkin’s Method
From the boundary conditions given, we have
α0 + α1(0) + α2(02
) + α3(03
) = 0 =⇒ α0 = 0
α0 + α1(1) + α2(12
) + α3(13
) = 0 =⇒ α1 + α2 + α3 = 0(or)α3 = −(α1 + α2
We calculate the derivatives as follows:
dy
dx
= α1 + 2α2x + 3α3x2
d2
y
dx2
= 2α2 + 6α3x
Substituting these into the differential equation, we have the following:
α1x + α2(2 − x2
) + α3(6x − x3
) = x
shudh (JNEC) Concepts MEStru2k1617 10 / 14
GM
Example III
Galerkin’s Method
Since α3 = −(α1 + α2), we will have
−α1x + α2(2 − x2
) + (α1 + α2)(x3
− 6x) = x
=⇒ α1(x3
− 7x) + α2(x3
− x2
− 6x + 2) = x (9)
We can therefore formulate
(x) = α1(x3
− 7x) + α2(x3
− x2
− 6x + 2) − x (10)
shudh (JNEC) Concepts MEStru2k1617 11 / 14
GM
Example IV
Galerkin’s Method
Since there are two unknown parameters here, we will consider two
functions N1(x) = x − x2
, and N2(x) = x2
− x3
, as weighting functions.
Therefore,
1
0
N1(x) (x)dx = 0 =⇒ −0.5500α1 − 0.1833α2 = 0.0833
1
0
N2(x) (x)dx = 0 =⇒ −0.3262α1 − 0.1429α2 = 0.0500
We will have this system
−0.5500 −0.1833
−03262 −0.1429
α1
α2
=
0.0833
0.0500
(11)
shudh (JNEC) Concepts MEStru2k1617 12 / 14
GM
Example V
Galerkin’s Method
Using this, the relations α3 = −(α1 + α2), and α0 = 0, we have
α0 = 0,α1 = −0.1456,α2 = −0.01743,α3 = 0.1631
Therefore, we can say that for our differential equation, we have the
following solution:
y = −0.1456x − 0.01743x2
+ 0.1631x3
shudh (JNEC) Concepts MEStru2k1617 13 / 14
GM
Thank you!
shudh (JNEC) Concepts MEStru2k1617 14 / 14

Weitere ähnliche Inhalte

Was ist angesagt?

Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equations
Ahmed Haider
 
Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010
akabaka12
 

Was ist angesagt? (20)

Legendre Function
Legendre FunctionLegendre Function
Legendre Function
 
Ch05 8
Ch05 8Ch05 8
Ch05 8
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Multiple integrals
Multiple integralsMultiple integrals
Multiple integrals
 
2. tensor algebra jan 2013
2. tensor algebra jan 20132. tensor algebra jan 2013
2. tensor algebra jan 2013
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
 
B.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integrationB.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integration
 
Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...
 
Introduction of Partial Differential Equations
Introduction of Partial Differential EquationsIntroduction of Partial Differential Equations
Introduction of Partial Differential Equations
 
Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equations
 
Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolation
 
Gradient , Directional Derivative , Divergence , Curl
Gradient , Directional Derivative , Divergence , Curl Gradient , Directional Derivative , Divergence , Curl
Gradient , Directional Derivative , Divergence , Curl
 
ORDINARY DIFFERENTIAL EQUATION
ORDINARY DIFFERENTIAL EQUATION ORDINARY DIFFERENTIAL EQUATION
ORDINARY DIFFERENTIAL EQUATION
 
UNDETERMINED COEFFICIENT
UNDETERMINED COEFFICIENTUNDETERMINED COEFFICIENT
UNDETERMINED COEFFICIENT
 
Presentation mathmatic 3
Presentation mathmatic 3Presentation mathmatic 3
Presentation mathmatic 3
 
Dobule and triple integral
Dobule and triple integralDobule and triple integral
Dobule and triple integral
 
Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
 
Galerkin method
Galerkin methodGalerkin method
Galerkin method
 
Triple integrals in spherical coordinates
Triple integrals in spherical coordinatesTriple integrals in spherical coordinates
Triple integrals in spherical coordinates
 

Ähnlich wie FEM Introduction: Solving ODE-BVP using the Galerkin's Method

Integration techniques
Integration techniquesIntegration techniques
Integration techniques
Krishna Gali
 
Engr 213 midterm 2b sol 2010
Engr 213 midterm 2b sol 2010Engr 213 midterm 2b sol 2010
Engr 213 midterm 2b sol 2010
akabaka12
 
01. Differentiation-Theory & solved example Module-3.pdf
01. Differentiation-Theory & solved example Module-3.pdf01. Differentiation-Theory & solved example Module-3.pdf
01. Differentiation-Theory & solved example Module-3.pdf
RajuSingh806014
 

Ähnlich wie FEM Introduction: Solving ODE-BVP using the Galerkin's Method (20)

Numerical solution of the Schr¨odinger equation
Numerical solution of the Schr¨odinger equationNumerical solution of the Schr¨odinger equation
Numerical solution of the Schr¨odinger equation
 
Bayes gauss
Bayes gaussBayes gauss
Bayes gauss
 
Differential equations
Differential equationsDifferential equations
Differential equations
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniques
 
MA8353 TPDE
MA8353 TPDEMA8353 TPDE
MA8353 TPDE
 
Sect5 1
Sect5 1Sect5 1
Sect5 1
 
Gr 11 equations
Gr 11   equationsGr 11   equations
Gr 11 equations
 
Engr 213 midterm 2b sol 2010
Engr 213 midterm 2b sol 2010Engr 213 midterm 2b sol 2010
Engr 213 midterm 2b sol 2010
 
Ch02 6
Ch02 6Ch02 6
Ch02 6
 
1.1_The_Definite_Integral.pdf odjoqwddoio
1.1_The_Definite_Integral.pdf odjoqwddoio1.1_The_Definite_Integral.pdf odjoqwddoio
1.1_The_Definite_Integral.pdf odjoqwddoio
 
01. Differentiation-Theory & solved example Module-3.pdf
01. Differentiation-Theory & solved example Module-3.pdf01. Differentiation-Theory & solved example Module-3.pdf
01. Differentiation-Theory & solved example Module-3.pdf
 
Solved exercises double integration
Solved exercises double integrationSolved exercises double integration
Solved exercises double integration
 
differentiol equation.pptx
differentiol equation.pptxdifferentiol equation.pptx
differentiol equation.pptx
 
Solution to schrodinger equation with dirac comb potential
Solution to schrodinger equation with dirac comb potential Solution to schrodinger equation with dirac comb potential
Solution to schrodinger equation with dirac comb potential
 
Presentaion 1 Calculus.pptx
Presentaion 1 Calculus.pptxPresentaion 1 Calculus.pptx
Presentaion 1 Calculus.pptx
 
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
 
Advanced Engineering Mathematics Solutions Manual.pdf
Advanced Engineering Mathematics Solutions Manual.pdfAdvanced Engineering Mathematics Solutions Manual.pdf
Advanced Engineering Mathematics Solutions Manual.pdf
 
02 basics i-handout
02 basics i-handout02 basics i-handout
02 basics i-handout
 
Improper integral
Improper integralImproper integral
Improper integral
 
Lecture 5: Stochastic Hydrology
Lecture 5: Stochastic Hydrology Lecture 5: Stochastic Hydrology
Lecture 5: Stochastic Hydrology
 

Mehr von Suddhasheel GHOSH, PhD

Expert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, KanpurExpert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, Kanpur
Suddhasheel GHOSH, PhD
 

Mehr von Suddhasheel GHOSH, PhD (12)

Making presentations with LaTeX: Workshop Day 4
Making presentations with LaTeX: Workshop Day 4Making presentations with LaTeX: Workshop Day 4
Making presentations with LaTeX: Workshop Day 4
 
Typesetting Theses / Reports with LaTeX : Workshop Day 3
Typesetting Theses / Reports with LaTeX : Workshop Day 3Typesetting Theses / Reports with LaTeX : Workshop Day 3
Typesetting Theses / Reports with LaTeX : Workshop Day 3
 
Typesetting Mathematics with LaTeX - Day 2
Typesetting Mathematics with LaTeX - Day 2Typesetting Mathematics with LaTeX - Day 2
Typesetting Mathematics with LaTeX - Day 2
 
Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1
 
Map Calculaton using GRASS
Map Calculaton using GRASSMap Calculaton using GRASS
Map Calculaton using GRASS
 
Watershed Analysis with GRASS
Watershed Analysis with GRASSWatershed Analysis with GRASS
Watershed Analysis with GRASS
 
The LaTeX Workshop: Document design in LaTeX: Invocation
The LaTeX Workshop: Document design in LaTeX: InvocationThe LaTeX Workshop: Document design in LaTeX: Invocation
The LaTeX Workshop: Document design in LaTeX: Invocation
 
The LaTeX Workshop: Typesetting Mathematics with LaTeX
The LaTeX Workshop: Typesetting Mathematics with LaTeXThe LaTeX Workshop: Typesetting Mathematics with LaTeX
The LaTeX Workshop: Typesetting Mathematics with LaTeX
 
Research Prospects with Geoinformatics
Research Prospects with GeoinformaticsResearch Prospects with Geoinformatics
Research Prospects with Geoinformatics
 
Prepare your literature review
Prepare your literature reviewPrepare your literature review
Prepare your literature review
 
Expert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, KanpurExpert Lecture on GPS at UIET, CSJM, Kanpur
Expert Lecture on GPS at UIET, CSJM, Kanpur
 
45324291 a-good-ph d-student
45324291 a-good-ph d-student45324291 a-good-ph d-student
45324291 a-good-ph d-student
 

Kürzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

FEM Introduction: Solving ODE-BVP using the Galerkin's Method

  • 1. Solving ODE-BVP through Galerkin’s Method FEM: Introduction Suddhasheel Ghosh, PhD Department of Civil Engineering Jawaharlal Nehru Engineering College N-6 CIDCO, 431003 Series on Advanced Numerical Methods shudh (JNEC) Concepts MEStru2k1617 1 / 14
  • 2. DiffEq1 Introduction to terminology Given a differential equation Ψ d2 y dx2 , dy dx ,y,x = 0, (1) and the initial conditions, F1 dy dx ,y,x = a = 0 F2 dy dx ,y,x = b = 0 So, given the points a and b, it is desired to find the solution of the differential equation using the Galerkin’s Method. shudh (JNEC) Concepts MEStru2k1617 2 / 14
  • 3. DiffEq1 A second-order Boundary Value Problem A boundary value problem is given as follows: d2 y dx2 + P(x) dx dy + Q(x)y = R(x) along with the conditions y(x = a) = A, y(x = b) = B shudh (JNEC) Concepts MEStru2k1617 3 / 14
  • 4. GM Concept of Linear Independence In Vector Algebra, n vectors, namely v1,v2,...,vn are linearly independent, when n i=1 aivi = 0 ⇐⇒ ai = 0,∀i = 1,...,n Linear independence means that no vector can be expressed as a linear combination of other vectors. This concept of linear independence is not only limited to vectors, but has also been extended to the area of functions and various algebraic polynomials. shudh (JNEC) Concepts MEStru2k1617 4 / 14
  • 5. GM Galerkin’s method I Formulation The Galerkin’s Method is a “weighted-residual” method. We will try to solve the following differential equation: d2 y dx2 + P(x) dy dx + Q(x)y = R(x) with the following boundary conditions y(x = a) = A and y(x = b) = B. Let us assume that the solution is in the form y = α0 + α1x + α2x2 + ··· + αnxn = n i=0 αixi shudh (JNEC) Concepts MEStru2k1617 5 / 14
  • 6. GM Galerkin’s method II Formulation Differentiating the above form, with respect to x, we have: dy dx = n i=0 iαixi−1 (2) d2 y dx2 = n i=0 i(i − 1)αixi−2 (3) Substituting, these into the differential equation we have: n i=0 αi i(i − 1)xi−2 + iP(x)xi−1 + Q(x)xi = R(x) (4) shudh (JNEC) Concepts MEStru2k1617 6 / 14
  • 7. GM Galerkin’s method III Formulation From the boundary conditions, we have n i=0 αiai = A, (5) n i=0 αibi = B (6) We work out the residual function as follows: (x) = n i=0 αi i(i − 1)xi−2 + iP(x)xi−1 + Q(x)xi − R(x) (7) If there are n − 1 unknowns, then there should be n − 1 linearly independent polynomials chosen to be multiplied as weights to the shudh (JNEC) Concepts MEStru2k1617 7 / 14
  • 8. GM Galerkin’s method IV Formulation residual function. Therefore, for each j = 1,...,n − 1, we should have n − 1 equations b a Nj(x) (x)dx = 0 (8) where Nj(x) denotes the jth polynomial. These equations are solved using linear algebra to obtain the values of αi, i = 0,...,n shudh (JNEC) Concepts MEStru2k1617 8 / 14
  • 9. GM Example I Galerkin’s Method Problem: Use the Galerkin’s method to solve the following differential equation: d2 y dx2 − y = x Use the boundary conditions y(x = 0) = 0 and y(x = 1) = 0. (Desai, Eldho, Shah) Solution: Let us assume that the solution to the given differential equation is in the following form, where there are four unknowns: y = α0 + α1x + α2x2 + α3x3 shudh (JNEC) Concepts MEStru2k1617 9 / 14
  • 10. GM Example II Galerkin’s Method From the boundary conditions given, we have α0 + α1(0) + α2(02 ) + α3(03 ) = 0 =⇒ α0 = 0 α0 + α1(1) + α2(12 ) + α3(13 ) = 0 =⇒ α1 + α2 + α3 = 0(or)α3 = −(α1 + α2 We calculate the derivatives as follows: dy dx = α1 + 2α2x + 3α3x2 d2 y dx2 = 2α2 + 6α3x Substituting these into the differential equation, we have the following: α1x + α2(2 − x2 ) + α3(6x − x3 ) = x shudh (JNEC) Concepts MEStru2k1617 10 / 14
  • 11. GM Example III Galerkin’s Method Since α3 = −(α1 + α2), we will have −α1x + α2(2 − x2 ) + (α1 + α2)(x3 − 6x) = x =⇒ α1(x3 − 7x) + α2(x3 − x2 − 6x + 2) = x (9) We can therefore formulate (x) = α1(x3 − 7x) + α2(x3 − x2 − 6x + 2) − x (10) shudh (JNEC) Concepts MEStru2k1617 11 / 14
  • 12. GM Example IV Galerkin’s Method Since there are two unknown parameters here, we will consider two functions N1(x) = x − x2 , and N2(x) = x2 − x3 , as weighting functions. Therefore, 1 0 N1(x) (x)dx = 0 =⇒ −0.5500α1 − 0.1833α2 = 0.0833 1 0 N2(x) (x)dx = 0 =⇒ −0.3262α1 − 0.1429α2 = 0.0500 We will have this system −0.5500 −0.1833 −03262 −0.1429 α1 α2 = 0.0833 0.0500 (11) shudh (JNEC) Concepts MEStru2k1617 12 / 14
  • 13. GM Example V Galerkin’s Method Using this, the relations α3 = −(α1 + α2), and α0 = 0, we have α0 = 0,α1 = −0.1456,α2 = −0.01743,α3 = 0.1631 Therefore, we can say that for our differential equation, we have the following solution: y = −0.1456x − 0.01743x2 + 0.1631x3 shudh (JNEC) Concepts MEStru2k1617 13 / 14
  • 14. GM Thank you! shudh (JNEC) Concepts MEStru2k1617 14 / 14