I am new to python and will like to solve ordinary differential equation in Python. How do I differentitae the following equation(1st order and 2nd order). I wish to differentiate C wrt Q

C = (Q3)-15*(Q2)+(93*Q)+100

There are ready-made Ordinary Differential Equation solvers and modules in python, you could start with the module scipy.integrate.

I don't understand the equation you wrote above, nor in which sense it is an ODE, Perhaps you could give us more details about your problem and your equation.