Is it possible to solve an ODE in state-space form in mathematica? Such as
x'[t]=A.x[t]
I attempted
w = 2;
T = 2 Pi/w;
a = 0.4; b = 4.0; d = 0.3;
A = T {{0, 1}, {-a - b Cos[2 t], -d}}
x[t_] := {x1[t], x2[t]}
sol = NDSolve[{x'[t] == A.x[t], x[0] == x'[0] == 0}, x, {t, 0, 1}]
but received the error
NDSolve::icfail: Unable to find initial conditions that satisfy the residual function within specified tolerances. Try giving initial conditions for both values and derivatives of the functions.
w = 2; T = 2 Pi/w; a = 0.4; b = 4.0; d = 0.3; x[t_] := {x1[t], x2[t]} A0 = T {{0, 1}, {-a - b Cos[2 t], -d}}; sol = DSolve[{x'[t] == A0.x[t], x[0] == x'[0] == 0}, x[t], t]
which gives{{x1[t] -> 0, x2[t] -> 0}}
on V 10.1 $\endgroup$ – Nasser Apr 6 '15 at 16:37