SlideShare a Scribd company logo
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Initial Value Problems
Mohammad Tawfik
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Objectives
• Understand the applications of initial-value
problems
• Be able to apply the Euler method for
solving initial value problems
• Be able to apply the Runge-Kutta method
for solving initial value problem
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Example Problem
dt
dv
mmaF 
cvmgFFF UD 
cvmgvm
dt
dv
m  
m
cvmg
v

    mct
e
c
mg
tv /
1 

Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Exact Solution
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Approximate Solution
12
12
tt
vv
t
v
dt
dv






m
cvmg
tt
vv 



12
12
m
cvmg
tt
vv 1
12
12 



Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Approximate Solution
 
m
cvmg
ttvv 1
1212


Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Euler Method
• Given the differential
equation:
• We may write:
• Giving:
 tyf
dt
dy
,
 tyf
t
yy
t
y
dt
dy ttt
,





 
 tytfyy ttt ,
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Example
• Given the differential
equation:
• The exact solution is:
• At t=0, y=2
• Find y(4) using Euler
method with step
t=1
ye
dt
dy t
5.04 8.0

  tt
eety 5.08.0
08.108.3 

Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Solution
ye
dt
dy t
5.04 8.0
  yetyy t
tttt 5.04 8.0
 
 
  5142
5.04 0
0
01

 yeyy  
  4.115.245
5.04
8.0
1
8.0
12


e
yeyy
 
  5.254.11*5.044.11
5.04
6.1
2
2*8.0
23


e
yeyy
 
  8.565.25*5.045.25
5.04
4.2
3
3*8.0
34


e
yeyy
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Convergence!
0
10
20
30
40
50
60
70
80
0 0.5 1 1.5 2 2.5 3 3.5 4
Time
y(t)
Exact
Dt=1.0
Dt=0.5
Dt=0.1
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Runge-Kutta Methods
• The Runge-Kutta methods achieves the
Taylor series accuracy
• Many forms of the method are available;
we will use 2nd order and 3rd order
methods only
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
2nd Order Runge-Kutta method
• For the DE:
• The 2nd order R.K. solution
is:
• Where:
 tyf
dt
dy
,
 21
2
kk
t
yy ttt 


 tyfk t ,1 
 tttkyfk t  ,12
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Example
• Given the differential
equation:
• The exact solution is:
• At t=0, y=2
• Find y(4) using 2nd
order R.K. method
with step t=1
ye
dt
dy t
5.04 8.0

  tt
eety 5.08.0
08.108.3 

Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Solution
• At t=0
32*5.04 0
1  ek
 
  4.61*325.04 108.0
2  
ek
  7.6
2
2101 

 kk
t
yy
• Repeat for all t
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Solution
yk2k1t
20
6.7010826.40216431
16.3197813.685785.5516232
37.1992530.106711.652243
83.3377766.7839625.493084
yk2k1t
20
3.8043254.21729930.5
6.3165385.9837174.0651361
9.9240688.6862255.7438951.5
15.196312.770498.3184342
22.9759418.9045812.213982.5
34.5149228.0876718.068263
51.6768141.8123226.835253.5
77.2385262.3066739.940184
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Convergence
0
10
20
30
40
50
60
70
80
90
0 0.5 1 1.5 2 2.5 3 3.5 4
Time
y(t)
Exact
Dt=1.0
Dt=0.5
Dt=0.1
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
3rd Order Runge-Kutta method
• For the DE:
• The 3rd order R.K.
solution is:
• Where:
 tyf
dt
dy
,
 321 4
6
kkk
t
yy ttt 


 tyfk t ,1 





 



2
,
2
1
2
t
t
tk
yfk t
 tttktkyfk t  ,2 213
Initial Value Problems
Mohammad Tawfik
#WikiCourses
http://WikiCourses.WikiSpaces.com
Assignment
• Solve:
• Given y(0)=1
1. Analytically
2. Using Euler method until t=2, with t=0.5
3. Repeat part 2 using 2nd order RK method
4. Repeat part 2 using 3rd order RK method
5. Repeat parts 2 through 4 using t=0.25
6. Compare results of all parts above
yyt
dt
dy
2.12


More Related Content

What's hot

First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equationNofal Umair
 
Linear differential equation
Linear differential equationLinear differential equation
Linear differential equationPratik Sudra
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
Tarun Gehlot
 
Euler and runge kutta method
Euler and runge kutta methodEuler and runge kutta method
Euler and runge kutta method
ch macharaverriyya naidu
 
Chapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant SystemChapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant System
Attaporn Ninsuwan
 
numerical methods
numerical methodsnumerical methods
numerical methods
HaiderParekh1
 
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve
Mukuldev Khunte
 
A brief introduction to finite difference method
A brief introduction to finite difference methodA brief introduction to finite difference method
A brief introduction to finite difference method
Prateek Jha
 
Inverse laplace transforms
Inverse laplace transformsInverse laplace transforms
Inverse laplace transforms
EngrAbdullahMohamedS
 
Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1
Muhammad Waqas
 
Finite difference method
Finite difference methodFinite difference method
Finite difference method
Divyansh Verma
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
Bijay Mishra
 
introduction to Numerical Analysis
introduction to Numerical Analysisintroduction to Numerical Analysis
introduction to Numerical Analysis
Ghulam Mehdi Sahito
 
Lesson 15: Exponential Growth and Decay (Section 021 slides)
Lesson 15: Exponential Growth and Decay (Section 021 slides)Lesson 15: Exponential Growth and Decay (Section 021 slides)
Lesson 15: Exponential Growth and Decay (Section 021 slides)
Matthew Leingang
 
MILNE'S PREDICTOR CORRECTOR METHOD
MILNE'S PREDICTOR CORRECTOR METHODMILNE'S PREDICTOR CORRECTOR METHOD
MILNE'S PREDICTOR CORRECTOR METHOD
Kavin Raval
 
Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)
Syed Ahmed Zaki
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler method
Sohaib Butt
 

What's hot (20)

First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equation
 
Linear differential equation
Linear differential equationLinear differential equation
Linear differential equation
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
Euler and runge kutta method
Euler and runge kutta methodEuler and runge kutta method
Euler and runge kutta method
 
Chapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant SystemChapter2 - Linear Time-Invariant System
Chapter2 - Linear Time-Invariant System
 
numerical methods
numerical methodsnumerical methods
numerical methods
 
Numerical method
Numerical methodNumerical method
Numerical method
 
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve
 
A brief introduction to finite difference method
A brief introduction to finite difference methodA brief introduction to finite difference method
A brief introduction to finite difference method
 
Unit vi
Unit viUnit vi
Unit vi
 
Inverse laplace transforms
Inverse laplace transformsInverse laplace transforms
Inverse laplace transforms
 
Lagrange’s interpolation formula
Lagrange’s interpolation formulaLagrange’s interpolation formula
Lagrange’s interpolation formula
 
Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1
 
Finite difference method
Finite difference methodFinite difference method
Finite difference method
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
introduction to Numerical Analysis
introduction to Numerical Analysisintroduction to Numerical Analysis
introduction to Numerical Analysis
 
Lesson 15: Exponential Growth and Decay (Section 021 slides)
Lesson 15: Exponential Growth and Decay (Section 021 slides)Lesson 15: Exponential Growth and Decay (Section 021 slides)
Lesson 15: Exponential Growth and Decay (Section 021 slides)
 
MILNE'S PREDICTOR CORRECTOR METHOD
MILNE'S PREDICTOR CORRECTOR METHODMILNE'S PREDICTOR CORRECTOR METHOD
MILNE'S PREDICTOR CORRECTOR METHOD
 
Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler method
 

Similar to Initial Value Problems

System of Initial Value Problems
System of Initial Value ProblemsSystem of Initial Value Problems
System of Initial Value Problems
Mohammad Tawfik
 
Newmark Time Integration
Newmark Time IntegrationNewmark Time Integration
Newmark Time Integration
Mohammad Tawfik
 
Roots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsRoots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open Methods
Mohammad Tawfik
 
Boundary Value Problems - Finite Difference
Boundary Value Problems - Finite DifferenceBoundary Value Problems - Finite Difference
Boundary Value Problems - Finite Difference
Mohammad Tawfik
 
01introductiontocomputationalmaterialengineering 101108031216-phpapp01
01introductiontocomputationalmaterialengineering 101108031216-phpapp0101introductiontocomputationalmaterialengineering 101108031216-phpapp01
01introductiontocomputationalmaterialengineering 101108031216-phpapp01
Cem Güneş
 
11 initial value problems system
11 initial value problems   system11 initial value problems   system
11 initial value problems systemMohammad Tawfik
 
Multiple Degree of Freedom (MDOF) Systems
Multiple Degree of Freedom (MDOF) SystemsMultiple Degree of Freedom (MDOF) Systems
Multiple Degree of Freedom (MDOF) Systems
Mohammad Tawfik
 
Bracketing Methods
Bracketing MethodsBracketing Methods
Bracketing Methods
Mohammad Tawfik
 

Similar to Initial Value Problems (9)

Initial valueproblems
Initial valueproblemsInitial valueproblems
Initial valueproblems
 
System of Initial Value Problems
System of Initial Value ProblemsSystem of Initial Value Problems
System of Initial Value Problems
 
Newmark Time Integration
Newmark Time IntegrationNewmark Time Integration
Newmark Time Integration
 
Roots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsRoots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open Methods
 
Boundary Value Problems - Finite Difference
Boundary Value Problems - Finite DifferenceBoundary Value Problems - Finite Difference
Boundary Value Problems - Finite Difference
 
01introductiontocomputationalmaterialengineering 101108031216-phpapp01
01introductiontocomputationalmaterialengineering 101108031216-phpapp0101introductiontocomputationalmaterialengineering 101108031216-phpapp01
01introductiontocomputationalmaterialengineering 101108031216-phpapp01
 
11 initial value problems system
11 initial value problems   system11 initial value problems   system
11 initial value problems system
 
Multiple Degree of Freedom (MDOF) Systems
Multiple Degree of Freedom (MDOF) SystemsMultiple Degree of Freedom (MDOF) Systems
Multiple Degree of Freedom (MDOF) Systems
 
Bracketing Methods
Bracketing MethodsBracketing Methods
Bracketing Methods
 

More from Mohammad Tawfik

Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073
Mohammad Tawfik
 
Supply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionSupply Chain Management 01 - Introduction
Supply Chain Management 01 - Introduction
Mohammad Tawfik
 
Supply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsSupply Chain Management 02 - Logistics
Supply Chain Management 02 - Logistics
Mohammad Tawfik
 
Supply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementSupply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory Management
Mohammad Tawfik
 
Creative problem solving and decision making
Creative problem solving and decision makingCreative problem solving and decision making
Creative problem solving and decision making
Mohammad Tawfik
 
Digital content for teaching introduction
Digital content for teaching introductionDigital content for teaching introduction
Digital content for teaching introduction
Mohammad Tawfik
 
Crisis Management Basics
Crisis Management BasicsCrisis Management Basics
Crisis Management Basics
Mohammad Tawfik
 
DISC Personality Model
DISC Personality ModelDISC Personality Model
DISC Personality Model
Mohammad Tawfik
 
Training of Trainers
Training of TrainersTraining of Trainers
Training of Trainers
Mohammad Tawfik
 
Effective Delegation Skills
Effective Delegation SkillsEffective Delegation Skills
Effective Delegation Skills
Mohammad Tawfik
 
Train The Trainer
Train The TrainerTrain The Trainer
Train The Trainer
Mohammad Tawfik
 
Business Management - Marketing
Business Management - MarketingBusiness Management - Marketing
Business Management - Marketing
Mohammad Tawfik
 
Stress Management
Stress ManagementStress Management
Stress Management
Mohammad Tawfik
 
Project Management (CAPM) - Integration
Project Management (CAPM) - IntegrationProject Management (CAPM) - Integration
Project Management (CAPM) - Integration
Mohammad Tawfik
 
Project Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkProject Management (CAPM) - The Framework
Project Management (CAPM) - The Framework
Mohammad Tawfik
 
Project Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionProject Management (CAPM) - Introduction
Project Management (CAPM) - Introduction
Mohammad Tawfik
 
The Creative Individual
The Creative IndividualThe Creative Individual
The Creative Individual
Mohammad Tawfik
 
Introduction to Wind Energy
Introduction to Wind EnergyIntroduction to Wind Energy
Introduction to Wind Energy
Mohammad Tawfik
 
Finite Element for Trusses in 2-D
Finite Element for Trusses in 2-DFinite Element for Trusses in 2-D
Finite Element for Trusses in 2-D
Mohammad Tawfik
 
Future of Drones ITW'16
Future of Drones ITW'16Future of Drones ITW'16
Future of Drones ITW'16
Mohammad Tawfik
 

More from Mohammad Tawfik (20)

Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073
 
Supply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionSupply Chain Management 01 - Introduction
Supply Chain Management 01 - Introduction
 
Supply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsSupply Chain Management 02 - Logistics
Supply Chain Management 02 - Logistics
 
Supply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementSupply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory Management
 
Creative problem solving and decision making
Creative problem solving and decision makingCreative problem solving and decision making
Creative problem solving and decision making
 
Digital content for teaching introduction
Digital content for teaching introductionDigital content for teaching introduction
Digital content for teaching introduction
 
Crisis Management Basics
Crisis Management BasicsCrisis Management Basics
Crisis Management Basics
 
DISC Personality Model
DISC Personality ModelDISC Personality Model
DISC Personality Model
 
Training of Trainers
Training of TrainersTraining of Trainers
Training of Trainers
 
Effective Delegation Skills
Effective Delegation SkillsEffective Delegation Skills
Effective Delegation Skills
 
Train The Trainer
Train The TrainerTrain The Trainer
Train The Trainer
 
Business Management - Marketing
Business Management - MarketingBusiness Management - Marketing
Business Management - Marketing
 
Stress Management
Stress ManagementStress Management
Stress Management
 
Project Management (CAPM) - Integration
Project Management (CAPM) - IntegrationProject Management (CAPM) - Integration
Project Management (CAPM) - Integration
 
Project Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkProject Management (CAPM) - The Framework
Project Management (CAPM) - The Framework
 
Project Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionProject Management (CAPM) - Introduction
Project Management (CAPM) - Introduction
 
The Creative Individual
The Creative IndividualThe Creative Individual
The Creative Individual
 
Introduction to Wind Energy
Introduction to Wind EnergyIntroduction to Wind Energy
Introduction to Wind Energy
 
Finite Element for Trusses in 2-D
Finite Element for Trusses in 2-DFinite Element for Trusses in 2-D
Finite Element for Trusses in 2-D
 
Future of Drones ITW'16
Future of Drones ITW'16Future of Drones ITW'16
Future of Drones ITW'16
 

Recently uploaded

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
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
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 

Recently uploaded (20)

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
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
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 

Initial Value Problems

  • 1. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Initial Value Problems Mohammad Tawfik
  • 2. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Objectives • Understand the applications of initial-value problems • Be able to apply the Euler method for solving initial value problems • Be able to apply the Runge-Kutta method for solving initial value problem
  • 3. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Example Problem dt dv mmaF  cvmgFFF UD  cvmgvm dt dv m   m cvmg v      mct e c mg tv / 1  
  • 4. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Exact Solution
  • 5. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Approximate Solution 12 12 tt vv t v dt dv       m cvmg tt vv     12 12 m cvmg tt vv 1 12 12    
  • 6. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Approximate Solution   m cvmg ttvv 1 1212  
  • 7. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Euler Method • Given the differential equation: • We may write: • Giving:  tyf dt dy ,  tyf t yy t y dt dy ttt ,         tytfyy ttt ,
  • 8. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Example • Given the differential equation: • The exact solution is: • At t=0, y=2 • Find y(4) using Euler method with step t=1 ye dt dy t 5.04 8.0    tt eety 5.08.0 08.108.3  
  • 9. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Solution ye dt dy t 5.04 8.0   yetyy t tttt 5.04 8.0       5142 5.04 0 0 01   yeyy     4.115.245 5.04 8.0 1 8.0 12   e yeyy     5.254.11*5.044.11 5.04 6.1 2 2*8.0 23   e yeyy     8.565.25*5.045.25 5.04 4.2 3 3*8.0 34   e yeyy
  • 10. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Convergence! 0 10 20 30 40 50 60 70 80 0 0.5 1 1.5 2 2.5 3 3.5 4 Time y(t) Exact Dt=1.0 Dt=0.5 Dt=0.1
  • 11. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Runge-Kutta Methods • The Runge-Kutta methods achieves the Taylor series accuracy • Many forms of the method are available; we will use 2nd order and 3rd order methods only
  • 12. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com 2nd Order Runge-Kutta method • For the DE: • The 2nd order R.K. solution is: • Where:  tyf dt dy ,  21 2 kk t yy ttt     tyfk t ,1   tttkyfk t  ,12
  • 13. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Example • Given the differential equation: • The exact solution is: • At t=0, y=2 • Find y(4) using 2nd order R.K. method with step t=1 ye dt dy t 5.04 8.0    tt eety 5.08.0 08.108.3  
  • 14. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Solution • At t=0 32*5.04 0 1  ek     4.61*325.04 108.0 2   ek   7.6 2 2101    kk t yy • Repeat for all t
  • 15. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Solution yk2k1t 20 6.7010826.40216431 16.3197813.685785.5516232 37.1992530.106711.652243 83.3377766.7839625.493084 yk2k1t 20 3.8043254.21729930.5 6.3165385.9837174.0651361 9.9240688.6862255.7438951.5 15.196312.770498.3184342 22.9759418.9045812.213982.5 34.5149228.0876718.068263 51.6768141.8123226.835253.5 77.2385262.3066739.940184
  • 16. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Convergence 0 10 20 30 40 50 60 70 80 90 0 0.5 1 1.5 2 2.5 3 3.5 4 Time y(t) Exact Dt=1.0 Dt=0.5 Dt=0.1
  • 17. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com 3rd Order Runge-Kutta method • For the DE: • The 3rd order R.K. solution is: • Where:  tyf dt dy ,  321 4 6 kkk t yy ttt     tyfk t ,1            2 , 2 1 2 t t tk yfk t  tttktkyfk t  ,2 213
  • 18. Initial Value Problems Mohammad Tawfik #WikiCourses http://WikiCourses.WikiSpaces.com Assignment • Solve: • Given y(0)=1 1. Analytically 2. Using Euler method until t=2, with t=0.5 3. Repeat part 2 using 2nd order RK method 4. Repeat part 2 using 3rd order RK method 5. Repeat parts 2 through 4 using t=0.25 6. Compare results of all parts above yyt dt dy 2.12 