ByVariationOfParameters - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : Student Packages : ODEs : Computation : Solve : ByVariationOfParameters

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

Calling Sequence

ByVariationOfParameters(SYS, Y)

ByVariationOfParameters(SYS)

ByVariationOfParameters(A, F, x)

Parameters

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

Description

• 

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.

Examples

> 

with⁡StudentODEsSolve:

> 

A≔Matrix⁡1,2,3,2

A≔1232

(1)
> 

F≔1,exp⁡x

F≔1ⅇx

(2)
> 

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

(3)
> 

Student:-ODEs:-Solve:-ByVariationOfParameters⁡sys1

y1⁡xy2⁡x=12−ⅇx3+7⁢ⅇ4⁢x30−2⁢ⅇ−x5−34+7⁢ⅇ4⁢x20+2⁢ⅇ−x5

(4)
> 

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

(5)
> 

Student:-ODEs:-Solve:-ByVariationOfParameters⁡sys2

y1⁡x=12−ⅇx3+7⁢ⅇ4⁢x30−2⁢ⅇ−x5,y2⁡x=−34+7⁢ⅇ4⁢x20+2⁢ⅇ−x5

(6)
> 

sys3≔convert⁡sys2,set

sys3≔ⅆⅆxy1⁡x=y1⁡x+2⁢y2⁡x+1,ⅆⅆxy2⁡x=3⁢y1⁡x+2⁢y2⁡x+ⅇx

(7)
> 

Student:-ODEs:-Solve:-ByVariationOfParameters⁡sys3

y1⁡x=12−ⅇx3+7⁢ⅇ4⁢x30−2⁢ⅇ−x5,y2⁡x=−34+7⁢ⅇ4⁢x20+2⁢ⅇ−x5

(8)

Compatibility

• 

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]

Student[ODEs][Solve]