DEtools[varparam] - find the general solution of an ODE by the method of variation of parameters
|
Calling Sequence
|
|
varparam(sols, v, ivar)
|
|
Parameters
|
|
sols
|
-
|
list of solutions to the corresponding homogeneous equation
|
v
|
-
|
right hand side of the original ODE
|
ivar
|
-
|
independent variable
|
true
|
-
|
(optional) flag to return only the particular solution
|
|
|
|
|
Description
|
|
•
|
The varparam routine is used to find a general solution of an ordinary differential equation (ODE) by the method of variation of parameters. In the event that no solution form can be generated (that is, if the Wronskian of the solution list sols is zero), then FAIL is returned. Otherwise, an general solution is generated, with indexed global constants _C.
|
•
|
The list sols must be a list of linearly independent solutions to a corresponding homogeneous ODE. The second argument, v, is the right-hand-side of a linear ODE where it is assumed that the coefficient of the highest derivative is equal to one. If this right-hand-side is zero, then 0 is the only particular solution.
|
•
|
If a fourth argument true is added, the routine returns only the particular solution.
|
•
|
This function is part of the DEtools package, and so it can be used in the form varparam(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[varparam](..).
|
|
|
Examples
|
|
>
|
|
Here is an example using the general formula in the order 2 case:
>
|
|
| (1) |
You can obtain a specific particular solution in the order 2 case:
>
|
|
| (2) |
>
|
|
>
|
|
| (3) |
>
|
|
| (4) |
Here is another way to get the same information:
>
|
|
| (5) |
>
|
|
>
|
|
>
|
|
>
|
|
| (6) |
>
|
|
>
|
|
| (7) |
|
|
Download Help Document
Was this information helpful?