I'm trying to create an ODE for motion in 2 dimensions. What I have so far is:
x0 = {1.5, -4.};
v = {0, 8};
DSolve[{x'[t] == v, x[0] == x0}, x[t], t]
This works with one dimension, but when I try and expand the idea for a vector/matrix, I get:
DSolve::nolist: List encountered within {(x^\[Prime])[t]=={0,8}}. There should be no lists on either side of the equations.
How do I fix this?
NDSolve
works without problems:NDSolve[{x'[t] == {0, 8}, x[0] == {1.5, -4.}}, x , {t, 0, 1}]
$\endgroup$