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