LinearParticularSolution - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Student[ODEs][ReduceOrder]

  

LinearParticularSolution

  

Reduce the order of a linear ODE using a solution of the corresponding homogeneous ODE

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

LinearParticularSolution(ODE, y(x) = homsol)

LinearParticularSolution(ODE, y(x) = homsol, u(t))

Parameters

ODE

-

second order linear ordinary differential equation

y(x) = homsol

-

equation; a solution of the corresponding homogeneous ODE

y

-

name; the original dependent variable

x

-

name; the original independent variable

u

-

name; the dependent variable for the reduced ODE

t

-

name; the independent variable for the reduced ODE

opts

-

(optional) one or more of the following equations: solve=true, output=basis. See details below.

Description

• 

The LinearParticularSolution(ODE, homsol) command reduces the order of a second order linear ODE using a solution of the corresponding homogeneous ODE.

• 

The second argument must be a solution of the corresponding homogeneous ODE of the form y(x) = homsol, where homsol does not depend on y(x).

• 

The third argument, u(t), representing the variable for the reduced ODE, is optional. If it is not given, new independent and dependent variables will be chosen which do not conflict with the existing variables.

• 

The default output is a sequence consisting of the reduced ODE in terms of the new variables, followed by the transformation used to recover the original ODE from the reduced ODE.

• 

If the option solve or solve=true is also given, an attempt is made to solve the reduced ODE and return the general solution to the original ODE. If successful, the general solution of the original ODE is returned.

• 

If the option solve is given and, furthermore, the option output=basis is given, then as above an attempt is made to find the general solution to the original ODE, and the answer is returned in the form of a sequence. The first element of the sequence is a particular solution of the ODE, and the second element is a basis of solutions for the homogeneous solution.

Examples

withStudentODEs:

withStudentODEsReduceOrder:

Given a linear ODE:

odediffyx,x,xyx=x

odeⅆ2ⅆx2yxyx=x

(1)

And a particular solution for the corresponding homogeneous ODE:

homsolyx=expx

homsolyx=ⅇx

(2)

Use this homogeneous solution to find a new ODE of reduced order which can be used to solve the original:

reduced_ode,trLinearParticularSolutionode,homsol

reduced_ode,trⅆⅆtut=2utⅇttⅇt,t=x,ut=ⅆⅆxyxⅇx

(3)

Solve the reduced order ODE:

reduced_solSolvereduced_ode,ut

reduced_solut=t1ⅇt+_C1ⅇ2t

(4)

Apply the transformation to find a simpler ODE for the original variable y(x):

new_odeevalreduced_sol,tr

new_odeⅆⅆxyxⅇxyxⅇx=x1ⅇx+_C1ⅇ2x

(5)

Solve the simpler ODE to find the general solution of the original ODE:

gensol1Solvenew_ode,yx

gensol1yx=_C2ⅇxxc__1ⅇx2

(6)

Alternatively, the particular homogeneous solution can be used to solve the original ODE in a single step if we use the option solve:

gensolLinearParticularSolutionode,homsol,solve

gensolyx=ⅇxⅇ2xc__12ⅇxx+_C2

(7)

Simplify the form of the general solution:

simplifyexpandgensol

yx=_C2ⅇxxc__1ⅇx2

(8)

Use the output=basis option instead:

psol,basisLinearParticularSolutionode,homsol,solve,output=basis

psol,basisx,ⅇx,ⅇx

(9)

Show the new solution:

solyx=remove`=`,basis,rhshomsol1

solyx=ⅇx

(10)

Calculate the Wronskian of the two solutions for y(x):

WVectorCalculus:-Wronskianbasis,x

Wⅇxⅇxⅇxⅇx

(11)

The determinant should be nonzero to prove independence of the solutions:

simplifyLinearAlgebra:-DeterminantW

2

(12)

Another syntax showing that you can chose the name of the variable in the reduced ODE:

LinearParticularSolutionode,yx=expx,vs

ⅆⅆsvs=2vsⅇs+sⅇs,s=x,vs=ⅆⅆxyxⅇx

(13)

Compatibility

• 

The Student[ODEs][ReduceOrder][LinearParticularSolution] command was introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

See Also

dsolve

Student

Student[ODEs]

Student[ODEs][ReduceOrder]