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
LinearParticularSolution(ODE, y(x) = homsol)
LinearParticularSolution(ODE, y(x) = homsol, u(t))
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.
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.
with⁡StudentODEs:
with⁡StudentODEsReduceOrder:
Given a linear ODE:
ode≔diff⁡y⁡x,x,x−y⁡x=x
ode≔ⅆ2ⅆx2y⁡x−y⁡x=x
And a particular solution for the corresponding homogeneous ODE:
homsol≔y⁡x=exp⁡x
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
reduced_ode,tr≔ⅆⅆtu⁡t=−2⁢u⁡t⁢ⅇt−tⅇt,t=x,u⁡t=ⅆⅆxy⁡xⅇx
Solve the reduced order ODE:
reduced_sol≔Solve⁡reduced_ode,u⁡t
reduced_sol≔u⁡t=t−1⁢ⅇt+_C1⁢ⅇ−2⁢t
Apply the transformation to find a simpler ODE for the original variable y(x):
new_ode≔eval⁡reduced_sol,tr
new_ode≔ⅆⅆxy⁡xⅇx−y⁡xⅇx=x−1⁢ⅇx+_C1⁢ⅇ−2⁢x
Solve the simpler ODE to find the general solution of the original ODE:
gensol1≔Solve⁡new_ode,y⁡x
gensol1≔y⁡x=_C2⁢ⅇx−x−c__1⁢ⅇ−x2
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
gensol≔y⁡x=ⅇx⁢−ⅇ−2⁢x⁢c__12−ⅇ−x⁢x+_C2
Simplify the form of the general solution:
simplify⁡expand⁡gensol
y⁡x=_C2⁢ⅇx−x−c__1⁢ⅇ−x2
Use the output=basis option instead:
psol,basis≔LinearParticularSolution⁡ode,homsol,solve,output=basis
psol,basis≔−x,ⅇ−x,ⅇx
Show the new solution:
sol≔y⁡x=remove⁡`=`,basis,rhs⁡homsol1
sol≔y⁡x=ⅇ−x
Calculate the Wronskian of the two solutions for y(x):
W≔VectorCalculus:-Wronskian⁡basis,x
W≔ⅇ−xⅇx−ⅇ−xⅇx
The determinant should be nonzero to prove independence of the solutions:
simplify⁡LinearAlgebra:-Determinant⁡W
2
Another syntax showing that you can chose the name of the variable in the reduced ODE:
LinearParticularSolution⁡ode,y⁡x=exp⁡−x,v⁡s
ⅆⅆsv⁡s=2⁢v⁡s⁢ⅇ−s+sⅇ−s,s=x,v⁡s=ⅆⅆxy⁡xⅇ−x
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]
Download Help Document