HP Forums

Full Version: Differential Equations Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I received an email with the question:
------------------------------------------------------
I am trying to solve the simplest first order ode I could think of:

dy/dx - 4y = 0 for y(0) = 1

the solution should be y(x) = y(0) e^4x

I tried

plotode(4*y, [y], [1])

but I just get the error message "bad argument type".

I thought perhaps I need to give it the independent variable, so I tried

plotode(4*y, [x,y], [0,10)

which now runs, but it makes a vertical line straight up.
-----------------------------------------------------------------

I have tried to use both odesolve and desolve with no success.

odesolve(4*y, [x,y]) returns the same
odesolve(4*y, [x,y], [0,1]) returns Bad Argument Type
desolve(4*y, [x,y], [0,1]) returns [[ ]]
desolve(y' - 4*y = 0, [x,y], [0,1]) returns [[ ]]

Any help?
desolve(y'-4*y=0 and y(0)=1)
exp(4*x) is increasing ... exponentially ... fast, plotode output is not surprising.
(02-14-2017 06:37 PM)Han Wrote: [ -> ]desolve(y'-4*y=0 and y(0)=1)

Thank you Han! You're the best.
There is no need to try how the input of plotode should look like, because imo the Help is clear in its examples in this respect.

Plotode is meant for the Geometry app, and when you enter the command in its Symbolic view you get a nice graph.

When you want to solve differential equations choose:

Toolbox – CAS – Solve – Differential Equation (desolve)
Or
Toolbox – CAS – Solve –ODE Solve (odesolve)

Also the Help of desolve and odesolve is clear in my opinion.
Reference URL's