Q. 58

Question

Exercises 53-58, use Euler’s method with the given x to approximate four additional points on the graph of the solution yx. Use these points to sketch a piecewise-linear approximation of the solution.

dydx=x2-y,y1=0;x=0.25.

Step-by-Step Solution

Verified
Answer

A graph for the piecewise-linear approximation of the solution for dydx=x2-y is,



1Step 1 . Given information

dydx=x2-y,y1=0;x=0.25.

2Step 2 . The aim is to approximate the solution of the differential equation d y d x = x 2 - y that passes through the point x 0 , y 0 = 1 , 0 .

Use Euler's method to find four more points in the sequence by use of the iterative formula.

xk+1,yk+1=xk+x,yk+yk

Here gx,y=x2-y and k=0,1,2,3. So, first find the four additional points by using above iterative formula.

x0,y0=1,0x1,y1=x0+x,y0+gx0,y0x            =1.25,0+10.25            =1.25,0.25x2,y2=x1+x,y1+gx1,y1x            =1.5,0.25+1.31250.25            =1.5,0.5781x3,y3=x2+x,y2+gx2,y2x             =1.75,0.5781+1.67190.25             =1.75,0.996x4,y4=x3+x,y3+gx3,y3x             =2,0.996+2.06650.25            =2,1.5126

3Step 3 . Now plot the obtained five points and join the points with line segments as given below.



The approximate solution of the initial-value problem is shown by the graph by joining the line segments.