Find all polynomial $p(x)$ with rational coefficients so that for all irrational number $x$, $p(x)$ is also irrational.
If it is useful, this exercise was found in one of my linear algebra textbook.
Find all polynomial $p(x)$ with rational coefficients so that for all irrational number $x$, $p(x)$ is also irrational.
If it is useful, this exercise was found in one of my linear algebra textbook.
Polynomials of degree $0$ and $1$ with rational coefficients will work. But polynomials of higher degree will not. Namely, suppose $p$ is a prime that does not divide the numerator or denominator of any of the coefficients of your polynomial $P(x)$. Then there is no rational $x$ such that $P(x)$ has denominator $p$: if $x$ does not have denominator divisible by $p$, $P(x)$ does not either, while if $x$ has denominator divisible by $p$, $P(x)$ has denominator divisible by $p^d$ where $d$ is the degree of $P$.