In NumPy, I'm trying to represent differential equations of the form: y' = p(t)y + g(t), where p(t) is an nxn matrix and and g(t) is an nx1 matrix. Something like:
y' = [[1,5], [2,1]] + [[e^t], [1]]
I know how to represent matrices in NumPy, but how would I represent matrices that contain variables (for example, 2t or e^t)?