Q. 54

Question

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

dydx=1x,y(1)=1;Δx=0.25

Step-by-Step Solution

Verified
Answer

The points are (0,0),(0.5,0),(1,0.25),(1.5,0.875),(2,2.0625) and the graph is 


1Step 1. Given information

Given expression dydx=1x,y(1)=1;Δx=0.25

2Step 2: Use Euler's rule and calculate

Calculating, we get

xk+1,yk+1=xk+Δx,yk+Δyk;Δyk=gxk,ykΔxx0,y0=(0,0)x1,y1=x0+Δx,y0+gx0,y0Δx=(0+0.5,0+0(0.5))=(0.5,0)x2,y2=x1+Δx,y1+gx1,y1Δx=(1,0+0.5(0.5))=(1,0.25)x3,y3=x2+Δx,y2+gx2,y2Δx=(1.5,0.25+1.25(0.5))=(1.5,0.875)x4,y4=x3+Δx,y3+gx3,y3Δx=(2,0.875+2.375(0.5))=(2,2.0625)

3Step 3: Plotting the points

Plotting, we get