Q. 56

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=x1-y,y(0)=2;Δx=0.1

Step-by-Step Solution

Verified
Answer

The points are (0,2),(0.1,2),(0.2,1.99),(0.3,1.97),(0.4,1.94) and graph is 


1Step 1. Given information

Given expression dydx=x1-y,y(0)=2;Δx=0.1

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,2)x1,y1=x0+Δx,y0+gx0,y0Δx=(0+0.1,2+0(0.1))=(0.1,2)x2,y2=x1+Δx,y1+gx1,y1Δx=(0.1+0.1,2-0.1(0.1))=(0.2,1.99)x4,y4=x3+Δx,y3+gx3,y3Δx=0.3+0.1,1.97-0.30.97(0.1)=(0.4,1.94)

3Step 3: Plotting the points

Plotting, we get