DEtools
convertAlg
return the coefficient list form for a linear ODE
Calling Sequence
Parameters
Description
Examples
convertAlg(des, dvar)
des
-
differential equation
dvar
dependent variable
This routine is used to return an equivalent list form for a given linear ordinary differential equation. The list returned has two elements.
The first is a list (here called A) of the coefficients of the ODE, of the form
A1⁢y⁡x+A2⁢ⅆⅆxy⁡x+...+An+1⁢ⅆnⅆxny⁡x
The second element is the right hand side of the given ODE. In the case that the DE has no right hand side, the default zero is used.
In the event that convertAlg cannot isolate for the proper list form (for instance, if the DE is not a linear ODE) then FAIL is returned.
This function is part of the DEtools package, and so it can be used in the form convertAlg(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[convertAlg](..).
with⁡DEtools:
A≔diff⁡y⁡x,x⁢sin⁡x−x⁢cos⁡x⁢diff⁡y⁡x,x,x+diff⁡y⁡x,x−tan⁡x⁢y⁡x=5
A≔ⅆⅆxy⁡x⁢sin⁡x−x⁢cos⁡x⁢ⅆ2ⅆx2y⁡x+ⅆⅆxy⁡x−tan⁡x⁢y⁡x=5
convertAlg⁡A,y⁡x
−tan⁡x,sin⁡x+1,−x⁢cos⁡x,5
B≔D⁡y⁡x⁢x⋅5−D2⁡y⁡x⁢sin⁡x+D2⁡y⁡x⁢x⁢32
B≔5⁢D⁡y⁡x⁢x−D2⁡y⁡x⁢sin⁡x+9⁢D2⁡y⁡x⁢x
convertAlg⁡B,y⁡x
0,5⁢x,−sin⁡x+9⁢x,0
See Also
DEtools[DEnormal]
Download Help Document