According to my book, for a random sample $(X_1, \ldots, X_n)$ from a continuous distribution with p.d.f. $f(x)$ and c.d.f. $F(x)$, the p.d.f. of the maximum of the sample is $g(z)=nf(z)[F(z)]^{n-1}$, where $z=\mathrm{max}(x_1, \ldots,x_n)$. The book gives the following question:
the random variable $X$ has p.d.f. $f(x)=12x^2 (1-x), 0≤x≤1$.
I'm assuming that I put this into the $g$ function, such that $$ g(z)=n \{12z^2 (1-z)\} \left[\int_{-\infty}^z 12t^2 (1-t)dt\right]^{n-1} . $$
However, I have no clue how to carry on from there to find the probability that the largest maximum is 1/2.