SlideShare a Scribd company logo
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Boundary Value Problems
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Objectives
• Applying finite difference as a numerical
method for differentiation
• Solve a Boundary Value Problem using
finite difference method
• Applying weighted residual methods for
the solution of BVP’s
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Numerical Differentiation
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Numerical Differentiation
• In most of the practical applications, the
differentiation of the function does not present a
great challenge!
• In some cases, the differentiation becomes very
expensive in terms of the computational
requirements
• If you are using the computer, you need to teach
it how to differentiate!!!
• If the function is given in the form of a table,
what are you going to do?!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Numerical Differentiation
• In the previous lectures, we learned that the
slope of the function may be approximated by a
difference expression
• Recall, the parachutist:
• Note that this evaluates the derivative at the
starting point in terms of what is going to happen
in the future!
12
12
tt
vv
t
v
dt
dv
−
−
=
∆
∆
≈
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Forward Difference
• When you evaluate the slope at some
point in terms of the value of the function
at higher values of time/space, then we
call this forward difference
t
vv
tt
vv
dt
dv
tt ∆
−
=
−
−
≈
=
12
12
12
1
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
How about the second derivative?
• The second derivative of a function is
defined as the rate of change of slope.








−
∆
≈
=== 121
1
2
2
tttttt
dt
dv
dt
dv
tdt
vd
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Substitute for the 1st
derivative








−
∆
≈
=== 121
1
2
2
tttttt
dt
dv
dt
dv
tdt
vd






∆
−
−
∆
−
∆
≈
=
t
vv
t
vv
tdt
vd
tt
1223
2
2
1
1
2
123
2
2
2
1
t
vvv
dt
vd
tt
∆
+−
≈
=
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Backward Difference
• When you evaluate the slope at some point in
terms of the value of the function at lower
values of time/space, then we call this backward
difference
• Note that this is the same formula for the forward
difference!
t
vv
tt
vv
dt
dv
tt ∆
−
=
−
−
≈
=
21
21
21
2
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
How about the second derivative?
• The second derivative of a function is
defined as the rate of change of slope.








−
∆
≈
=== 212
1
2
2
tttttt
dt
dv
dt
dv
tdt
vd
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Substitute for the 1st
derivative








−
∆
≈
=== 212
1
2
2
tttttt
dt
dv
dt
dv
tdt
vd






∆
−
−
∆
−
∆
≈
=
t
vv
t
vv
tdt
vd
tt
2110
2
2
1
2
2
210
2
2
2
2
t
vvv
dt
vd
tt
∆
+−
≈
=
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Central Difference
• If you know some information about the
previous and the upcoming points, why
don’t you make use of it?
t
vv
tt
vv
dt
dv
tt ∆
−
=
−
−
≈
= 2
02
02
02
1
2
012
2
2
2
1
t
vvv
dt
vd
tt
∆
+−
≈
=
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Applications
Finite Difference
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Finite Difference
• The finite difference is a direct application
of the numerical differentiation.
• Substitute each derivative in a DE by its
FD equivalent to transform the differential
equation into difference equation
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Example: The Parachutist
• The DE is:
• Applying the FD
relation:
• You get the
Euler formula!
m
cvmg
v
−
=
m
cv
g
t
vv
dt
dv
−=
∆
−
≈ 12






−∆+=
m
cv
gtvv 1
12
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Example: Heat transfer problem
dx
q1=-kAdT/dx
q2=q1+(dq1/dx)dx
q3=hPdx(T-Ta)
Tin Tout
0 L x
Ta
d2
T/dx2
- b2
T = -b2
Ta
Area A
Perim. P
(b2
= hP/kA)
We need 2 conditions: T(0) = Tin; T(L) = Tout
Conditions at 2 boundaries: Boundary value problemBoundary value problem
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Finite difference methods
Discretize into n sub-domains
0 x1 x2 xn=Lxn-1
(equidistant for simplicity)
Approximate derivatives using neighboring points
d2
T/dx2
|i ≈ (Ti-1-2Ti+Ti+1)/h2
h
Apply equation at each internal point:
(Ti-1-2Ti+Ti+1)/h2
- b2
Ti = -b2
Ta Solve n-1 equations in n-1 unknowns
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Homework #10
• Chapter 27, p. 779, numbers 27.1, 27.3
• Due week 26 May 2007

More Related Content

PDF
Boundary Value Problems - Finite Difference
PDF
Regression
PDF
Newmark Time Integration
PDF
System of Initial Value Problems
PDF
Initial valueproblems
PDF
FEM: 2-D Problems
PDF
Initial Value Problems
PDF
Bracketing Methods
Boundary Value Problems - Finite Difference
Regression
Newmark Time Integration
System of Initial Value Problems
Initial valueproblems
FEM: 2-D Problems
Initial Value Problems
Bracketing Methods

What's hot (6)

PDF
FEM: Element Equations
PDF
Numerical Integration
PDF
Interpolation Methods
PDF
FEM: Beams
PDF
Roots of Nonlinear Equations - Open Methods
PDF
FEM: Bars and Trusses
FEM: Element Equations
Numerical Integration
Interpolation Methods
FEM: Beams
Roots of Nonlinear Equations - Open Methods
FEM: Bars and Trusses
Ad

Similar to 12 boundary value problem (20)

PDF
Diff eq
PDF
Numerical_PDE_Paper
DOCX
Chapter24rev1.pptPart 6Chapter 24Boundary-Valu.docx
PDF
Numerical Differentiations Solved examples
PPTX
Numerical differentiation and integration
PPTX
Complex Variable & Numerical Method
PPTX
Numerical Analysis and Its application to Boundary Value Problems
PDF
Partial Derivatives Numerical Methods Chapter 2
PDF
engineeringmathematics-iv_unit-iv
PDF
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-IV
PDF
Study Material Numerical Differentiation and Integration
PPTX
Teoria Matematica de Numeros Derivadas e Integrales
PPT
numerical_differentiations.ppt
PPT
numerical_differentiations:Exploring Numerical Differentiation: Techniques, A...
PDF
Applications Of MATLAB Ordinary Differential Equations (ODE
PDF
Math 2207_Lecture - 9.pdf(Numerical Analysis
PDF
Home work II
PPT
Solution of BVP (numerical methods) .ppt
PPTX
Numerical analysis (15 umtc64)
PPTX
Numerical analysis
Diff eq
Numerical_PDE_Paper
Chapter24rev1.pptPart 6Chapter 24Boundary-Valu.docx
Numerical Differentiations Solved examples
Numerical differentiation and integration
Complex Variable & Numerical Method
Numerical Analysis and Its application to Boundary Value Problems
Partial Derivatives Numerical Methods Chapter 2
engineeringmathematics-iv_unit-iv
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-IV
Study Material Numerical Differentiation and Integration
Teoria Matematica de Numeros Derivadas e Integrales
numerical_differentiations.ppt
numerical_differentiations:Exploring Numerical Differentiation: Techniques, A...
Applications Of MATLAB Ordinary Differential Equations (ODE
Math 2207_Lecture - 9.pdf(Numerical Analysis
Home work II
Solution of BVP (numerical methods) .ppt
Numerical analysis (15 umtc64)
Numerical analysis
Ad

More from Mohammad Tawfik (20)

PDF
Supply Chain Management for Engineers - INDE073
PDF
Supply Chain Management 01 - Introduction
PDF
Supply Chain Management 02 - Logistics
PDF
Supply Chain Management 03 - Inventory Management
PDF
Creative problem solving and decision making
PDF
Digital content for teaching introduction
PDF
Crisis Management Basics
PDF
DISC Personality Model
PDF
Training of Trainers
PDF
Effective Delegation Skills
PDF
Train The Trainer
PDF
Business Management - Marketing
PDF
Stress Management
PDF
Project Management (CAPM) - Integration
PDF
Project Management (CAPM) - The Framework
PDF
Project Management (CAPM) - Introduction
PDF
The Creative Individual
PDF
Introduction to Wind Energy
PDF
Finite Element for Trusses in 2-D
PDF
Future of Drones ITW'16
Supply Chain Management for Engineers - INDE073
Supply Chain Management 01 - Introduction
Supply Chain Management 02 - Logistics
Supply Chain Management 03 - Inventory Management
Creative problem solving and decision making
Digital content for teaching introduction
Crisis Management Basics
DISC Personality Model
Training of Trainers
Effective Delegation Skills
Train The Trainer
Business Management - Marketing
Stress Management
Project Management (CAPM) - Integration
Project Management (CAPM) - The Framework
Project Management (CAPM) - Introduction
The Creative Individual
Introduction to Wind Energy
Finite Element for Trusses in 2-D
Future of Drones ITW'16

12 boundary value problem

  • 1. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Boundary Value Problems
  • 2. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Objectives • Applying finite difference as a numerical method for differentiation • Solve a Boundary Value Problem using finite difference method • Applying weighted residual methods for the solution of BVP’s
  • 3. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Numerical Differentiation
  • 4. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Numerical Differentiation • In most of the practical applications, the differentiation of the function does not present a great challenge! • In some cases, the differentiation becomes very expensive in terms of the computational requirements • If you are using the computer, you need to teach it how to differentiate!!! • If the function is given in the form of a table, what are you going to do?!
  • 5. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Numerical Differentiation • In the previous lectures, we learned that the slope of the function may be approximated by a difference expression • Recall, the parachutist: • Note that this evaluates the derivative at the starting point in terms of what is going to happen in the future! 12 12 tt vv t v dt dv − − = ∆ ∆ ≈
  • 6. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Forward Difference • When you evaluate the slope at some point in terms of the value of the function at higher values of time/space, then we call this forward difference t vv tt vv dt dv tt ∆ − = − − ≈ = 12 12 12 1
  • 7. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik How about the second derivative? • The second derivative of a function is defined as the rate of change of slope.         − ∆ ≈ === 121 1 2 2 tttttt dt dv dt dv tdt vd
  • 8. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Substitute for the 1st derivative         − ∆ ≈ === 121 1 2 2 tttttt dt dv dt dv tdt vd       ∆ − − ∆ − ∆ ≈ = t vv t vv tdt vd tt 1223 2 2 1 1 2 123 2 2 2 1 t vvv dt vd tt ∆ +− ≈ =
  • 9. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Backward Difference • When you evaluate the slope at some point in terms of the value of the function at lower values of time/space, then we call this backward difference • Note that this is the same formula for the forward difference! t vv tt vv dt dv tt ∆ − = − − ≈ = 21 21 21 2
  • 10. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik How about the second derivative? • The second derivative of a function is defined as the rate of change of slope.         − ∆ ≈ === 212 1 2 2 tttttt dt dv dt dv tdt vd
  • 11. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Substitute for the 1st derivative         − ∆ ≈ === 212 1 2 2 tttttt dt dv dt dv tdt vd       ∆ − − ∆ − ∆ ≈ = t vv t vv tdt vd tt 2110 2 2 1 2 2 210 2 2 2 2 t vvv dt vd tt ∆ +− ≈ =
  • 12. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Central Difference • If you know some information about the previous and the upcoming points, why don’t you make use of it? t vv tt vv dt dv tt ∆ − = − − ≈ = 2 02 02 02 1 2 012 2 2 2 1 t vvv dt vd tt ∆ +− ≈ =
  • 13. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Applications Finite Difference
  • 14. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Finite Difference • The finite difference is a direct application of the numerical differentiation. • Substitute each derivative in a DE by its FD equivalent to transform the differential equation into difference equation
  • 15. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Example: The Parachutist • The DE is: • Applying the FD relation: • You get the Euler formula! m cvmg v − = m cv g t vv dt dv −= ∆ − ≈ 12       −∆+= m cv gtvv 1 12
  • 16. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Example: Heat transfer problem dx q1=-kAdT/dx q2=q1+(dq1/dx)dx q3=hPdx(T-Ta) Tin Tout 0 L x Ta d2 T/dx2 - b2 T = -b2 Ta Area A Perim. P (b2 = hP/kA) We need 2 conditions: T(0) = Tin; T(L) = Tout Conditions at 2 boundaries: Boundary value problemBoundary value problem
  • 17. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Finite difference methods Discretize into n sub-domains 0 x1 x2 xn=Lxn-1 (equidistant for simplicity) Approximate derivatives using neighboring points d2 T/dx2 |i ≈ (Ti-1-2Ti+Ti+1)/h2 h Apply equation at each internal point: (Ti-1-2Ti+Ti+1)/h2 - b2 Ti = -b2 Ta Solve n-1 equations in n-1 unknowns
  • 18. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Homework #10 • Chapter 27, p. 779, numbers 27.1, 27.3 • Due week 26 May 2007