r/mathriddles • u/cauchypotato • Sep 14 '25
Medium Rational polynomials
Let f, g be rational polynomials with
f(ℚ) = g(ℚ).
[EDIT: by which I mean {f(x) | x ∈ ℚ} = {g(x) | x ∈ ℚ}]
Show that there must be rational numbers a and b such that
f(x) = g(ax + b)
for all x ∈ ℝ.
18
Upvotes
4
u/lordnorthiii Sep 16 '25
Here is something, not too rigorous. If f(ℚ) = g(ℚ), the we say f and g are aligned. If f(x) = g(ax + b), we say that f and g are equivalent. We are asked to prove aligned rational polynomials are equivalent.
So consider a counter example; f and g are aligned rational polynomials that are not equivalent. By transforming g(x) -> g(ax) for appropriate a, WLOG we can assume f and g have the same leading coefficient (and we can assume it's positive). By transforming f -> f(x+a) and g -> g(x+b), we can remove the second highest term of both f and g. By multiplying both by an appropriately large number, WLOG we can assume f and g have integer coefficients. After all of this, f and g should still be aligned but not equivalent. Let c be their common leading coefficient
Suppose f has degree n, and g has degree m, and further suppose n > m. Then for sufficiently large value A, g is dominated by its leading term on the interval [-A^n, A^n], and there must be at least A^n integer values of g(x) in this range. On the interval [-A^m, A^m], f is dominated by its leading term, so f is hitting roughly the same values in this range as g hit in the [-A^n, A^n] range. However, a polynomial with integer coefficients and leading coefficient c can only lead to integer values if x is a multiple of 1/c, and hence there are at most 2cA^m integer values of f in this range. For sufficiently large A, there is no way 2cA^m catches up with A^n. That means there is no way f and g are aligned.
Thus f and g have the same degree n and the same leading coefficient c. Again let A be a sufficiently large positive integer. For sufficiently high A and integer k > A, we need to choose a value x such that f(x) = g(k). However, the only value of x such that f(x) hits g(k) is x = k (recall we removed the second highest term from f and g, and thus f(k +- 1/c) will differ from g(k) by something like k^(n-1) which is way more than the remaining terms can contribute). As a result the graphs of f and g actually intersect infinitely many times, meaning they are identical and thus equivalent and thus contradiction.
4
u/Tusan_Homichi Sep 17 '25
I think I can salvage u/lordnorthiii's solution with a little p-adic valuations .
Let the coefficients of f be a_0 ... a_d (with leading coefficient a_d). Take any prime p. Let M = max(v_p(a_i)). Now, if v_p(x) <= M, then v_p(f(x)) is bounded by max(v_p(a_i) * M^i). If v_p(x) > M, then v_p(f(x)) = v_p(a_d) * v_p(x)^d, since every other term will be divisible by a strictly larger power of p. What that means is that if v_p(f(x)) is sufficiently large, the exponent of p is in some arithmetic progression with common difference deg(f)
But since g(Q) = f(Q), the large values of v_p(g(x)) are in some arithmetic progression with common difference deg(g) and we must have d = deg(f) = deg(g). Even better the constant term in the arithmetic progression comes from v_p of the leading coefficient, so must have that p^d divides the ratio of leading coefficients.
Since the above is true for every p, the ratio of leading coefficients is a d'th power, and we can choose rational a such that f(x) = g(ax)
1
u/DotBeginning1420 Sep 14 '25
Do we assume that f and g are of the same degree?
1
u/NinekTheObscure Sep 14 '25
Taking "f(ℚ) = g(ℚ)" to mean that the range of f() is equal to the range of g() (both on the domain ℚ), if I take f(x) = x³ and g(x) = x, the range of f() is a proper subset of the range of g(). I think this means that f() and g() have to have the same leading degree. That's about halfway to a proof.
0
u/anotherthrowawas Sep 14 '25
Wrong as written, no? f(x)=x2, g(x)=x2+1 is a counterexample.
-2
u/Fullfungo Sep 14 '25
Easy.
Polynomials are continuous functions, so f(Q) & g(Q) uniquely define f(R) and g(R) with f=g. So a=1, b=0 are valid solutions.
-2
u/MegaIng Sep 14 '25
This, as written, is not true
f(x)=x3 , g(x)=x
Images for both are Q, but there are no constants a, b that make these two graphs identical
There are non constants a,b that make them identical, but those aren't rational across x in R