Find k so that $f(x) = kx(1-x)$ when $0, or $f(x) = 0$ otherwise.
2. Just solve $\int_0^1 {kx\left( {1 - x} \right)dx} = 1$ for $k$.