# Math Help - Euler Method Problem

1. ## Euler Method Problem

I have a test in 3 days. Teacher gives a study guide with no answers or solutions. I'm having trouble with this problem:

Use Euler's Method with five steps to approximate the solution to the initial value problem:

y' = y^2 + x
y(0) = 0

Note: Since the step size is given I figure we can choose a reasonable value.

I just keep getting a bunch of zeroes when I do it. Any help would be great! Thanks everyone!

2. ## Re: Euler Method Problem

With Euler's method you have

$y_{n+1} = y_n + h\left(x_n + y_n^2\right), x_0 = 0, y_0 = 0$, right?

The first one you get is zero (I'll agree with that). However the subsequent ones shouldn't be. Are you incrementing $x_n$?