Q21E

Question

Transmission Lines. In the study of the electric field that is induced by two nearby transmission lines, an equation of the form dzdx+g(x)z2=f(x) arises. Let f(x)=5x+2 and g(x)=x2. If z(0)=1, use the fourth-order Runge–Kutta algorithm to approximate z(1). For a tolerance of ε=0.0001, use a stopping procedure based on the absolute error.

Step-by-Step Solution

Verified
Answer

z1=2.870833 with  h=0.03125

1Step 1: Find the values of k i . i = 1 , 2 , 3 , 4

Using the improved 4th order Runge-Kutta subroutine with tolerance ξ=0.0001.

 

Since f(x,z)=5x+2-x2z2 and x=x0=0,z=zo=1 and h=1

k1=hf(x,z)=h(5x+2-x2z2)k2=hfx+h2,z+k12=h5x+h2+2-x+h22z+k122k3=hfx+h2,z+k22=h5x+h2+2-x+h22z+k222k4=hfx+h,z+k3=h5(x+h)+2(x+h)2(z+k3)2k1=h(x,z)=2k2=hfx+h2,z+k12=3.5k3=hfx+h2,z+k22=2.60938k4=hfx+h,z+k3=0.-6.02759 


2Step 2: Find the values of x and z

x=xo+h=1z=zo+16k1+2k2+2k3+k4  =2.365194


Therefore z1=2.465194.

 

This is the solution of IVP. 

Now,

ξ=1-2.3651941ξ=1.365194>0.0001  

3Step 3: Determine the other values

Apply the same procedure for h=0.5, x=0,z=1.

k1=hf(x,z)=1k2=hfx+h2,z+k12=1.55469k3=hfx+h2,z+k22=1.52628k4=hfx+h,z+k3=1.45224  x=0+0.5=0.5  z=1+16k1+2k2+2k3+k4    =2.4357 


Thus, z1=2.573986

 

Now  

ξ=2.365194-2.573986=0.208792>0.0001

4Step 4: Evaluate the other values

Apply the same procedure for other values. The values are

f(1)=v(1;0.25)=2.854533    ξ=2.573986-2.854553=0.280574>0.0001f(1)=v(1;0.125)=2.870202    ξ=2.870202-2.854553=0.015649>0.0001f(1)=v(1;0.0625)=2.870805    ξ=2.870805-2.870202=0.000603>0.0001f(1)=v(1;0.03125)=2.870833    ξ=2.870833-2.870805=0.000028<0.0001 

 

Hence, z1=2.870833.

 

Hence the solution is z1=2.870833 with h=0.03125