The ODE is
Two solutions are presented for cases (a) and (b). The solutions are shown graphically
Two files are required to run the example. The first is the script file that will solve the problem (same as alll the files used so far). The second file is the function file where the problem is defined in state space. The problem in state space is
Note two versions of the differential equations are programmed in the function file. They correspond to the two solution being explored in case(a) and case(b). They are switched using a switch case statement
Graphical Solution