Boundary-Value Ordinary Differential Equations: CE 601: Numerical Methods
Boundary-Value Ordinary Differential Equations: CE 601: Numerical Methods
Lecture 28
Boundary-Value Ordinary
Differential Equations
Course Coordinator:
Dr. Suresh A. Kartha,
Associate Professor,
Department of Civil Engineering,
IIT Guwahati.
• As suggested, based on the auxiliary
conditions we can define ODE as:
o IV-ODE
o BV-ODE
• Some examples of BV-ODE:
• Beam bending problem
d4y
EI q ( x ); y (0) 0, y ( L) 0, y "(0) 0, y "( L) 0
dx 4
y deflection (dependent variable)
• Heat diffusion in a steel rod:
d 2T 2 2
T Ta
dx 2
T x1 T1
T x2 T2
dy
– Neumann Boundary condition e.g. c2
dx x1
dy
– Mixed Boundary condition e.g. ay(x1 ) b c3
dx x1
The Equilibrium Finite-Difference Method
• We will use the equilibrium finite difference
method to solve the boundary-value ODEs.
– Discretize the entire continuous spatial domain
into smaller discrete grid points.
– Apply the ODE at each grid point.
– Approximate the derivatives at any grid point
using finite difference formulas.
– Obtain the corresponding finite-difference
algebraic equations.
– Solve them
• Consider the following 1-D second-order
linear BV-ODE:
d2y dy
P( x) Q( x) y F ( x); y ( x0 ) y0 , y ( xL ) yL
dx 2 dx
• Now, d2y yi 1 2 yi yi 1
; O( x 2 )
dx 2 i x2
dy yi yi
1 1
; O( x 2 )
dx i 2 x
Ti 1 2Ti Ti 1
i.e. 2
16Ti 320
x
i.e. Ti 1 2Ti Ti 1 Ti 20
i.e. Ti 1 3Ti Ti 1 20 (1)
Eq.(1) is applied at unknown nodes 1,2,3.
At i 1, At i 2, At i 3,
T2 3T1 T0 20 T1 3T2 T3 20 T2 3T3 T4 20
T2 3T1 25 20 T2 3T1 95
3T1 T2 45
3 1 0 T1 45
i.e. 1 3 1 T2 20
0 1 3 T3 95
Solve this system of linear equations to get T1 , T2 , T3 .
• To solve problems with Neumann B.C.s
d2y dy dy
P x Q x y F ( x); y ( x0 ) y0 , m
dx 2 dx dx x L
• The FDE (2) is applied in each node ‘i’:
x x
1 Pi yi 1 2 x 2Qi yi 1 Pi yi 1 Fi x 2
2 2