Q. 57

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

Step-by-Step Solution

Verified
Answer

The points are (0,2),(0.5,2),(1,2.125),(1.5,2.36),(2,2.68) and the graph is 


1Step 1. Given information

Given expression dydx=xy,y(0)=2;Δx=0.5

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.5,2+0(0.5))=(0.5,2)x2,y2=x1+Δx,y1+gx1,y1Δx=1,2+0.52(0.5)=(1,2.125)x3,y3=x2+Δx,y2+gx2,y2Δx=1.5,2.125+12.125(0.5)=(1.5,2.36)x4,y4=x3+Δx,y3+gx3,y3Δx=2,2.36+1.52.36(0.5)=(2,2.68)

3Step 3: Plotting the points

Plotting, we get