SlideShare a Scribd company logo
1 of 15
Numerical Solutions of Differential Equations using
B-Splines
R. C. Mittal
Department of Mathematics,
Indian Institute of Technology Roorkee
Why B-Splines ?
• Splines are piece wise smooth functions
having continuity and differentiability at the
nodes.
• All splines of the same degree form a vector
space defined on an interval.
• B-Splines form basis of vector space of
Spline functions.
• A B-spline function is defined as a spline
function that has minimal support with
respect to a given degree, smoothness, and
domain partition.
Properties of B- Splines
 Non-negativity
 Local support
 Partition of unity, Smoothness, Shape
preserving
 Boundary conditions of various types can
be easily incorporated
Cubic B-Spline
The explicit expression for the cubic B-spline
basis functions is given as follows:


































otherwise
)
,
[
)
,
[
)
,
[
)
,
[
0
)
(
)
(
4
)
(
)
(
4
)
(
)
(
1
)
(
2
1
1
1
1
2
3
2
3
1
3
2
3
1
3
2
3
2
3
3
,
j
j
j
j
j
j
j
j
j
j
j
j
j
j
j
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
h
x
B
Pictorial representation of Zero degree, Linear, Quadratic
and cubic B-spline
Figure 2: Pictorial representation of Cubic B-spline
Coefficient of cubic B-spline and its derivatives at knots
0
2
6
2
12
2
6
0
)
(
"
0
3
0
3
0
)
(
'
0
1
4
1
0
)
(
2
1
1
2
h
h
h
x
j
B
h
h
x
j
B
x
j
B
j
x
j
x
j
x
j
x
j
x
x






B-Splines Based Collocation Method
The approximate solution of a PDE using cubic B-
spline functions can be written as
)
(
)
(
)
(
)
,
( 1
1
1
1 j
j
j
j
j
j
j
j
j
j x
B
c
x
B
c
x
B
c
t
x
U 


 























)
1
2
1
(
6
"
)
1
1
(
3
'
1
4
1
2
j
c
j
c
j
c
j
U
h
j
c
j
c
j
hU
j
c
j
c
j
c
j
U
Description of the Method
Step-1: Consider numerical approximate solution
by using cubic B-spline basis functions as
Step-2: Discretizing the Neumann’s boundary
conditions as





1
1
)
(
)
(
)
,
(
N
j
x
j
B
t
j
c
t
x
U











1
1
)
(
1
)
(
'
)
,
(
1
1
)
(
0
)
0
(
'
)
,
0
(
N
N
j
t
g
N
x
j
B
j
c
t
N
x
x
U
j
t
g
x
j
B
j
c
t
x
x
U
Description of the Method
• So for Neumann’s Conditions
Step-3: Put the values of u(x), u’(x) and u”(x) in
terms of B-Spline functions in the differential
equations as given the table.
Step-4 : By putting collocation points x0 , x1,….,
xN, obtain a system of equations.
)
(
1
3
1
1
)
(
0
3
1
1












t
g
h
N
c
N
c
t
g
h
c
c
Step-5 : Substitute the approximation for boundary
conditions (Dirichlet’s or Neumann’s) in the obtained
equations.
Step-6 : Solve this system to get the solutions.
Note 1: If the given differential equation is linear then
the corresponding obtained system of equations will be
linear. This system can easily be solved by Thomas
algorithm.
If the given differential equations is non-linear then the
obtained system of equations is also non-linear. This
can be solved by Newton-Raphson’s method.
Note – 2 : If given differential equation is a time
dependant partial differential equation , then the
B- Spline approximation coefficients C’s will be
time dependant.
These problems can be solved in two ways :
Method – 1: Replace time derivative by a finite
difference approximation and form system of
equations.
Method – 2 : Form a system of ordinary
differential equations in coefficients C’s. Solve this
system by Runge-Kutta method.
Note – 3 : For time dependant problem, the initial
values of C’s are to be computed from the initial
conditions of the differential equation.
B- Spline Based Galerkin’s Method
Consider a two point boundary value problem
- y” + p(x)y = r(x) in (a, b) with boundary
conditions y(a) = α and y(b) = β.
The weak formulation of this problem is
Suppose we now select B- Splines as basis
functions in [a, b] and are used for local
approximation.
• Cubic Splines-
A typical finite element [xm, xm+1] has
nodes xm, xm+1. Since each cubic B-spline
covers four elements, each element is covered
by four cubic B-splines. In each element, using
the following transformation
x = xm + η dx,
where 0⩽η⩽1, cubic B-spline shape functions
having representations over the element
[xm,xm+1] can be defined as
Dag AMM

More Related Content

Similar to BSplinetalk.pptx

Kulum alin-11 jan2014
Kulum alin-11 jan2014Kulum alin-11 jan2014
Kulum alin-11 jan2014
rolly purnomo
 

Similar to BSplinetalk.pptx (20)

ME6501 Unit 2 geometric modeling
ME6501 Unit 2 geometric modelingME6501 Unit 2 geometric modeling
ME6501 Unit 2 geometric modeling
 
Finite element analysis sdfa ggq rsd vqer fas dd sg fa sd qadas casdasc asdac...
Finite element analysis sdfa ggq rsd vqer fas dd sg fa sd qadas casdasc asdac...Finite element analysis sdfa ggq rsd vqer fas dd sg fa sd qadas casdasc asdac...
Finite element analysis sdfa ggq rsd vqer fas dd sg fa sd qadas casdasc asdac...
 
Bmb12e ppt 1_r
Bmb12e ppt 1_rBmb12e ppt 1_r
Bmb12e ppt 1_r
 
B-spline
B-spline B-spline
B-spline
 
UNIT 2- GEOMETRIC MODELLING
UNIT 2- GEOMETRIC MODELLINGUNIT 2- GEOMETRIC MODELLING
UNIT 2- GEOMETRIC MODELLING
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
 
mesh generation techniqure of structured gridpdf
mesh generation techniqure of structured gridpdfmesh generation techniqure of structured gridpdf
mesh generation techniqure of structured gridpdf
 
CGM-B-SPLINE CURVE.pptx
CGM-B-SPLINE CURVE.pptxCGM-B-SPLINE CURVE.pptx
CGM-B-SPLINE CURVE.pptx
 
Dynamics of actin filaments in the contractile ring
Dynamics of actin filaments in the contractile ringDynamics of actin filaments in the contractile ring
Dynamics of actin filaments in the contractile ring
 
Deep learning book_chap_02
Deep learning book_chap_02Deep learning book_chap_02
Deep learning book_chap_02
 
ge.ppt
ge.pptge.ppt
ge.ppt
 
Geometric Curves
Geometric Curves Geometric Curves
Geometric Curves
 
machine learning.pptx
machine learning.pptxmachine learning.pptx
machine learning.pptx
 
Least Square Optimization and Sparse-Linear Solver
Least Square Optimization and Sparse-Linear SolverLeast Square Optimization and Sparse-Linear Solver
Least Square Optimization and Sparse-Linear Solver
 
Fst ch2 notes
Fst ch2 notesFst ch2 notes
Fst ch2 notes
 
Linear programming: A Geometric Approach
Linear programming: A Geometric ApproachLinear programming: A Geometric Approach
Linear programming: A Geometric Approach
 
Fundamentals of quantum computing part i rev
Fundamentals of quantum computing   part i revFundamentals of quantum computing   part i rev
Fundamentals of quantum computing part i rev
 
Regression Analysis.pdf
Regression Analysis.pdfRegression Analysis.pdf
Regression Analysis.pdf
 
Kulum alin-11 jan2014
Kulum alin-11 jan2014Kulum alin-11 jan2014
Kulum alin-11 jan2014
 

Recently uploaded

VIII.1 Nursing Interventions to Promote Healthy Psychological responses, SELF...
VIII.1 Nursing Interventions to Promote Healthy Psychological responses, SELF...VIII.1 Nursing Interventions to Promote Healthy Psychological responses, SELF...
VIII.1 Nursing Interventions to Promote Healthy Psychological responses, SELF...
JRRolfNeuqelet
 
Failure to thrive in neonates and infants + pediatric case.pptx
Failure to thrive in neonates and infants  + pediatric case.pptxFailure to thrive in neonates and infants  + pediatric case.pptx
Failure to thrive in neonates and infants + pediatric case.pptx
claviclebrown44
 

Recently uploaded (20)

JOURNAL CLUB PRESENTATION TEMPLATE DOCUMENT
JOURNAL CLUB PRESENTATION TEMPLATE DOCUMENTJOURNAL CLUB PRESENTATION TEMPLATE DOCUMENT
JOURNAL CLUB PRESENTATION TEMPLATE DOCUMENT
 
Tips and tricks to pass the cardiovascular station for PACES exam
Tips and tricks to pass the cardiovascular station for PACES examTips and tricks to pass the cardiovascular station for PACES exam
Tips and tricks to pass the cardiovascular station for PACES exam
 
Stereochemistry & Asymmetric Synthesis.pptx
Stereochemistry & Asymmetric Synthesis.pptxStereochemistry & Asymmetric Synthesis.pptx
Stereochemistry & Asymmetric Synthesis.pptx
 
ROSE CASE SPINAL SBRT BY DR KANHU CHARAN PATRO
ROSE  CASE SPINAL SBRT BY DR KANHU CHARAN PATROROSE  CASE SPINAL SBRT BY DR KANHU CHARAN PATRO
ROSE CASE SPINAL SBRT BY DR KANHU CHARAN PATRO
 
Treatment Choices for Slip Disc at Gokuldas Hospital
Treatment Choices for Slip Disc at Gokuldas HospitalTreatment Choices for Slip Disc at Gokuldas Hospital
Treatment Choices for Slip Disc at Gokuldas Hospital
 
The Clean Living Project Episode 24 - Subconscious
The Clean Living Project Episode 24 - SubconsciousThe Clean Living Project Episode 24 - Subconscious
The Clean Living Project Episode 24 - Subconscious
 
Mgr university bsc nursing adult health previous question paper with answers
Mgr university  bsc nursing adult health previous question paper with answersMgr university  bsc nursing adult health previous question paper with answers
Mgr university bsc nursing adult health previous question paper with answers
 
Young & Hot Surat ℂall Girls Vesu 8527049040 WhatsApp AnyTime Best Surat ℂall...
Young & Hot Surat ℂall Girls Vesu 8527049040 WhatsApp AnyTime Best Surat ℂall...Young & Hot Surat ℂall Girls Vesu 8527049040 WhatsApp AnyTime Best Surat ℂall...
Young & Hot Surat ℂall Girls Vesu 8527049040 WhatsApp AnyTime Best Surat ℂall...
 
VIII.1 Nursing Interventions to Promote Healthy Psychological responses, SELF...
VIII.1 Nursing Interventions to Promote Healthy Psychological responses, SELF...VIII.1 Nursing Interventions to Promote Healthy Psychological responses, SELF...
VIII.1 Nursing Interventions to Promote Healthy Psychological responses, SELF...
 
VIP ℂall Girls Kandivali west Mumbai 8250077686 WhatsApp: Me All Time Serviℂe...
VIP ℂall Girls Kandivali west Mumbai 8250077686 WhatsApp: Me All Time Serviℂe...VIP ℂall Girls Kandivali west Mumbai 8250077686 WhatsApp: Me All Time Serviℂe...
VIP ℂall Girls Kandivali west Mumbai 8250077686 WhatsApp: Me All Time Serviℂe...
 
Hi Fi * Surat ℂall Girls Surat Dumas Road 8527049040 WhatsApp AnyTime Best Su...
Hi Fi * Surat ℂall Girls Surat Dumas Road 8527049040 WhatsApp AnyTime Best Su...Hi Fi * Surat ℂall Girls Surat Dumas Road 8527049040 WhatsApp AnyTime Best Su...
Hi Fi * Surat ℂall Girls Surat Dumas Road 8527049040 WhatsApp AnyTime Best Su...
 
Bangalore whatsapp Number Just VIP Brookefield 100% Genuine at your Door Step
Bangalore whatsapp Number Just VIP Brookefield 100% Genuine at your Door StepBangalore whatsapp Number Just VIP Brookefield 100% Genuine at your Door Step
Bangalore whatsapp Number Just VIP Brookefield 100% Genuine at your Door Step
 
Unveiling Alcohol Withdrawal Syndrome: exploring it's hidden depths
Unveiling Alcohol Withdrawal Syndrome: exploring it's hidden depthsUnveiling Alcohol Withdrawal Syndrome: exploring it's hidden depths
Unveiling Alcohol Withdrawal Syndrome: exploring it's hidden depths
 
Kamrej + ℂall Girls Serviℂe Surat (Adult Only) 8849756361 Esℂort Serviℂe 24x7...
Kamrej + ℂall Girls Serviℂe Surat (Adult Only) 8849756361 Esℂort Serviℂe 24x7...Kamrej + ℂall Girls Serviℂe Surat (Adult Only) 8849756361 Esℂort Serviℂe 24x7...
Kamrej + ℂall Girls Serviℂe Surat (Adult Only) 8849756361 Esℂort Serviℂe 24x7...
 
Gross Anatomy and Histology of Tongue by Dr. Rabia Inam Gandapore.pptx
Gross Anatomy and Histology of Tongue by Dr. Rabia Inam Gandapore.pptxGross Anatomy and Histology of Tongue by Dr. Rabia Inam Gandapore.pptx
Gross Anatomy and Histology of Tongue by Dr. Rabia Inam Gandapore.pptx
 
Failure to thrive in neonates and infants + pediatric case.pptx
Failure to thrive in neonates and infants  + pediatric case.pptxFailure to thrive in neonates and infants  + pediatric case.pptx
Failure to thrive in neonates and infants + pediatric case.pptx
 
^In Pietermaritzburg Hager Werken Embalming +27789155305 Compound Powder in ...
^In Pietermaritzburg  Hager Werken Embalming +27789155305 Compound Powder in ...^In Pietermaritzburg  Hager Werken Embalming +27789155305 Compound Powder in ...
^In Pietermaritzburg Hager Werken Embalming +27789155305 Compound Powder in ...
 
Report Back from SGO: What’s the Latest in Ovarian Cancer?
Report Back from SGO: What’s the Latest in Ovarian Cancer?Report Back from SGO: What’s the Latest in Ovarian Cancer?
Report Back from SGO: What’s the Latest in Ovarian Cancer?
 
Video capsule endoscopy (VCE ) in children
Video capsule endoscopy (VCE ) in childrenVideo capsule endoscopy (VCE ) in children
Video capsule endoscopy (VCE ) in children
 
Sell 5cladba adbb JWH-018 5FADB in stock
Sell 5cladba adbb JWH-018 5FADB in stockSell 5cladba adbb JWH-018 5FADB in stock
Sell 5cladba adbb JWH-018 5FADB in stock
 

BSplinetalk.pptx

  • 1. Numerical Solutions of Differential Equations using B-Splines R. C. Mittal Department of Mathematics, Indian Institute of Technology Roorkee
  • 2. Why B-Splines ? • Splines are piece wise smooth functions having continuity and differentiability at the nodes. • All splines of the same degree form a vector space defined on an interval. • B-Splines form basis of vector space of Spline functions. • A B-spline function is defined as a spline function that has minimal support with respect to a given degree, smoothness, and domain partition.
  • 3. Properties of B- Splines  Non-negativity  Local support  Partition of unity, Smoothness, Shape preserving  Boundary conditions of various types can be easily incorporated
  • 4. Cubic B-Spline The explicit expression for the cubic B-spline basis functions is given as follows:                                   otherwise ) , [ ) , [ ) , [ ) , [ 0 ) ( ) ( 4 ) ( ) ( 4 ) ( ) ( 1 ) ( 2 1 1 1 1 2 3 2 3 1 3 2 3 1 3 2 3 2 3 3 , j j j j j j j j j j j j j j j x x x x x x x x x x x x x x x x x x x x x x x x h x B
  • 5. Pictorial representation of Zero degree, Linear, Quadratic and cubic B-spline
  • 6. Figure 2: Pictorial representation of Cubic B-spline
  • 7. Coefficient of cubic B-spline and its derivatives at knots 0 2 6 2 12 2 6 0 ) ( " 0 3 0 3 0 ) ( ' 0 1 4 1 0 ) ( 2 1 1 2 h h h x j B h h x j B x j B j x j x j x j x j x x      
  • 8. B-Splines Based Collocation Method The approximate solution of a PDE using cubic B- spline functions can be written as ) ( ) ( ) ( ) , ( 1 1 1 1 j j j j j j j j j j x B c x B c x B c t x U                             ) 1 2 1 ( 6 " ) 1 1 ( 3 ' 1 4 1 2 j c j c j c j U h j c j c j hU j c j c j c j U
  • 9. Description of the Method Step-1: Consider numerical approximate solution by using cubic B-spline basis functions as Step-2: Discretizing the Neumann’s boundary conditions as      1 1 ) ( ) ( ) , ( N j x j B t j c t x U            1 1 ) ( 1 ) ( ' ) , ( 1 1 ) ( 0 ) 0 ( ' ) , 0 ( N N j t g N x j B j c t N x x U j t g x j B j c t x x U
  • 10. Description of the Method • So for Neumann’s Conditions Step-3: Put the values of u(x), u’(x) and u”(x) in terms of B-Spline functions in the differential equations as given the table. Step-4 : By putting collocation points x0 , x1,…., xN, obtain a system of equations. ) ( 1 3 1 1 ) ( 0 3 1 1             t g h N c N c t g h c c
  • 11. Step-5 : Substitute the approximation for boundary conditions (Dirichlet’s or Neumann’s) in the obtained equations. Step-6 : Solve this system to get the solutions. Note 1: If the given differential equation is linear then the corresponding obtained system of equations will be linear. This system can easily be solved by Thomas algorithm. If the given differential equations is non-linear then the obtained system of equations is also non-linear. This can be solved by Newton-Raphson’s method.
  • 12. Note – 2 : If given differential equation is a time dependant partial differential equation , then the B- Spline approximation coefficients C’s will be time dependant. These problems can be solved in two ways : Method – 1: Replace time derivative by a finite difference approximation and form system of equations. Method – 2 : Form a system of ordinary differential equations in coefficients C’s. Solve this system by Runge-Kutta method. Note – 3 : For time dependant problem, the initial values of C’s are to be computed from the initial conditions of the differential equation.
  • 13. B- Spline Based Galerkin’s Method Consider a two point boundary value problem - y” + p(x)y = r(x) in (a, b) with boundary conditions y(a) = α and y(b) = β. The weak formulation of this problem is
  • 14. Suppose we now select B- Splines as basis functions in [a, b] and are used for local approximation. • Cubic Splines- A typical finite element [xm, xm+1] has nodes xm, xm+1. Since each cubic B-spline covers four elements, each element is covered by four cubic B-splines. In each element, using the following transformation x = xm + η dx,
  • 15. where 0⩽η⩽1, cubic B-spline shape functions having representations over the element [xm,xm+1] can be defined as Dag AMM