- #1
UltimateSomni
- 62
- 0
Homework Statement
y'+y=3+x y(0)=1
(a) Find approximate values of the solution of the given initial value problem at t = 0.1, 0.2,
0.3, and 0.4 using the Euler method with h = 0.1.
Homework Equations
yn+1 = yn + f(x0, y0)(x-x0). Adjusting 0 for the next number as we go up
The Attempt at a Solution
I'm not looking to have the whole thing solved I'm just looking to solve the very first one and if I figure it out I can go from there.
So I solved for y which gets me
y= -e^-x +x +2. I checked this solution on wolfram alpha.
y1=y0 + (-e^-x +x +2)*h= 1 +(-1+0+2)*.1=1.1. According the textbook its 1.2. It feels so close.