Student[ODEs][Solve]
ByUndeterminedCoefficients
Solve a linear ODE by the method of undetermined coefficients
Calling Sequence
Parameters
Description
Examples
Compatibility
ByUndeterminedCoefficients(ODESYS, 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.
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=ⅇ−2⁢x⁢x22
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.
See Also
dsolve
Student
Student[ODEs]
Download Help Document
What kind of issue would you like to report? (Optional)