solving second order ODE more efficiently
Hello,
I have got a linear set of two ordinary differential equations of second order with two unknowns. The starting conditions are known. However, depending on the result an external disturbance must be considered. Once this disturbance occurs the same equations hold but at the time of the disturbance, new inital conditions depending on the previously calculated solution, must be considered.
Currently, I have managed to solve this problem by setting up a first mathcad sheet for the interval from the start till the the first external disturbance. I have also created a second mathcad sheet for the second interval from after the first disturbance to the second disturbance. And so on.
Unfortunately, I have to consider many disturbances and not just a few. As I would like to perform a parameter studies, I suppose my current approach is not suitable. I am currently using MATHCAD 14 and have only used ODESOLVE to solve my problem so far. If anybody has an idea as how my problem could be implemented in MATHCAD more efficiently, kindly let me know. Thanking you in advance for any help in this regard.
Thank you.

