Exercises
Solve the ODE:
with the given conditions and stipulations and plot the solutions
-
alpha= -2
y(0)=100
Use commands to solve the problem.
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)
-
alpha= -2
y(0)=100
Use right-clicks to solve the problem.
Now we will do the same problem but use right-click instead.
Enter: y'=alpha*y
Right-click and select solve DE interactively
Click edit under the Conditions box and enter 0 and 100 so the top reads y at 0=100 and then click edit under parameters and enter -2 for alpha
Now click Solve Symbolically
Click Solve on the top right of the window that opens and then on the bottom left select 'on Quit, Return Solution'
Now click Quit in the bottom right
Right click the returned solution and hit Right-Hand Side
Right click and select plot->2D
Right click and change the range to 0 to 1 for the x and make appropriate changes to the y axis.
The following questions do not require Maple.
-
Is this a linear first order ODE?
YES because the unknown function f(t) appears only to the first power. But be careful to first rearrange the ODE in our notation in the discussion. Thus
-
What is the solution of the following linear first order ODE?
Solution: Put the equation in our preferred notation and identify
p(s)
and g(s).
Next
Putting this together
or
Now use the initial condition to find the constant c.
. Thus