How Does Euler's Method Solve Differential Equations?

squenshl
Messages
468
Reaction score
4

Homework Statement


Consider the initial value problem y' = f(t,y), y(t0) = y0
where f: R x R \rightarrow R. An approximate solution to the problem can be found using Euler's method. This generates the approximation yi to f(ti) at ti = t0 + ih, i = 1,2,..., using the formula yi = yi-1 + hf(ti-1,yi-1). Implement Euler's method and then show that your implementation is correct.

Homework Equations


Eulers method equation.


The Attempt at a Solution


I am not sure exactly what it is asking. Is it asking for a numerical example or what?
 
Physics news on Phys.org
If this is from a class, ask your teacher what it intended. As the problem is worded I might try something like

y' = x - y, y(0) = 1

and solve it with Euler's method and compare it with the actual solution. But I would ask.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top