Solve DE with secondary function

asked 2015-05-13 09:41:29 -0500

FooBar gravatar image

updated 2015-05-13 09:46:06 -0500

I want to solve

$-F''(a) + g(a)( F'(a) - F(a)$

where $g(a)$ is logistic.

My code is

a = var('a')
g(a)= 1 /(1 + e^(-(a)))  
F = function('F', a)
de = -diff(F,a, 2) + g(a)*(diff(F,a,1) - F(a))
y = desolve(de, F); y

But I get an error (at the end of the post). If I remove e(a) from the de-term, I get a solution. What do I have to take into account when I add the second function?

TypeError: no canonical coercion from <class 'sage.symbolic.function_factory.NewSymbolicFunction'> to Symbolic Ring
edit retag flag offensive close merge delete


What Sage version? With 6.6 I get NotImplementedError: Maxima was unable to solve this ODE.

rws gravatar imagerws ( 2015-05-14 11:32:21 -0500 )edit