SlideShare a Scribd company logo
1 of 42
Download to read offline
1
Chapter 25ODE : Initial-value problem 1
2
When dealing with an nth-order differential
equation, n conditions are required to obtain a
unique solution.
If all conditions are specified at the same value of
the independent variable (for example, at x or t = 0),
then the problem is called an initial-value problem.
This is in contrast to boundary-value problems
where specification of conditions occurs at different
values of the independent variable.
3
The Unified Form of Solving ODE
( )dxyx,fdy =
( )hh,y,xyy iii1i φ+=+
Depending on function φφφφ, there are different solutions.
The Runge-Kutta methods are the most popular.
00ii xxatyconditioninitialandxxh =−= +1
( )yx,f
dx
dy
=
4
The Euler’s Method
( )ii
xx
y,xf
dx
dy
i
==
=
φ
Error estimate:
( )
n
n
n
i2i
iii Rh
n!
y
h
2!
y
hyyy +++
′′
+′+=+ L1
( ) ( ) ( ) ( )( )
n
nii
1-n
3ii2ii
iiii Rh
n!
y,xf
h
3!
y,xf
h
2!
y,xf
hy,xfyy ++
′′
+
′
++=+ L1
Et = Et,2 + Et,3 + … + Et,n
Differential equation
evaluated at xi and yi
5
Example 1 of Euler’s Method
6
7
Example 2
8
9
X0 =
y0 =
X1 =
Example 3
10
11
12
13
14
General Idea of Runge-Kutta Methods
Given the order n, the coefficients ai, pi, and qij are determined by equaling
terms to the Taylor series.
( )hh,y,xyy iiii φ+=+1
15
16
Various 2nd-order Runge-Kutta Methods
17
18
Example 4
19
20
21
22
Comparison of Various 2nd-order RK Methods
Integrate f(x,y) = -2x3 + 12x2 – 20x + 8.5
from x = 0 to x = 4 using a step size of 0.5, with initial condition y = 1 at x = 0.
23
24
Classical 4th-order RK Method
25
26
27
Example
28
29
30
31
Classical 5th-order RK Method
32
Comparison of RK Methods of Different Orders
Integrate f(x,y) = 4e0.8x – 0.5y
with y(0) = 2 from x = a = 0 to x = b = 4 using various step sizes. Compare the accuracy of the
various methods for the result at x = 4 based on the exact answer of y(4) = 75.33896
h
ab
nEffort f
−
=
nf is the number of function evaluations
involved in the particular RK computation.
Example: when n = 4, we need to calculate
k1 through k4, hence 4 evaluations of f(x,y);
so nf = 4.
Inspection of the figure leads to a number of
conclusions: first, that the higher-order methods
attain better accuracy for the same computational
effort and, second, that the gain in accuracy for
the additional effort tends to diminish after a
point. (Notice that the curves drop rapidly at first
and then tend to level off.)
Systems of ODEs
34
Euler’s Method for System of ODEs
35
4th-order RK Method for System of ODEs
12
2
1
1
104 y0.3y
dx
dy
0.5y
dx
dy
.−−=
−=
Initial conditions: y1(0) = 4, y2(0) = 6
Integrate from x = 0 to x= 2 with 0.5 step size
36
Example
Cd = 0.25
37
38
Example of System of ODEs
( )





−=
=
3
4
4
y16.1sin
dt
dy
y
dt
dy3






−=
=
1
2
2
16.1y
dt
dy
y
dt
dy1
y1 = θ, y2 = dθ/dt
0116 =+ sinθ
dt
θd
2
2
.
(linear approximation when θ is small)
y3 = θ, y4 = dθ/dt
(exact conversion)
small initial θ large initial θ
39
Special Problem 8
40
Special Problem 9
Homework
41
1.
2.
3.
4.
5.
Homework
42
6.

More Related Content

What's hot

Bisection theorem proof and convergence analysis
Bisection theorem proof and convergence analysisBisection theorem proof and convergence analysis
Bisection theorem proof and convergence analysisHamza Nawaz
 
Numerical differentiation
Numerical differentiationNumerical differentiation
Numerical differentiationandrushow
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationSunny Chauhan
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Viraj Patel
 
First Order Differential Equations
First Order Differential EquationsFirst Order Differential Equations
First Order Differential EquationsItishree Dash
 
Optimisation in engineering design
Optimisation in engineering designOptimisation in engineering design
Optimisation in engineering designramnaresh yadav
 
First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equationNofal Umair
 
Signal Processing Introduction using Fourier Transforms
Signal Processing Introduction using Fourier TransformsSignal Processing Introduction using Fourier Transforms
Signal Processing Introduction using Fourier TransformsArvind Devaraj
 
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 methodPrateek Jha
 
Application of fourier series
Application of fourier seriesApplication of fourier series
Application of fourier seriesGirish Dhareshwar
 
Applications of Differential Equations of First order and First Degree
Applications of Differential Equations of First order and First DegreeApplications of Differential Equations of First order and First Degree
Applications of Differential Equations of First order and First DegreeDheirya Joshi
 
Fourier series Introduction
Fourier series IntroductionFourier series Introduction
Fourier series IntroductionRizwan Kazi
 
Finite Element Methode (FEM) Notes
Finite Element Methode (FEM) NotesFinite Element Methode (FEM) Notes
Finite Element Methode (FEM) NotesZulkifli Yunus
 
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Chyi-Tsong Chen
 

What's hot (20)

Secant Method
Secant MethodSecant Method
Secant Method
 
Jacobi method for MATLAB
Jacobi method for MATLAB Jacobi method for MATLAB
Jacobi method for MATLAB
 
Bisection theorem proof and convergence analysis
Bisection theorem proof and convergence analysisBisection theorem proof and convergence analysis
Bisection theorem proof and convergence analysis
 
Numerical differentiation
Numerical differentiationNumerical differentiation
Numerical differentiation
 
Gauss sediel
Gauss sedielGauss sediel
Gauss sediel
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations
 
First Order Differential Equations
First Order Differential EquationsFirst Order Differential Equations
First Order Differential Equations
 
Optimisation in engineering design
Optimisation in engineering designOptimisation in engineering design
Optimisation in engineering design
 
Finite Difference Method
Finite Difference MethodFinite Difference Method
Finite Difference Method
 
First order linear differential equation
First order linear differential equationFirst order linear differential equation
First order linear differential equation
 
Signal Processing Introduction using Fourier Transforms
Signal Processing Introduction using Fourier TransformsSignal Processing Introduction using Fourier Transforms
Signal Processing Introduction using Fourier Transforms
 
Secant Method
Secant MethodSecant Method
Secant Method
 
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
 
Numerical Methods and Analysis
Numerical Methods and AnalysisNumerical Methods and Analysis
Numerical Methods and Analysis
 
Application of fourier series
Application of fourier seriesApplication of fourier series
Application of fourier series
 
Applications of Differential Equations of First order and First Degree
Applications of Differential Equations of First order and First DegreeApplications of Differential Equations of First order and First Degree
Applications of Differential Equations of First order and First Degree
 
Fourier series Introduction
Fourier series IntroductionFourier series Introduction
Fourier series Introduction
 
Finite Element Methode (FEM) Notes
Finite Element Methode (FEM) NotesFinite Element Methode (FEM) Notes
Finite Element Methode (FEM) Notes
 
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 05 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
 

Viewers also liked

Initial value problems
Initial value problemsInitial value problems
Initial value problemsAli Jan Hasan
 
Persamaan Differensial Biasa 2014
Persamaan Differensial Biasa 2014 Persamaan Differensial Biasa 2014
Persamaan Differensial Biasa 2014 Rani Sulvianuri
 
Fourier series example
Fourier series exampleFourier series example
Fourier series exampleAbi finni
 
Solved numerical problems of fourier series
Solved numerical problems of fourier seriesSolved numerical problems of fourier series
Solved numerical problems of fourier seriesMohammad Imran
 
Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equationsAhmed Haider
 

Viewers also liked (8)

Numerical Method for UOG mech stu prd by Abdrehman Ahmed
Numerical Method for UOG mech stu prd by Abdrehman Ahmed Numerical Method for UOG mech stu prd by Abdrehman Ahmed
Numerical Method for UOG mech stu prd by Abdrehman Ahmed
 
Initial value problems
Initial value problemsInitial value problems
Initial value problems
 
Persamaan Differensial Biasa 2014
Persamaan Differensial Biasa 2014 Persamaan Differensial Biasa 2014
Persamaan Differensial Biasa 2014
 
Initial Value Problems
Initial Value ProblemsInitial Value Problems
Initial Value Problems
 
Fourier series example
Fourier series exampleFourier series example
Fourier series example
 
Solved numerical problems of fourier series
Solved numerical problems of fourier seriesSolved numerical problems of fourier series
Solved numerical problems of fourier series
 
Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equations
 
Solved problems
Solved problemsSolved problems
Solved problems
 

Similar to Applied numerical methods lec12

MATLAB ODE
MATLAB ODEMATLAB ODE
MATLAB ODEKris014
 
Applications Of MATLAB Ordinary Differential Equations (ODE
Applications Of MATLAB  Ordinary Differential Equations (ODEApplications Of MATLAB  Ordinary Differential Equations (ODE
Applications Of MATLAB Ordinary Differential Equations (ODEJustin Knight
 
C2 st lecture 3 handout
C2 st lecture 3 handoutC2 st lecture 3 handout
C2 st lecture 3 handoutfatima d
 
A derivative free high ordered hybrid equation solver
A derivative free high ordered hybrid equation solverA derivative free high ordered hybrid equation solver
A derivative free high ordered hybrid equation solverZac Darcy
 
Path relinking for high dimensional continuous optimization
Path relinking for high dimensional continuous optimizationPath relinking for high dimensional continuous optimization
Path relinking for high dimensional continuous optimizationPatxi Gortázar
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...mathsjournal
 
numericalmethods.pdf
numericalmethods.pdfnumericalmethods.pdf
numericalmethods.pdfShailChettri
 
first order ode with its application
 first order ode with its application first order ode with its application
first order ode with its applicationKrishna Peshivadiya
 
A Derivative Free High Ordered Hybrid Equation Solver
A Derivative Free High Ordered Hybrid Equation Solver  A Derivative Free High Ordered Hybrid Equation Solver
A Derivative Free High Ordered Hybrid Equation Solver Zac Darcy
 
A DERIVATIVE FREE HIGH ORDERED HYBRID EQUATION SOLVER
A DERIVATIVE FREE HIGH ORDERED HYBRID EQUATION SOLVERA DERIVATIVE FREE HIGH ORDERED HYBRID EQUATION SOLVER
A DERIVATIVE FREE HIGH ORDERED HYBRID EQUATION SOLVERZac Darcy
 
chapter1.pdf ......................................
chapter1.pdf ......................................chapter1.pdf ......................................
chapter1.pdf ......................................nourhandardeer3
 

Similar to Applied numerical methods lec12 (20)

Unit vi
Unit viUnit vi
Unit vi
 
MATLAB ODE
MATLAB ODEMATLAB ODE
MATLAB ODE
 
Applications Of MATLAB Ordinary Differential Equations (ODE
Applications Of MATLAB  Ordinary Differential Equations (ODEApplications Of MATLAB  Ordinary Differential Equations (ODE
Applications Of MATLAB Ordinary Differential Equations (ODE
 
Unit1 vrs
Unit1 vrsUnit1 vrs
Unit1 vrs
 
ODE.pdf
ODE.pdfODE.pdf
ODE.pdf
 
Numerical method
Numerical methodNumerical method
Numerical method
 
Optimization tutorial
Optimization tutorialOptimization tutorial
Optimization tutorial
 
C2 st lecture 3 handout
C2 st lecture 3 handoutC2 st lecture 3 handout
C2 st lecture 3 handout
 
A derivative free high ordered hybrid equation solver
A derivative free high ordered hybrid equation solverA derivative free high ordered hybrid equation solver
A derivative free high ordered hybrid equation solver
 
Path relinking for high dimensional continuous optimization
Path relinking for high dimensional continuous optimizationPath relinking for high dimensional continuous optimization
Path relinking for high dimensional continuous optimization
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
NPDE-TCA
NPDE-TCANPDE-TCA
NPDE-TCA
 
numericalmethods.pdf
numericalmethods.pdfnumericalmethods.pdf
numericalmethods.pdf
 
Lsd ee n
Lsd ee nLsd ee n
Lsd ee n
 
first order ode with its application
 first order ode with its application first order ode with its application
first order ode with its application
 
Term project
Term projectTerm project
Term project
 
A Derivative Free High Ordered Hybrid Equation Solver
A Derivative Free High Ordered Hybrid Equation Solver  A Derivative Free High Ordered Hybrid Equation Solver
A Derivative Free High Ordered Hybrid Equation Solver
 
A DERIVATIVE FREE HIGH ORDERED HYBRID EQUATION SOLVER
A DERIVATIVE FREE HIGH ORDERED HYBRID EQUATION SOLVERA DERIVATIVE FREE HIGH ORDERED HYBRID EQUATION SOLVER
A DERIVATIVE FREE HIGH ORDERED HYBRID EQUATION SOLVER
 
chapter1.pdf ......................................
chapter1.pdf ......................................chapter1.pdf ......................................
chapter1.pdf ......................................
 

More from Yasser Ahmed

Novel approach of bidirectional diffuser-augmented channels system for enhanc...
Novel approach of bidirectional diffuser-augmented channels system for enhanc...Novel approach of bidirectional diffuser-augmented channels system for enhanc...
Novel approach of bidirectional diffuser-augmented channels system for enhanc...Yasser Ahmed
 
Applied numerical methods lec14
Applied numerical methods lec14Applied numerical methods lec14
Applied numerical methods lec14Yasser Ahmed
 
Applied numerical methods lec13
Applied numerical methods lec13Applied numerical methods lec13
Applied numerical methods lec13Yasser Ahmed
 
Applied numerical methods lec11
Applied numerical methods lec11Applied numerical methods lec11
Applied numerical methods lec11Yasser Ahmed
 
Applied numerical methods lec10
Applied numerical methods lec10Applied numerical methods lec10
Applied numerical methods lec10Yasser Ahmed
 
Applied numerical methods lec9
Applied numerical methods lec9Applied numerical methods lec9
Applied numerical methods lec9Yasser Ahmed
 
Applied numerical methods lec8
Applied numerical methods lec8Applied numerical methods lec8
Applied numerical methods lec8Yasser Ahmed
 
Applied numerical methods lec7
Applied numerical methods lec7Applied numerical methods lec7
Applied numerical methods lec7Yasser Ahmed
 
Applied numerical methods lec6
Applied numerical methods lec6Applied numerical methods lec6
Applied numerical methods lec6Yasser Ahmed
 
Applied numerical methods lec5
Applied numerical methods lec5Applied numerical methods lec5
Applied numerical methods lec5Yasser Ahmed
 
Applied numerical methods lec4
Applied numerical methods lec4Applied numerical methods lec4
Applied numerical methods lec4Yasser Ahmed
 
Applied numerical methods lec3
Applied numerical methods lec3Applied numerical methods lec3
Applied numerical methods lec3Yasser Ahmed
 
Applied numerical methods lec2
Applied numerical methods lec2Applied numerical methods lec2
Applied numerical methods lec2Yasser Ahmed
 
Applied numerical methods lec1
Applied numerical methods lec1Applied numerical methods lec1
Applied numerical methods lec1Yasser Ahmed
 

More from Yasser Ahmed (15)

Artificial reefs
Artificial reefsArtificial reefs
Artificial reefs
 
Novel approach of bidirectional diffuser-augmented channels system for enhanc...
Novel approach of bidirectional diffuser-augmented channels system for enhanc...Novel approach of bidirectional diffuser-augmented channels system for enhanc...
Novel approach of bidirectional diffuser-augmented channels system for enhanc...
 
Applied numerical methods lec14
Applied numerical methods lec14Applied numerical methods lec14
Applied numerical methods lec14
 
Applied numerical methods lec13
Applied numerical methods lec13Applied numerical methods lec13
Applied numerical methods lec13
 
Applied numerical methods lec11
Applied numerical methods lec11Applied numerical methods lec11
Applied numerical methods lec11
 
Applied numerical methods lec10
Applied numerical methods lec10Applied numerical methods lec10
Applied numerical methods lec10
 
Applied numerical methods lec9
Applied numerical methods lec9Applied numerical methods lec9
Applied numerical methods lec9
 
Applied numerical methods lec8
Applied numerical methods lec8Applied numerical methods lec8
Applied numerical methods lec8
 
Applied numerical methods lec7
Applied numerical methods lec7Applied numerical methods lec7
Applied numerical methods lec7
 
Applied numerical methods lec6
Applied numerical methods lec6Applied numerical methods lec6
Applied numerical methods lec6
 
Applied numerical methods lec5
Applied numerical methods lec5Applied numerical methods lec5
Applied numerical methods lec5
 
Applied numerical methods lec4
Applied numerical methods lec4Applied numerical methods lec4
Applied numerical methods lec4
 
Applied numerical methods lec3
Applied numerical methods lec3Applied numerical methods lec3
Applied numerical methods lec3
 
Applied numerical methods lec2
Applied numerical methods lec2Applied numerical methods lec2
Applied numerical methods lec2
 
Applied numerical methods lec1
Applied numerical methods lec1Applied numerical methods lec1
Applied numerical methods lec1
 

Recently uploaded

Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 

Recently uploaded (20)

Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 

Applied numerical methods lec12

  • 1. 1 Chapter 25ODE : Initial-value problem 1
  • 2. 2 When dealing with an nth-order differential equation, n conditions are required to obtain a unique solution. If all conditions are specified at the same value of the independent variable (for example, at x or t = 0), then the problem is called an initial-value problem. This is in contrast to boundary-value problems where specification of conditions occurs at different values of the independent variable.
  • 3. 3 The Unified Form of Solving ODE ( )dxyx,fdy = ( )hh,y,xyy iii1i φ+=+ Depending on function φφφφ, there are different solutions. The Runge-Kutta methods are the most popular. 00ii xxatyconditioninitialandxxh =−= +1 ( )yx,f dx dy =
  • 4. 4 The Euler’s Method ( )ii xx y,xf dx dy i == = φ Error estimate: ( ) n n n i2i iii Rh n! y h 2! y hyyy +++ ′′ +′+=+ L1 ( ) ( ) ( ) ( )( ) n nii 1-n 3ii2ii iiii Rh n! y,xf h 3! y,xf h 2! y,xf hy,xfyy ++ ′′ + ′ ++=+ L1 Et = Et,2 + Et,3 + … + Et,n Differential equation evaluated at xi and yi
  • 5. 5 Example 1 of Euler’s Method
  • 6. 6
  • 8. 8
  • 11. 11
  • 12. 12
  • 13. 13
  • 14. 14 General Idea of Runge-Kutta Methods Given the order n, the coefficients ai, pi, and qij are determined by equaling terms to the Taylor series. ( )hh,y,xyy iiii φ+=+1
  • 15. 15
  • 17. 17
  • 19. 19
  • 20. 20
  • 21. 21
  • 22. 22 Comparison of Various 2nd-order RK Methods Integrate f(x,y) = -2x3 + 12x2 – 20x + 8.5 from x = 0 to x = 4 using a step size of 0.5, with initial condition y = 1 at x = 0.
  • 23. 23
  • 25. 25
  • 26. 26
  • 28. 28
  • 29. 29
  • 30. 30
  • 32. 32 Comparison of RK Methods of Different Orders Integrate f(x,y) = 4e0.8x – 0.5y with y(0) = 2 from x = a = 0 to x = b = 4 using various step sizes. Compare the accuracy of the various methods for the result at x = 4 based on the exact answer of y(4) = 75.33896 h ab nEffort f − = nf is the number of function evaluations involved in the particular RK computation. Example: when n = 4, we need to calculate k1 through k4, hence 4 evaluations of f(x,y); so nf = 4. Inspection of the figure leads to a number of conclusions: first, that the higher-order methods attain better accuracy for the same computational effort and, second, that the gain in accuracy for the additional effort tends to diminish after a point. (Notice that the curves drop rapidly at first and then tend to level off.)
  • 34. 34 Euler’s Method for System of ODEs
  • 35. 35 4th-order RK Method for System of ODEs 12 2 1 1 104 y0.3y dx dy 0.5y dx dy .−−= −= Initial conditions: y1(0) = 4, y2(0) = 6 Integrate from x = 0 to x= 2 with 0.5 step size
  • 37. 37
  • 38. 38 Example of System of ODEs ( )      −= = 3 4 4 y16.1sin dt dy y dt dy3       −= = 1 2 2 16.1y dt dy y dt dy1 y1 = θ, y2 = dθ/dt 0116 =+ sinθ dt θd 2 2 . (linear approximation when θ is small) y3 = θ, y4 = dθ/dt (exact conversion) small initial θ large initial θ