Hi,

I have a need to have sympy solve the following second order
differential equation for f(t) using dsolve:

dsolve(f(t).diff(t,t) + f(t).diff(t) + mu**2 *f(t) - g(t) , f(t))

where mu is a constant and g(t) is at least twice differentiable.  The
homogeneous equation is easy enough with dsolve:

dsolve(f(t).diff(t,t) + f(t).diff(t) + mu**2 *f(t)  , f(t))

The result returned for the homogeneous equation seems correct but the
pasting of the output into gmail produces a relatively  ugly thing,
character wise so I did not paste it here.

So my issue is the general case.  Now we know how in principle to go
about doing this using the method of variation of parameters.  It
would be nice to have sympy do the right thing.

I also note that this particular homogeneous equation does not have
two distinct solutions but only one, due to the special selection of
coefficients. So, the solve for the particular solution would have to
handle this case too, so it would seem.

Has anyone done this?  Did I not do something above?

Thanks.

Comer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to