Implement first order kinetics of one species in a batch reactor.
Suggested approach:
Write a function that computes the reaction rate for a provided concentration
Write this function in such a way that the reaction rate coefficients can be passed as parameters.
Provide an analytical expression of the concentration as function of time. Verify your codes with the analytical solution for the case , with initial concentration .
Questions:
Solve using forward Euler discretization
Solve using backward Euler discretization
Solve using
scipy.integrate.solve_ivp