Euler’s Method
In solving a first order differential equation by numerical methods, we come across two types of solutions:
• A series solution of y in terms of x, which will yield the value of y at a particular value of x by direct substitution in
the series solution.
• Values of y at specified values of x.
Runge-KuttaMethod
Theuseofthepreviousmethodstosolvethedifferentialequationnumericallyisrestrictedduetoeitherslow
convergenceorduetolabourinvolved,especiallyinTaylorseriesmethod.But,inRunge-Kuttamethods,thederivatives
ofhigherorderarenotrequiredandwerequireonlythegivenfunctionvaluesatdifferentpoints.Sincethederivationof
fourthorderRunge-Kuttamethodistedious,wewillderiveRunge-kuttamethodofsecondorder.
Second order Runge-Kuttamethod (for first order O.D.E.)
By Taylor series
where a, b and m are constants to be determined to get the better accuracy of where ℎ=∆??????.
Second order R.K. algorithm
Since the derivation of third and fourth order Runge-Kuttaalgorithms are tedious, we state them below for use.
The third order Runge-Kuttamethod algorithm is given below:
Third order
R.K. algorithm
The fourth order Runge-Kuttamethod algorithm is mostly used in problem unless other mentioned. It is
By Taylor Series Method,
By Taylor Series Method,
=0.3486875+(0.1)(4.012887)+0.01/2 (11.341286)+(0.001/6)(25.99808)+⋯
=0.8110156≈0.811 (three digits)
The exact value of y (0.1) = 0.3486955
and y (0.2) = 0.8112658.
Solution.h=0.2, ,
,
By Euler algorithm
Solution.
=(0.1)f(0.1,0.9005)=-0.0982.
By Taylor series method,
=0.1+0.01+0.00033+0.00000833+0.000000166+⋯
y(1.1)=0.11033847
By Taylor series
x 0 0.01 0.02 0.03 0.04
Y 1 0.9900 0.9801 0.9703 0.9606
Exact y 1 0.9900 0.9802 0.9704 0.9608
Tabular values (step values) are
since y=e-x is the exact solution.
By fourth order Runge-Kuttamethod,
=(0.1) f (0.05,1.055)
=(0.1)(0.05+1.055)=0.1105
=(0.1) f (0.1,1.1105) = 0.12105
Now starting from
=0.144298048
=1.110342+1/6(0.794781008)=1.2428055
y(0.2)=1.2428055
Correct to four decimal places, y (0.2) =1.2428.