Comment: Maximum of three uniform random variables.
You begin with independent $X_i \sim Unif(0, 1/2),$
for $i = 1, 2, 3,$ and $Y = \max(X_1, X_2, X_3).$
@AndreNicolas has told you how to obtain
$F_Y(y) = P(Y \le y) = (2y)^3,\,$ for $0 < y \le 1/2.$
And you have differentiated to get $f_Y(y) = 24y^2,\,$ for
$0 <y \le 1/2.$
Below is R code for a simulation of 100,000 performances
of this experiment. That is 100,000 observations of
the random variable $Y$. I have made a histogram of them
and superimposed your density curve on the histogram.
Perhaps you know how to use your density function to find
$E(Y)$ and $SD(Y)$ to see how close my approximations are
to the exact values (within 2 or 3 places, I'd suppose).
x1 = runif(10^5, 0, 1/2)
x2 = runif(10^5, 0, 1/2)
x3 = runif(10^5, 0, 1/2)
y = pmax(x1, x2, x3)
mean(y); sd(y)
## 0.3748052 # approx. of E(Y)
## 0.09656252 # approx. of SD(Y)
hist(y, prob=T, col="wheat")
curve(24*x^2, lwd=2, col="blue", add=T) # (syntax of 'curve' mandates argument x)
