- #1
ineedhelpnow
- 651
- 0
use euler's method with step size 0.1 to estimate y(0.5), where y(x) is the solution of the initial-value problem y'=y(x+1), y(0)=1. round your answer to four decimal places.
this is all I've done so far
$y'=y(x+1)$
$y(0)=1$
$h=0.1$
$x_{0}=0$
$y_{0}=1$
$x_{1}=x_{0}+h=0+0.1=0.1$
$x_{2}=x_{1}+h=0.1+0.1=0.2$
...etc. (im assuming that i stop once i reach $x_{n}=1$)
and then according to the book $y_{n}=y_{n-1}+hF(x_{n-1},y_{n-1})$ and n=1,2,3...
i think i understand how to do it but for my $F(x_{0},y_{0})$, $F(x_{1},y_{1})$,... do i plug the x and y into $y'=xy-x^2$ ?
this is all I've done so far
$y'=y(x+1)$
$y(0)=1$
$h=0.1$
$x_{0}=0$
$y_{0}=1$
$x_{1}=x_{0}+h=0+0.1=0.1$
$x_{2}=x_{1}+h=0.1+0.1=0.2$
...etc. (im assuming that i stop once i reach $x_{n}=1$)
and then according to the book $y_{n}=y_{n-1}+hF(x_{n-1},y_{n-1})$ and n=1,2,3...
i think i understand how to do it but for my $F(x_{0},y_{0})$, $F(x_{1},y_{1})$,... do i plug the x and y into $y'=xy-x^2$ ?