Skip to content

desolve mixes user parameters and integration constants #9421

Closed
@zimmermann6

Description

@zimmermann6

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.

CC: @robert-marik @kcrisman

Component: calculus

Author: Paul Zimmermann

Reviewer: Ralf Stephan

Issue created by migration from https://trac.sagemath.org/ticket/9421

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions