return a polynomial solution of a q-difference equation
PolynomialSolution(eq, var, inits, output=type)
q-difference equation or a list of such equations (for the system case)
function variable to solve for, such as y⁡x, or a list of such function variables (for the system case)
set of initial conditions
(optional) where type is one of basis, basis[C], onesol, gensol, or anysol and "C" is a name. The words output, basis, onesol, gensol and anysol must be used literally.
The PolynomialSolution(eq,var) calling sequence returns the polynomial solutions of the given linear q-difference equation with polynomial coefficients. If such a solution does not exist, then NULL is returned.
The PolynomialSolution command solves the problem with a single q-difference equation and also with a system of such equations. In the latter case the command invokes LinearFunctionalSystems[PolynomialSolution] in order to find solutions.
For the scalar case the command computes an indicial equation corresponding to the given equation. The indicial equation is used to bound the degree of the polynomial solution. Then coefficients of the polynomial solution are found either by the undetermined coefficients method for small equations or successively using the indicial equation and the given equation.
The parameter q in a scalar q-difference equation can be either a name or a rational number.
Optionally, you can specify output=basis, output=basis[var], output=onesol, output=gensol, or output=anysol.
Requests that independent solutions be provided in the form of a list of independent solutions (the basis). If the input recurrence is homogeneous, then the independent solutions are output in a list as [sol1,sol2,...,soln]. If the input recurrence is inhomogeneous, then the output is a list containing the list of independent solutions in the first element, and a particular solution in the second, as [[sol1,sol2,...,soln],part].
This is related to the output=basis form, but rather than providing the output in list form, it is provided as a single algebraic expression that is a C-linear combination of the independent solutions plus any particular solution for the inhomogeneous case. The independent solutions will have indexed coefficients of the form C0,C1,...,Cn, where C is as provided in the output=basis[C] option.
This specifies that only a single solution be provided as output.
This specifies that the fully general solution should be obtained for the problem, and will fail if unable to obtain as many independent solutions as the order of the recurrence (regardless of initial conditions). The initial conditions are applied once the full solution is obtained.
This specifies that if a solution can be obtained that satisfies the initial conditions, then it should be returned regardless of the number of independent solutions obtained. For example, if no independent solutions can be obtained, but no initial conditions have been specified, then the particular solution is output.
eq1 ≔ 1−q10−q−q10⁢x⁢y⁡q2⁢x−1−q20−q2−q20⁢x⁢y⁡q⁢x+q10⁢1−q10−q2−q11⁢x⁢y⁡x=q21−q20−q12+q10+q2−q⁢x
sol1 ≔ PolynomialSolution⁡eq1,y⁡x,,output=basis_K
q ≔ 12
sol1a ≔ PolynomialSolution⁡eq1,y⁡x,y⁡q10=q10,'output'='gensol'
q ≔ 'q':
eq2 ≔ q3⁢q⁢x+1⁢y⁡q2⁢x−2⁢q2⁢x+1⁢y⁡q⁢x+y⁡x⁢x+q=q6−2⁢q3+1⁢x2+x⁢q5−2⁢q3+q
sol2 ≔ PolynomialSolution⁡eq2,y⁡x,,output=basis_C
sys ≔ 200⁢y2⁡x⁢q⁢x−200⁢y2⁡x⁢q2⁢x−200⁢x⁢y1⁡x+200⁢x⁢y1⁡q⁢x+200⁢y1⁡x⁢q2⁢x−200⁢y1⁡q⁢x⁢q⁢x,y2⁡q⁢x−y1⁡x
vars ≔ y1⁡x,y2⁡x:
sol3 ≔ PolynomialSolution⁡sys,vars,,output=basis_K
Abramov, S.A. "Problems in Computer Algebra Related to Constructing Solutions to Linear Difference Equations with Polynomial Coefficients." Vest. Moskov. University, Ser.15. Vychisl. Mat. Kibern. No. 3. (1989): 56-60.
Abramov, S.A.; Bronstein, M.; and Petkovsek, M. "On polynomial solutions of linear operator equations." Proceedings of ISSAC'95, pp. 290-296. ACM Press: New York, 1995.
Download Help Document