dsolve
Find formal power series solutions to a linear ODE with polynomial coefficients
Calling Sequence
Parameters
Description
Examples
dsolve(ODE, y(x), 'formal_series', 'coeffs'=coeff_type)
dsolve(ODE, y(x), 'type=formal_series', 'coeffs'=coeff_type)
ODE
-
linear ordinary differential equation with polynomial coefficients
y(x)
the dependent variable (the indeterminate function)
'type=formal_series'
request for formal power series solutions
'coeffs'=coeff_type
coeff_type is one of 'polynomial', 'rational', 'hypergeom', 'mhypergeom'
When the input ODE is a linear ode with polynomial coefficients which is homogeneous or inhomogeneous with rational right hand side, and the optional arguments 'formal_series' (or 'type=formal_series') and 'coeffs'=coeff_type are given, dsolve will return a set of formal power series solutions with the specified coefficients at all candidate points of expansion. See Slode for more details.
Formal power series solution with polynomial coefficients
ode≔3x2−6x+3diffdiffyx,x,x+12x−12diffyx,x+6yx
ode≔3x2−6x+3ⅆ2ⅆx2yx+12x−12ⅆⅆxyx+6yx
dsolveode,yx,formal_series,coeffs=polynomial
yx=∑_n=0∞_C2_n+_C1x_n
Formal power series solution with rational coefficients
ode≔3−xdiffdiffyx,x,x−diffyx,x
ode≔3−xⅆ2ⅆx2yx−ⅆⅆxyx
dsolveode,yx,formal_series,coeffs=rational
yx=_C2+_C1∑_n=1∞x−2_n_n
Formal power series solution with hypergeometric coefficients
ode≔2xx−1diffdiffyx,x,x+7x−3diffyx,x+2yx=0
ode≔2xx−1ⅆ2ⅆx2yx+7x−3ⅆⅆxyx+2yx=0
dsolveode,yx,type=formal_series,coeffs=hypergeom
yx=_C1∑_n=0∞_n+1x_n2_n+1,yx=_C1∑_n=0∞Γ12+_nx+1_n_n!π,yx=_C1∑_n=0∞Γ12+_n−1_nx−1_nΓ_n+1π
Formal m-sparse m-hypergeometric power series solutions
ode≔diffyx,x,x+x−1yx
ode≔ⅆ2ⅆx2yx+x−1yx
dsolveode,yx,type=formal_series,coeffs=mhypergeom
yx=_C1Γ23∑_n=0∞−19_nx−13_nΓ_n+1Γ_n+23,yx=2_C1π3∑_n=0∞−19_nx−13_n+1Γ_n+43Γ_n+19Γ23
See Also
dsolve,formal_solution
Slode
Download Help Document