Find all the functions $f: \mathbb R^*\to \mathbb R $ such that: $$ \forall x\in \mathbb R^*: f(x) +3f\left(\frac{1}{x}\right) = x^2 $$
My answers or what I tried to do is:
I put $f$ as a solution to the basic equation and I followed the substitution method by giving $x=0$ which gives us $f(0)=0$ and it led me nothing since this method has usually two variables.
So, I tried next both of injectivity and surjectivity but it's still a dead end.
Note: This is not a homework (since school is over). I just wanted a more valable or strategic method to this kind of equations since we never studied it I just found in a book but I couldn't understand it very well alone.
Substitute $1/x$ for $x$ and we have \begin{eqnarray*} f(1/x)+3f(x)=\frac{1}{x^2}. \end{eqnarray*} Now multiply this by $3$ and subtract the orignal eqaution & we have ...