Exercises
-
alpha= -2
y(0)=100
eq1:=diff(y(t), t) = a*y(t)
s1:=dsolve({eq1, y(0)=100},y(t))
s2:=subs(a=-2, s1)
s3:=rhs(s2)
plot(s3, t=0..1)
Solve the ODE: with the given conditions and plot the solution
Solve the ODE: with the given conditions and plot the solution
alpha= -2
y(0)=100
eq1:=diff(y(t), t) = a*y(t)
s1:=dsolve({eq1, y(0)=100},y(t))
s2:=subs(a=-2, s1)
s3:=rhs(s2)
plot(s3, t=0..1)