The number of possible continuous functions $f(x)$ defined on $[0,1]$ for which $I_1 = \int_0^1 f(x)dx=1$, $I_2 = \int_0^1 xf(x)dx= a$ , $I_3=\int_0^1 x^2 f(x)dx= a^2$ is/ are?
I have seriously no idea how to attempt this problem and find the number of functions. I was trying some integration by parts for I2, I3 but that really didn't help.
Hint. Note that if there is one such $f$ then also $f(x)+tP(x)$ works for any real $t$ where $$P(x)=3(x-1/2)-20(x-1/2)^3$$ because $\int_0^1 P(x)dx=\int_0^1 xP(x)dx=\int_0^1 x^2P(x)dx=0$.
In order to find one example of $f$, consider a quadratic polynomial $A+Bx+Cx^3$, then solve the system $$\begin{cases} \int_0^1 f(x) dx=1\\ \int_0^1 xf(x) dx=a\\ \int_0^1 x^2f(x) dx=a^2 \end{cases}$$ which is the linear with respect to $A$, $B$ and $C$.