Is there a way to use MATLAB to solve an Euler Backward problem when the function I have is a differential equation?
My original problem was to simulate an electromagnetic and an electrical field for a certain interval in R^2 and in this interval an electron would enter with an initial speed in x, y direction. I then plotted the path the electron would take inside the field, but now I'm trying to approximate the path using Euler Backward.
Our differential equation in MATLAB looks like this:
dy(1)=y(3); dy(2)=y(4); dy(3)=y(4)+1; dy(4)=-y(3)
Where y=[x ; y ; u ; v] where u is the derivative of x and v is that of y.