DEtools
constcoeffsols
find solutions of a linear constant coefficient ODE
Calling Sequence
Parameters
Description
Examples
constcoeffsols(lode, v)
constcoeffsols(coeff_list, x)
lode
-
homogeneous linear differential equation
v
dependent variable of the lode
coeff_list
list of coefficients of a linear ode
x
independent variable of the lode
The constcoeffsols routine returns a basis of the space of solutions of a homogeneous linear differential equation having constant coefficients.
There are two input forms. The first has as the first argument a linear differential equation in diff or D form and as the second argument the variable in the differential equation.
A second input sequence accepts for the first argument a list of coefficients of the linear ode, and for the second argument the independent variable of the lode. This input sequence is useful for programming with the constcoeffsols routine.
In the second calling sequence, the list of coefficients is given in order from low differential order to high differential order and does not include the nonhomogeneous term.
This function is part of the DEtools package, and so it can be used in the form constcoeffsols(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[constcoeffsols](..).
with⁡DEtools:
ode≔3⁢diff⁡z⁡t,`$`⁡t,3+diff⁡z⁡t,`$`⁡t,2−diff⁡z⁡t,t−3⁢z⁡t=0:
constcoeffsols⁡ode,z⁡t
ⅇt,ⅇ−2⁢t3⁢sin⁡5⁢t3,ⅇ−2⁢t3⁢cos⁡5⁢t3
ode≔3⁢D3⁡z⁡t+D2⁡z⁡t−D⁡z⁡t−3⁢z⁡t=0
ode≔−3,−1,1,3:
constcoeffsols⁡ode,t
This command also outputs the answer in RootOf form in some cases:
ode≔diff⁡z⁡t,`$`⁡t,5+diff⁡z⁡t,`$`⁡t,2−diff⁡z⁡t,t−3⁢z⁡t:
ⅇRootOf⁡_Z5+_Z2−_Z−3,index=1⁢t,ⅇRootOf⁡_Z5+_Z2−_Z−3,index=2⁢t,ⅇRootOf⁡_Z5+_Z2−_Z−3,index=3⁢t,ⅇRootOf⁡_Z5+_Z2−_Z−3,index=4⁢t,ⅇRootOf⁡_Z5+_Z2−_Z−3,index=5⁢t
See Also
dcoeffs
dsolve
Download Help Document