Ry122
- 563
- 2
I have the set of equations
dx/dt =(1 - y)x and dy/dt =(x - 1)y
And the initial conditions x(0)= 0.5 and y(0) = 0.5
I need to integrate numerically from t = 0 to t = 10 with a stepsize of t = 0.4.
So i need to take small time intervals of 0.4 and find the area occupied beneath the graph at those points and sum all of these areas together to find the total area under the graph from t = 0 to t = 10.
The problem is that I don't know how to specify the time interval to the function in a situation like this where f'(t) doesn't have a 't' that i can substitute 0.4, 0.8, 0.12 etc into.
Can someone tell me how this can be done?
Is it correct to say that
f'(t) = (1-y)x, (x-1)y
If so, would changing (1-y)x to the value of t perhaps be the correct method of doing this since it represents the value of the x-axis and therefore t?
dx/dt =(1 - y)x and dy/dt =(x - 1)y
And the initial conditions x(0)= 0.5 and y(0) = 0.5
I need to integrate numerically from t = 0 to t = 10 with a stepsize of t = 0.4.
So i need to take small time intervals of 0.4 and find the area occupied beneath the graph at those points and sum all of these areas together to find the total area under the graph from t = 0 to t = 10.
The problem is that I don't know how to specify the time interval to the function in a situation like this where f'(t) doesn't have a 't' that i can substitute 0.4, 0.8, 0.12 etc into.
Can someone tell me how this can be done?
Is it correct to say that
f'(t) = (1-y)x, (x-1)y
If so, would changing (1-y)x to the value of t perhaps be the correct method of doing this since it represents the value of the x-axis and therefore t?