ByUndeterminedCoefficients - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


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

Student[ODEs][Solve]

  

ByUndeterminedCoefficients

  

Solve a linear ODE by the method of undetermined coefficients

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ByUndeterminedCoefficients(ODE, y(x))

Parameters

ODE

-

equation; a linear ordinary differential equation

y

-

name; the dependent variable

x

-

name; the independent variable

Description

• 

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.

Examples

withStudentODEsSolve:

ode1diffyx,x,x+2diffyx,x+2yx=sinx

ode1ⅆ2ⅆx2yx+2ⅆⅆxyx+2yx=sinx

(1)

ByUndeterminedCoefficientsode1,yx

ypx=2cosx5+sinx5

(2)

ode2diffyx,x,x+4diffyx,x+4yx=exp2x

ode2ⅆ2ⅆx2yx+4ⅆⅆxyx+4yx=ⅇ2x

(3)

ByUndeterminedCoefficientsode2,yx

ypx=x2ⅇ2x2

(4)

ode3diffyx,x,x4diffyx,x+4yx=x2

ode3ⅆ2ⅆx2yx4ⅆⅆxyx+4yx=x2

(5)

ByUndeterminedCoefficientsode3,yx

ypx=14x2+12x+38

(6)

Compatibility

• 

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]

Student[ODEs][Solve]