Find $f(x)$ such that $f(x)+f\left(\frac{1}{x}\right)=f(x)\cdot f\left(\frac{1}{x}\right)$

Given a polynomial $f(x)$ of n degree such that

$$f(x)+f\left(\frac{1}{x}\right)=f(x)\cdot f\left(\frac{1}{x}\right)$$

Find the polynomial

I've tried considering $f(x)=\sum \limits_{i=1}^{n} a_{i}x^{i}$ and after a number of steps I finally arrived at the answer.However I am not convinced.Is there a better way to solve this functional equation.

Thanks in advanced!


Solution 1:

Hint: $$f(x) = 1 + \frac{1}{f(\frac{1}{x})-1}$$

So $f(x) - 1 = \frac{x^n}{P(x)}$, where P(x) is a polynomial of degree $\le n$. The left-hand side is a polynomial, so $P(x) = a x^k$ for some $k$. Now $a$ and $k$ can be found from the functional equation itself. But, as Barry Cipra notes in comments, since the left-hand side of the equality that defines $P$ has degree $n$ the only possible value for $k$ is $0$.

Solution 2:

Assume $f(x)=c$ is constant. Then we arrive at $c+c=c\cdot c$, i.e. $c=0$ or $c=2$.

Otherwise write $f(x)=c+x^kg(x)$ where $k\ge1$ and $g(0)\ne0$. Then for $x\ne0$ $$2c+x^kg(x)+x^{-k}g(x^{-1})=f(x)+f(\frac1x)=f(x)f(\frac1x)=cx^kg(x)+c^2+cx^{-k}g(x^{-1})+g(x)g(\frac1x)$$ From looking at the highest power occuring in $g$ we see $c=1$, hence this simplifies to $$ g(x)g(\frac1x)=1$$ so $g$ is a monomial, hence constant. Thus $f(x)=1+ax^k$ and we further check that $a=\pm1$. Thus the complete list of solutions is $$ f(x)=0,\qquad f(x)=2,\qquad f(x)=1\pm x^k\text{ with }k\ge1$$