Problem 3 (25 points): ODE solving in MATLAB
Systems with multiple reactions can often display complex behavior depending on the prop- erties of the system. Reactors can exhibit stable or unstable behavior depending on the specifics of the reactions and it is thus pivotal to understand these dynamics when designing reactors. Use MATLAB to solve the following system of differential equations and visualize the dynamical behavior of a system of reacting chemical species.
Consider a reaction system for the conversion of A to B via the intermediates X and Y:
Assume that a controller is present to keep the concentration of A constant at cA0 and k1 = 0.1 (M s)−1, k2 = 0.3 (M s)−1, and k3 = 0.5 (s)−1. Here M [=] moles/Liter
(a) (6 points) Derive a set of ordinary differential rate equations to describe each species present in this system. Are these equations linear or nonlinear? Explain why.
(b) (2 points) What are the independent and dependent variables of the system of equations you derived in Part (a)?
(c) (2 points) Solve for the steady-state values of cX and cY in this system.
(d) (7 points) We are interested in the intermediate values of cX and cY . Using MATLAB, plot cX (t) and cY (t) over an appropriate time range to visualize the system’s dynamics. AssumecA0 =5M,cX0 =3M,cY0 =4M,andcB0 =0M.Pleaseattachascreenshot of your code.
(e) (4 points) Does your result in Part (d) agree with what you expected from your result in Part (c)? If not, explain the apparent discrepancy between these two results.
(f) (4 points) Generate a phase portrait of the intermediate species by plotting them against each other where the independent variable is implicit. What does this plot represent?