I have the differential equation
w'(t)= 1/J*(B/2(F1-F2)-Bw) if turning=true
0 if turning=false
and I want to solve it.
I have written
w[t_] = Piecewise[{{1/J(B/2(F1(t)-F2(t))-Bw(t)), turning=1}, {0, turning=0}]
D[w[t], t]
but I think it’s not correct. Could anyone help me please???