I need to numerically determine the convergence order of Euler's method for various step-sizes. I am unsure how to go about doing this.
Here is the question:
Problem statement: $\frac{dy}{dt}=\alpha t^{\alpha - 1}, y(0)=0$, where $\alpha > 0$. Use Euler's method to solve the initial value problem for $\alpha = 2.5,1,5,1.1$ with stepsize $h=0.2,0.1,0.05$. Determine numerically the convergence orders of the Euler method for these problems.
I have created an Excel spreadsheet with all of the relevant information tabulated (using Excel formulas), with columns $i, t_i=a+ih, a, b, \alpha, N, w_i, y(t_i), |y(t_i)-w_i|$ where:
$i=$ ith step in iteration
$t_i$= time at ith step
$a=$ initial time value
$b=$ final time value
$\alpha=$ constant in problem
$N=$ number of subintervals
$w_i=$ approximation to solution at ith step
$y(t_i)=$ true solution at ith step
$|y(t_i)-w_i|=$ Magnitude of error
Now, since I cannot estimate the error $\kappa$ from just one integration as the error term is approximately of the form $error_{t=b}(h) = Ah^{\kappa}$, one step size is not adequate to estimate $\kappa$. But if I do a log plot of the error and step size, the slope of the best line will give the required estimate of $\kappa$, which should be close to 1.
My question is how can I do the log plot of the error and step size in Excel 2013? I understand the math behind all this, but don't know how to implement it.
Thanks.