Solve the ordinary differential equation below using Runge-Kutta 4th order method.
Step size h=0.2
5 dy/dx+xy3= cos(x) ,y(0) = 3
The value ofy(0.2) is (upto two decimal points)
Answers
Given :
Differencial equation : 5Dy + xy³ = cos x
y(0) = 3,
step size h = 0.2
To find :
The value of y(0.2) by Runge-Kutta 4th order method.
Solution:
As it is given that,
5Dy + xy³ = cos x,
(equation 1)
According to Runga-Kutta 4th order method :
(equation 2)
where h = step size = 0.2 given,
x = 0 given,
Carl Runge and Wilhelm Kutta wanted to provide a method of approximating a function without use of differentiation of the original equation.
This approach was to simulate so many steps of the Taylor's Series method but only by using evaluation of the original function .
In this case,
(equation 3)
(equation 4)
(equation 5)
(equation 6)
So, we have to find all the values of unknowns from equation 2,
as
h = 0.2,
x =0,
y(0) = 3,
putting in equation 3, we get :
then,
by equation 4, we get :
then by equation 5, we get :
then by equation 6, we get :
Putting all the vaues in equation 2,
we know that
y(0) = 3,
so
then
so
only upto two decimal numbers,
y(0.2) = 3.18