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

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

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

>

withStudentODEsSolve:

>

AMatrix1,2,3,2

A1232

(1)
>

F1,expx

F1ⅇx

(2)
>

Yy1x,y2x:

>

sys1diffY,x=A·Y+F

sys1ⅆⅆxy1xⅆⅆxy2x=y1x+2y2x+13y1x+2y2x+ⅇx

(3)
>

Student:-ODEs:-Solve:-ByVariationOfParameterssys1

y1xy2x=12ⅇx3+7ⅇ4x302ⅇx534+7ⅇ4x20+2ⅇx5

(4)
>

sys2seqdiffYi,x=A·Y+Fi,i=1..2

sys2ⅆⅆxy1x=y1x+2y2x+1,ⅆⅆxy2x=3y1x+2y2x+ⅇx

(5)
>

Student:-ODEs:-Solve:-ByVariationOfParameterssys2

y1x=12ⅇx3+7ⅇ4x302ⅇx5,y2x=34+7ⅇ4x20+2ⅇx5

(6)
>

sys3convertsys2,set

sys3ⅆⅆxy1x=y1x+2y2x+1,ⅆⅆxy2x=3y1x+2y2x+ⅇx

(7)
>

Student:-ODEs:-Solve:-ByVariationOfParameterssys3

y1x=12ⅇx3+7ⅇ4x302ⅇx5,y2x=34+7ⅇ4x20+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 .


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /