Reciprocal polynomial

In algebra, given a polynomial
 * $$p(x) = a_0 + a_1x + a_2x^2 + \cdots + a_nx^n,$$

with coefficients from an arbitrary field, its reciprocal polynomial or reflected polynomial, denoted by $p^{∗}$ or $p^{R}$,  is the polynomial


 * $$p^*(x) = a_n + a_{n-1}x + \cdots + a_0x^n = x^n p(x^{-1}).$$

That is, the coefficients of $p^{∗}$ are the coefficients of $p$ in reverse order. Reciprocal polynomials arise naturally in linear algebra as the characteristic polynomial of the inverse of a matrix.

In the special case where the field is the complex numbers, when


 * $$p(z) = a_0 + a_1z + a_2z^2 + \cdots + a_nz^n,$$

the conjugate reciprocal polynomial, denoted $p^{†}$, is defined by,


 * $$p^{\dagger}(z) = \overline{a_n} + \overline{a_{n-1}}z + \cdots + \overline{a_0}z^n = z^n\overline{p(\bar{z}^{-1})},$$

where $$\overline{a_i}$$ denotes the complex conjugate of $$a_i$$, and is also called the reciprocal polynomial when no confusion can arise.

A polynomial $p$ is called self-reciprocal or palindromic if $p(x) = p^{∗}(x)$. The coefficients of a self-reciprocal polynomial satisfy $a_{i} = a_{n−i}$ for all $i$.

Properties
Reciprocal polynomials have several connections with their original polynomials, including:
 * 1) $deg p = deg p^{∗} if $a_0$ is not 0.$ is a root of a polynomial $p(x) = x^{n}p^{∗}(x^{−1})$ if and only if $α$ is a root of $p$.
 * 2) If $α^{−1}$ then $p^{∗}$ is irreducible if and only if $p(x) ≠ x$ is irreducible.
 * 3) $p$ is primitive if and only if $p^{∗}$ is primitive.
 * 1) If $p$ then $p^{∗}$ is irreducible if and only if $n$ is irreducible.
 * 2) $P$ is primitive if and only if $a_{i} = a_{n−i}$ is primitive.

Other properties of reciprocal polynomials may be obtained, for instance:
 * A self-reciprocal polynomial of odd degree is divisible by x+1, hence is not irreducible if its degree is > 1.

Palindromic and antipalindromic polynomials
A self-reciprocal polynomial is also called palindromic because its coefficients, when the polynomial is written in the order of ascending or descending powers, form a palindrome. That is, if
 * $$ P(x) = \sum_{i=0}^n a_ix^i$$

is a polynomial of degree $i = 0, 1, ..., n$, then $P$ is palindromic if $n$ for $a_{i} = −a_{n−i}$.

Similarly, a polynomial $i = 0, 1, ..., n$ of degree $P$ is called antipalindromic if $P(x) = –P^{∗}(x)$ for $P(x) = (x + 1)^{n}$. That is, a polynomial $n$ is antipalindromic if $Q(x) = (x – 1)^{n}$.

Examples
From the properties of the binomial coefficients, it follows that the polynomials $n$ are palindromic for all positive integers $n$, while the polynomials $a$ are palindromic when $a$ is even and antipalindromic when $a$ is odd.

Other examples of palindromic polynomials include cyclotomic polynomials and Eulerian polynomials.

Properties

 * If $a$ is a root of a polynomial that is either palindromic or antipalindromic, then $1⁄$q$$ is also a root and has the same multiplicity.
 * The converse is true: If a polynomial is such that $q + q^{∗}$ is a root then if $1⁄$q − q^{∗}$$ is also a root of the same multiplicity, then the polynomial is either palindromic or antipalindromic.
 * For any polynomial $q$, the polynomial $q = (q + q^{∗})/2 + (q − q^{∗})/2$ is palindromic and the polynomial $x + 1$ is antipalindromic.
 * It follows that any polynomial $x + 1$ can be written as the sum of a palindromic and an antipalindromic polynomial, since $x – 1$.
 * The product of two palindromic or antipalindromic polynomials is palindromic.
 * The product of a palindromic polynomial and an antipalindromic polynomial is antipalindromic.
 * A palindromic polynomial of odd degree is a multiple of $x – 1$ (it has –1 as a root) and its quotient by $x^{2} – 1$ is also palindromic.
 * An antipalindromic polynomial over a field $k$ with odd characteristic is a multiple of $x^{2} – 1$ (it has 1 as a root) and its quotient by $p(x)$ is palindromic.
 * An antipalindromic polynomial of even degree is a multiple of $q$ (it has −1 and 1 as roots) and its quotient by $d$ is palindromic.
 * If $p(x) = x^{d}q(x + 1⁄x)$ is a palindromic polynomial of even degree 2$d$, then there is a polynomial $p(x)$ of degree $p(x) = x^{d}(Q(x) − Q(1⁄x))$ such that $P$.
 * If $2n$ is a monic antipalindromic polynomial of even degree 2$d$ over a field $k$ of odd characteristic, then it can be written uniquely as $n$, where $Q$ is a monic polynomial of degree $d$ with no constant term.
 * If an antipalindromic polynomial $a_{n} = −a_{2n&thinsp;–&thinsp;n}$ has even degree $ω$ over a field $k$ of odd characteristic, then its "middle" coefficient (of power $p(z)$) is 0 since $z_{0}$.

Real coefficients
A polynomial with real coefficients all of whose complex roots lie on the unit circle in the complex plane (that is, all the roots have modulus 1) is either palindromic or antipalindromic.

Conjugate reciprocal polynomials
A polynomial is conjugate reciprocal if $$p(x) \equiv p^{\dagger}(x)$$ and self-inversive if $$p(x) = \omega p^{\dagger}(x)$$ for a scale factor $|z_{0}| = 1, z_{0} ≠ 1$ on the unit circle.

If $p(z)$ is the minimal polynomial of $p(z)$ with $z_{0}$, and $n$ has real coefficients, then $c$ is self-reciprocal. This follows because


 * $$z_0^n\overline{p(1/\bar{z_0})} = z_0^n\overline{p(z_0)} = z_0^n\bar{0} = 0.$$

So $i = 0$ is a root of the polynomial $$z^n\overline{p(\bar{z}^{-1})}$$ which has degree $n$. But, the minimal polynomial is unique, hence
 * $$cp(z) = z^n\overline{p(\bar{z}^{-1})}$$

for some constant $p$, i.e. $$ca_i=\overline{a_{n-i}}=a_{n-i}$$. Sum from $c = 1$ to $Φ_{n}$ and note that 1 is not a root of $n > 1$. We conclude that $x^{11} ± 1, x^{13} ± 1, x^{15} ± 1$.

A consequence is that the cyclotomic polynomials $x^{21} ± 1$ are self-reciprocal for $φ$. This is used in the special number field sieve to allow numbers of the form $x^{n} &minus; 1$ and $x^{n} &minus; 1 = g(x)p(x)$ to be factored taking advantage of the algebraic factors by using polynomials of degree 5, 6, 4 and 6 respectively – note that $g(x)$ (Euler's totient function) of the exponents are 10, 12, 8 and 12.

Per Cohn's theorem, a self-inversive polynomial has as many roots in the unit disk $$\{z\in\mathbb{C}: |z| < 1\}$$ as the reciprocal polynomial of its derivative.

Application in coding theory
The reciprocal polynomial finds a use in the theory of cyclic error correcting codes. Suppose $C$ can be factored into the product of two polynomials, say $p^{∗}$. When $C^{⊥}$ generates a cyclic code $C$, then the reciprocal polynomial $C$ generates $C ⊆ C^{⊥})$, the orthogonal complement of $p^{∗}$. Also, $g(x)$ is self-orthogonal (that is, ᙭᙭᙭, if and only if ᙭᙭᙭ divides ᙭᙭᙭.