DEtools
particularsol
find a particular solution to a nonlinear ODE, or a linear non-homogeneous ODE, without computing its general solution
Calling Sequence
Parameters
Description
Examples
particularsol(ODE, y(x))
particularsol(ODE_coeff_list, x)
ODE
-
nonlinear, or linear non-homogeneous ODE
y(x)
dependent variable (required only when not obvious); can be any unknown function of one variable
ODE_coeff_list
list of coefficients representing a non-homogeneous linear ODE (see DEtools[convertAlg])
x
independent variable
The particularsol routine is used to find a particular solution for a nonlinear ordinary differential equation (ODE), or for a non-homogeneous linear ODE without computing the general solution to its homogeneous part.
For nonlinear ODEs, the approach used is to compute symmetries and from there compute invariant (particular) solutions.
For linear ODEs, particularsol tries, in sequence, to compute particular solutions of rational (see DEtools[ratsols]), exponential and d'Alembertian form (see LinearOperators[dAlembertianSolver]). If no particular solution is found, particularsol returns NULL.
When the input is an ODE, the output of particularsol is as dsolve's output, that is, an equation with the unknown y⁡x on the left-hand-side and the (particular) solution on the right-hand-side.
When the input is a list of the coefficients of y⁡x and its derivatives representing a linear ODE, for instance obtained from the ODE using DEtools[convertAlg], the output is not an equation but an expression representing the particular solution - see the examples.
In the case of a linear ODE, while particularsol is useful to compute a particular solution when the general solution of the homogeneous part of the ODE is not known, a particular solution can always be computed if that general solution is known - for that purpose use DEtools[varparam].
This function is part of the DEtools package, and so it can be used in the form particularsol(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[particularsol](..).
with⁡DEtools:
A third order nonlinear ODE
ode≔diff⁡y⁡x,x,x,x−diff⁡y⁡x,x,x⁢y⁡x+diff⁡y⁡x,x2=0
ode≔ⅆ3ⅆx3y⁡x−ⅆ2ⅆx2y⁡x⁢y⁡x+ⅆⅆxy⁡x2=0
No general solution is known for ode. A particular solution for it, however, depending on one arbitrary constant, is computable via
particularsol⁡ode
y⁡x=0,y⁡x=6−x+c__1
A second order non-homogeneous linear ODE whose homogeneous part is out of the scope of dsolve and a particular rational solution for it
NH_ODE≔133601600831056948930009536⁢x3+920184312063950707048658496⁢x2+−4242610768571010035328624653+3711155578640470803611376⁢x4−369364944765014363775910745⁢x3−4028299868602335386591950537⁢x2−7123173270557941102013850561⁢x⁢y⁡x+158668797683584879758300854−361937570512208809606272361⁢x4−743569265631618257116222299⁢x3+253413657274110944226342787⁢x2+698563894241740551690579371⁢x⁢diff⁡y⁡x,x+−3195084416888717732807842−8089797769268184221773945⁢x+14158747037070037877844107⁢x2+8089797769268184221773945⁢x3−10963662620181320145036265⁢x4⁢diff⁡y⁡x,`$`⁡x,2
NH_ODE≔133601600831056948930009536⁢x3+920184312063950707048658496⁢x2+3711155578640470803611376⁢x4−369364944765014363775910745⁢x3−4028299868602335386591950537⁢x2−7123173270557941102013850561⁢x−4242610768571010035328624653⁢y⁡x+−361937570512208809606272361⁢x4−743569265631618257116222299⁢x3+253413657274110944226342787⁢x2+698563894241740551690579371⁢x+158668797683584879758300854⁢ⅆⅆxy⁡x+−10963662620181320145036265⁢x4+8089797769268184221773945⁢x3+14158747037070037877844107⁢x2−8089797769268184221773945⁢x−3195084416888717732807842⁢ⅆ2ⅆx2y⁡x
p_sol≔particularsol⁡NH_ODE
p_sol≔y⁡x=−4⁢x4⁢9⁢x4+35⁢x3+49⁢x2+21⁢x+6x2−12⁢x−15
odetest⁡p_sol,NH_ODE
0
Represent this non-homogeneous linear ODE using a list with the coefficients of y(x) and its derivatives
coeff_list≔DEtoolsconvertAlg⁡NH_ODE,y⁡x
coeff_list≔3711155578640470803611376⁢x4−369364944765014363775910745⁢x3−4028299868602335386591950537⁢x2−7123173270557941102013850561⁢x−4242610768571010035328624653,−361937570512208809606272361⁢x4−743569265631618257116222299⁢x3+253413657274110944226342787⁢x2+698563894241740551690579371⁢x+158668797683584879758300854,−10963662620181320145036265⁢x4+8089797769268184221773945⁢x3+14158747037070037877844107⁢x2−8089797769268184221773945⁢x−3195084416888717732807842,−133601600831056948930009536⁢x3−920184312063950707048658496⁢x2
p_sol≔particularsol⁡coeff_list,x
p_sol≔−4⁢x4⁢9⁢x4+35⁢x3+49⁢x2+21⁢x+6x2−12⁢x−15
Note particularsol is not restricted to the computation of rational particular solutions
ode≔diff⁡y⁡x,x,x−y⁡x⁢x=4⁢x3+1⁢ln⁡xx⁢sqrt⁡x
ode≔ⅆ2ⅆx2y⁡x−y⁡x⁢x=4⁢x3+1⁢ln⁡xx32
p_sol≔particularsol⁡ode
p_sol≔y⁡x=−4⁢x⁢ln⁡x
odetest⁡p_sol,ode
See Also
DEtools[convertAlg]
DEtools[varparam]
dsolve
odetest
Download Help Document