Back Euler method for 2nd order d.e

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 3K views
pgioun
Messages
5
Reaction score
0
Hi,
How can one use back Euler method for 2nd order d.e?

Is it possible this method to be expanded for a system of 4 odes?

Thanks
 
Physics news on Phys.org
pgioun said:
Hi,
How can one use back Euler method for 2nd order d.e?

Write ##dy/dx = p## and ##d^2y/dx^2 = dp/dx##, then solve two first order equations for ##y## and ##p##. (The first equation is your original DE rewritten using ##y##, ##p##, and ##dp/dx##. The second equation is just ##dy/dx = p##).

Is it possible this method to be expanded for a system of 4 odes?
Yes. Just write the 4 variables as a vector, so your equiations become one equation like $$\frac{d}{dx}\begin{pmatrix}y_1 \\ y_2 \\ y_3 \\ y_4\end{pmatrix} = f\begin{pmatrix}y_1 \\ y_2 \\ y_3 \\ y_4\end{pmatrix} + g(x)$$
 
AlephZero said:
Write ##dy/dx = p## and ##d^2y/dx^2 = dp/dx##, then solve two first order equations for ##y## and ##p##. (The first equation is your original DE rewritten using ##y##, ##p##, and ##dp/dx##. The second equation is just ##dy/dx = p##).


Yes. Just write the 4 variables as a vector, so your equiations become one equation like $$\frac{d}{dx}\begin{pmatrix}y_1 \\ y_2 \\ y_3 \\ y_4\end{pmatrix} = f\begin{pmatrix}y_1 \\ y_2 \\ y_3 \\ y_4\end{pmatrix} + g(x)$$

Ok.. and then how the back Euler scheme will be like..?
If it was one ode it would be: [itex]y_{n+1}[/itex]=[itex]y_{n}[/itex]+f( [itex]y_{n+1}[/itex], [itex]t_{n+1}[/itex]).
To be more specific I want to solve the system:[itex]y^{4}[/itex]=1/[itex]y^{2}[/itex], with y(0)=0,y''(0)=0, applying this method..
Thanks.