$(a)$ Show that every continuous function $f$ on $[a,b]$ is the uniform limit of polynomials of the form $p_n(x^3)$.
$(b)$ Describe the subspace of $C[-1,1]$ functions which are uniform limits of polynomials of the form $p_n(x^2)$.
Could you please give me hint to solve this problem?
For part $a$ it is clear that the polynomials of the form $P(x^3)$ form a subalgebra of $C[a,b]$. It clearly contains all of the constant functions and it separates points (because for example the polynomial $x^3$ is injective). So by the Stone-Weierstrass theorem it is a dense subspace of $C([a,b])$
For part $b$ we obtain the even functions. Clearly if a sequence of even functions in $[-1,1]$ converges uniformly then it converges to an even function. It is also clear that if a sequence of polynomials converges to an even function then the sequence consisting on the same polynomials after removing the odd terms also converges uniformly to that function.