We have your learning goals covered with Spring and Summer courses available. Enroll today!

G
Topic
First Poster
Last Poster
k a March Highlights and 2025 AoPS Online Class Information
jlacosta   0
Mar 2, 2025
March is the month for State MATHCOUNTS competitions! Kudos to everyone who participated in their local chapter competitions and best of luck to all going to State! Join us on March 11th for a Math Jam devoted to our favorite Chapter competition problems! Are you interested in training for MATHCOUNTS? Be sure to check out our AMC 8/MATHCOUNTS Basics and Advanced courses.

Are you ready to level up with Olympiad training? Registration is open with early bird pricing available for our WOOT programs: MathWOOT (Levels 1 and 2), CodeWOOT, PhysicsWOOT, and ChemWOOT. What is WOOT? WOOT stands for Worldwide Online Olympiad Training and is a 7-month high school math Olympiad preparation and testing program that brings together many of the best students from around the world to learn Olympiad problem solving skills. Classes begin in September!

Do you have plans this summer? There are so many options to fit your schedule and goals whether attending a summer camp or taking online classes, it can be a great break from the routine of the school year. Check out our summer courses at AoPS Online, or if you want a math or language arts class that doesn’t have homework, but is an enriching summer experience, our AoPS Virtual Campus summer camps may be just the ticket! We are expanding our locations for our AoPS Academies across the country with 15 locations so far and new campuses opening in Saratoga CA, Johns Creek GA, and the Upper West Side NY. Check out this page for summer camp information.

Be sure to mark your calendars for the following events:
[list][*]March 5th (Wednesday), 4:30pm PT/7:30pm ET, HCSSiM Math Jam 2025. Amber Verser, Assistant Director of the Hampshire College Summer Studies in Mathematics, will host an information session about HCSSiM, a summer program for high school students.
[*]March 6th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar on Math Competitions from elementary through high school. Join us for an enlightening session that demystifies the world of math competitions and helps you make informed decisions about your contest journey.
[*]March 11th (Tuesday), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS Chapter Discussion MATH JAM. AoPS instructors will discuss some of their favorite problems from the MATHCOUNTS Chapter Competition. All are welcome!
[*]March 13th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar about Summer Camps at the Virtual Campus. Transform your summer into an unforgettable learning adventure! From elementary through high school, we offer dynamic summer camps featuring topics in mathematics, language arts, and competition preparation - all designed to fit your schedule and ignite your passion for learning.[/list]
Our full course list for upcoming classes is below:
All classes run 7:30pm-8:45pm ET/4:30pm - 5:45pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
Sunday, Mar 2 - Jun 22
Friday, Mar 28 - Jul 18
Sunday, Apr 13 - Aug 10
Tuesday, May 13 - Aug 26
Thursday, May 29 - Sep 11
Sunday, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29

Prealgebra 2 Self-Paced

Prealgebra 2
Tuesday, Mar 25 - Jul 8
Sunday, Apr 13 - Aug 10
Wednesday, May 7 - Aug 20
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21


Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, Mar 23 - Jul 20
Monday, Apr 7 - Jul 28
Sunday, May 11 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, May 14 - Aug 27
Friday, May 30 - Sep 26
Monday, Jun 2 - Sep 22
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Sunday, Mar 16 - Jun 8
Wednesday, Apr 16 - Jul 2
Thursday, May 15 - Jul 31
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 9 - Sep 24
Sunday, Jul 27 - Oct 19

Introduction to Number Theory
Monday, Mar 17 - Jun 9
Thursday, Apr 17 - Jul 3
Friday, May 9 - Aug 1
Wednesday, May 21 - Aug 6
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Sunday, Mar 2 - Jun 22
Wednesday, Apr 16 - Jul 30
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Tuesday, Mar 4 - Aug 12
Sunday, Mar 23 - Sep 21
Wednesday, Apr 23 - Oct 1
Sunday, May 11 - Nov 9
Tuesday, May 20 - Oct 28
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19

Intermediate: Grades 8-12

Intermediate Algebra
Sunday, Mar 16 - Sep 14
Tuesday, Mar 25 - Sep 2
Monday, Apr 21 - Oct 13
Sunday, Jun 1 - Nov 23
Tuesday, Jun 10 - Nov 18
Wednesday, Jun 25 - Dec 10
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22

Intermediate Counting & Probability
Sunday, Mar 23 - Aug 3
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

Intermediate Number Theory
Friday, Apr 11 - Jun 27
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Sunday, Mar 16 - Aug 24
Wednesday, Apr 9 - Sep 3
Friday, May 16 - Oct 24
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8

Advanced: Grades 9-12

Olympiad Geometry
Wednesday, Mar 5 - May 21
Tuesday, Jun 10 - Aug 26

Calculus
Sunday, Mar 30 - Oct 5
Tuesday, May 27 - Nov 11
Wednesday, Jun 25 - Dec 17

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
Sunday, Mar 23 - Jun 15
Wednesday, Apr 16 - Jul 2
Friday, May 23 - Aug 15
Monday, Jun 2 - Aug 18
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

MATHCOUNTS/AMC 8 Advanced
Friday, Apr 11 - Jun 27
Sunday, May 11 - Aug 10
Tuesday, May 27 - Aug 12
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Problem Series
Tuesday, Mar 4 - May 20
Monday, Mar 31 - Jun 23
Friday, May 9 - Aug 1
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Tuesday, Jun 17 - Sep 2
Sunday, Jun 22 - Sep 21 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Jun 23 - Sep 15
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Final Fives
Sunday, May 11 - Jun 8
Tuesday, May 27 - Jun 17
Monday, Jun 30 - Jul 21

AMC 12 Problem Series
Tuesday, May 27 - Aug 12
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22

AMC 12 Final Fives
Sunday, May 18 - Jun 15

F=ma Problem Series
Wednesday, Jun 11 - Aug 27

WOOT Programs
Visit the pages linked for full schedule details for each of these programs!


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

Introduction to Programming with Python
Monday, Mar 24 - Jun 16
Thursday, May 22 - Aug 7
Sunday, Jun 15 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Tuesday, Jun 17 - Sep 2
Monday, Jun 30 - Sep 22

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22

USACO Bronze Problem Series
Tuesday, May 13 - Jul 29
Sunday, Jun 22 - Sep 1

Physics

Introduction to Physics
Sunday, Mar 30 - Jun 22
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Tuesday, Mar 25 - Sep 2
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
Sat & Sun, Apr 26 - Apr 27 (4:00 - 7:00 pm ET/1:00 - 4:00pm PT)
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Mar 2, 2025
0 replies
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

Find instructions and a list of contests to add here: https://artofproblemsolving.com/community/c40244h1064480_contests_to_add
1 reply
dcouchman
Sep 9, 2019
v_Enhance
Apr 5, 2023
k i Zero tolerance
ZetaX   49
N May 4, 2019 by NoDealsHere
Source: Use your common sense! (enough is enough)
Some users don't want to learn, some other simply ignore advises.
But please follow the following guideline:


To make it short: ALWAYS USE YOUR COMMON SENSE IF POSTING!
If you don't have common sense, don't post.


More specifically:

For new threads:


a) Good, meaningful title:
The title has to say what the problem is about in best way possible.
If that title occured already, it's definitely bad. And contest names aren't good either.
That's in fact a requirement for being able to search old problems.

Examples:
Bad titles:
- "Hard"/"Medium"/"Easy" (if you find it so cool how hard/easy it is, tell it in the post and use a title that tells us the problem)
- "Number Theory" (hey guy, guess why this forum's named that way¿ and is it the only such problem on earth¿)
- "Fibonacci" (there are millions of Fibonacci problems out there, all posted and named the same...)
- "Chinese TST 2003" (does this say anything about the problem¿)
Good titles:
- "On divisors of a³+2b³+4c³-6abc"
- "Number of solutions to x²+y²=6z²"
- "Fibonacci numbers are never squares"


b) Use search function:
Before posting a "new" problem spend at least two, better five, minutes to look if this problem was posted before. If it was, don't repost it. If you have anything important to say on topic, post it in one of the older threads.
If the thread is locked cause of this, use search function.

Update (by Amir Hossein). The best way to search for two keywords in AoPS is to input
[code]+"first keyword" +"second keyword"[/code]
so that any post containing both strings "first word" and "second form".


c) Good problem statement:
Some recent really bad post was:
[quote]$lim_{n\to 1}^{+\infty}\frac{1}{n}-lnn$[/quote]
It contains no question and no answer.
If you do this, too, you are on the best way to get your thread deleted. Write everything clearly, define where your variables come from (and define the "natural" numbers if used). Additionally read your post at least twice before submitting. After you sent it, read it again and use the Edit-Button if necessary to correct errors.


For answers to already existing threads:


d) Of any interest and with content:
Don't post things that are more trivial than completely obvious. For example, if the question is to solve $x^{3}+y^{3}=z^{3}$, do not answer with "$x=y=z=0$ is a solution" only. Either you post any kind of proof or at least something unexpected (like "$x=1337, y=481, z=42$ is the smallest solution). Someone that does not see that $x=y=z=0$ is a solution of the above without your post is completely wrong here, this is an IMO-level forum.
Similar, posting "I have solved this problem" but not posting anything else is not welcome; it even looks that you just want to show off what a genius you are.

e) Well written and checked answers:
Like c) for new threads, check your solutions at least twice for mistakes. And after sending, read it again and use the Edit-Button if necessary to correct errors.



To repeat it: ALWAYS USE YOUR COMMON SENSE IF POSTING!


Everything definitely out of range of common sense will be locked or deleted (exept for new users having less than about 42 posts, they are newbies and need/get some time to learn).

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
IMO problem 1
iandrei   76
N a minute ago by ihategeo_1969
Source: IMO ShortList 2003, combinatorics problem 1
Let $A$ be a $101$-element subset of the set $S=\{1,2,\ldots,1000000\}$. Prove that there exist numbers $t_1$, $t_2, \ldots, t_{100}$ in $S$ such that the sets \[ A_j=\{x+t_j\mid x\in A\},\qquad j=1,2,\ldots,100  \] are pairwise disjoint.
76 replies
iandrei
Jul 14, 2003
ihategeo_1969
a minute ago
Abelkonkurransen 2025 3a
Lil_flip38   6
N 4 minutes ago by Tsikaloudakis
Source: abelkonkurransen
Let \(ABC\) be a triangle. Let \(E,F\) be the feet of the altitudes from \(B,C\) respectively. Let \(P,Q\) be the projections of \(B,C\) onto line \(EF\). Show that \(PE=QF\).
6 replies
Lil_flip38
Yesterday at 11:14 AM
Tsikaloudakis
4 minutes ago
Inspired by JK1603JK
sqing   2
N 6 minutes ago by sqing
Source: Own
Let $ a,b,c\geq 0 $ and $ ab+bc+ca=2. $ Prove that
$$ \frac{a+b+c-3abc}{a^2b+b^2c+c^2a}\geq\frac{1}{2}$$$$ \frac{a+b+c-3abc-2}{a^2b+b^2c+c^2a}\geq\frac{1-\sqrt 6}{2}$$$$  \frac{a+b+c-3abc-1 }{a^2b+b^2c+c^2a} \geq\frac{2-\sqrt 6}{4}$$$$ \frac{a+b+c-\frac{1}{6}abc-2}{a^2b+b^2c+c^2a}\geq\frac{13}{9}-\sqrt {\frac{3}{2}}$$$$ \frac{a+b+c-abc-2}{a^2b+b^2c+c^2a}\geq\frac{7-3\sqrt 6}{6}$$
2 replies
sqing
an hour ago
sqing
6 minutes ago
stuck on a system of recurrence sequence
Nonecludiangeofan   1
N 35 minutes ago by pco
Please guys help me solve this nasty problem that i've been stuck for the past month:
Let \( (a_n) \) and \( (b_n) \) be two sequences defined by:
\[
a_{n+1} = \frac{1 + a_n + a_n b_n}{b_n} \quad \text{and} \quad b_{n+1} = \frac{1 + b_n + a_n b_n}{a_n}
\]for all \( n \ge 0 \), with initial values \( a_0 = 1 \) and \( b_0 = 2 \).

Prove that:
\[
a_{2024} < 5.
\]
(btw am still not comfortable with system of recurrence sequences)
1 reply
Nonecludiangeofan
Yesterday at 10:32 PM
pco
35 minutes ago
Number Theory
MuradSafarli   4
N 39 minutes ago by mdnajibl477
find all natural numbers \( (a, b) \) such that the following equation holds:

\[
7^a + 1 = 2b^2
\]
4 replies
MuradSafarli
Yesterday at 7:55 PM
mdnajibl477
39 minutes ago
euler-totient function
Laan   0
an hour ago
Proof that there are infinitely many positive integers $n$ such that
$\varphi(n)<\varphi(n+1)<\varphi(n+2)$
0 replies
Laan
an hour ago
0 replies
Cubic function from Olymon
Adywastaken   3
N an hour ago by Ahmed_mallek
Source: Olymon Volume 11 2010 663
Find all $f:\mathbb{R}\rightarrow\mathbb{R}$ such that
$x^2y^2(f(x+y)-f(x)-f(y))=3(x+y)f(x)f(y)$ $\forall$ $x,y \in \mathbb{R}$
3 replies
+1 w
Adywastaken
3 hours ago
Ahmed_mallek
an hour ago
Inspired by my own results
sqing   3
N an hour ago by sqing
Source: Own
Let $ a,b,c\geq 2.$ Prove that
$$ (a+1)(b+2)(c +1)-3 abc\leq 12$$$$ (a+1)(b+2)(c +1)-\frac{7}{2}abc\leq  8$$$$ (a+1)(b+3)(c +1)-\frac{15}{4}abc\leq  15$$$$ (a+1)(b+3)(c +1)-4abc\leq  13$$
3 replies
1 viewing
sqing
4 hours ago
sqing
an hour ago
Function Equation
Dynic   1
N an hour ago by pco
Find all $f:\mathbb{R} \to \mathbb{R}$ such that
$$f(x-f(y))=f(x+f(y)+y^5)+f(2f(y)+y^5)+2025,\forall x,y\in \mathbb{R}$$
1 reply
Dynic
2 hours ago
pco
an hour ago
Colouring numbers
kitun   2
N 2 hours ago by quasar_lord
What is the least number required to colour the integers $1, 2,.....,2^{n}-1$ such that for any set of consecutive integers taken from the given set of integers, there will always be a colour colouring exactly one of them? That is, for all integers $i, j$ such that $1<=i<=j<=2^{n}-1$, there will be a colour coloring exactly one integer from the set $i, i+1,.... , j-1, j$.
2 replies
kitun
Nov 15, 2021
quasar_lord
2 hours ago
Mathhhhh
mathbetter   4
N 2 hours ago by Amkan2022
Three turtles are crawling along a straight road heading in the same
direction. "Two other turtles are behind me," says the first turtle. "One turtle is
behind me and one other is ahead," says the second. "Two turtles are ahead of me
and one other is behind," says the third turtle. How can this be possible?
4 replies
mathbetter
Yesterday at 11:21 AM
Amkan2022
2 hours ago
Finally hard NT on UKR MO from NT master
mshtand1   3
N 2 hours ago by Jupiterballs
Source: Ukrainian Mathematical Olympiad 2025. Day 1, Problem 11.4
A pair of positive integer numbers \((a, b)\) is given. It turns out that for every positive integer number \(n\), for which the numbers \((n - a)(n + b)\) and \(n^2 - ab\) are positive, they have the same number of divisors. Is it necessarily true that \(a = b\)?

Proposed by Oleksii Masalitin
3 replies
mshtand1
Mar 13, 2025
Jupiterballs
2 hours ago
Sequence bounding itself
juckter   2
N 3 hours ago by Math-Problem-Solving
Source: Own
We say a sequence of integers $a_1, a_2, \dots, a_n$ is self-bounded if for each $i$, $1 \le i \le n$ there exist at least $a_i$ terms of the sequence that are less than or equal to $i$. Find the maximum possible value of $a_1 + a_2 + \dots + a_n$ for a self-bounded sequence $a_1, a_2, \dots, a_n$.
2 replies
juckter
Jan 13, 2021
Math-Problem-Solving
3 hours ago
Checkerboard
Ecrin_eren   0
3 hours ago
On an 8×8 checkerboard, what is the minimum number of squares that must be marked (including the marked ones) so that every square has exactly one marked neighbor? (We define neighbors as squares that share a common edge, and a square is not considered a neighbor of itself.)
0 replies
Ecrin_eren
3 hours ago
0 replies
Roots, bounding and other delusions
anantmudgal09   28
N Mar 18, 2025 by kes0716
Source: INMO 2021 Problem 6
Let $\mathbb{R}[x]$ be the set of all polynomials with real coefficients. Find all functions $f: \mathbb{R}[x] \rightarrow \mathbb{R}[x]$ satisfying the following conditions:

[list]
[*] $f$ maps the zero polynomial to itself,
[*] for any non-zero polynomial $P \in \mathbb{R}[x]$, $\text{deg} \, f(P) \le 1+ \text{deg} \, P$, and
[*] for any two polynomials $P, Q \in \mathbb{R}[x]$, the polynomials $P-f(Q)$ and $Q-f(P)$ have the same set of real roots.
[/list]

Proposed by Anant Mudgal, Sutanay Bhattacharya, Pulkit Sinha
28 replies
anantmudgal09
Mar 7, 2021
kes0716
Mar 18, 2025
Roots, bounding and other delusions
G H J
G H BBookmark kLocked kLocked NReply
Source: INMO 2021 Problem 6
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1979 posts
#1 • 17 Y
Y by GorgonMathDota, Superguy, Rg230403, Aritra12, Euler1728, p_square, starchan, Hexagon_6-, biomathematics, sqrtX, Abidabi, fidgetboss_4000, CaptainLevi16, ubermensch, Williamgolly, Rounak_iitr, TSM_Zeki_MuREN
Let $\mathbb{R}[x]$ be the set of all polynomials with real coefficients. Find all functions $f: \mathbb{R}[x] \rightarrow \mathbb{R}[x]$ satisfying the following conditions:
  • $f$ maps the zero polynomial to itself,
  • for any non-zero polynomial $P \in \mathbb{R}[x]$, $\text{deg} \, f(P) \le 1+ \text{deg} \, P$, and
  • for any two polynomials $P, Q \in \mathbb{R}[x]$, the polynomials $P-f(Q)$ and $Q-f(P)$ have the same set of real roots.

Proposed by Anant Mudgal, Sutanay Bhattacharya, Pulkit Sinha
This post has been edited 1 time. Last edited by anantmudgal09, Mar 7, 2021, 5:20 PM
Reason: I had to do this after Ankoganit suggested it. Missed opportunity.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ubermensch
820 posts
#2 • 1 Y
Y by ATGY
$f(P)=\pm P$? After getting $f(f(P))=P$, bounding degree of $f(P)$ between that of $P$ $/pm 1$, forcing degree of $f(P)$ equal to P by considering odd/even degree P, getting $f(Q)=kQ$ for certain types of Q (aka ones with distinct roots), hence forcing $f(P)=kP$ for all $P$ (variable k) by taking degree of Q to infinity along with having $P-Q, f(P)-f(Q)$ having equal roots, forcing $k$ to be fixed for all polynomials and finally forcing $k= \pm 1$ should work?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1979 posts
#3 • 1 Y
Y by Hexagon_6-
I will post the official solution (with minor tweaks):

Solution
This post has been edited 1 time. Last edited by anantmudgal09, Mar 7, 2021, 11:16 AM
Reason: forgot hide tags
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
starchan
1601 posts
#4 • 2 Y
Y by Mango247, Mango247
This was definitely the hardest problem, although I am not sure..
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
quirtt
163 posts
#5 • 2 Y
Y by Pluto1708, Mango247
{redacted}
This post has been edited 2 times. Last edited by quirtt, Mar 31, 2021, 11:55 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Bahnhofstrasse
25 posts
#6
Y by
This is brutal rip
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Bahnhofstrasse
25 posts
#8
Y by
Exactly @above orz
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
BOBTHEGR8
272 posts
#9 • 3 Y
Y by lneis1, Pratik12, AnSoLiN
anantmudgal09 wrote:
Let $\mathbb{R}[x]$ be the set of all polynomials with real coefficients. Find all functions $f: \mathbb{R}[x] \rightarrow \mathbb{R}[x]$ satisfying the following conditions:
  • $f$ maps the zero polynomial to itself,
  • for any non-zero polynomial $P \in \mathbb{R}[x]$, $\text{deg} \, f(P) \le 1+ \text{deg} \, P$, and
  • for any two polynomials $P, Q \in \mathbb{R}[x]$, the polynomials $P-f(Q)$ and $Q-f(P)$ have the same set of real roots.

Proposed by Anant Mudgal, Sutanay Bhattacharya, Pulkit Sinha

Amazing problem , here's my solution from test.

Answer
Solution

Also I feel P5 was hardest problem on test .
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
p_square
442 posts
#10 • 2 Y
Y by pkrmath2004, spicemax
Pretty neat question!

I have a suspicion that $\deg f(P) \le 1 + \deg P$ is not entirely necessary. I did use this in my official write-up but not in a crucial way. Even the condition $f(0) = 0$ can probably be relaxed, if one includes the solutions $P(x) \equiv - x + c$ in the solution set. I'll try to finish that later, for now a solution that assumes everything the problem gives.

Call a polynomial sweet if it has only distinct real roots. Given any polynomials $Q_1$ and $Q_2$, we can pick a polynomial $P$ such that all three of $P, P-Q_1, P-Q_2$ are sweet.
Observe for any sweet $P$, $f(P)$ has same real roots as $P$, so $P \mid f(P)$

The idea is to say that if both $Q_1, Q_2$ are bounded by $(-d, d)$ on $[0,1]$, we can choose $P$ of large degree $2k$ by $P(\frac{i}{2k}) = -1^i \dot d$ for $0 \le i \le 2k$ using Lagrange Interpolation. Now, each of the polynomials $P, P-Q_1, P-Q_2$ has a root in the intervals $(\frac{i}{2k}, \frac{i+1}{2k})$ by intermediate value theorem, and hence is sweet.

Pick arbitrary $Q_1, Q_2$ and $P$ by above strategy. Let $f(P) = aP$
$P-f(Q_k) \mid f(P) - Q_k$ and by matching the leading two coefficients, $a(P - f(Q_k)) = f(P) - Q_k$ and $a f(Q_k) = Q_k$.
Since $Q_1, Q_2$ were arbitrary we have that $\frac{Q}{f(Q_1)}$ is a constant. It is not hard to analyze to find out that this constant must be $\pm 1$.
This post has been edited 3 times. Last edited by p_square, Mar 11, 2021, 12:00 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Math-wiz
6107 posts
#11
Y by
What's with the title :?

Oh noice, thanks@above
This post has been edited 1 time. Last edited by Math-wiz, Mar 7, 2021, 4:30 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Rg230403
222 posts
#12 • 3 Y
Y by 606234, Mango247, GeoKing
Very nice problem! My solution is same as Bob's upto claim 7 so I will not post that but I think the following finish is cleaner.
Case 1: $a=1$, now $P-c$ and $f(P)-c$ have the same set of real roots. But now this set of real roots must also be a root of $P-f(P)$ but as we can vary $c$ and generate arbitrary roots of $P-c$ thus, $P-f(P)=0\implies P=f(P)$. Similarly,
Case 2: $a=-1$, now $P-c$ and $f(P)+c$ have same set of real roots and thus these are also roots of $P+f(P)$ and again by same logic, we have $f(P)=-P$ and both these are valid solutions and we are done!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Physicsknight
635 posts
#13 • 1 Y
Y by Mango247
Consider polynomial $P$ $\deg 0$. If $f(P)$ is a polynomial of degree at most $1$ with no real roots, so a constant also. If $P$ has a repeated real root $c$ then $f(P)$ could be the polynomial with $ (x-c)f(P)=P.$ Let $ f(P)=Q$ If $f$ is an involution on the constants ( $f(Q)=P$) . For the constants $Q$ $\forall P$ we have $f(P)-f(Q)$ has the same real roots as $P-Q$. Let $P$ be linear polynomial. Now $f(P )$ is at most quadratic which has the same unique real root as $ P$ so of the form $ cP$ or $ cP^2$ with $c$ nonzero. For any constant $ Q$ we have $f(P )-f(Q)$ is one of $c(P-Q ), c(P-Q)^2.$ Note that $f(P)-f (Q)$ had the same degree as $f(P)$. Suppose that $f(ax+b)=c(ax+b)^2$ Then for a nonzero constant $Q $ of the opposite sign of $c,f(ax+b)-Q$ had no real roots but $ax+b-f(Q)$ had. Note that, $f(P)=c(P)P$ for each linear polynomial $P$. $f$ is an involution of degree 1 also. Consider $f(ax+b)=c(ax+b)$. $ax+b-Q$ has the same root as $c(ax+b)-f(Q)\,\,\forall Q \implies f(Q)=cQ$. Note that, $c$ is only depended on $ax+b$. There is a single constant $c$ such that $cP=f(P)\,\forall P$ of degree 1 at most. Note that $f$ is an involution on the constants $\implies c^2=1$ either $f(P)=-P$ or $P= f(P)$ for these polynomials.


Let $P $ be a polynomial degree $n, $ and suppose $P $ has the largest possible number of distinct real roots in the coset $P\mathbb{R}[x]^{\le n-2} $ of its translated by the polynomials of degree at most $n-2. $
If $P $ has less than $n $ real roots then either has repeated real roots or an irreducible quadratic factor . We have $P=RS $ where $R $ has degree $n-2$ and $S $ is quadratic with at most one real root. Choose $a $ such that $S-a $ has $2$ real roots of $R $. Then $P-Ra $ has more real roots than P, contradiction.
Note that, $P $ has $n $ real roots. For any real polynomial $P $ of degree $n $ there is a polynomial $Q $ of degree at most $n-2$ such that $P-Q $ has $n $ real roots.
Lemma-
Let $c $ be one of $\pm 1, $ and by induction forall the polynomials $Q $ of degree $< n $ we have $cQ=f (Q). $

Let $P $ have degree $n. $ Suppose $f (P) $ has degree $n+1. $ By the lemma there is $Q $ of degree at most $n-1$ such that $f (P)-Q $ has $n+1$ distinct roots. Then $f (Q)-P $ requires $n+1$ roots, not possible.
We conclude that $f (P) $ has degree $n. $
This post has been edited 2 times. Last edited by Physicsknight, Mar 7, 2021, 5:49 PM
Reason: Typos
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ubermensch
820 posts
#14 • 1 Y
Y by ATGY
Let $P(P,Q)$ correspond to condition 3.

$P(f(Q),Q): f(f(Q))=Q \implies f$ is bijective.

$P(P,f(Q)): P-Q, f(P)-f(Q)$ have the same set of real roots. Plugging in $Q=0$, $P, f(P)$ have the same set of real roots.

As $f(f(Q))=Q, \deg Q \leq \deg f(Q)+1 \implies \deg f(Q)+1 \geq \deg f(Q) \geq \deg Q -1$.

If $\deg P \neq \deg f(P)$, this forces one of $P, f(P)$ to be of even degree and the other to be of odd degree. If $\deg f(P)$ is even, we can choose $Q$ as a constant polynomial such that $f(P)-Q$ has no real roots, whereas $P-f(Q)$ must have at least one real root as it has an odd degree $\implies$ Contradiction.

Hence we have $\deg f(P) =\deg P$ for $\deg P \geq 3$.

Let $Q(x)=A(x-a_1)...(x-a_n)$ for distinct $a_1,a_2,...,a_n$. As $Q, f(Q)$ have the same set of real roots $\implies f(Q)=kQ$.

Note that, as $P-Q$ and $f(P)-f(Q)=f(P)-kQ$ have the same set of real roots (say $x_1,x_2,...,x_t$), $x_1,x_2,...,x_t$ must also be roots of $f(P)-kP$.

Clearly we can let degree of $Q$ be as large as we want it to be and between any 2 roots of Q we can let it's local maxima/minima as large in magnitude as we can, $f(P)-kP$ must be the zero polynomial $\implies f(P)=kP$ for some variable real $k$.

Consider two polynomials $Q_1,Q_2$ with pairwise distinct roots, as above. Consider $P$ with pairwise distinct real roots also such that the set of roots of $P$ is a superset of $Q_1,Q_2$.

Let $P(x)=Q_1(x)R_1(x) \implies (R_1-1)Q, k(R_1-\frac c{k_1})Q$ must have the same set of real roots. Similarly, $(R_2-1)Q_2, (R_2-\frac c{k_2})Q_2$ must have the same set of real roots. As we can let $\deg R$ to be as large as we want along with the fact that $t$ is a root of $R_1-1$ and $R_1- \frac{c}{k_1}$, then $t$ is a root of $1-\frac{c}{k_1}$, we hence force $c=k_1=k_2$. This forces all $k$ equal in the above argument for $f(P)=kP$.

As $f(f(P))=P \implies k^2=1 \implies k = \pm 1$.

Thus $f(P)=P$ and $f(P)=-P$ are the only possible solutions, both which clearly work.
This post has been edited 1 time. Last edited by ubermensch, Mar 7, 2021, 5:01 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Justanaccount
196 posts
#17
Y by
Can somebody check plz? After proving f(c)=c or f(c)=-c for all real c, WLOG f(c)=c for all real c, consider Q=P(c) for some real c, and f(P)=R(x) we have P-P(c) has root c, then R(x)-P(c) also has root c or R(c)=P(c), and since it happen for all such real c we must have R(x)=P(x) or f(P)=P
This post has been edited 1 time. Last edited by Justanaccount, Mar 8, 2021, 3:45 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Aritra12
1026 posts
#21 • 2 Y
Y by EpicNumberTheory, rama1728
Sorry if there is any typos or error,
7 Solved with TLP.39 & EpicNumberTheory. The first assertion in the problem is just $f(0) = 0$. Let the second assertion be denoted by $A(P)$ and the third assertion by $B(P,Q)$. $B(f(Q),Q) \implies 0 \text{ and } Q - f(f(Q))$ have the same set of real roots. So $f(f(Q)) = Q$ and so $f$ is an involution.

$B(0,Q) \implies f(Q) \text{ and } Q$ have the same real roots (!)

Suppose $\text{deg } R = 1$. So $A(R) \implies \text{deg } f(R) \in \{0,1,2\}$. Now by (!) we have that $f(R) \in \{cR,cR^2,C\}$ (Here $C$ is any constant polynomial).
I Claim 1. $ \text{deg } R \neq 2$
Proof. So for proving that $f(R)$ can’t be $cR^2$, we need $cR^2-f(d)$ and $R-d$ to not have the same set of real root for some $d$. Simply choose $d$ such that $f(d)$ have the different sign from $c$ and $cR^2-f(d)$ will not have any real root and thus a contradiction (this is possible as $f$ is involution.) $\square$.
I Claim 2. $\text{deg } R \neq 0$
Proof. Suppose $f(R_1)=C$ for some $R_1$.$A(C) \implies \text{deg } f(C) \in \{0,1\}$. Suppose it is $1$ then by $B(C,0) $ we have that $f(C)$ and $0$ have the same set of real roots or that $f(C) = 0 \implies \text{deg } f(C) = 0 \neq 1$ which is a clear contradiction. $B(R_1,C) \implies R_1-f(C) \text{ and } 0$ have the same set of real roots. So $R_1= f(C)$ which means that $\text{deg }R_1 = 0$ which is a clear contradiction.

Let $R,R’$ have different roots .Consider $B(R,R’)$ which gives that $cR-R’\text{ and } R-dR’$ have the same set of roots, which means that there’s a constant $m$ such that $m(cR-R’)=R-dR’$ and since $R,R’$ have different roots we must have $mc=1$ and $-m=-d$. This gives $cd=1$.. Simply choose $R_2$ with different root from both of them and let $f(R_2)=kR_2$ , then we have $cd=dk=ck=1$ and so $c=d=\pm 1$. So any $R,R’$ with different roots have the same $\frac{f(R)}{R}$ which is $1$ or $-1$.

Let $\text{deg }T = 1$. Suppose $f(T) = T$ but $f(T')=-T'$. Then $B(T,T')$ gives that $T+T'$ and $T'-T$ have the same set of real roots which contradicts their degree being equal to $1$. So we have either $f(R)=R$ $\forall R \in \mathbb{R}[x]$ or $f(R) = -R$ $\forall R \in \mathbb{R}[x]$.
L Case 1. $f(R) = R$ $\forall R \in \mathbb{R}[x]$.

$B(R,Q) \implies f(Q) - R \text{ and } Q - R$ have the same set of real roots. So now varying $R$ over $\mathbb{R}[x]$ we can deduce that$$\boxed{f(Q) = Q \text{ } \forall Q \in \mathbb{R}[x]}$$which indeed is a solution.

L Case 2. $f(R) = -R$ $\forall R \in \mathbb{R}[x]$.

$B(R,Q) \implies f(Q) - R \text{ and } Q + R$ have the same set of real roots. So now varying $R$ over $\mathbb{R}[x]$ we can deduce that$$\boxed{f(Q) = -Q$ $\forall Q \in \mathbb{R}[x]}$$which also is a solution.
This post has been edited 1 time. Last edited by Aritra12, Mar 9, 2021, 4:12 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tintarn
9027 posts
#22 • 3 Y
Y by Ankoganit, Wizard0001, ZETA_in_olympiad
$Q=f(P)$ shows that $f(f(P))=P$. $Q=0$ shows that $P$ and $f(P)$ have the same set of roots.
If $P(x)=c \ne 0$ is constant, $f(P)$ can be at most linear, but has no roots, so in fact $f(P)=g(c)$ is also constant and $g(g(c))=c$.
Putting $Q=g(c)$ shows that $P(y)=c$ iff $f(P)(y)=g(c)$, in other words $\boxed{f(P)(y)=g(P(y))}$ for all $y \in \mathbb{R}$.
Specifically, for $P_0(x)=x$ this shows that $f(P_0)(y)=g(y)$ and hence $f(P_0)$ is bijective.
On the other hand, $f(P_0)$ is at most quadratic, hence linear (since bijective) and hence $f(P_0)(x)=ax$ (since $0$ is a root).
Hence $g(y)=ay$ and hence $a=\pm 1$.
If $a=1$, then $f(P)=P$ which is indeed a solution.
If $a=-1$, then $f(P)=-P$ which is indeed a solution.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Abhinavsrijan729
4 posts
#23
Y by
Anyone has idea regarding cutoff ? 20 maybe ?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
spicemax
30 posts
#24
Y by
Can someone check this solution? My friend submitted this on the test. Please do point out the mistakes, if any.
Attachments:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Rg230403
222 posts
#25
Y by
Umm, there's no reason that $f$ is a polynomial. We are just given that $f$ is a function.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
niksic
81 posts
#26
Y by
I'll borrow the $\sim$ notation from anantmudgal09 above :)

Plugging in $Q = f(P)$ gives $f(f(P)) = P$, and plugging in $Q= 0$ gives $P\sim f(P)$. Call a polynomial good if all it's roots are real and distinct. Using the Fundamental theorem of Algebra, and the fact $deg f(P) \leq deg P +1$, we deduce $P\sim f(P) \implies f(P)=P\cdot const$ for a good polynomial $P$.

Now take good polynomials $P$ and $P(x-a)$, and say $f(P)=Pc$ and $f(P(x-a))=P(x-a)d$. Now we have $P-P(x-a)d \sim P(x-a)-Pc \implies \frac{1}{d}=c$. Using simple induction on the degree of $P$, we get that the constant in $f(P)=P\cdot const$ is the same for all $P$ of the same degree, where the constant is $c$ or $1/c$ depending on the parity of the degree of $P$.

We can easily transform $P-f(Q)\sim Q-f(P)$ into $P-Q\sim f(P)-f(Q)$ due to involutivity. Now use good polynomials $P$ and $Px$ here to get $Px-P\sim Px\frac{1}{c}-Pc \implies c\in\{-1,1\}$. So $f(P)=P$ or $f(P)=-P$ for any good $P$.

Here I'll skip a huge chunk of the proof and just quote an equivalent of a past USAMO problem: For any $Q\in \mathbb{R}[x]$, there are two good polynomials $P, R$ with $P-Q=R$. The original problem does need some tweaking though, but it is pretty simple.

Take any real polynomial $Q$, and find such $P$ and $R$, also make their degrees larger then that of $Q$. Then $P-Q\sim f(P)-f(Q) \implies \pm R \sim \pm P - f(Q)$. From here we easily conclude $f(Q)=\pm Q$, finishing the proof.

Thus, the only solutions are $f(P) = P$ and $f(P) = -P$ $ \blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SatisfiedMagma
451 posts
#27
Y by
BOBTHEGR8 wrote:
anantmudgal09 wrote:
Let $\mathbb{R}[x]$ be the set of all polynomials with real coefficients. Find all functions $f: \mathbb{R}[x] \rightarrow \mathbb{R}[x]$ satisfying the following conditions:
  • $f$ maps the zero polynomial to itself,
  • for any non-zero polynomial $P \in \mathbb{R}[x]$, $\text{deg} \, f(P) \le 1+ \text{deg} \, P$, and
  • for any two polynomials $P, Q \in \mathbb{R}[x]$, the polynomials $P-f(Q)$ and $Q-f(P)$ have the same set of real roots.

Proposed by Anant Mudgal, Sutanay Bhattacharya, Pulkit Sinha

Amazing problem , here's my solution from test.

Answer
Solution

Also I feel P5 was hardest problem on test .

If you find P5 tough, go see AMC 12B, 2008 P24. You will start cursing me or yourself... :D
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
BOBTHEGR8
272 posts
#28
Y by
@above I think their is a typo somewhere, I saw AMC 12B ,2008 P24, it has nothing to do with P5 .
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Flash_Sloth
230 posts
#29 • 2 Y
Y by Rg230403, CaptainLevi16
Here is my solution, video link: https://youtu.be/wwYb0fqrWMQ
Plug $Q=0$ in (iii) yields $P$ and $f(P)$ has the same set of real roots, call this property ($\star$).

Claim 1: $f$ sends constant polynomials to constant polynomials
Indeed take $P=c$ for $c \neq 0$, then $deg(f(c)) \le 1$. From ($\star$), $f(c)$ has no real root, note that any degree 1 polynomial has a real root, hence $f(c)$ can only be degree $0$, i.e. constant polynomials.

Claim 2: $f(X) = \alpha X$ for some $\alpha \neq 0$. (Here $X$ refers to the polynomial $P(x)=x$)
From $(\star)$ and the degree condition, $f(X)$ can only be $\alpha X$ or $\beta X^2$. However, if $f(X) = \beta X^2$, then take $P=X$ and $Q = \beta$ gives (1) $P-f(Q) = X-f(\beta)$ is degree 1, which has 1 root; and (2) $Q-f(P) = \beta - \beta X^2 $ has two root $\pm 1$, contradiction!

Claim 3: $f(c) = c/\alpha$ for any $c \in \mathbb{R}$.
Apply (iii) with $P=X$ and $Q=c$ gives $P-f(Q) = X -f(c)$ has the same root as $Q-f(P) = c - \alpha X$. Comparing the root gives $f(c) = c/\alpha$.

Claim 4: $f(P) = \alpha P$ for any polynomial $P$.
Fix $P$, take an arbitrary real number $x_0 \in \mathbb{R}$. Let $Q = \alpha P(x_0)$, then $f(Q) = P(x_0)$. So $P-f(Q) = P- P(x_0)$ has the same real real root set as $Q-f(P) = \alpha P(x_0) - f(P)$. As $x_0$ is a solution of $P-P(x_0)$, this means $x_0$ is also a solution of $\alpha P(x_0) - f(P)$. Hence $f(P)(x_0) = \alpha P(x_0)$. This is true for any $x_0$, hence $f(P) = \alpha P$.

Finally, from Claim 3 and Claim 4, $f(1) = 1/\alpha = \alpha$, so $\alpha^2 =1$. Hence the only two solutions are $f(P)=P$ for all $P$, and, $f(P)=-P$ for all $P$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ssmathkk
70 posts
#31
Y by
Consider the function , $f~:~R[X] \rightarrow R[X]$ , which satisfies :

(a) $f(0)~=~0$ ,
(b) for any non-zero polynomials $P~\in~R[X]~,~degf(P)~\le~1+degP$ , and
(c)for any two polynomials $P,Q \in R[X]$ , the polynomials $f(P)-Q$ and $f(Q)-P$ have the same set of real zeroes.
Observe , that on considering $Q(x)=f(P(x))$ , we get that , $0=f(P(x))-f(P(x))$ and $f(f(P(x)))-P(x)$ have the same set of real zeroes.Hence , $f(f(P(x)))=P(x)$ , (otherwise we get a contradiction on the maximality of zeroes of $f(f(P(x)))=P(x)$).Also , we have $f(P(x))=0$ $<=>$ $P(x)=0$ , where "$<=$" follows from condition(a) , and "$=>$" follows from $f(P(x))=0$ $=>$ $f(f(P(x)))=f(0)=0$ $=>$ $P(x)=0$.Again , observe that $f(P(x))$ and $P(x)$ have that same set of real zeroes.

Claim:$f(P(x))=P(x)$ and $f(P(x))=-P(x)$ are only such functions which satisfy the above conditions .
$\Rightarrow$ $deg f(P(x)) \le 1+deg P(x)$ $\Rightarrow$ $deg f(f(P(x))) \le 1+deg f(P(x))$ $\Rightarrow$ $deg P(x) \le 1+ deg f(P(x))$ , hence we are left with with symmetric inequalities : $deg f(P(x)) \le 1+deg P(x)$ and $deg P(x) \le 1+ deg f(P(x))$ , and thus we get , $deg P(x)-1 \le deg f(P(x)) \le deg P(x)+1$ $\Rightarrow$ $deg f(P(x)) \in \{deg P(x)-1 , deg P(x) , deg P(x)+1\}$.
We now show that $f$ maps constant polynomials to constant polynomials:$f(0)=0$ , take $k \neq 0$ , thus $deg f(k) \le 1$ .Lets consider $deg f(k)=1$ , then its a linear polynomial which has exactly one real zero and hence we see that $k$ and $f(k)$ doesn't have same set of real roots , which is a contradiction , hence $deg f(k)=0$.
Now if , $deg f(P(x))=deg (P(x)) \pm 1$ , then if $deg f(P(x))$ is even , then obviously $deg (P(x))$ has to be odd , and $f(P(x))$ has finite local minima's below $x$-axis and $\lim_{x \to \infty} f(P(x))$ $\rightarrow$ $\infty$ , now consider $Q(x)=-max\{f(P(x_1)) , f(P(x_2)) , \cdots , f(P(x_l)) \}+1$ which is a constant polynomial where $x_i's ~,~ 1 \le i \le l$ are the points of local minima's of $f(P(x))$ , hence $f(P(x))-Q(x)$ has no real zeroes , but $P-f(Q(x))$ is of odd degree and should have at least one real zero , hence a contradiction.A similar type of argument follows for the case where $deg f(P(x))$ is odd.Therefore , $deg f(P(x))=deg P(x)$ .


Will complete the rest of the proof sometime later.
This post has been edited 1 time. Last edited by Ssmathkk, Apr 26, 2021, 10:30 PM
Reason: typo
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
YLG_123
206 posts
#33
Y by
Notation: $P\sim Q$ if P and Q have the same real roots.

$Q=0 \implies P\sim f(P)$.

If $P=a \neq 0 \implies deg(f(P)) \leq 1$. But $deg(f(P)) \neq 1$, because $P$ does not have roots $\implies deg(f(P))=0$.

If $P=ax+b \implies deg(f(P))\leq 2$, but $P\sim f(P) \implies f(ax+b)=K_{a,b}(ax+b)$ or $f(ax+b)=K_{a,b}(ax+b)^2$, $K_{a,b}\neq 0$.

$(ax+b)-f(c)\sim c-f(ax+b) \implies$

1) $(ax+b)-f(c)\sim c-K_{a,b}(ax+b)^2 \implies c=K_{a,b}f(c)^2  \implies$ $c$, $K_{a,b}$ have the same signal, but you can put $c>0$ or $c<0$. Absurd!

2) $(ax+b)-f(c)\sim c-K_{a,b}(ax+b) \implies c=K_{a,b}f(c)$, varying $a, b \implies K_{a, b}$ is constant, so, $f(ax+b)=K(ax+b)$ and $f(c)=\dfrac{c}{K}$.

$ax+b-K(cx+d) \sim cx+d-K(ax+b) \implies \dfrac{b-Kd}{a-Kc}=\dfrac{d-Kb}{c-Ka} \implies K^2(ad-bc)=(ad-bc)$ (just put $ad \neq bc$) $\implies K^2=1 \implies K=\pm 1$.

1) $K=1 \implies f(a)=a \implies P-a \sim f(P)-a$, just take $a=P(r) \implies f(P)(r)=P(r)$ for an infinite number of $r$'s $\implies f(P)=P$.

2) $K=-1 \implies f(-a)=a \implies P-a \sim -f(P)-a$, analogously, $f(P)=-P$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rama1728
800 posts
#34
Y by
anantmudgal09 wrote:
Let $\mathbb{R}[x]$ be the set of all polynomials with real coefficients. Find all functions $f: \mathbb{R}[x] \rightarrow \mathbb{R}[x]$ satisfying the following conditions:
  • $f$ maps the zero polynomial to itself,
  • for any non-zero polynomial $P \in \mathbb{R}[x]$, $\text{deg} \, f(P) \le 1+ \text{deg} \, P$, and
  • for any two polynomials $P, Q \in \mathbb{R}[x]$, the polynomials $P-f(Q)$ and $Q-f(P)$ have the same set of real roots.

Proposed by Anant Mudgal, Sutanay Bhattacharya, Pulkit Sinha

Nice and easy problem.

Let \(\omega(P)\) denote the assertion of the second bullet point, and \(\Omega(P,Q)\) of the third. From \(\Omega(f(P),P)\), it is clear that \(f\) is an involution. Now, \(\Omega(P,0)\) tells us that \(f(P)\) and \(P\) have the same set of real roots, implying that \(f(x)=cx^k\), where \(c\) is a real constant, but \(\omega(x)\) tells us that the degree of \(f(x)\) is at most \(2\), implying that \(f(x)=cx\) or \(f(x)=cx^2\). If \(f(x)=cx^2\), then \(\Omega(x,C)\), where \(C\) is a constant gives us that \(C-cx^2\) and \(x-f(C)\) have the same set of real roots, and since \(f(C)\) is either constant or linear by \(\omega(C)\), we get a contradiction since \(C-cx^2\) has 2 real roots, while \(x-f(C)\) has just one. Therefore, \(f(x)=cx\). Now, I claim that \(f(C)=\frac{C}{c}\) for all constants \(C\). By \(\Omega(C,x)\) and \(\omega(C)\), we see that \(f(C)\) is either linear or constant and that \(C-cx\) and \(x-P(C)\) have the same real roots. If \(f(C)\) was linear, then it'd not be unique because we could let \(f(C)-x=k(C-cx)\) to get infinitely many values for \(f(C)\), a contradiction, therefore \(f(C)\) is constant, and checking gives \(f(C)=\frac{C}{c}\). Now, note that \[C=f(f(C))=\frac{C}{c^2}\]implying that \(c=\pm1\). If \(c=1\), then \(f(x)=x\) and \(f(C)=C\), and \(\Omega(P,C)\) gives us that \(P-C\) and \(f(P)-C\) have the same set of real roots, implying that \(P-C\) and \(f(P)-P\) have the same set of real roots. Fixing \(P\) and varying \(C\), we see that \(f(P)=P\) for all polynomials \(P\in\mathbb{R}[x]\). Analogously, if \(c=-1\), then \(f(P)=-P\) for all polynomials \(P\in\mathbb{R}[x]\).

In conclusion, the only solutions to this functional relation is \[f(P)=P~\text{or}~f(P)=-P\forall P\in\mathbb{R}[x]\]
This post has been edited 2 times. Last edited by rama1728, Nov 22, 2021, 5:36 AM
Reason: .
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IAmTheHazard
5000 posts
#38 • 2 Y
Y by centslordm, GeoKing
The answer is $f(P)=P$ and $f(P)=-P$, which clearly work. We show that these are the only ones.

First, by plugging in $Q=f(P)$, it follows that $f(f(P))=P$, so we can rewrite the condition as $P-Q$ and $f(P)-f(Q)$ having the same set of real roots. In particular, $P$ and $f(P)$ have the same set of real roots.

Now, I claim that the second condition can be strengthened to $\deg f(P) \leq \deg P$. First, since $P$ and $f(P)$ have the same set of real roots, if $P$ is a nonzero constant then $f(P)$ must be too, since it is at most linear and every linear polynomial has a real root, i.e. $f$ maps nonzero constant polynomials to nonzero constant polynomials. Then, if $\deg f(P)>0$ is even, there exists some choice of constant $c$ such that $P-c$ has no real roots, so $f(P)-f(c)$ should have no real roots, i.e. its degree should be even too, hence $\deg f(P) \neq 1+\deg P$ which is odd. Then due to the fact that $f$ is an involution, if $\deg P$ is odd then $\deg f(P)$ cannot be even, else $\deg f(f(P))$ is even, so $\deg P \neq 1+\deg P$.

Therefore, if $P$ is some nonconstant polynomial with all roots real and distinct, then $f(P)$ must be some nonzero multiple of $P$, i.e. it equals $aP$ for some $a \neq 0$. For some sufficiently small nonzero $\varepsilon$, $P-\varepsilon$ has all roots real and distinct as well, and $aP-f(\varepsilon)$ has the same roots. Since their degrees are the same, it follows that they are multiples of each other, i.e. $f(\varepsilon)=a\varepsilon$. On the other hand, since $f$ is an involution, if $\varepsilon$ is small enough then we can apply the same argument to $aP-\varepsilon$ and $P-f(\varepsilon)$ to get that $f(\varepsilon)=\tfrac{1}{a}\varepsilon$, hence $a=\pm 1$, which implies that $f(P)=\pm P$. Furthermore, it is clear that this argument implies that the choice of sign must be identical for every polynomial with all roots real and distinct, since given two such polynomials $P_1$ and $P_2$ we may choose some $\varepsilon$ small enough for both and apply the argument on both polynomials.

Finally, given an arbitrary polynomial $P$, let $Q$ be a polynomial with $\deg Q>\deg P$ whose roots are all real and distinct. Then for sufficiently large real $M$, the roots of $MQ-P$ are also all real and distinct, and the same as the roots of $f(MQ)-f(P)$. If $f(MQ)=MQ$ then the polynomials $MQ-P$ and $MQ-f(P)$ have the same leading coefficient, degree, and set of $\deg Q$ roots, hence they are the same, so $f(P)=P$. Otherwise, if $f(MQ)=-MQ$ then the polynomials $MQ-P$ and $-MQ-f(P)$ have opposite leading coefficient, and the same degree and set of $\deg Q$ roots, hence they are opposites of each other, so $f(P)=-P$. This implies that $f(P)=P$ for all $P$, or $f(P)=-P$ for all $P$, as desired. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
green_leaf
225 posts
#39
Y by
Claim.$f(f(P)) = P$ for every $P \in \mathbb{R}[x]$.
Proof. Just put $P = P, Q = f(P)$ in the third assertion. This tells us that $P-f(f(P))$ and $0$ have the same set of real roots. Thus, $P - f(f(P)) = 0 \implies P  = f(f(P))$. $\blacksquare$

Claim. $f(c) = \pm c$ for every constant polynomial $c$.
Proof. First we show that $f(c)$ is a constant polynomial for every constant polynomial $c$. Put $P = c, Q = 0$ in the third assertion. This says that $c$ and $f(c)$ have the same set of real roots, i.e. no roots. However, by the second assertion, $f(c)$ is linear or constant. If it were linear, it would have a real root, impossible. Thus, $f(c)$ is a constant.
Now we show that, in fact, $f(c) = \pm c$.
Suppose $a$ was a constant such that $f(a) = b \neq a$. WLOG assume that $b > a$ (otherwise swap $a$ and $f(a)$ and use $f(f(a)) = a$).
Case 1. $a>0$.
Let $P = x^2, Q = b$ in the third assertion. This means that $x^2-a$ and $f(x^2)-b$ have the same set of real roots. Clearly $f(x^2)$ is not a constant or linear, because then $f(x^2)-b$ would not have two real roots. Suppose $f(x^2)$ was cubic. Then $f(x^2)-b$ would have a double root at either $-\sqrt{a}$ or $\sqrt{a}$. WLOG assumes that the double root is at $\sqrt{a}$. Let $P = x^2, Q = a$ in the third assertion. This means that $x^2-b$ and $f(x^2)-a$ have the same set of real roots. The real roots of $x^2-b$ are $\pm \sqrt{b}$, but $f(x^2)-a$ either has only one real root, or a root in $(\sqrt{a}, \sqrt{a})$, both impossible. Thus, $f(a) = a$ for any constant $a$.
Case 2. $a<0$.
Now put $P = f(x^2+2a), Q = b$. If $f(x^2+2a)$ was cubic, an almost identical analysis as case 1 gives a contradiction. So suppose that $f(x^2+2a)$ was a quadratic polynomial. Then $P=x^2+2a, Q = b$ gives that $f(x^2+2a) = c(x^2+a)+b$, and $P = x^2 + 2a, Q = a$ gives that $f(x^2+2a) = c(x^2+2a-b) + a$. Equating them gives $c = -1$. and putting $P = x^2+2a, Q = b$ and noting that $f(x^2+2a) = -x^2-2a$ gives that $-x^2-2a - b = -x^2-a \implies a = -b$.
Now we show that we cannot have $f(a) = -a, f(b) = b$ for two distinct non-zero constants $a, b$.
Suppose this were the case. Then let $P = x^2 + a, Q = a$ first, giving $f(x^2+a) + a = tx^2$ and then let $P = x^2 + a, Q = b$ giving $f(x^2 + a)-b = s(x^2 + a - b)$. Equating them gives $s = t = \frac{b+a}{b-a}$. So $f(x^2 + a) = \frac{b+a}{b-a}x^2 - a$. LHS is independent of $b$, but RHS is dependent on $b$. Put $b = 0$ giving $f(x^2 + a) = -x^2-a$ and then put non-zero $b$ giving $f(x^2 + a) = \frac{b+a}{b-a}x^2 - a$, however $\frac{b+a}{b-a} \neq -1$ for non-zero $a, b$. This is a contradiction, thus we cannot have both $f(a) = -a$ and $f(b) = b$ for distinct non-zero $a, b$. $\blacksquare$

To finish, we consider the two possible cases.
Case 1. $f(c) = c$ for every constant $c$.
observe that by letting $P = P, Q = c$ in the third assertion, we get that $P-c$ and $f(P) - c$ have the same set of real roots for \textit{any} real number $c$. Thus if $\alpha = P(t) \neq f(P)(t) = \beta$, then $P(x)-alpha$ has $t$ as a root, but not $f(P)(x) - \alpha$, contradiction. Thus, $P(x) = f(P)(x)$ for every $x$, thus $P = f(P)$.
Case 2. $f(c) = -c$ for every constant $c$. Putting $P = P, Q = c$ gives $P+c$ and $f(P)-c$ have the same set of real roots for every constant $c$. This is impossible unless $f(P) = -P$.
Thus, either $f(P) = P$ for every $P$ or $f(P) = -P$ for every $P$. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
kes0716
16 posts
#40
Y by
For $P\in \mathbb{R}[x]$ denote $S(P) := \{x\in\mathbb{R}: P(x)=0 \}$. The condition is $f(0) =0$ and $S(P-f(Q))=S(Q-f(P))$. Plug in $Q=f(P)$ to get $S(P-f(f(P)))=\mathbb{R}$ and $f(f(P))=P$, so $f$ is bijective and $S(f(P)-f(Q))=S(Q-P)$, $S(f(P))=S(P)$.
For constant polynomial $c\neq0$, $S(f(c))=S(c)=\emptyset$ so $f(c)$ cannot be linear and is a constant polynomial due to the second condition. Furthermore, if $f(P)$ is a constant polynomial $c$ for $P\in \mathbb{R}[x]$, $f(c)=P$, hence $P$ is constant. In summary, $f(P)$ is constant if and only if $P$ is constant. ...(*)
Plug in $P(x)=x, Q=c$ for constant polynomial $c=c$ to get $S(f(x)-f(c))=S(x-c)=\{c\}$, so $f(x)(c)=f(c)$. Because $f(x)$ is a polynomial, $f(c)$ is a polynomial in $c$, with degree at most $2$ because $\deg(f(x))\leq1+\deg(x)=2$. Because $f$ is bijective, by (*) we see that $f$ restricted to constant polynomials should be a bijection to constant polynomials. Hence $f(c)$ is linear in $c$, and because $f(f(c))=c$, we get $f(c)=\epsilon c$ where $\epsilon\in\{-1,1\}$.
To finish, for any $P\in \mathbb{R}[x]$ and $\alpha \in \mathbb{R}$, $S(P(x)-P(\alpha))=S(f(P)-f(P(\alpha)))=S(f(P)-\epsilon P(\alpha))$, so $f(P)(\alpha)=\epsilon P(\alpha)$ and $f(P)\equiv \epsilon P$ where $\epsilon\in\{-1,1\}$.
This post has been edited 1 time. Last edited by kes0716, Mar 18, 2025, 8:09 AM
Z K Y
N Quick Reply
G
H
=
a