Student[ODEs][Solve]
ByVariationOfParameters
Solve a system of first order linear ODEs by the method of variation of parameters
Calling Sequence
Parameters
Description
Examples
Compatibility
ByVariationOfParameters(SYS, Y)
ByVariationOfParameters(SYS)
ByVariationOfParameters(A, F, x)
SYS
-
list, set, or equation; a system of first order linear ordinary differential equations
Y
list or set or Vector of functions; the solving variables
A
Matrix; the Matrix of coefficients
F
Vector; the Vector of forcing functions
x
name; the independent variable
The ByVariationOfParameters(SYS, vars) command finds the solution of a system of first order linear ODEs using variation of parameters.
The system SYS may be written as a list or set of ODEs. If the solving variables cannot be unambiguously determined from the form of SYS, Y must also be specified as a list or set containing the solving variables.
Alternatively, SYS may be written as a single equation of the form:
DY=A·Y+F
where Y is a Vector of solving variables, DY a Vector of their derivatives, A is the Matrix of coefficients, and F is the Vector of forcing functions. In this case, Y does not need to be specified as an extra argument since it can be determined from the form of SYS.
A third syntax: ByVariationOfParameters(A, F, x) is also available as a shortcut to the above syntax DY = A . Y + F.
Use the option output=steps to make this command return an annotated step-by-step solution. Further control over the format and display of the step-by-step solution is available using the options described in Student:-Basics:-OutputStepsRecord. The options supported by that command can be passed to this one.
with⁡StudentODEsSolve:
A≔Matrix⁡1,2,3,2
A≔1232
F≔1,exp⁡x
F≔1ⅇx
Y≔y1⁡x,y2⁡x:
sys1≔diff⁡Y,x=A·Y+F
sys1≔ⅆⅆxy1⁡xⅆⅆxy2⁡x=y1⁡x+2⁢y2⁡x+13⁢y1⁡x+2⁢y2⁡x+ⅇx
Student:-ODEs:-Solve:-ByVariationOfParameters⁡sys1
y1⁡xy2⁡x=−ⅇx3+12−2⁢ⅇ−x5+7⁢ⅇ4⁢x30−34+2⁢ⅇ−x5+7⁢ⅇ4⁢x20
sys2≔seq⁡diff⁡Yi,x=A·Y+Fi,i=1..2
sys2≔ⅆⅆxy1⁡x=y1⁡x+2⁢y2⁡x+1,ⅆⅆxy2⁡x=3⁢y1⁡x+2⁢y2⁡x+ⅇx
Student:-ODEs:-Solve:-ByVariationOfParameters⁡sys2
y1⁡x=−ⅇx3+12−2⁢ⅇ−x5+7⁢ⅇ4⁢x30,y2⁡x=−34+2⁢ⅇ−x5+7⁢ⅇ4⁢x20
sys3≔convert⁡sys2,set
sys3≔ⅆⅆxy1⁡x=y1⁡x+2⁢y2⁡x+1,ⅆⅆxy2⁡x=3⁢y1⁡x+2⁢y2⁡x+ⅇx
Student:-ODEs:-Solve:-ByVariationOfParameters⁡sys3
The Student[ODEs][Solve][ByVariationOfParameters] command was introduced in Maple 2022.
For more information on Maple 2022 changes, see Updates in Maple 2022.
See Also
dsolve
Student
Student[ODEs]
Download Help Document