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.
withStudentODEsSolve:
ode1≔diffyx,x,x+2diffyx,x+2yx=sinx
ode1≔ⅆ2ⅆx2yx+2ⅆⅆxyx+2yx=sinx
ByUndeterminedCoefficientsode1,yx
ypx=−2cosx5+sinx5
ode2≔diffyx,x,x+4diffyx,x+4yx=exp−2x
ode2≔ⅆ2ⅆx2yx+4ⅆⅆxyx+4yx=ⅇ−2x
ByUndeterminedCoefficientsode2,yx
ypx=x2ⅇ−2x2
ode3≔diffyx,x,x−4diffyx,x+4yx=x2
ode3≔ⅆ2ⅆx2yx−4ⅆⅆxyx+4yx=x2
ByUndeterminedCoefficientsode3,yx
ypx=14x2+12x+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