Reduce the order of a linear ODE using a solution of the corresponding homogeneous ODE
LinearParticularSolution(ODE, y(x) = homsol)
LinearParticularSolution(ODE, y(x) = homsol, u(t))
second order linear ordinary differential equation
y(x) = homsol
equation; a solution of the corresponding homogeneous ODE
name; the original dependent variable
name; the original independent variable
name; the dependent variable for the reduced ODE
name; the independent variable for the reduced ODE
(optional) one or more of the following equations: solve=true, output=basis. See details below.
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.
Given a linear ODE:
ode ≔ ⅆ2ⅆx2⁢y⁡x−y⁡x=x
And a particular solution for the corresponding homogeneous ODE:
homsol ≔ y⁡x=ⅇx
Use this homogeneous solution to find a new ODE of reduced order which can be used to solve the original:
reduced_ode,tr ≔ LinearParticularSolution⁡ode,homsol
Solve the reduced order ODE:
reduced_sol ≔ Solve⁡reduced_ode,u⁡t
Apply the transformation to find a simpler ODE for the original variable y(x):
new_ode ≔ eval⁡reduced_sol,tr
Solve the simpler ODE to find the general solution of the original ODE:
gensol1 ≔ Solve⁡new_ode,y⁡x
Alternatively, the particular homogeneous solution can be used to solve the original ODE in a single step if we use the option solve:
gensol ≔ LinearParticularSolution⁡ode,homsol,'solve'
Simplify the form of the general solution:
Use the output=basis option instead:
psol,basis ≔ LinearParticularSolution⁡ode,homsol,'solve','output'='basis'
Show the new solution:
sol ≔ y⁡x=remove⁡`=`,basis,rhs⁡homsol1
Calculate the Wronskian of the two solutions for y(x):
W ≔ VectorCalculus:-Wronskian⁡basis,x
The determinant should be nonzero to prove independence of the solutions:
Another syntax showing that you can chose the name of the variable in the reduced ODE:
The Student[ODEs][ReduceOrder][LinearParticularSolution] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
Download Help Document