why do you have to multiply the step size by the gradient to find the new y point in the following formula: yn+1=yn+f(xn,yn)
Turn on thread page Beta
euler's method watch
- Thread Starter
- 23-04-2018 06:19
- 23-04-2018 07:47
the gradient is change in y/change in x. change in y is y1-y0. change in x is the step size(h), so the gradient in terms of that is dy/dx=(y1-y0)/h.
when you rearrange that to make y1 the subject, you get y1=y0+h(dy/dx).