Professional Documents
Culture Documents
1
Specific Aims
Applications
Multiple questions
Exercises
2
Applications
Science and Engineering
Introduction of BVP
Problems involving second and higher order differential
equations, we may prescribed the conditions at two or more
points. Such problems are called boundary value problems
(BVP).
3
Forward difference formula
′ 1
For first order 𝑦 = ( 𝑦 𝑛 +1 − 𝑦 𝑛 )
h
1
′′
For second order 𝑦 = 2 ( 𝑦 𝑛+2 − 2 𝑦 𝑛+1+ 𝑦 𝑛 )
h
′′ ′ 1
For third order 𝑦 = 𝑦 − 3 𝑦 𝑛+2 +3 𝑦 𝑛 +1 − 𝑦 𝑛 )
3 ( 𝑛+3
h
4
Backward difference formulas:
′ 1
For first order 𝑦 = ( 𝑦 𝑛 − 𝑦 𝑛 − 1)
h
1
′′
For second order 𝑦 = 2 ( 𝑦 𝑛 − 2 𝑦 𝑛 − 1+ 𝑦 𝑛 − 2 )
h
′′ ′ 1
For third order 𝑦 = 𝑦 −3 𝑦 𝑛 − 1+3 𝑦 𝑛 −2 − 𝑦 𝑛 −3 )
3( 𝑛
h
5
Central difference formulas:
′ 1
For first order 𝑦= ( 𝑦 𝑛+1 − 𝑦 𝑛 −1 )
2h
1′′
For second order 𝑦 = 2 ( 𝑦 𝑛+1 − 2 𝑦 𝑛+ 𝑦 𝑛 − 1 )
h
′′ ′ 1
For third order 𝑦 = 𝑦 −2 𝑦 𝑛 +1 +2 𝑦 𝑛 −1 − 𝑦 𝑛 −2 )
3 ( 𝑛 +2
2h
6
Examples
Question 1#: Consider the boundary value problem
𝑦 ′ ′ − 𝑦 ′ =1 , 𝑦 ( 0 ) =1 , 𝑦 (1)=2 ( 𝑒 −1 )
(a) Derive a recurrence relation using three points central
difference approximations with
(b) Using the above finite difference formula solve the
above BVP.
Solution:
(a) Using central difference formulas, we have
1
𝑦′= ( 𝑦 𝑛+1 − 𝑦 𝑛 −1 )
2h
1
𝑦′′ = 𝑦 − 2 𝑦 𝑛+ 𝑦 𝑛 − 1 )
2 ( 𝑛+1
h
7
Given ODE is
𝑦 ′ ′ − 𝑦 ′ =1
Or,
Taking ,
Or
Or
Or
8
(b)
With , the nodal points are .
For ,
For ,
9
Question 2#: Given that , where .
(a) Use three point central difference formula for
derivative to derive a recurrence relation for the above
IVP.
(b)Estimate the values of y at using this recurrence
relation.
10
Using three point central difference formula for derivatives
with the differential equation at we have
2
𝑦 𝑛+1 = 𝑦 𝑛 − 1+ 2 h ( 2 𝑥 𝑛 𝑦 − 𝑦 𝑛 ) 𝑛
(b)
For with the starting values . For getting the values of
and , apply Runge-Kutta four order method. Here same ODE is
used with same initial condition.
11
where
Now
[Since ]
[Since ,
12
[Since ]
¿ −0.1476
[Since ,
= -0.1476, h=0.2]
[Since ]
¿ −0.1509
13
[Since , = - , h=0.2]
[Since ]
¿ −0.1121
Therefore,
14
Substituting the values of , , , and , we get
¿ 0.8485
We get,
Taking ,
15
Taking ,
[Since h=0.2, ]
Outcomes
Numerically solved ODE with conditions by using Finite
difference method.
16
Multiple questions:
S.No. Questions
1
1 Which formula refers to central difference formula of second derivative?
(a) ,
(b)
(c) Both of them,
(d) None of them
2 Which formula refers to central difference formula of first derivative?
(a) ,
2 (b)
3 Which formula refers to forward difference formula of second derivative?
(a) ,
(b) ,
(c) Both of them
3
4 Which formula refers to backward difference formula of second derivative?
(a) ,
(b) ,
(c) None of them
17
Try to do yourself
Exercise 1: Consider the boundary value problem