solution for ODE problem I was trying to simulate a physical system which lead me to this equation. I don't know if  it has any solution or not, but I guess you guys can help me find the answer. $$v'(t) = a + s *  \frac{v(t)}{|v(t)|}$$ in which t is an scalar variable, s is an scalar constant and a is a vector with same dimensions as v(t) (either 2D or 3D)
 A: Interpretation 1: Perhaps we can write your problem as
$$ \frac{dv}{dt} - \frac{s}{|v|}v=a $$
Provided $s$ is in fact a scalar. Take the dot-product with $v$ to obtain:
$$ v \cdot \frac{dv}{dt} - \frac{s}{|v|}v\cdot v= v \cdot a $$
Hence,
$$ \frac{1}{2}\frac{d}{dt} (v \cdot v )-s|v| = v \cdot a $$
One silly solution is $v(t)=v_o$ where $v_o$ is taken to fit the condition $v_o \cdot a=-s|v_o|$. I assume $s,a$ are given constants.
Interpretation 2: Another solution, suppose we seek a constant speed solution then $|v|= s_o$. We face
$$ \frac{dv}{dt} - \frac{s}{s_o}v=a $$
Suppose $s$ is a scalar function of $t$. We can use the obvious generalization of the usual integrating factor technique (note $v$ is a vector in contrast to the usual context where the typical DEqns student faces $\frac{dy}{dt}+py=q$). Construct $\mu = exp( -\int \frac{s}{s_o} dt)$. Multiply by this integrating factor,
$$ \mu\frac{dv}{dt} - \frac{s}{s_o}\mu v= \mu a $$
By the product rule for a scalar function multiplying a vector,
$$ \frac{d}{dt}\biggl[ \mu v \biggr] = \mu a $$
Integrating, we reduce the problem to quadrature:
$$ v = \frac{1}{\mu} \int \mu a \, dt $$
where $\mu = exp( -\int \frac{s}{s_o} dt)$ and we choose constants of integration such that $|v|=s_o$ (if that's even possible...)
