SlideShare a Scribd company logo
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

More Related Content

What's hot

Finite Element Methods
Finite Element  MethodsFinite Element  Methods
Finite Element Methods
Dr.Vikas Deulgaonkar
 
Engineering Mathematics 2 questions & answers
Engineering Mathematics 2 questions & answersEngineering Mathematics 2 questions & answers
Engineering Mathematics 2 questions & answers
Mzr Zia
 
Finite Element Analysis - UNIT-1
Finite Element Analysis - UNIT-1Finite Element Analysis - UNIT-1
Finite Element Analysis - UNIT-1
propaul
 
Finite element method
Finite element methodFinite element method
Finite element method
Mevada Maulik
 
Finite Element Analysis - UNIT-4
Finite Element Analysis - UNIT-4Finite Element Analysis - UNIT-4
Finite Element Analysis - UNIT-4
propaul
 
First order differential equations
First order differential equationsFirst order differential equations
First order differential equations
Dr.Summiya Parveen
 
Partial Differential Equation - Notes
Partial Differential Equation - NotesPartial Differential Equation - Notes
Partial Differential Equation - Notes
Dr. Nirav Vyas
 
Introduction to finite element analysis
Introduction to finite element analysisIntroduction to finite element analysis
Introduction to finite element analysis
Tarun Gehlot
 
Lecture3
Lecture3Lecture3
Lecture3
Ahmed Al-abdaly
 
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...
vaibhav tailor
 
Principle stresses and planes
Principle stresses and planesPrinciple stresses and planes
Principle stresses and planes
PRAJWAL SHRIRAO
 
An Introduction to the Finite Element Method
An Introduction to the Finite Element MethodAn Introduction to the Finite Element Method
An Introduction to the Finite Element MethodMohammad Tawfik
 
Spline interpolation numerical methods presentation
Spline interpolation numerical methods presentationSpline interpolation numerical methods presentation
Spline interpolation numerical methods presentation
Shohanur Nishad
 
Constant strain triangular
Constant strain triangular Constant strain triangular
Constant strain triangular
rahul183
 
Unit 1 notes-final
Unit 1 notes-finalUnit 1 notes-final
Unit 1 notes-final
jagadish108
 
Finite difference method
Finite difference methodFinite difference method
Finite difference method
Divyansh Verma
 
Finite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal LoadingFinite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal Loading
Mohammad Tawfik
 
Finite Element Analysis
Finite Element Analysis Finite Element Analysis
Finite Element Analysis
Yousef Abujubba
 
Introduction to finite element method(fem)
Introduction to finite element method(fem)Introduction to finite element method(fem)
Introduction to finite element method(fem)
Sreekanth G
 

What's hot (20)

Finite Element Methods
Finite Element  MethodsFinite Element  Methods
Finite Element Methods
 
Engineering Mathematics 2 questions & answers
Engineering Mathematics 2 questions & answersEngineering Mathematics 2 questions & answers
Engineering Mathematics 2 questions & answers
 
Finite Element Analysis - UNIT-1
Finite Element Analysis - UNIT-1Finite Element Analysis - UNIT-1
Finite Element Analysis - UNIT-1
 
Finite element method
Finite element methodFinite element method
Finite element method
 
Finite Element Analysis - UNIT-4
Finite Element Analysis - UNIT-4Finite Element Analysis - UNIT-4
Finite Element Analysis - UNIT-4
 
Chapter 1 (maths 3)
Chapter 1 (maths 3)Chapter 1 (maths 3)
Chapter 1 (maths 3)
 
First order differential equations
First order differential equationsFirst order differential equations
First order differential equations
 
Partial Differential Equation - Notes
Partial Differential Equation - NotesPartial Differential Equation - Notes
Partial Differential Equation - Notes
 
Introduction to finite element analysis
Introduction to finite element analysisIntroduction to finite element analysis
Introduction to finite element analysis
 
Lecture3
Lecture3Lecture3
Lecture3
 
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...
 
Principle stresses and planes
Principle stresses and planesPrinciple stresses and planes
Principle stresses and planes
 
An Introduction to the Finite Element Method
An Introduction to the Finite Element MethodAn Introduction to the Finite Element Method
An Introduction to the Finite Element Method
 
Spline interpolation numerical methods presentation
Spline interpolation numerical methods presentationSpline interpolation numerical methods presentation
Spline interpolation numerical methods presentation
 
Constant strain triangular
Constant strain triangular Constant strain triangular
Constant strain triangular
 
Unit 1 notes-final
Unit 1 notes-finalUnit 1 notes-final
Unit 1 notes-final
 
Finite difference method
Finite difference methodFinite difference method
Finite difference method
 
Finite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal LoadingFinite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal Loading
 
Finite Element Analysis
Finite Element Analysis Finite Element Analysis
Finite Element Analysis
 
Introduction to finite element method(fem)
Introduction to finite element method(fem)Introduction to finite element method(fem)
Introduction to finite element method(fem)
 

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

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
Mohamed Ramadan
 
Bayes gauss
Bayes gaussBayes gauss
Integration techniques
Integration techniquesIntegration techniques
Integration techniquesKrishna Gali
 
MA8353 TPDE
MA8353 TPDEMA8353 TPDE
MA8353 TPDE
rmkceteee
 
Gr 11 equations
Gr 11   equationsGr 11   equations
Gr 11 equations
Renate Rohrs
 
Engr 213 midterm 2b sol 2010
Engr 213 midterm 2b sol 2010Engr 213 midterm 2b sol 2010
Engr 213 midterm 2b sol 2010akabaka12
 
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
NoorYassinHJamel
 
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
 
Solved exercises double integration
Solved exercises double integrationSolved exercises double integration
Solved exercises double integration
Kamel Attar
 
differentiol equation.pptx
differentiol equation.pptxdifferentiol equation.pptx
differentiol equation.pptx
PlanningHCEGC
 
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
slides
 
Presentaion 1 Calculus.pptx
Presentaion 1 Calculus.pptxPresentaion 1 Calculus.pptx
Presentaion 1 Calculus.pptx
MunawarAhmad22
 
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,...
The Statistical and Applied Mathematical Sciences Institute
 
Advanced Engineering Mathematics Solutions Manual.pdf
Advanced Engineering Mathematics Solutions Manual.pdfAdvanced Engineering Mathematics Solutions Manual.pdf
Advanced Engineering Mathematics Solutions Manual.pdf
Whitney Anderson
 
Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010akabaka12
 
02 basics i-handout
02 basics i-handout02 basics i-handout
02 basics i-handout
sheetslibrary
 
Improper integral
Improper integralImproper integral

Similar to 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
 
Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010Engr 213 midterm 2a sol 2010
Engr 213 midterm 2a sol 2010
 
02 basics i-handout
02 basics i-handout02 basics i-handout
02 basics i-handout
 
Improper integral
Improper integralImproper integral
Improper integral
 

More from Suddhasheel GHOSH, PhD

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
Suddhasheel GHOSH, PhD
 
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
Suddhasheel GHOSH, PhD
 
Typesetting Mathematics with LaTeX - Day 2
Typesetting Mathematics with LaTeX - Day 2Typesetting Mathematics with LaTeX - Day 2
Typesetting Mathematics with LaTeX - Day 2
Suddhasheel GHOSH, PhD
 
Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1
Suddhasheel GHOSH, PhD
 
Map Calculaton using GRASS
Map Calculaton using GRASSMap Calculaton using GRASS
Map Calculaton using GRASS
Suddhasheel GHOSH, PhD
 
Watershed Analysis with GRASS
Watershed Analysis with GRASSWatershed Analysis with GRASS
Watershed Analysis with GRASS
Suddhasheel GHOSH, PhD
 
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
Suddhasheel GHOSH, PhD
 
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
Suddhasheel GHOSH, PhD
 
Research Prospects with Geoinformatics
Research Prospects with GeoinformaticsResearch Prospects with Geoinformatics
Research Prospects with Geoinformatics
Suddhasheel GHOSH, PhD
 
Prepare your literature review
Prepare your literature reviewPrepare your literature review
Prepare your literature review
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, KanpurSuddhasheel GHOSH, PhD
 
45324291 a-good-ph d-student
45324291 a-good-ph d-student45324291 a-good-ph d-student
45324291 a-good-ph d-student
Suddhasheel GHOSH, PhD
 

More from 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
 

Recently uploaded

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
ShivajiThube2
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 

Recently uploaded (20)

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.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