Student[ODEs][Solve]
ByUndeterminedCoefficients
Solve a linear ODE by the method of undetermined coefficients
Calling Sequence
Parameters
Description
Examples
Compatibility
ByUndeterminedCoefficients(ODE, y(x))
ODE
-
equation; a linear ordinary differential equation
y
name; the dependent variable
x
name; the independent variable
The ByUndeterminedCoefficients(ODE, y(x)) command finds the solution of a linear ODE by the method of undetermined coefficients. This method is applicable when the coefficients of y(x) and its derivatives are constant and the forcing function is of a certain form, typically involving polynomials, exponentials, and trigonometric functions. This method works by determining the general form of a particular solution based on the form of the forcing function, substituting the proposed particular solution into the ODE, and solving for the undetermined coefficients.
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:
ode1≔diff⁡y⁡x,x,x+2⁢diff⁡y⁡x,x+2⁢y⁡x=sin⁡x
ode1≔ⅆ2ⅆx2y⁡x+2⁢ⅆⅆxy⁡x+2⁢y⁡x=sin⁡x
ByUndeterminedCoefficients⁡ode1,y⁡x
yp⁡x=−2⁢cos⁡x5+sin⁡x5
ode2≔diff⁡y⁡x,x,x+4⁢diff⁡y⁡x,x+4⁢y⁡x=exp⁡−2⁢x
ode2≔ⅆ2ⅆx2y⁡x+4⁢ⅆⅆxy⁡x+4⁢y⁡x=ⅇ−2⁢x
ByUndeterminedCoefficients⁡ode2,y⁡x
yp⁡x=x2⁢ⅇ−2⁢x2
ode3≔diff⁡y⁡x,x,x−4⁢diff⁡y⁡x,x+4⁢y⁡x=x2
ode3≔ⅆ2ⅆx2y⁡x−4⁢ⅆⅆxy⁡x+4⁢y⁡x=x2
ByUndeterminedCoefficients⁡ode3,y⁡x
yp⁡x=14⁢x2+12⁢x+38
The Student[ODEs][Solve][ByUndeterminedCoefficients] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021 .
The Student[ODEs][Solve][ByUndeterminedCoefficients] command was updated in Maple 2022.
The output option 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
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル