Rational substitutions
Substituting a rational function $A/B$ into a polynomial $p$ and clearing denominators gives a real-rooted polynomial exactly when $p$ is real-rooted and every fiber $A-rB$ over a root $r$ of $p$ is real-rooted. Two classical cases are the substitution $x/(1+x)^2$ of the gamma transform and the substitution $x+1/x$ for palindromic polynomials.
Results
For polynomials $A,B$ and $p=\sum_kp_kx^k$ of degree $d$ put $$ (A,B)\ast p=\sum_{k=0}^dp_k\,A^kB^{d-k}=B^d\,p(A/B). $$ For $N\ge d$ let $H_N[p]=B^{N-d}\,(A,B)\ast p$ be the version in ambient degree $N$. It is additive in $p$ for $\deg p\le N$, and $H_{M+N}[pq]=H_M[p]\,H_N[q]$ when $\deg p\le M$ and $\deg q\le N$.
Theorem (factorization). If $p$ splits over $\mathbb R$, then $(A,B)\ast p=\operatorname{lc}(p)\prod_r(A-rB)$ over the roots $r$ of $p$ with multiplicity.
Theorem (root descent). Let $p\ne0$ and $B\ne0$ be real polynomials, with $A$ and $B$ coprime and not proportional over $\mathbb C$. Then $$ (A,B)\ast p\text{ splits}\iff p\text{ splits and }A-rB\text{ splits for every root }r\text{ of }p. $$ If moreover $(A,B)\ast p$ splits with all roots in a set $I$, then every root $r$ of $p$ whose fiber $A-rB$ is nonconstant equals $A(x)/B(x)$ for some $x\in I$ with $B(x)\ne0$.
Corollary (quadratic substitution). Let $p\ne0$, $s\in\mathbb R$, $A=x$ and $B=(1+sx)^2$. The fiber $x-r(1+sx)^2$ has discriminant $1-4sr$, and $$ (A,B)\ast p\text{ splits}\iff p\text{ splits and }1-4sr\ge0\text{ for every root }r\text{ of }p . $$ For $s\ge0$, the substitution splits with only nonpositive roots if and only if $p$ splits with only nonpositive roots. For $s<0$, it splits with only nonpositive roots if and only if $p$ splits and all its roots lie in $[1/(4s),0]$. For $s=1$, $H_N[p]$ is the gamma transform $\Gamma_{2N}(p)$.
Corollary (Dickson substitution). Let $p\ne0$, $a\ne0$, $A=x^2+a$ and $B=x$. Then $(A,B)\ast p$ splits if and only if $p$ splits and $4a\le r^2$ for every root $r$ of $p$.
The derivatives of $H=H_N[p]$ are also expressed through those of $p$: with $W=A'B-AB'$, over any commutative ring, $$ B^2H'=N\,BB'\,H+W\,H_N[p'] , $$ and for every $r$ the product $B^{2r}H^{(r)}$ equals $\sum_{j\le r}c_{r,j}\,H_N[p^{(j)}]$ with polynomials $c_{r,j}$ defined by an explicit recursion in $A,B,N$ and $c_{r,r}=W^r$.
Proof
When $p$ splits, the factorization shows that $(A,B)\ast p$ splits exactly when every fiber does. If $p$ has a nonreal root $z$, then every root of $A-zB$ is a nonreal root of $(A,B)\ast p$, because $A$ and $B$ are coprime and $A/B$ is real at real points.
References
- Gamma polynomials on symmetricfunctions.com