2
$\begingroup$

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.

  • 0
    Are you required to write your own code to implement backward Euler, or can you use one of Matlab's prewritten routines?2011-05-13
  • 0
    EDIT: Yes, we are required to write our own code to implement backward Euler, we can not use one of Matlab's prewritten routines.2011-05-13
  • 0
    Does anybody have any suggestions?2011-05-13

1 Answers 1