find the general solution of an ODE by the method of variation of parameters
varparam(sols, v, ivar)
list of solutions to the corresponding homogeneous equation
right hand side of the original ODE
(optional) flag to return only the particular solution
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](..).
Here is an example using the general formula in the order 2 case:
You can obtain a specific particular solution in the order 2 case:
de ≔ ⅆ2ⅆx2⁢Y⁡x+Y⁡x:
sols ≔ dsolve⁡de,Y⁡x,output=basis
sols ≔ sin⁡x,cos⁡x
Here is another way to get the same information:
DE2 ≔ D2⁡z⁡x−3⁢D⁡z⁡x+2⁢z⁡x=Rhs:
Rhs ≔ x⁢ⅇx+2⁢x:
sols ≔ ⅇx,ⅇ2⁢x:
DE3 ≔ ⅆ3ⅆx3⁢y⁡x−2⁢ⅆ2ⅆx2⁢y⁡x−ⅆⅆx⁢y⁡x+2⁢y⁡x=ⅇx:
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.