I would like to create a compilation about polynomials for future reference. The aim is to capture some scenarios that appear in many exams and contests. Please feel free to make a contribution.
Request. For each answer, please give the setting of your problem (the input polynomials, the function, etc) and the output polynomial. Please also provide a proof, a proof sketch, or a reference for your claim.
The five scenarios I have thought of are listed below. In what follows, let $\mathbb{K}$ be a field with the algebraic closure $\overline{\mathbb{K}}$. (For those who have not yet learned about fields, think of $\mathbb{K}$ as $\mathbb{R}$, and $\overline{\mathbb{K}}$ as $\mathbb{C}$.) For simplicity, all polynomials involved may be assumed to be monic (that is, the leading coefficient is $1$).
Scenario I. A polynomial $p(x)$ of degree $d$ is given, where $r_1,r_2,\ldots,r_d\in\overline{\mathbb{K}}$ are the roots of $p(x)$. For a function $f:\overline{\mathbb{K}}\to\overline{\mathbb{K}}$, let $q(x)$ be the polynomial of degree $d$ with roots $f(r_1)$, $f(r_2)$, $\ldots$, $f(r_d)$. What is $q(x)$ in terms of $p(x)$ and $f$?
Example I.
- If $f(t)=\lambda t+\mu$ where $\lambda,\mu\in\mathbb{K}$ with $\lambda\neq 0$, then $q(x)=\lambda^d\,p\left(\dfrac{x-\mu}{\lambda}\right)$.
- If all roots of $p(x)$ are nonzero and $f(t)=\dfrac{1}{t}$ for $t\neq 0$, then $q(x)=\dfrac{x^d}{p(0)}\,p\left(\dfrac{1}{x}\right)$.
- If $f(t)=t^2$ and $p(x)=x^2+ax+b$, then $q(x)=x^2-(a^2-2b)x+b^2$.
Scenario II. A polynomial $p(x)$ of degree $d$ is given, where $r_1,r_2,\ldots,r_d\in\overline{\mathbb{K}}$ are the roots of $p(x)$. For a symmetric function $f:\overline{\mathbb{K}}\times\overline{\mathbb{K}}\to\overline{\mathbb{K}}$, let $q(x)$ be the polynomial of degree $\dfrac{d(d-1)}{2}$ with roots $f(r_i,r_j)$ where $i$ and $j$ are integers such that $1\leq i<j\leq d$. What is $q(x)$ in terms of $p(x)$ and $f$?
Example II. If $f(t_1,t_2)=t_1+t_2$ and $p(x)=x^3+ax^2+bx+c$, then $$q(x)=x^3+2a\,x^2+(a^2+b)\,x+(ab-c)\,.$$
Scenario III. A polynomial $p(x)$ of degree $d$ is given, where $r_1,r_2,\ldots,r_d\in\overline{\mathbb{K}}$ are the roots of $p(x)$. For an asymmetric function $f:\overline{\mathbb{K}}\times\overline{\mathbb{K}}\to\overline{\mathbb{K}}$, let $q(x)$ be the polynomial of degree $d(d-1)$ with roots $f(r_i,r_j)$ where $i,j\in\{1,2,\ldots,d\}$ are such that $i\neq j$. What is $q(x)$ in terms of $p(x)$ and $f$?
Example III. If $f(t_1,t_2)=\dfrac{t_1}{t_2}$ and $p(x)=x^2+ax+b$ with $b\neq 0$, then $$q(x)=x^2-\left(\dfrac{a^2}{b}-2\right)\,x+1\,.$$
Scenario IV. A polynomial $p(x)$ of degree $d$ is given, where $r_1,r_2,\ldots,r_d\in\overline{\mathbb{K}}$ are the roots of $p(x)$. Let $s>2$ and $f:\overline{\mathbb{K}}^s\to\overline{\mathbb{K}}$ be given. If $q(x)$ is a polynomial whose roots are given by $f(r_{i_1},r_{i_2},\ldots,r_{i_s})$ where $(i_1,i_2,\ldots,i_s)$ is in some subset $S$ of $\{1,2,\ldots,d\}^s$, then what is $q(x)$ in terms of $p(x)$ and $f$?
Example IV. If $f(t_1,t_2,t_3)=t_1t_2t_3$, $p(x)=x^4+a_3x^3+a_2x^2+a_1x+a_0$, and $$S=\big\{(1,2,3),(1,2,4),(1,3,4),(2,3,4)\big\}\,,$$ then $$q(x)=x^4+a_1\,x+a_2a_0\,x+a_3a_0^2\,x+a_0^3\,.$$ More generally, for a given polynomial $p(x)=\sum\limits_{k=0}^d\,a_k\,x^k$ of degree $d>1$, if $$f(t_1,t_2,\ldots,t_{d-1})=t_1t_2\cdots t_{d-1}$$ with $$S=\big\{(i_1,i_2,\ldots,i_{d-1})\,\big|\,1\leq i_1<i_2<\ldots<i_{d-1}\leq d\big\}\,,$$ we have $$q(x)=\sum\limits_{k=0}^d\,(-1)^{d(d-k)}\,a_{d-k}\,a_0^{d-k-1}\,x^k\,,$$ where we use the conventions $a_0^0=1$ and $a_0\,a_0^{-1}=1$ even if $a_0=0$.
Scenario V. Polynomials $p_1(x),p_2(x),\ldots,p_n(x)\in\mathbb{K}[x]$ are given, where $p_i(x)$ has degree $d_i$ with roots $r_i^j\in\overline{\mathbb{K}}$ for $j=1,2,\ldots,d_i$. For a function $f:\overline{\mathbb{K}}^n\to\overline{\mathbb{K}}$, let $q(x)\in\overline{\mathbb{K}}[x]$ be the polynomial of degree $\prod\limits_{i=1}^n\,d_i$ with roots $f\left(r_1^{j_1},r_2^{j_2},\ldots,r_n^{j_n}\right)$ with $j_i\in\{1,2,\ldots,d_i\}$ for every $i=1,2,\ldots,n$. What is $q(x)$ in terms of $p_1(x),p_2(x),\ldots,p_n(x)$ and $f$?
Example V. If $p_1(x)=x^2+a_1x+b_1$, $p_2(x)=x^2+a_2x+b_2$, and $f(t_1,t_2)=t_1t_2$, then $$q(x)=x^4-a_1a_2\,x^3+(a_1^2b_2+a_2^2b_1-2b_1b_2)\,x^2-a_1a_2b_1b_2\,x+b_1^2b_2^2\,.$$
Proof of Example V. Recall that $$r_i^1+r_i^2=-a_i\text{ and }r_i^1r_i^2=b_i\text{ for }i\in\{1,2\}\,.$$ Therefore, $$\sum_{j_1,j_2\in\{1,2\}}\,f(r_1^{j_1},r_1^{j_2})=(r_1^1+r_1^2)(r_2^1+r_2^2)=a_1a_2$$ and $$\prod_{j_1,j_2\in\{1,2\}}\,f(r_1^{j_1},r_1^{j_2})=(r_1^1r_1^2)^2(r_2^1r_2^2)^2=b_1^2b_2^2\,.$$ Observe that $$\begin{align}\sum_{\big\{(j_1,j_2),(j'_1,j'_2),(j''_1,j''_2)\big\}\in\binom{\{0,1\}^2}{3}}\,&f(r_1^{j_1},r_2^{j_2})\cdot f(r_1^{j'_1},r_2^{j'_2})\cdot f(r_1^{j''_1},r_2^{j''_2})\\&=b_1b_2\,\sum_{j_1,j_2\in\{1,2\}}\,f(r_1^{j_1},r_1^{j_2})=a_1a_2b_1b_2\,.\end{align}$$ Finally, $$\begin{align}\sum_{\big\{(j_1,j_2),(j'_1,j'_2)\big\}\in\binom{\{0,1\}^2}{2}}\,f(r_1^{j_1},r_2^{j_2})\cdot f(r_1^{j'_1},r_2^{j'_2})&=b_2\,\sum_{j=1}^2\,(r_1^j)^2+b_1\,\sum_{j=1}^2\,(r_2^j)^2+2b_1b_2\\&=b_2(a_1^2-2b_1)+b_1\,(a_2^2-2b_2)+2b_1b_2\\&=a_1^2b_2+a_2^2b_1-2b_1b_2\,.\end{align}$$ The proof is now complete.
This example aligns with Scenario IV. Let $p(x)=x^3+ax^2+bx+c$, $f(t_1,t_2,t_3)=\dfrac{t_1}{t_2}+\dfrac{t_2}{t_3}+\dfrac{t_3}{t_1}$, and $S=\big\{(1,2,3),(1,3,2)\big\}$. Suppose that $c\neq 0$. Because $r_1+r_2+r_3=-a$, $r_2r_3+r_3r_1+r_1r_2=b$, and $r_1r_2r_3=-c$, we have $$f(r_1,r_2,r_3)+f(r_1,r_3,r_2)=-\frac{ab}{c}-3$$ and $$f(r_1,r_2,r_3)\cdot f(r_1,r_3,r_2)=\frac{a^3c-6abc+b^3}{c^2}+9\,.$$ Therefore, $$q(x)=x^2+\left(\frac{ab}{c}+3\right)\,x+\left(\frac{a^3c-6abc+b^3}{c^2}+9\right)\,.$$