Initial conditions for differential equation in Maple

216 Views Asked by At

The motion of an object is being described by the equation \begin{align*} m\frac{dv(t)}{dt} = mg - \gamma v(t).\end{align*} Determine the solutions of this equation for the paramters: $m=10kg, \gamma = 2kg/s$ and $g= 9.81$, with the following given initial conditions $v(0) = -10,20,30,70$ and $90$ (metes per second).

How should I do that with Maple? I tried this:

Dvgl:=diff(10*v(t),t)=10*9.81-2*v(t);

bvw:=v(0)=-10,20,30,70,90;

dsolve({Dvgl,bvw},v(t));

But then I just get an error: "Found the following equations not depending on the unknowns of the inputsystem: {20,30,70,90}.

Everything works fine with one initial condition, but how can I make it work for several?

1

There are 1 best solutions below

2
On

Replace the definition of bvw by

bvw := -10, 20, 30, 70, 90

and then use:

seq(dsolve({Dvgl, v(0) = bvw[k]}, v(t)), k = 1 .. 4)