CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the first order initial value problem y=y+2xx2,y(0)=1,(0x<) with exact solutions y(x)=x2+ex. For x =0.1 , the percentage difference between the exact solution and the solution obtained using a single iteration of the second-order Runge-Kutta with step-size h = 0.1 is
  1. 0.063

Open in App
Solution

The correct option is A 0.063
Given, y=f(x,y)=y+2xx2,y(0)=1(0x<),h=0.1
Now by using runge-kutta method of 2nd order
y1=y0+12[k1=k2]
where,
k1=hf(x0,y0)
k2=hf(x0+h,y0+k1)
Here, x0=0,y0=1,h=0.1
k1=0.1[1+2(0)02]=0.1
k2=0.1[(1+0.1)+2(0.1)(0.1)2]
= 0.129
y1=1+12[0.1+0.129]=1+0.1145
= 1.1145
Now, the exact solution,
y(x)=x2+ex
y(0.1)=(0.1)2+e0.1=0.01+1.1052
= 1.1152
percentage difference
=1.11521.11451.1152×100%
= 0.063%

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Runge-Kutta Methods
ENGINEERING MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon