Apply Eulers method with the step h 12 to nd an approximati
Apply Euler’s method with the step h = 1/2 to nd an approximation of y(1), where y is the solution of the initial value problem y\' = 1 + y, y(0) = 0.
Solution
Let yi denote the numerical approximation to the true solution y(xi) where xi = ih for integer i > 0.
Let y0 = y(0) = 1 from the given initial condition. Euler’s method uses f(xn, yn), which is the derivative dy/dx evaluated at x = xn and y = yn.
For this problem, f(xn, yn) = 1+y.
We are required to take two stepsof length 1/2 to determine the numerical solution at x = 1, so we seek the value y2.
Using Euler’s Method with step size h = 1/2 yields:
y0 = 0
y1 = y0 + hf(x0, y0) = 0 + h(1+y0) = 0 +1/2(1+0) = 1/2
y2 = y1 + hf(x1, y1) = 1/2 + h(1+y1) = 1/2 +1/2(1+1/2) = 5/4

