I am wondering if it is possible to derive Eulers method without doing it graphically.
I am trying to give a detailed derivation of Eulers method, and how the formula is found
$$y_i=y_{i-1}+hf(x_{i-1},y_{i-1})$$
If anyone could derive this formula and show how its found would be great, or even a link to a website/textbook. Thanks!
Euler's Step Method attempts to find the solution of an ODE numerically.
You are given an initial value, of $y$, and you want to use the gradient of the function to calculate subsequent values.
I will assume that $f(x_{i-1},y_{i-1})$ is the gradient function. Thus, plugging $x$ and $y$ values into this equation will provide the gradient at a particular point.
Recall that the gradient is the change in the $y$-value divided by a change in $x$. Thus, multiplying your step-size of $h$ by the gradient will estimate the change in the $y$-value. You then add this to the $y$-value at the point to get the new $y$-value of $y_{i}$.
As the step-size gets smaller, one obtains a better approximation.