SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Downloaden Sie, um offline zu lesen
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


Weitere ähnliche Inhalte

Was ist angesagt?

Finite difference method
Finite difference methodFinite difference method
Finite difference methodDivyansh Verma
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler methodSohaib Butt
 
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
 
Initial value problems
Initial value problemsInitial value problems
Initial value problemsAli Jan Hasan
 
trapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 ruletrapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 rulehitarth shah
 
Gauss Quadrature Formula
Gauss Quadrature FormulaGauss Quadrature Formula
Gauss Quadrature FormulaMaitree Patel
 
Numerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTNumerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTPanchal Anand
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationMohammed_AQ
 
Numerical solution of system of linear equations
Numerical solution of system of linear equationsNumerical solution of system of linear equations
Numerical solution of system of linear equationsreach2arkaELECTRICAL
 
Partial Differential Equations, 3 simple examples
Partial Differential Equations, 3 simple examplesPartial Differential Equations, 3 simple examples
Partial Differential Equations, 3 simple examplesEnrique Valderrama
 
Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Muhammad Waqas
 
partial diffrentialequations
partial diffrentialequationspartial diffrentialequations
partial diffrentialequations8laddu8
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson methodJayesh Ranjan
 
Systems Of Differential Equations
Systems Of Differential EquationsSystems Of Differential Equations
Systems Of Differential EquationsJDagenais
 

Was ist angesagt? (20)

Finite difference method
Finite difference methodFinite difference method
Finite difference method
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler 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
 
Numerical method
Numerical methodNumerical method
Numerical method
 
Initial value problems
Initial value problemsInitial value problems
Initial value problems
 
Jacobi method
Jacobi methodJacobi method
Jacobi method
 
trapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 ruletrapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 rule
 
Numerical Method 2
Numerical Method 2Numerical Method 2
Numerical Method 2
 
Gauss sediel
Gauss sedielGauss sediel
Gauss sediel
 
Gauss Quadrature Formula
Gauss Quadrature FormulaGauss Quadrature Formula
Gauss Quadrature Formula
 
Numerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTNumerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPT
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Numerical solution of system of linear equations
Numerical solution of system of linear equationsNumerical solution of system of linear equations
Numerical solution of system of linear equations
 
Partial Differential Equations, 3 simple examples
Partial Differential Equations, 3 simple examplesPartial Differential Equations, 3 simple examples
Partial Differential Equations, 3 simple examples
 
Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1
 
partial diffrentialequations
partial diffrentialequationspartial diffrentialequations
partial diffrentialequations
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Systems Of Differential Equations
Systems Of Differential EquationsSystems Of Differential Equations
Systems Of Differential Equations
 

Ähnlich wie Initial Value Problems

System of Initial Value Problems
System of Initial Value ProblemsSystem of Initial Value Problems
System of Initial Value ProblemsMohammad Tawfik
 
Newmark Time Integration
Newmark Time IntegrationNewmark Time Integration
Newmark Time IntegrationMohammad Tawfik
 
Roots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsRoots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsMohammad Tawfik
 
Boundary Value Problems - Finite Difference
Boundary Value Problems - Finite DifferenceBoundary Value Problems - Finite Difference
Boundary Value Problems - Finite DifferenceMohammad Tawfik
 
01introductiontocomputationalmaterialengineering 101108031216-phpapp01
01introductiontocomputationalmaterialengineering 101108031216-phpapp0101introductiontocomputationalmaterialengineering 101108031216-phpapp01
01introductiontocomputationalmaterialengineering 101108031216-phpapp01Cem 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) SystemsMohammad Tawfik
 

Ähnlich wie 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
 

Mehr von Mohammad Tawfik

Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Mohammad Tawfik
 
Supply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionSupply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionMohammad Tawfik
 
Supply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsSupply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsMohammad Tawfik
 
Supply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementSupply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementMohammad Tawfik
 
Creative problem solving and decision making
Creative problem solving and decision makingCreative problem solving and decision making
Creative problem solving and decision makingMohammad Tawfik
 
Digital content for teaching introduction
Digital content for teaching introductionDigital content for teaching introduction
Digital content for teaching introductionMohammad Tawfik
 
Crisis Management Basics
Crisis Management BasicsCrisis Management Basics
Crisis Management BasicsMohammad Tawfik
 
Effective Delegation Skills
Effective Delegation SkillsEffective Delegation Skills
Effective Delegation SkillsMohammad Tawfik
 
Business Management - Marketing
Business Management - MarketingBusiness Management - Marketing
Business Management - MarketingMohammad Tawfik
 
Project Management (CAPM) - Integration
Project Management (CAPM) - IntegrationProject Management (CAPM) - Integration
Project Management (CAPM) - IntegrationMohammad Tawfik
 
Project Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkProject Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkMohammad Tawfik
 
Project Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionProject Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionMohammad Tawfik
 
Introduction to Wind Energy
Introduction to Wind EnergyIntroduction to Wind Energy
Introduction to Wind EnergyMohammad 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-DMohammad Tawfik
 

Mehr von 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
 

Kürzlich hochgeladen

BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Kürzlich hochgeladen (20)

BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

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 