Closed
Description
Consider
sage: var('t')
sage: x=function('x',t)
sage: var('c')
sage: desolve(diff(x,t)+2*x==t^2-2*t+c,x,ivar=t).expand()
c*e^(-2*t) + 1/2*t^2 + 1/2*c - 3/2*t + 3/4
Here the first occurrence of c
is an integration constant,
whereas the second one is the parameter in the ODE:
sage: var('d')
sage: desolve(diff(x,t)+2*x==t^2-2*t+d,x,ivar=t).expand()
c*e^(-2*t) + 1/2*t^2 + 1/2*d - 3/2*t + 3/4
In case the ODE contains c
, desolve should choose another
name for the integration constant.
Component: calculus
Author: Paul Zimmermann
Reviewer: Ralf Stephan
Issue created by migration from https://trac.sagemath.org/ticket/9421