Let P(x) be a polynomial satisfying the condition of the problem. We have:
P(x2)+x(3P(x)+P(−x))=(P(x))2+2x2,x∈R,(1)
It is clear that degP>0. Consider the cases:
i) degP=1.
P(x) has the form P(x)=ax+b, a=0. Substituting it into (1) gives:
(a2−3a+2)x2+2b(a−2b)x+b2−b≡0(2)
It is evident that:
(2)⇔(a=1,b=0),(a=2,b=0),(a=2,b=1).
So we get the polynomials: P(x)=x, P(x)=2x, and P(x)=2x+1.
Put P(x)=axn+S(x), a=0, (3).
Where S(x) is a polynomial of degree degS(x)=k<n.
Substituting (3) into (1) gives:
(a2−a)x2n+(S(x))2−S(x2)+2axn⋅S(x)≡≡(3+(−1)n)axn+1+(3S(x)+S(−x))x−2x2.(4)
Since the degree of left hand side of (4) is equal to (n+1) and since n+1<2n, (4) implies that a2−a=0 and so a=1. Therefore, from (4) we obtain:
2xnS(x)+(S(x))2−S(x2)≡(3+(−1)n)xn+1+(3S(x)+S(−x))x−2x2(5)
Since degree of the left hand side of (5) is equal to (n+k) and the degree of right hand side of (5) is equal to (n+1), (5) implies that k=1.
Moreover, by substituting x=0 into (5), we obtain (S(0))2−S(0)=0, i.e S(0)=0 or S(0)=1. So S(x)=px or S(x)=px+1.
a) In case S(x)=px, by substituting it into (5), we get:
(3+(−1)n−2p)xn+1−(p2−3p+2)x2≡0
Which is equivalent to:
{3+(−1)n−2p=0p2−3p+2=0
⇔p=1,n≡1(mod2)
or p=2,n≡0(mod2).
So we obtain the polynomials:
P(x)=x2n+1+x and P(x)=x2n+2x.
Direct verifications shows that these polynomials satisfy (1).
b) In case S(x)=px+1, by substituting it in to (5) we get:
(3+(−1)n−2p)xn+1−2xn−(p2−3p+2)x2−2(p−2)x≡0
which implies that 2≡0. This contradiction show that in this case, there is no S(x) satisfying (5) and so there is no P(x) satisfying (1).
All in all, the polynomials P(x) satisfying the condition of the problem are:
P(x)=x,P(x)=x2n+2x,n∈N
P(x)=x2n+1+x,n∈N.