1 Introduction

The symmetry feature of a polynomial sequence \(\{ W_{n}(x) \}_{n \ge 0}\) can be translated by the fact that every element of odd degree \(W_{2n+1}(x)\) is an odd polynomial function and every element of even degree \(W_{2n}(x)\) is an even polynomial function. This description is also equivalent to the splitting of a symmetric polynomial sequence into two new polynomial sequences \(\{P_{n}(x) \}_{n \ge 0}\) and \(\{ R_{n}(x) \}_{n \ge 0}\), such that

$$\begin{aligned} W_{2n}(x)= & {} P_{n}( x^2), \end{aligned}$$
(1)
$$\begin{aligned} W_{2n+1}(x)= & {} x R_{n}( x^2). \end{aligned}$$
(2)

This is called the quadratic decomposition (QD) of the symmetric polynomial sequence \(\{ W_{n}(x) \}_{n \ge 0}\) and the most famous example is given by the Hermite orthogonal polynomial sequence which QD has the Laguerre orthogonal polynomial sequence, with parameters \(\alpha =-\frac{1}{2},\, \frac{1}{2}\), in the role of \(\{P_{n}(x) \}_{n \ge 0}\) and \(\{ R_{n}(x) \}_{n \ge 0}\), respectively [1, 3, 24]. This simple QD has been generalised initially for all polynomial sequences (non-symmetric included) [18, 21] and later allowing the replacement both of \(x^2\) by any quadratic mapping \(x^2+px+q\) and the monomial x in (2) by a generic monic polynomial of degree of one \(x-a\) [15]. In particular, it is worth mentioning a widely known QD defined as in (1)–(2), though with the quadratic transformation \(x^2-1\), of the normalised Gegenbauer orthogonal polynomial sequence that has two Jacobi orthogonal polynomial sequences as \(\{P_{n}(x) \}_{n \ge 0}\) and \(\{ R_{n}(x) \}_{n \ge 0}\) [11]. In brief, a QD of a symmetric orthogonal polynomial sequence provides two new orthogonal sequences, not necessarily symmetric (e.g. [18, p.34]), and several further studies have showed the potencial of the quadratic decomposition in the study of symmetric and non-symmetric orthogonal polynomial sequences (e.g. [12, 13, 22]). We should also refer to several contributions regarding quadratic mappings considered in the study of orthogonal polynomials [4, 10, 16].

In this paper, we decompose quadratically 2-orthogonal polynomial sequences, following the wider set up of the QD and we put in evidence a family for which the application of the symbolic implementation of the general QD presented in [14] together with broad symbolic procedures introduced in [23] provides interesting results. In particular, that 2-orthogonal family yields three further 2-orthogonal polynomial sequences through the most general quadratic decomposition.

This approach has been applied to some 2-orthogonal polynomial sequences by means of the most simple cubic decomposition, as we can read for instance in [7]. A generalised notion of symmetry of order d is equivalent to a natural polynomial decomposition of order \(d+1\) which defines \(d+1\) new polynomial sequences. In other words, the most evident decomposition for a 2-orthogonal sequence and 2-symmetric would be the cubic decomposition and this technique allowed Douak and Maroni to list already a considerable amount of classical 2-orthogonal polynomial sequences in [7].

This article is organised as follows. In Sect. 2 we recall some notation and basic concepts about polynomial and dual sequences, d-symmetry and d-orthogonality, for any positive integer d. Section 3 is devoted to the general QD, firstly providing its definition and characterisation as given in [15], and secondly presenting the steps followed in the symbolic implementation applied throughout our study. In Sect. 4 we describe the particular family chosen as one of the main subjects of this paper and the corresponding output of that symbolic implementation. We also show in Sect. 5 the potential of the computational support in the analysis of the changes produced in the QD by the modification of a finite amount of initial parameters of the given 2-orthogonal polynomial sequence. In the final section we prove some recurrence relations fulfilled by the four sets of polynomials investigated previously.

2 Notation and Basic Concepts

Let \({\mathcal {P}}\) be the vector space of polynomials with coefficients in \(\mathbb {C}\) and let \({\mathcal {P}}^{\prime }\) be its topological dual space. We denote by \(\langle w ,p\rangle \) the action of the form or linear functional \(w \in {\mathcal {P}}^{\prime }\) on \(p\in {\mathcal {P}}\). In particular, \(\langle w, x^{n}\rangle :=\left( w \right) _{n},n\ge 0,\) represent the moments of w. In the following, we will call polynomial sequence (PS) to any sequence \({\{W_{n}\}}_{n \ge 0}\) such that \(\deg W_{n}= n,\; \forall n \ge 0\). We will also call monic polynomial sequence (MPS) to a PS so that all polynomials have leading coefficient equal to one.

If \({\{W_{n}\}}_{n \ge 0}\) is a MPS, there exists a unique sequence \(\{w_n\}_{n\ge 0}\), \(w_n\in {\mathcal {P}}^{\prime }\), called the dual sequence of \(\{W_{n}\}_{n\ge 0}\), such that,

$$\begin{aligned} \langle w_{n},W_{m}\rangle =\delta _{n,m} , \quad n,m\ge 0. \end{aligned}$$
(3)

On the other hand, given a MPS \({\{W_{n}\}}_{n \ge 0}\), the expansion of \(xW_{n+1}(x)\), defines sequences in \(\mathbb {C}\), \({\{\beta _{n}\}}_{n \ge 0}\) and \(\{\chi _{n,\nu }\}_{0 \le \nu \le n,\; n \ge 0},\) such that

$$\begin{aligned}&W_{0}(x)=1, \;\; W_{1}(x)=x-\beta _{0}, \end{aligned}$$
(4)
$$\begin{aligned}&xW_{n+1}(x)= W_{n+2}(x)+ \beta _{n+1}W_{n+1}(x)+\sum _{\nu =0}^{n}\chi _{n,\nu }W_{\nu }(x). \end{aligned}$$
(5)

This relation is usually called the structure relation of \({\{W_{n}\}}_{n \ge 0}\), and \({\{\beta _{n}\}}_{n \ge 0}\) and \(\{\chi _{n,\nu }\}_{0 \le \nu \le n,\; n \ge 0}\) are called the structure coefficients (SCs).

Definition 1

[7] A PS \({\{W_{n}\}}_{n \ge 0}\) is d-symmetric if

$$\begin{aligned} W_{n}(\xi _{k}x)=\xi _{k}^{n}W_{n}(x),\quad n \ge 0, \;\; k=1,2,\ldots , d, \end{aligned}$$

where \(\xi _{k}=\exp \left( \frac{2ik\pi }{d+1}\right) ,\; k=1,\ldots ,d\). If \(d=1\), then \(\xi _{1}=-1\) and we meet the definition of a symmetric PS in which we have the following property \(W_{n}(-x)=(-1)^{n}W_{n}(x),\;\; n \ge 0.\)

Lemma 1

[7] A PS \({\{W_{n}\}}_{n \ge 0}\) is d-symmetric if and only if it fulfils

$$\begin{aligned} W_{m}(x)=x^{\mu }\displaystyle \sum _{k=0}^{n} a_{m, (d+1)p+\mu }x^{(d+1)p}, \end{aligned}$$

where \(m=(d+1)n+\mu ,\;\; 0 \le \mu \le d,\; n \ge 0\).

Lemma 2

[20] For each \(u \in {\mathcal {P}}^{\prime }\) and each \(m \ge 1\), the two following statements are equivalent.

  1. (a)

    \(\langle u, W_{m-1} \rangle \ne 0,\,\, \langle u, W_{n} \rangle =0,\, n \ge m\).

  2. (b)

    \(\exists \lambda _{\nu } \in {\mathbb {C}},\,\, 0 \le \nu \le m-1,\,\, \lambda _{m-1}\ne 0\) such that \(u=\sum _{\nu =0}^{m-1}\lambda _{\nu } w_{\nu }\).

Definition 2

[7, 17] Given \(\varGamma ^{1}, \varGamma ^{2},\ldots , \varGamma ^{d} \in {\mathcal {P}}^{\prime }\), \(d \ge 1\), the polynomial sequence \({\{W_{n}\}}_{n \ge 0}\) is called d-orthogonal polynomial sequence (d-OPS) with respect to \(\varGamma =(\varGamma ^{1},\ldots , \varGamma ^{d} )\) if it fulfils

$$\begin{aligned}&\langle \varGamma ^{\alpha }, W_{m}W_{n} \rangle =0, \quad n \ge md +\alpha ,\,\; m \ge 0, \end{aligned}$$
(6)
$$\begin{aligned}&\langle \varGamma ^{\alpha }, W_{m}W_{md+\alpha -1} \rangle \ne 0, \quad m \ge 0, \end{aligned}$$
(7)

for each integer \(\alpha =1,\ldots , d\).

The conditions (6) are called the d-orthogonality conditions and the conditions (7) are called the regularity conditions. In this case, the functional \(\varGamma \), of dimension d, is said to be regular.

The d-dimensional functional \(\varGamma \) is not unique. Nevertheless, from Lemma 2, we have:

$$\begin{aligned} \varGamma ^{\alpha }=\sum _{\nu =0}^{\alpha -1}\lambda _{\nu }^{\alpha } u_{\nu }, \quad \lambda _{\alpha -1}^{\alpha } \ne 0, \; 1\le \alpha \le d. \end{aligned}$$

Therefore, since \(w=(w_{0},\ldots , w_{d-1} )\) is unique, we use to consider the canonical functional of dimension d, \(w=(w_{0},\ldots , w_{d-1} )\), saying that \({\{W_{n}\}}_{n \ge 0}\) is d-OPS (\(d\ge 1\)) with respect to \(w=(w_{0},\ldots , w_{d-1})\) if

$$\begin{aligned}&\langle w_{\nu }, W_{m}W_{n} \rangle =0, \;\; n \ge md +\nu +1,\,\; m \ge 0,\\&\langle w_{\nu }, W_{m}W_{md+\nu } \rangle \ne 0, \;\; m \ge 0, \end{aligned}$$

for each integer \(\nu =0,1,\ldots , d-1\). It is important to remark that when \(d=1\) we meet again the notion of regular orthogonality. Furthermore, the d-orthogonality corresponds to the generalisation of the well-known recurrence relation fulfilled by the orthogonal polynomials, as the next result recalls.

Theorem 1

[17] Let \({\{W_{n}\}}_{n \ge 0}\) be a MPS. The following statements are equivalent:

  1. (a)

    \({\{W_{n}\}}_{n \ge 0}\) is d-orthogonal with respect to \(w=(w_{0},\ldots , w_{d-1})\).

  2. (b)

    \({\{W_{n}\}}_{n \ge 0}\) satisfies a \((d+1)\)-order recurrence relation (\(d \ge 1\)):

    $$\begin{aligned} W_{m+d+1}(x)=(x-\beta _{m+d})W_{m+d}(x)-\sum _{\nu =0}^{d-1}\gamma _{m+d-\nu }^{d-1-\nu }W_{m+d-1-\nu }(x), \,\, m \ge 0, \end{aligned}$$

    with initial conditions

    $$\begin{aligned} W_{0}(x)= & {} 1,\,\, W_{1}(x)=x-\beta _{0}\quad \text {and if }d \ge 2{:}\\ W_{n}(x)= & {} (x-\beta _{n-1})W_{n-1}(x)-\sum _{\nu =0}^{n-2}\gamma _{n-1-\nu }^{d-1-\nu }W_{n-2-\nu }(x), \quad 2 \le n \le d, \end{aligned}$$

    and regularity conditions: \(\gamma _{m+1}^{0} \ne 0,\, \; m \ge 0.\)

In other words, when the MPS \(\{ W_{n} \}_{n \ge 0}\) is d-orthogonal, most of the structure coefficients \(\{\chi _{n,\nu }\}_{0 \le \nu \le n,\; n \ge 0}\) vanish and the remaining d sequences are renamed as \(\gamma \)’s. For example, while reading this latest theorem with \(d=1\) we encounter the following well known recurrence relation fulfilled by an orthogonal MPS (MOPS), with the habitual notation \(\gamma _{m+1}:= \gamma _{m+1}^{0} \).

$$\begin{aligned}&W_{m+2}(x)=(x-\beta _{m+1})W_{m+1}(x)-\gamma _{m+1}W_{m}(x),\\&W_{0}(x)=1,\,\, W_{1}(x)=x-\beta _{0}, \quad \gamma _{m+1} \ne 0,\, \; m \ge 0. \end{aligned}$$

The classical orthogonal polynomials fulfill many important properties (e.g. [3]) and they are characterized by the Hahn’s property, that is to say, the monic polynomial sequence obtained through the standard differentiation D, \(\{ (n+1)^{-1}DW_{n+1}(x)\}_{n \ge 0}\), is also orthogonal. The d-orthogonal MPSs fulfilling this property are also called d-classical MPSs in the Hahn’s sense and there are already several studies regarding these sequences [2, 5,6,7,8,9] that are still not known comprehensively.

Generally speaking, when we define the MPS of derivatives

$$\begin{aligned} W^{[1]}_{n}(x)=(n+1)^{-1}DW_{n+1}(x), \quad n \ge 0, \end{aligned}$$

of any given MPS \(\{ W_{n} \}_{n \ge 0}\) with structure relation (4)–(5), we easily get by differentiation the following recurrence relation which is a helpful tool in the forthcoming computational definition of \(\{ W^{[1]}_{n} \}_{n \ge 0}\):

$$\begin{aligned}&W^{[1]}_{n}(x)=\frac{W_{n}(x)}{n+1}+\frac{n}{n+1}\left( x-\beta _{n} \right) W^{[1]}_{n-1}(x)-\frac{1}{n+1}\sum _{\nu =1}^{n-1}\nu \, \chi _{n-1,\nu }W^{[1]}_{\nu -1}(x),\nonumber \\&\quad n\ge 2, \; W^{[1]}_{0}(x)=1 , \; W^{[1]}_{1}(x)=x-\frac{1}{2}\left( \beta _{0}+\beta _{1}\right) . \end{aligned}$$
(8)

Moreover, we already know that any MOPS may define other MOPSs by a simple change of the initial structure coefficients. This may be achieved either altering the structure coefficient (SC) \(\beta _{0}\) in which case we define a co-recursive sequence, or perturbing the initial sets of SCs \(\{\beta _{0},\ldots , \beta _{r}\}\) and \(\{\gamma _{1},\ldots , \gamma _{r}\}\) for any positive integer r, as we read in the following definition.

Definition 3

[19] Let \({\{W_{n}\}}_{n \ge 0}\) be an orthogonal MPS satisfying b) of Theorem 1 for \(d=1\) and let \(r \ge 1\).

Given \(\mu _{0} \in \mathbb {C}\), \(\mu =(\mu _{1},\ldots , \mu _{r})\, \in \mathbb {C}^{r}\) and \(\lambda =(\lambda _{1},\ldots , \lambda _{r})\, \in \Big (\mathbb {C}{\setminus } \{0\}\Big )^{r}\), where either \( \mu _{r} \ne 0\) or \( \lambda _{r} \ne 1\), the orthogonal MPS \({\{{\tilde{W}}_{n}(x)\}}_{n \ge 0}\) defined by

$$\begin{aligned} \left\{ \begin{array}{l} {\tilde{W}}_{0}(x)=1,\quad {\tilde{W}}_{1}(x)=x-{\tilde{\beta }}_{0}, \\ {\tilde{W}}_{n+2}(x)=(x-{\tilde{\beta }}_{n+1}){\tilde{W}}_{n+1}(x)-{\tilde{\gamma }}_{n+1}{\tilde{W}}_{n}(x)\ ,\quad n \ge 0\ , \end{array} \right. \end{aligned}$$
(9)

with

$$\begin{aligned} \begin{array}{ll} {\tilde{\beta }}_{0}=\beta _{0}+\mu _{0} ,&{}\quad \\ {\tilde{\beta }}_{n}=\beta _{n}+\mu _{n} ,&{}\quad {\tilde{\gamma }}_{n}=\lambda _{n}\gamma _{n} \ ,\quad 1\le n \le r\ ,\\ {\tilde{\beta }}_{n}=\beta _{n} ,&{} \quad {\tilde{\gamma }}_{n}=\gamma _{n} ,\quad n \ge r+1\ , \end{array} \end{aligned}$$

is called a perturbed sequence of order r of \({\{W_{n}\}}_{n \ge 0}\) and is denoted by

$$\begin{aligned} {\left\{ W_{n}\left( \mu _{0}; \begin{array}{c} \mu \\ \lambda \\ \end{array}; r ; x \right) \right\} }_{n \ge 0}. \end{aligned}$$

When a single change on the coefficient \(\beta _{0}\) is taken and thus \( \mu _{n} = 0\) and \( \lambda _{n} = 1\;\) for \(1\le n \le r\;\) the resultant MOPS is called a co-recursive sequence of \({\{W_{n}\}}_{n \ge 0}\) and is notated by \({\{W_{n}(\mu _{0}; x)\}}_{n \ge 0}\).

A perturbation on a specific set of the initial SCs can always be considered for any d-orthogonal MPS, through its recurrence relation, if we assure the regularity conditions of the perturbed d-orthogonal MPS (\({\tilde{\gamma }}^{0}_{n}\ne 0\)). In this work, we will describe characteristics obtained with the help of symbolic manipulations for a given 2-orthogonal MPS \({\{W_{n}\}}_{n \ge 0}\) and regarding the 2-orthogonal MPS \({\{{\tilde{W}}_{n}\}}_{n \ge 0}\) defined initially as a co-recursive and secondly by means of further perturbations. In brief, the recurrence relations fulfilled by each one are as follows, with coefficients \(\beta _{n}, \, \gamma _{n+1}^{1}, \, \gamma _{n+1}^{0}, \; n \ge 0\), with \(\gamma _{n+1}^{0} \ne 0,\,\,\, n \ge 0\), in view of Theorem 1.

$$\begin{aligned}&W_{n+1}(x)=(x-\beta _{n})W_{n}(x)-\gamma _{n}^{1}W_{n-1}(x)-\gamma _{n-1}^{0}W_{n-2}(x),\quad n \ge 2,\nonumber \\&W_{0}(x)=1,\,\, W_{1}(x)=x-\beta _{0},\,\, W_{2}(x)=(x-\beta _{1})W_{1}(x)-\gamma _{1}^{1}. \end{aligned}$$
(10)

It is often used a lighter notation for the 2-orthogonality by renaming the gammas as follows (cf. [6])

$$\begin{aligned}&W_{n+1}(x)=(x-\beta _{n})W_{n}(x)-\alpha _{n}W_{n-1}(x)-\gamma _{n-1}W_{n-2}(x),\quad n \ge 2,\nonumber \\&W_{0}(x)=1,\,\, W_{1}(x)=x-\beta _{0},\,\, W_{2}(x)=(x-\beta _{1})W_{1}(x)-\alpha _{1}. \end{aligned}$$
(11)

The co-recursive 2-orthogonal MPS \({\{{\tilde{W}}_{n}(x)\}}_{n \ge 0}\) or \({\{W_{n}(\mu ; x)\}}_{n \ge 0}\) that later on we will consider is defined by the next recurrence.

$$\begin{aligned}&{\tilde{W}}_{n+1}(x)=(x-\beta _{n}){\tilde{W}}_{n}(x)-\alpha _{n}{\tilde{W}}_{n-1}(x)-\gamma _{n-1}{\tilde{W}}_{n-2}(x),\quad n \ge 2,\nonumber \\&{\tilde{W}}_{0}(x)=1,\,\, {\tilde{W}}_{1}(x)=x-\beta _{0}-\mu ,\,\, {\tilde{W}}_{2}(x)=(x-\beta _{1}){\tilde{W}}_{1}(x)-\alpha _{1}. \end{aligned}$$
(12)

Let us remark that in the next sections we will notate \({\tilde{\beta }}_{0}= \tau := \beta _{0}+\mu \).

3 Quadratic Decomposition and Symbolic Implementation

Given a MPS \(\{W_n\}_{n\ge 0}\), and fixing a monic quadratic polynomial mapping

$$\begin{aligned} \,\omega (x)=x^2+px+q,\quad p,q\in \mathbb {C}\end{aligned}$$
(13)

and a constant \(a\in \mathbb {C},\) it is always possible to associate with it, two MPSs \(\,\left\{ P_n\right\} _{n\ge 0}\,\) and \(\,\left\{ R_n\right\} _{n\ge 0}\,\) and two other sequences of polynomials \(\,\left\{ a_n\right\} _{n\ge 0}\,\) and \(\,\left\{ b_n\right\} _{n\ge 0}\,\) through the unique decomposition

$$\begin{aligned} W_{2n}(x)= & {} P_n(\omega (x))+(x-a) a_{n-1}(\omega (x)) \end{aligned}$$
(14)
$$\begin{aligned} W_{2n+1}(x)= & {} b_n(\omega (x))+(x-a) R_{n}(\omega (x)),\quad n \ge 0, \end{aligned}$$
(15)

where \(\,\deg \left( a_n(x)\right) \le n\,,\,\,\deg \left( b_n(x) \right) \le n\,,\) and \(a_{-1}(x)=0\,\,\) [15]. Thus, in this general QD, we have the three free parameters p, q and a.

Thus, any MPS \(\{W_n\}_{n\ge 0}\) gives rise to further four sequences of polynomials by quadratic decomposition (QD), being \(\{P_n\}_{n\ge 0}\) and \(\{R_n\}_{n\ge 0}\) MPSs, the so-called principal components. It is useful to assemble the four sequences produced by any QD in a matrix format as follows.

$$\begin{aligned} \left( \begin{array}{cc} P_{n}(x) &{}\quad a_{n-1}(x) \\ b_{n}(x) &{}\quad R_{n}(x) \\ \end{array} \right) \end{aligned}$$
(16)

A QD is said diagonal when the often called secondary component sequences \(\,\left\{ a_n\right\} _{n\ge 0}\,\) and \(\,\left\{ b_n\right\} _{n\ge 0}\,\) are zero. For example, when \(a=p=q=0\), the QD produced by a symmetric MPS is diagonal.

Recently, in [14] it was presented the computational implementation of the following theoretical characterisation of the four components of a QD, with applications on specific families of orthogonal polynomials.

Proposition 1

[15] A MPS \(\left\{ W_n\right\} _{n\ge 0}\,\) defined by (4)–(5) fulfils (14)–(15) if and only if the following recurrence relations hold.

$$\begin{aligned} b_0(x)= & {} a-\beta _0 \end{aligned}$$
(17)
$$\begin{aligned} P_{n+1}(x)= & {} -\displaystyle \sum _{\nu =0}^n\chi _{2n,2\nu }P_\nu (x)+\left( x-\omega (a)\right) R_n(x) +\left( a-\beta _{2n+1}\right) b_n(x)\nonumber \\&-\,\displaystyle \sum _{\nu =0}^{n-1}\chi _{2n,2\nu +1}b_\nu (x) \end{aligned}$$
(18)
$$\begin{aligned} a_n(x)= & {} -\displaystyle \sum _{\nu =0}^n\chi _{2n,2\nu }a_{\nu -1}(x)-\left( a+p+\beta _{2n+1}\right) R_n(x)+b_n(x)\nonumber \\&-\,\displaystyle \sum _{\nu =0}^{n-1}\chi _{2n,2\nu +1}R_\nu (x) \end{aligned}$$
(19)
$$\begin{aligned} b_{n+1}(x)= & {} -\displaystyle \sum _{\nu =0}^n\chi _{2n+1,2\nu +1} b_\nu (x)+\left( a-\beta _{2n+2}\right) P_{n+1}(x)\nonumber \\&+\, \left( x-\omega (a)\right) a_n(x) -\displaystyle \sum _{\nu =0}^n\chi _{2n+1,2\nu }P_\nu (x) \end{aligned}$$
(20)
$$\begin{aligned} R_{n+1}(x)= & {} -\displaystyle \sum _{\nu =0}^n\chi _{2n+1,2\nu +1}R_\nu (x)+P_{n+1}(x)-\left( a+p+\beta _{2n+2}\right) a_n(x)\nonumber \\&-\,\displaystyle \sum _{\nu =0}^n\chi _{2n+1,2\nu }a_{\nu -1}(x) \end{aligned}$$
(21)

The input data of such implementation is given by the coefficients a, p and r (if we decide to make them precise), as well as the structure coefficients \(\beta _{n}\) and \(\chi _{n,\nu }\), \(0\le \nu \le n\), \(n \ge 0\).

In order to investigate the structure of each component we have gathered some short commands developed in [23], namely a generic command that computes the structure coefficients of any previously defined MPS, and further instructions that search for the possibility of defining a proper MPS from the secondary components.

The symbolic implementation used has the following structure.

  • Step 1 Input data (adapted to a 2-orthogonal MPS)

    SCs of \(\{W_{n}(x)\}_{n \ge 0}\)

    Comments

    \(\beta _{n}= \cdots \)

    \(n \ge 0\)

    \(\chi _{n,n} = \cdots \)

    \(\chi _{n,n}= \alpha _{n+1} , \; n \ge 0\)

    \(\chi _{n,n-1} = \cdots \)

    \(\chi _{n,n-1} = \gamma _{n}, \; n \ge 1\)

    \( \chi _{n,\nu } = 0 , \;\; 0 \le \nu < n-1 \)

    \(n \ge 1\)

    Further parameters

    Comments

    \(nmax=\cdots \)

    Positive integer that indicates the higher degree of the polynomial sets that will be computed

    \(a=\cdots ; p=\cdots ; q=\cdots \)

    Only for specific cases of the QD

  • Step 2 Application of the symbolic implementation of the QD yielding the data set

    $$\begin{aligned} \left( \begin{array}{cc} P_{i}(x) &{}\quad a_{i-1}(x) \\ b_{i}(x) &{}\quad R_{i}(x) \\ \end{array} \right) \quad i=0,\ldots , nmax \end{aligned}$$
  • Step 3 Application of the routine \(\hbox {SC}_{\zeta }\) that computes the initial SCs \(\beta ^{\zeta }_{n}\) and \(\chi ^{\zeta }_{n,\nu }\) of any given MPS \({\{\zeta _{n}\}}_{n \ge 0}\), to the MPSs \(\{P_{n}\}_{n \ge 0}\) and \(\{R_{n}\}_{n \ge 0}\), using their initial data.

  • Step 4 Analysis of the secondary components \(\{a_{n}\}_{n \ge 0}\) and \(\{b_{n}\}_{n \ge 0}\). When the obtained data issues \(\deg ( b_{n}(x) )= n-k\) for a fixed k, \(n \ge k\), and \(b_{n}(x)=0, \; 0 \le n < k\), for example, it is possible to define the initial elements of the corresponding MPS \(B_{n}(x)= \frac{1}{\eta _{n+k}}b_{n+k}\), \(n \ge 0\), where \(b_{n+k}(x)=\eta _{n+k}x^{n}+\cdots \), and apply the instruction of the third step.

  • Step 5 Definition of the derivative sequence \(\zeta ^{[1]}_{n}(x)= \tfrac{1}{n+1} D\left( \zeta _{n+1}(x) \right) \) using recurrence (8) for \(\zeta = P, R\) and when possible for \(\zeta =A, B\), and subsequent computation of their SCs as in Step 3.

4 Results of a Case Study

The 2-orthogonal MPS that we are going to explore in the next sections is defined by structure coefficients (SCs) that are either constants modulo two or have alternating behaviour, as next described in Table 1 using the constants \(\beta \), \(\alpha _{1}\), \(\alpha _{2} \in {\mathbb {C}}\) and \(\gamma \in {\mathbb {C}}\backslash \{ 0\} \), and we will consider a general QD with parameters a, p and q.

Table 1 Structure Coefficients (SCs) of the 2-orthogonal MPS \(\{ W_{n} (x)\}_{n \ge 0}\)

Taking into account that the polynomial sets \(\{a_n\}_{n\ge 0}\) and \(\{b_n\}_{n\ge 0}\) may not have a MPS structure, when it is confirmed computationally that \(\{a_n\}_{n= 0, \ldots , nmax}\) or \(\{b_n\}_{n= 0, \ldots , nmax}\) span the vector space \({\mathcal {P}}_{max}\) of polynomial functions of degree lower than or equal to nmax, for a certain positive integer nmax, we will use the following notation.

$$\begin{aligned}&A_{n}(x) =\left( l_{a,n} \right) ^{-1} a_{n}(x) , \quad a_{n}(x)= l_{a,n} x^n + \, (\text {terms of degree less than }\, n )\\&B_{n}(x) =\left( l_{b,n} \right) ^{-1} b_{n}(x) , \quad b_{n}(x)= l_{b,n} x^n + \, (\text {terms of degree less than }\, n ) \end{aligned}$$

We must begin to clarify that we have concluded through the symbolic computation of the initial SCs of the MPS \(\{ W^{[1]}_{n} (x)\}_{n \ge 0}\) that \(\{ W_{n} (x)\}_{n \ge 0} \) defined by (22) is not a classical 2-orthogonal MPS.

4.1 Case I: \(p \ne -\beta -a\)

Let us assume that the parameters p and a fulfill \(p \ne -\beta -a\). The initial results produced by the computational implementation suggest that \(\{a_{n}\}_{n \ge 0}\) is zero, in particular, for all p and q,

$$\begin{aligned} W_{2n}(x)= P_{n}\left( x^2+px+q\right) ,\quad n \ge 0, \end{aligned}$$

and the remaining three polynomial sets are also 2-orthogonal as indicated in Table 2.

Table 2 Description of the general QD of the 2-orthogonal MPS defined by SCs (22) when \(p \ne -\beta -a\)
$$\begin{aligned} \beta _{0}^{P}&= q+\alpha _{1} + \left( p+\beta \right) \beta , \quad \beta _{n}^{P}= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , \quad n \ge 1 \end{aligned}$$
(23)
$$\begin{aligned} \alpha _{n}^{P}&= \alpha _{1} \alpha _{2} + \gamma (p+2\beta ) , \quad \gamma _{n}^{P} = \gamma ^{2} , \quad n \ge 1. \nonumber \\ \beta _{n}^{R}&= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , \quad n \ge 0\end{aligned}$$
(24)
$$\begin{aligned} \alpha _{n}^{R}&= \alpha _{1} \alpha _{2} + \gamma (p+2\beta ) , \quad \gamma _{n}^{R} = \gamma ^{2} , \quad n \ge 1. \nonumber \\ \beta _{0}^{B}&= q+ \alpha _{1} +\alpha _{2}+ \frac{a \beta \left( p+ \beta \right) +\beta (p+\beta )^{2} -\gamma }{a+p+\beta }\end{aligned}$$
(25)
$$\begin{aligned} \beta _{n}^{B}&= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , \quad n \ge 1\nonumber \\ \alpha _{n}^{B}&= \alpha _{1} \alpha _{2} + \gamma (p+2\beta ) , \quad \gamma _{n}^{B} = \gamma ^{2} , \quad n \ge 1. \nonumber \\ \beta _{n}^{R^{[1]}}&= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , \quad n \ge 0 \\ \alpha _{n}^{R^{[1]}}&= \frac{n(n+3)}{(n+1)(n+2)}\left( \alpha _{1} \alpha _{2} + \gamma (p+2\beta )\right) , \quad \nonumber \\ \gamma _{n}^{R^{[1]}}&= \frac{n(n+5)}{(n+2)(n+3)}\gamma ^{2} , \quad n \ge 1.\nonumber \end{aligned}$$
(26)

4.1.1 Particular Case: \(p \ne -\beta -a\) and \(\alpha _{2}=0\)

Let us continue to assume that the parameters p and a fulfill \(p \ne -\beta -a\). Some of the SCs obtained previously indicated the presence of the factor \(\alpha _{2}\), thus it seemed relevant to collect the same data when \(\alpha _{2}=0\). As a particular case of the previous one, most of the outlined features are maintained, as for instance, \(W_{2n}(x)= P_{n}\left( x^2+px+q\right) , \,n \ge 0\,\). The summary can be checked in Table 3.

$$\begin{aligned} \beta _{n}^{R}&= q+\alpha _{1} + \left( p+\beta \right) \beta , \quad n \ge 0 \end{aligned}$$
(27)
$$\begin{aligned} \alpha _{n}^{R}&= \gamma (p+2\beta ) , \quad \gamma _{n}^{R} = \gamma ^{2} ,\quad n \ge 1. \nonumber \\ \beta _{0}^{B}&=q+ \alpha _{1}+\frac{ a\beta \left( p+\beta \right) +\beta (p+\beta )^{2} -\gamma }{a+p+\beta } \end{aligned}$$
(28)
$$\begin{aligned} \beta _{n}^{B}&= q+\alpha _{1} + \left( p+\beta \right) \beta , \quad n \ge 1\nonumber \\ \alpha _{n}^{B}&= \gamma (p+2\beta ) , \quad \gamma _{n}^{B} = \gamma ^{2} , \quad n \ge 1. \nonumber \\ \beta _{n}^{R^{[1]}}&= q+\alpha _{1} + \left( p+\beta \right) \beta , \quad n \ge 0\\ \alpha _{n}^{R^{[1]}}&= \frac{n(n+3)}{(n+1)(n+2)} \gamma (p+2\beta ) , \nonumber \\ \gamma _{n}^{R^{[1]}}&= \frac{n(n+5)}{(n+2)(n+3)}\gamma ^{2} , \quad n \ge 1.\nonumber \end{aligned}$$
(29)
Table 3 Description of the general QD of the 2-orthogonal MPS defined by SCs (22) when \(p \ne -\beta -a\) and \(\alpha _{2}=0\)

4.2 Case II: \(p = -\beta -a\)

Let us now assume that the parameters p and a fulfill \(p = -\beta -a\). The initial results produced by the computational implementation continue to suggest that \(\{a_{n}\}_{n \ge 0}\) is null, in particular, \(W_{2n}(x)= P_{n}\left( x^2+px+q\right) , \,n \ge 0,\) and the remaining information is indicated in Table 4. In this case, the polynomial set \(\{b_{n}(x)\}_{n \ge 0}\) fulfils \(\deg \left( b_{n}(x) \right) =n-1, \, n \ge 1\) and \(b_{0}(x)=0\), with \(b_{n}(x)= \gamma x^{n-1} + \, (\text {terms of degree less than }\, n-1 )\), and therefore we define the MPS

$$\begin{aligned} {\bar{B}}_{n}(x)&= \gamma ^{-1} b_{n+1}(x), \quad n \ge 0.\end{aligned}$$
(30)
$$\begin{aligned} \beta _{0}^{P}&= q+\alpha _{1} -a\beta , \quad \beta _{n}^{P}= q+\alpha _{1} +\alpha _{2} -a \beta , \quad n \ge 1\nonumber \\ \alpha _{n}^{P}&= \alpha _{1} \alpha _{2} - a \gamma + \beta \gamma , \quad \gamma _{n}^{P} = \gamma ^{2} , \quad n \ge 1. \end{aligned}$$
(31)
$$\begin{aligned} \beta _{n}^{R}&= q+\alpha _{1} +\alpha _{2} -a\beta , \quad n \ge 0\nonumber \\ \alpha _{n}^{R}&= \alpha _{1} \alpha _{2} - a \gamma +\beta \gamma , \quad \gamma _{n}^{R} = \gamma ^{2} , \quad n \ge 1. \\ \beta _{n}^{R^{[1]}}&= q+\alpha _{1} +\alpha _{2} -a\beta , \quad n \ge 0\nonumber \\ \alpha _{n}^{R^{[1]}}&= \frac{n(n+3)}{(n+1)(n+2)}\left( \alpha _{1} \alpha _{2} - a\gamma +\beta \gamma \right) , \nonumber \\ \gamma _{n}^{R^{[1]}}&= \frac{n(n+5)}{(n+2)(n+3)}\gamma ^{2} , \quad n \ge 1.\nonumber \end{aligned}$$
(32)

More precisely, when \(p = -\beta -a\) we get the following general QD:

$$\begin{aligned} W_{2n}(x)&= P_{n}(x^2+px+q)\\ W_{2n+1}(x)&= \gamma R_{n-1}(x^2+px+q)+(x-a)R_{n}(x^2+px+q) \end{aligned}$$

where \(\{R_{n}(x)\}_{n \ge 0}\) is a 2-classical MPS and \(\{P_{n}(x)\}_{n \ge 0}\) is a co-recursive of \(\{R_{n}(x)\}_{n \ge 0}\).

Table 4 Description of the general QD of the 2-orthogonal MPS defined by SCs (22) when \(p = -\beta -a\)

4.2.1 Particular Case: \(p = -\beta -a\) and \(\alpha _{2}=0\)

Comparing the coefficients described in (30)–(31), we easily confirm that if \(\alpha _{2}=0\), the principal components \(\{P_{n}\}_{n \ge 0}\) and \(\{R_{n}\}_{n \ge 0}\) coincide and similarly to Sect. 4.1.1, we conclude that \(\{P^{[1]}_{n}\}_{n \ge 0}\) is also 2-orthogonal. Moreover, \(\{P_{n}\}_{n \ge 0}\), \(\{R_{n}\}_{n \ge 0}\) and \(\{{\bar{B}}_{n}\}_{n \ge 0}\) are identical. The corresponding SCs can be obtained through (31) for \(\{R_{n}\}_{n \ge 0}\) and (32) for \(\{R^{[1]}_{n}\}_{n \ge 0}\) replacing \(\alpha _{2}\) by zero.

5 Results for a Co-recursive Sequence and for Higher Perturbations

Let us now consider a co-recursive sequence of the 2-orthogonal MPS with SCs (22) \(\{ W_{n} (x)\}_{n \ge 0}\) as defined previously in (12) by a single change in the parameter \(\beta _{0}\). More precisely, we will perform the quadratic decomposition of a MPS defined by the SCs (33) and follow the same notation and definitions of the Sect. 4. Further, we assume that \(\tau \ne -p-\beta \) otherwise we would be facing the MPS \(\{ W_{n} (x)\}_{n \ge 0}\) once more.

$$\begin{aligned}&\beta _{0}= \tau , \quad \beta _{2n}= -(p+\beta ) , \quad n \ge 1, \\&\beta _{2n+1}= \beta , \quad n \ge 0, \nonumber \\&\chi _{2n,2n} = \alpha _{2n+1} = \alpha _{1} , \quad \chi _{2n+1,2n+1} = \alpha _{2n+2} = \alpha _{2} , \quad n \ge 0, \nonumber \\&\chi _{n,n-1} = \gamma _{n} = (-1)^{n} \gamma , \quad n \ge 1, \nonumber \\&\chi _{n,\nu } = 0 , \quad 0 \le \nu < n-1 ,\quad n \ge 1 .\nonumber \end{aligned}$$
(33)

5.1 Case I: \(\tau \ne a\) and \(\tau \ne -p-\beta \)

Let us assume that the parameters \(\tau \) and a fulfill \(\tau \ne a\) besides the obvious restriction \(\tau \ne -p-\beta \). The initial results produced by the computational implementation no longer suggest that \(\{a_{n}\}_{n \ge 0}\) is null and therefore we have now the four components to analyse. The essential information is issued in Table 5.

Table 5 Description of the general QD of the 2-orthogonal MPS defined by SCs (33) when \(\tau \ne a\) and \(\tau \ne -p-\beta \)
$$\begin{aligned} \beta _{0}^{P}&= ap+q+\alpha _{1} +a\beta +a\tau - \beta \tau , \quad \beta _{n}^{P}= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , \quad n \ge 1,\\ \alpha _{1}^{P}&= \alpha _{1} \alpha _{2} + \gamma (\beta -\tau ) , \quad \alpha _{n}^{P}=\alpha _{1} \alpha _{2} + \gamma (p+2\beta ) \nonumber \\ \gamma _{n}^{P}&= \gamma ^{2} , \quad n \ge 1. \nonumber \end{aligned}$$
(34)
$$\begin{aligned} \beta _{0}^{B}&=q+\alpha _{2}+p \beta + \beta ^2 + \frac{\alpha _{1}\left( a+p+\beta \right) -\gamma }{a-\tau }\\ \beta _{n}^{B}&= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , \quad n \ge 1,\nonumber \\ \alpha _{n}^{B}&= \alpha _{1} \alpha _{2} + \gamma (p+2\beta ) ,\nonumber \\ \gamma _{n}^{B}&= \gamma ^{2} , \quad n \ge 1. \nonumber \end{aligned}$$
(35)

5.2 Case II: \(\tau = a\) and \(\tau \ne -p-\beta \)

Let us finally assume that the parameters \(\tau \) and a are identical. The secondary component \(\{a_{n}\}_{n \ge 0}\) is not zero and therefore we have now the four components to analyse. Most of the information obtained in the previous case I is kept. The difference lies in the sequence \(\{b_{n}\}_{n \ge 0}\) for which we get \(\deg \left( b_{n}(x) \right) =n-1, \, n \ge 1,\, \) and \(b_{0}(x)=0\), with \(b_{n}(x) =\left( \gamma -\alpha _{1}(a+p+\beta ) \right) x^{n-1} + \, (\text {terms of degree less than }\, n-1 ) \) and therefore we define the MPS

$$\begin{aligned} {\bar{B}}_{n}(x)= \left( \gamma -\alpha _{1}(a+p+\beta ) \right) ^{-1} b_{n+1}(x), \quad n \ge 0. \end{aligned}$$

The essential information is indicated in Table 6.

$$\begin{aligned} \beta _{0}^{P}&= a^2+ ap+q+\alpha _{1} , \quad \beta _{n}^{P}= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , \quad n \ge 1,\,\\ \alpha _{1}^{P}&= \alpha _{1} \alpha _{2} + \gamma (\beta -a) , \quad \alpha _{n}^{P}=\alpha _{1} \alpha _{2} + \gamma (p+2\beta ) \nonumber \\ \gamma _{n}^{P}&= \gamma ^{2} , \quad n \ge 1.\nonumber \end{aligned}$$
(36)
Table 6 Description of the general QD of the 2-orthogonal MPS defined by SCs (33) when \(\tau = a\) and \(\tau \ne -p-\beta \)

5.3 Perturbation of Order Two (I)

The main structure of the results described in the previous sections holds when we consider a larger perturbation of order two, given the non-zero constants \(\eta _{1}, \eta _{2}\) and \(\xi \), as follows.

$$\begin{aligned}&\beta _{0}= \tau , \quad \beta _{2n}= -(p+\beta ) , \quad n \ge 1, \\&\beta _{2n+1}= \beta , \quad n \ge 0, \nonumber \\&\chi _{0,0}=\alpha _{1}\eta _{1},\; \chi _{1,1}=\alpha _{2}\eta _{2},\; \nonumber \\&\chi _{2n,2n} = \alpha _{2n+1} = \alpha _{1} , \quad \chi _{2n+1,2n+1} = \alpha _{2n+2} = \alpha _{2} , \quad n \ge 1, \nonumber \\&\chi _{1,0} = - \gamma \xi , \quad \chi _{n,n-1} = \gamma _{n} = (-1)^{n} \gamma , \quad n \ge 2, \nonumber \\&\chi _{n,\nu } = 0 , \quad 0 \le \nu < n-1 ,\quad n \ge 1 .\nonumber \end{aligned}$$
(37)

More precisely, the principal component sequences \(\{ P_{n} \}_{n \ge 0}\) and \(\{ R_{n} \}_{n \ge 0}\) are 2-orthogonal and

$$\begin{aligned} \beta _{0}^{P}&= a p + q + a \beta + \alpha _{1}\eta _{1} + \left( a-\beta \right) \tau , \quad \beta _{1}^{P}= q + \alpha _{1}+\left( p+\beta \right) \beta + \alpha _{2}\eta _{2} ,\\ \beta _{n}^{P}&= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta ,\; n \ge 2,\\ \alpha _{1}^{P}&= a\gamma +\alpha _{1} \alpha _{2} \eta _{1}\eta _{2}+\gamma \xi \left( \beta -a \right) -\gamma \tau , \quad \alpha _{n}^{P}=\alpha _{1} \alpha _{2} + \gamma (p+2\beta ) ,\\ \gamma _{1}^{P}&=\gamma \left( a\alpha _{2}- a\alpha _{2}\eta _{2}+\gamma \xi -\alpha _{2}\tau +\alpha _{2}\eta _{2}\tau \right) , \quad \gamma _{n}^{P} = \gamma ^{2} , \; n \ge 2; \\ \beta _{0}^{R}&= q + \left( p+\beta \right) \beta + \alpha _{1}\eta _{1} + \alpha _{2}\eta _{2} , \quad \beta _{n}^{R}= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , \quad n \ge 1, \\ \alpha _{1}^{R}&= \gamma \left( p+2\beta \right) +\alpha _{1} \alpha _{2}\eta _{2}, \quad \alpha _{n}^{R}=\alpha _{1} \alpha _{2} + \gamma (p+2\beta ) , n \ge 2, \\ \gamma _{n}^{R}&= \gamma ^{2} , \quad n \ge 1. \end{aligned}$$

Concerning the sequences \(\{a_{n}\}_{n \ge 0}\) and \(\{b_{n}\}_{n \ge 0}\) we get \(\deg \left( a_{n}(x) \right) =n, \, n \ge 0,\,\) with \(l_{a,n}=-p-\beta -\tau \) and \(\deg \left( b_{n}(x) \right) =n, \, n \ge 0,\,\) with \(l_{a,n}=a-\tau \). Supposing \(\tau \ne -p-\beta \) and \(\tau \ne a\), we define the MPSs \(A_{n}(x)= l_{a,n}^{-1} a_{n}(x)\) and \(B_{n}(x)= l_{b,n}^{-1} b_{n}(x), \, n \ge 0,\) and we obtain

$$\begin{aligned} \beta _{0}^{A}&= q+ \alpha _{1} +\alpha _{2}\eta _{2}+ \frac{p\beta \left( p+2\beta \right) +\beta ^3-\gamma +\gamma \xi +\tau \left( p\beta +\beta ^2 \right) }{p+\beta +\tau }\\ \beta _{n}^{A}&= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , \quad n \ge 1, \\ \alpha _{1}^{A}&=\alpha _{1} \alpha _{2}+ \frac{\gamma \left( p^2- \alpha _{2} +3p\beta +2\beta ^2+\alpha _{2}\eta _{2}+\tau \left( p+2\beta \right) \right) }{p+\beta +\tau }\\ \alpha _{n}^{A}&= \alpha _{1} \alpha _{2} + \gamma (p+2\beta ) , n \ge 2, \\ \gamma _{n}^{A}&= \gamma ^{2} , \quad n \ge 1\, ;\\ \beta _{0}^{B}&= q+p\beta +\beta ^2+\alpha _{2}\eta _{2}+ \frac{\alpha _{1}\eta _{1}\left( a+ p+\beta \right) -\gamma \xi }{a-\tau }\\ \beta _{n}^{B}&= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , \quad n \ge 1, \\ \alpha _{1}^{B}&= \gamma (p+2\beta ) +\alpha _{1} \alpha _{2}\eta _{2}+ \frac{\gamma \alpha _{1} \left( \eta _{1}-\xi \right) }{a-\tau }, \\ \alpha _{n}^{B}&= \alpha _{1} \alpha _{2} + \gamma (p+2\beta ) , n \ge 2, \\ \gamma _{n}^{B}&= \gamma ^{2} , \quad n \ge 1. \end{aligned}$$

Finally, we remark that the data obtained allow us to assert that none of the four 2-orthogonal MPSs are in general 2-classical. The alternative hypothesis \(\tau =a\) was also treated with analogous conclusions, except for the sequence \(\{b_{n}\}_{n \ge 0}\) for which we get \(\deg \left( b_{n}(x) \right) =n-1, \, n \ge 0,\) with \(b_{n}(x) =\left( \gamma \xi -\alpha _{1}\left( a+p+\beta \right) \eta _{1} \right) x^{n-1} + \, (\text {terms of degree less than }\, n-1 )\) and thus further suppositions must be taken in order to define a MPS \(\{{\bar{B}}_{n}\}_{n \ge 0}\) as we did before.

5.4 Perturbation of Order Two (II)

Let us now consider another perturbation of order two, where only the first two \(\beta \)s are altered by means of the constants \(\tau _{1} \) and \(\tau _{2}\) assuming that \(\tau _{1}\ne -p-\beta \) and \(\tau _{2} \ne \beta \).

$$\begin{aligned}&\beta _{0}= \tau _{1} , \; \beta _{1}= \tau _{2}, \quad \beta _{2n}= -(p+\beta ) , \; \beta _{2n+1}= \beta , \quad n \ge 1, \\&\chi _{2n,2n} = \alpha _{2n+1} = \alpha _{1} , \quad \chi _{2n+1,2n+1} = \alpha _{2n+2} = \alpha _{2} , n \ge 0, \nonumber \\&\chi _{n,n-1} = \gamma _{n} = (-1)^{n} \gamma , \quad n \ge 1, \nonumber \\&\chi _{n,\nu } = 0 , \quad 0 \le \nu < n-1 ,\quad n \ge 1 .\nonumber \end{aligned}$$
(38)

We get for the sequences \(\{ P_{n} \}_{n \ge 0}\) and \(\{ R_{n} \}_{n \ge 0}\):

$$\begin{aligned} \beta _{0}^{P}&= a p + q + \alpha _{1}+ a \left( \tau _{1}+\tau _{2}\right) -\tau _{1}\tau _{2} ,\\ \beta _{n}^{P}&= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta ,\quad n \ge 1,\\ \alpha _{1}^{P}&= \alpha _{1}\alpha _{2} -a\alpha _{2}\beta +\beta \gamma + \alpha _{2}\beta \tau _{1}-\gamma \tau _{1} + \alpha _{2}\tau _{2}\left( a-\tau _{1}\right) , \quad \\ \alpha _{n}^{P}&=\alpha _{1} \alpha _{2} + \gamma (p+2\beta ) , \; n \ge 2 ,\quad \gamma _{n}^{P} = \gamma ^{2} , \quad n \ge 1;\\ \beta _{0}^{R}&= q + \alpha _{1}+\alpha _{2}+\beta \left( p+\tau _{1}+\tau _{2} \right) -\tau _{1}\tau _{2} , \\ \beta _{n}^{R}&= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta ,\quad n \ge 1, \\ \alpha _{1}^{R}&=\alpha _{1} \alpha _{2} + \gamma (p+\beta +\tau _{2}) , \\ \alpha _{n}^{R}&=\alpha _{1} \alpha _{2} + \gamma (p+2\beta ) , \, n \ge 2, \quad \gamma _{n}^{R} = \gamma ^{2} , \quad n \ge 1. \end{aligned}$$

Concerning the sequences \(\{a_{n}\}_{n \ge 0}\) and \(\{b_{n}\}_{n \ge 0}\) we get \(\deg \left( a_{n}(x) \right) =n, \, n \ge 0,\) with \(l_{a,n}=-p-\tau _{1}-\tau _{2}\) and \(\deg \left( b_{n}(x) \right) =n, \, n \ge 0,\) with \(l_{b,0}=a-\tau _{1}\, \) and \(l_{b,n}=a+\beta -\tau _{1}-\tau _{2}, n \ge 1\). Supposing also that \(\tau _{1} \ne a,\) and \(\tau _{1}+\tau _{2} \ne a+\beta , -p\), we define the MPSs \(A_{n}(x)= l_{a,n}^{-1} a_{n}(x), \, n \ge 0,\) and \(B_{n}(x)= l_{b,n}^{-1} b_{n}(x), \, n \ge 0,\) and we obtain

$$\begin{aligned} \beta _{0}^{A}&= q+ \alpha _{1} + \frac{\alpha _{2}\left( p+\tau _{1} +\beta \right) +p^2\beta +p\beta ^2 +\left( \tau _{1}+\tau _{2} \right) \left( p\beta +\beta ^2 \right) }{p+\tau _{1}+\tau _{2}},\\ \beta _{n}^{A}&= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , \quad n \ge 1, \\ \alpha _{n}^{A}&= \alpha _{1} \alpha _{2} + \gamma (p+2\beta ) , \quad n \ge 1, \\ \gamma _{n}^{A}&= \gamma ^{2} , \quad n \ge 1\, ;\\ \beta _{0}^{B}&=q+ \frac{a\left( \alpha _{1}+\alpha _{2} \right) + p\left( \alpha _{1} +a\beta \right) +\beta \alpha _{1}-\gamma + a \beta \left( \tau _{1}+\tau _{2}\right) -\tau _{1}\alpha _{2}- \tau _{1}\tau _{2}\left( a+p+\beta \right) }{a+\beta -\tau _{1}-\tau _{2}}\\ \beta _{n}^{B}&= q+\alpha _{1} +\alpha _{2} + \left( p+\beta \right) \beta , n \ge 1, \\ \alpha _{1}^{B}&= \frac{\left( a- \tau _{1}\right) \left( \alpha _{1}\alpha _{2}+\gamma \left( p+\beta +\tau _{2} \right) \right) }{a+\beta -\tau _{1}-\tau _{2}}, \quad \alpha _{n}^{B}= \alpha _{1} \alpha _{2} + \gamma (p+2\beta ) , \quad n \ge 2, \\ \gamma _{1}^{B}&= \frac{\gamma ^2\left( a- \tau _{1}\right) }{a+\beta -\tau _{1}-\tau _{2}}, \quad \gamma _{n}^{B} = \gamma ^{2} , \; n \ge 2. \end{aligned}$$

We finally conclude that none of the four 2-orthogonal MPSs is 2-classical.

6 Analytical Overview

Let us now rewrite Proposition (1) taking into account the particular SCs of a 2-orthogonal MPS \(\chi _{n,n}= \alpha _{n+1} , \; n \ge 0\), \(\chi _{n,n-1} = \gamma _{n}, \; n \ge 1,\) and \( \chi _{n,\nu } = 0 , \;\; 0 \le \nu < n-1\), \(n \ge 0\).

$$\begin{aligned} b_0(x)= & {} a-\beta _0,\, \end{aligned}$$
(39)
$$\begin{aligned} P_{n+1}(x)= & {} -\alpha _{2n+1}P_n(x)+\left( x-\omega (a)\right) R_n(x)\nonumber \\&+\,\left( a-\beta _{2n+1}\right) b_n(x)- \gamma _{2n}b_{n-1}(x),\, \end{aligned}$$
(40)
$$\begin{aligned} a_n(x)= & {} -\alpha _{2n+1}a_{n-1}(x)-\left( a+p+\beta _{2n+1}\right) R_n(x)\nonumber \\&+\,b_n(x)-\gamma _{2n}R_{n-1}(x),\, \end{aligned}$$
(41)
$$\begin{aligned} b_{n+1}(x)= & {} -\alpha _{2n+2}b_n(x)+\left( a-\beta _{2n+2}\right) P_{n+1}(x) \nonumber \\&+\, \left( x-\omega (a)\right) a_n(x) -\gamma _{2n+1}P_n(x),\, \end{aligned}$$
(42)
$$\begin{aligned} R_{n+1}(x)= & {} -\alpha _{2n+2}R_n(x)+P_{n+1}(x)-\left( a+p+\beta _{2n+2}\right) a_n(x) \nonumber \\&-\,\gamma _{2n+1}a_{n-1}(x),\,\nonumber \\&\text {with}\; n \ge 0\, \; \text {and}\;R_{-1}(x)=a_{-1}(x) = b_{-1}(x)=0. \end{aligned}$$
(43)

Lemma 3

The general quadratic decomposition of any 2-orthogonal MPS is not diagonal.

Proof

If we suppose a diagonal QD, identity (41) reads

$$\begin{aligned} 0=-\left( a+p+\beta _{2n+1}\right) R_n(x)-\gamma _{2n}R_{n-1}(x) \end{aligned}$$

implying \(a+p+\beta _{2n+1}=0\) and \(\gamma _{2n}=0\). Since this latest contradicts the regularity, the proof is complete. \(\square \)

Remarking that identities (41) and (43) allow us to express \(b_{n}(x)\) and \(P_{n+1}(x)\) in terms of elements of \(\{ R_{n} \}_{n\ge 0}\) and \(\{ a_{n} \}_{n\ge 0}\):

$$\begin{aligned} b_n(x)&= a_n(x)+\alpha _{2n+1}a_{n-1}(x) +\left( a+p+\beta _{2n+1}\right) R_n(x)+\gamma _{2n}R_{n-1}(x)\\ P_{n+1}(x)&=R_{n+1}(x)+\alpha _{2n+2}R_n(x) +\left( a+p+\beta _{2n+2}\right) a_n(x)+\gamma _{2n+1}a_{n-1}(x) \end{aligned}$$

we are able to transform (42) into the following relation:

$$\begin{aligned}&a_{n+1}(x)-\Big (x-\omega (a)+\left( a-\beta _{2n+2}\right) \left( a+p+\beta _{2n+2}\right) - \alpha _{2n+3}-\alpha _{2n+2}\Big ) a_n(x)\nonumber \\&\quad +\,\Big (\alpha _{2n+2}\alpha _{2n+1} + \gamma _{2n+1} \left( p+\beta _{2n+2}+\beta _{2n}\right) \Big )a_{n-1}(x) +\gamma _{2n+1}\gamma _{2n-1}a_{n-2}(x)\nonumber \\&\quad +\, \left( p+\beta _{2n+3}+\beta _{2n+2} \right) R_{n+1}(x)\nonumber \\&\quad +\, \Big (\gamma _{2n+2}+\gamma _{2n+1}+\alpha _{2n+2} \left( p+\beta _{2n+2}+\beta _{2n+1} \right) \Big )R_{n}(x)\nonumber \\&\quad +\,\Big (\alpha _{2n+2} \gamma _{2n}+\gamma _{2n+1}\alpha _{2n} \Big )R_{n-1}(x)=0,\quad n \ge 1. \end{aligned}$$
(44)

Likewise, identity (40) implies the next relation:

$$\begin{aligned}&R_{n+1}(x)-\Big (x-\omega (a) + \left( a-\beta _{2n+1}\right) \left( a+p+\beta _{2n+1}\right) -\alpha _{2n+2}-\alpha _{2n+1}\Big ) R_n(x)\nonumber \\&\quad +\,\Big (\alpha _{2n+1}\alpha _{2n} + \gamma _{2n}\left( p+\beta _{2n+1}+\beta _{2n-1}\right) \Big )R_{n-1}(x)+\gamma _{2n}\gamma _{2n-2}R_{n-2}(x) \nonumber \\&\quad +\, \left( p+\beta _{2n+2}+\beta _{2n+1} \right) a_{n}(x)\nonumber \\&\quad +\, \Big (\gamma _{2n+1}+\gamma _{2n}+\alpha _{2n+1} \left( p+\beta _{2n+1}+\beta _{2n} \right) \Big )a_{n-1}(x)\nonumber \\&\quad +\,\Big (\alpha _{2n+1} \gamma _{2n-1}+\gamma _{2n}\alpha _{2n-1} \Big )a_{n-2}(x)=0,\quad n \ge 1. \end{aligned}$$
(45)

On the other hand, identities (40) and (42) allow us to express \(\left( x-\omega (a)\right) R_{n}(x)\) and \(\left( x-\omega (a)\right) a_{n}(x)\) in terms of elements of \(\{ P_{n} \}_{n\ge 0}\) and \(\{ b_{n} \}_{n\ge 0}\):

$$\begin{aligned} \left( x-\omega (a)\right) R_n(x)&= -\left( a-\beta _{2n+1} \right) b_n(x)+\gamma _{2n}b_{n-1}(x)+P_{n+1}(x)+\alpha _{2n+1}P_{n}(x)\\ \left( x-\omega (a)\right) a_n(x)&=b_{n+1}(x)+\alpha _{2n+2}b_n(x)-\left( a-\beta _{2n+2}\right) P_{n+1}(x)+\gamma _{2n+1}P_{n}(x) \end{aligned}$$

which provides a suitable replacement of each term of identity (41) when multiplied by \(\left( x-\omega (a)\right) \), yielding:

$$\begin{aligned}&b_{n+1}(x)-\Big (x-\omega (a)+\left( a-\beta _{2n+1}\right) \left( a+p+\beta _{2n+1}\right) - \alpha _{2n+2}-\alpha _{2n+1}\Big ) b_n(x)\nonumber \\&\quad +\,\Big (\alpha _{2n+1}\alpha _{2n} +\gamma _{2n} \left( p+\beta _{2n+1}+\beta _{2n-1}\right) \Big )b_{n-1}(x) + \gamma _{2n}\gamma _{2n-2}b_{n-2}(x) \nonumber \\&\quad +\, \left( p+\beta _{2n+2}+\beta _{2n+1} \right) P_{n+1}(x)\nonumber \\&\quad +\, \Big (\gamma _{2n+1}+\gamma _{2n}+\alpha _{2n+1} \left( p+\beta _{2n+1}+\beta _{2n} \right) \Big )P_{n}(x)\nonumber \\&\quad +\,\Big ( \alpha _{2n+1} \gamma _{2n-1}+\gamma _{2n}\alpha _{2n-1} \Big )P_{n-1}(x)=0,\quad n \ge 1. \end{aligned}$$
(46)

Finally, when we multiply relation (43) by \(\left( x-\omega (a)\right) \) and we substitute all terms by an equal expression given by (40) and (42) we get:

$$\begin{aligned}&P_{n+2}(x)-\Big (x-\omega (a)+\left( a-\beta _{2n+2}\right) \left( a+p+\beta _{2n+2}\right) - \alpha _{2n+3}-\alpha _{2n+2} \Big ) P_{n+1}(x)\nonumber \\&\quad +\,\Big (\alpha _{2n+2}\alpha _{2n+1} +\gamma _{2n+1}\left( p+\beta _{2n+2}+\beta _{2n}\right) \Big )P_{n}(x) +\gamma _{2n+1}\gamma _{2n-1}P_{n-1}(x)\nonumber \\&\quad +\, \left( p+\beta _{2n+3}+\beta _{2n+2} \right) b_{n+1}(x)\nonumber \\&\quad +\, \Big (\gamma _{2n+2}+\gamma _{2n+1}+\alpha _{2n+2} \left( p+\beta _{2n+2}+\beta _{2n+1} \right) \Big )b_{n}(x)\nonumber \\&\quad +\,\Big ( \alpha _{2n+2} \gamma _{2n}+\gamma _{2n+1}\alpha _{2n} \Big )b_{n-1}(x)=0,\quad n \ge 1. \end{aligned}$$
(47)

The SCs defined in (22) guarantee that the coefficients of the three latest terms of identities (44)–(47) vanish, because

$$\begin{aligned}&p+\beta _{2n+3}+\beta _{2n+2}=0, \quad n \ge 0,\\&p+\beta _{2n+2}+\beta _{2n+1}=0, \quad n \ge 0,\\&\gamma _{2n+2}+\gamma _{2n+1}+\alpha _{2n+2} \left( p+\beta _{2n+2}+\beta _{2n+1} \right) = 0 , \quad n \ge 0,\\&\gamma _{2n+1}+\gamma _{2n}+\alpha _{2n+1} \left( p+\beta _{2n+1}+\beta _{2n} \right) = 0 , \quad n \ge 1,\\&\alpha _{2n+2} \gamma _{2n}+\gamma _{2n+1}\alpha _{2n}= 0 , \quad n \ge 1,\\&\alpha _{2n+1} \gamma _{2n-1}+\gamma _{2n}\alpha _{2n-1}= 0 , \quad n \ge 1. \end{aligned}$$

This proves that the four polynomial sequences that arise from a general QD of the 2-orthogonal MPS \(\{ W_{n}\}_{n \ge 0}\) defined by (22) also fulfill recurrence relations of third order whose regularity is assured by the regularity of \(\{ W_{n}\}_{n \ge 0}\). More precisely, we obtain for n\( \ge 1\):

$$\begin{aligned} a_{n+1}(x)&=\Big (x-\omega (a)+\left( a-\beta \right) \left( a+p+\beta \right) - \alpha _{2}-\alpha _{1}\Big ) a_n(x)\nonumber \\&\quad -\,\Big ( \alpha _{2}\alpha _{1}+\gamma \left( p+2\beta \right) \Big )a_{n-1}(x) -\gamma ^2 a_{n-2}(x),\; \end{aligned}$$
(48)
$$\begin{aligned} R_{n+1}(x)&= \Big (x-\omega (a) + \left( a-\beta \right) \left( a+p+\beta \right) -\alpha _{2}-\alpha _{1}\Big ) R_n(x)\nonumber \\&\quad -\,\Big (\alpha _{2}\alpha _{1} + \gamma \left( p+2 \beta \right) \Big )R_{n-1}(x)-\gamma ^2 R_{n-2}(x) ,\; \end{aligned}$$
(49)
$$\begin{aligned} b_{n+1}(x)&=\Big (x-\omega (a)+\left( a-\beta \right) \left( a+p+\beta \right) - \alpha _{2}-\alpha _{1}\Big ) b_n(x)\nonumber \\&\quad -\,\Big (\alpha _{2}\alpha _{1} +\gamma \left( p+2\beta \right) \Big )b_{n-1}(x) - \gamma ^2 b_{n-2}(x) ,\; \end{aligned}$$
(50)
$$\begin{aligned} P_{n+2}(x)&=\Big (x-\omega (a)+\left( a-\beta \right) \left( a+p+\beta \right) - \alpha _{2}-\alpha _{1} \Big ) P_{n+1}(x)\nonumber \\&\quad -\, \Big (\alpha _{2}\alpha _{1} +\gamma \left( p+2\beta \right) \Big )P_{n}(x) - \gamma ^2 P_{n-1}(x). \end{aligned}$$
(51)

In brief, once we have the initial elements of each polynomial sequence we are able to fully characterise the general QD of \(\{ W_{n}\}_{n \ge 0}\). We recall that these initial computations were already performed with the help of the symbolic computational approach and thus we have now proved the 2-orthogonality of each polynomial sequence of the general QD. In particular, having obtained the data \(a_{\nu }(x)=0, \, \nu =0,1, 2\) we easily conclude that \(\{a_{n}\}_{n \ge 0}\) is trivial. In addition, we remark that

$$\begin{aligned} \omega (a) - \left( a-\beta \right) \left( a+p+\beta \right) +\alpha _{2}+\alpha _{1}=q+\alpha _{2}+\alpha _{1}+\left( p+\beta \right) \beta . \end{aligned}$$

When we consider the general QD of any 2-orthogonal MPS \(\{ {\tilde{W}}_{n}\}_{n \ge 0}\) defined as a perturbation of order r of \(\{ W_{n}\}_{n \ge 0}\), we also conclude that relations (48)–(51) are fulfilled at least for \(n \ge nmax\) for a certain positive integer \(nmax > r\) which leaves the final conclusion about the 2-orthogonality (and other aspects) to the specific data computed for \(n = 0, \ldots , nmax\).

Finally, with respect to the classical character of each MPS obtained as a component sequence of the general QD and examining the data obtained for the MPS \(\{ W_{n} (x)\}_{n \ge 0}\) solely defined by SCs (22), we must remark that the sequence \(\{ R_{n} (x)\}_{n \ge 0}\) fulfils a recurrence relation of the following type, for given constants \(\alpha \) and \(\gamma \),

$$\begin{aligned} \zeta _{n+1}(x)&=x \zeta _{n}(x)-\alpha \zeta _{n-1}(x)-\gamma \zeta _{n-2}(x), \quad n \ge 2,\\ \zeta _{0}(x)&=1,\quad \zeta _{1}(x)=x, \quad \zeta _{2}(x)=x^{2}-\alpha , \end{aligned}$$

and therefore is 2-classical as it is proved in [9], p.31. In fact, being \(\{ \beta ^{R}_{n} \}_{n\ge 0}\) a constant sequence, it is possible to assume \( \beta ^{R}_{n}=0, \;n \ge 0\), after applying an affine transformation on \(\{ R_{n}(x) \}_{n\ge 0}\) that preserves the d-orthogonality. Moreover, we read also in that reference that the MPS \(\{\zeta _{n}\}_{n \ge 0}\) is 2-orthogonal and classical and the MPS \(\{\zeta ^{[1]}_{n}\}_{n \ge 0}\) fulfils

$$\begin{aligned} \zeta ^{[1]}_{n+1}(x)&=x \zeta ^{[1]}_{n}(x)-\alpha \frac{n(n+3)}{(n+1)(n+2)} \zeta ^{[1]}_{n-1}(x)-\gamma \frac{(n-1)(n+4)}{(n+1)(n+2)} \zeta ^{[1]}_{n-2}(x), \quad n \ge 2,\\ \zeta ^{[1]}_{0}(x)&=1,\quad \zeta ^{[1]}_{1}(x)=x, \quad \zeta ^{[1]}_{2}(x)=x^{2}-\frac{2}{3}\alpha . \end{aligned}$$

7 Conclusions

The symbolic implementation of the quadratic decomposition (QD) on a specific 2-orthogonal MPS defined with constant structure coefficients, modulo two, allowed us to easily infer which of the four sequences of polynomials obtained through any QD are also 2-orthogonal. The analytical proof of those characteristics was also developed.

A co-recursive type 2-orthogonal MPS was inserted in the symbolic procedure, along with further initial perturbations on the structure coefficients. The output asserts that the main results gathered initially are maintained when those slight initial changes are performed. A further important characteristic was analysed strictly by computational means and the results proved that in some cases the obtained polynomial sequences are not classical in Hahn’s sense. The situations where the classical character was detected can be connected to a concrete family studied in [9].

We should stress that the entire set of 2-orthogonal MPSs quadratically decomposed are not 2-classical as it was demonstrated symbolically, nevertheless, the components of the resultant general QD hold the 2-orthogonality and either are 2-classical or are perturbations of a 2-classical MPS.