Is it possible to use Mathematica to express 2 simultaneous ODEs in matrix form? My objective is to then take the matrices and solve the ODE elsewhere.
I have formulated a simple system of ODEs that represent some electrical system:
eqn = {Ih == C1(D[Va[t],t]) +(Va[t] - Vb[t])/R3,
(Va[t] - Vb[t])/R2 == C2(D[Vb[t],t]) + Vb[t]/R3}
How can I then use Mathematica to rearrange these equations in a matrix form? I want to get to the point where I can solve the system for the next time increment using a matrix inversion.
Va[t] - Vb[t]
there? It's not a correct ODE otherwise. $\endgroup$ – Szabolcs Sep 29 '16 at 12:11Solve[{Ih == C1 (D[Va[t], t]) + (Va[t] - Vb[t])/R3, (Va[t] - Vb[t])/R2 == C2 (D[Vb[t], t]) + Vb[t]/R3}, {Va'[t], Vb'[t]}]
. $\endgroup$ – Szabolcs Sep 29 '16 at 12:49