HP Forums
Differential Equations Problem - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Differential Equations Problem (/thread-7770.html)



Differential Equations Problem - Eddie W. Shore - 02-14-2017 06:07 PM

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?


RE: Differential Equations Problem - Han - 02-14-2017 06:37 PM

desolve(y'-4*y=0 and y(0)=1)


RE: Differential Equations Problem - parisse - 02-14-2017 07:52 PM

exp(4*x) is increasing ... exponentially ... fast, plotode output is not surprising.


RE: Differential Equations Problem - Eddie W. Shore - 02-15-2017 02:27 PM

(02-14-2017 06:37 PM)Han Wrote:  desolve(y'-4*y=0 and y(0)=1)

Thank you Han! You're the best.


RE: Differential Equations Problem - Jan_D - 02-16-2017 05:13 PM

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.