The median is the point y in the interval such that
Prob{0Xy}=Prob{yX3};

equivalently, such that
0 y ρ(x)dx= 1 2 .

This means that
27 4 = 0 y (6+x- x2 )dx=6y+ y2 2 - y3 3 .

Thus y satisfies the cubic equation
4 y3 -6 y2 -72y+81=0.

This has one root y=9/2 so, by factorizing the cubic (or by using any other numerical method) we find that the only solution for y (which most satisfy 0<y<3) is (approximately) 1.1.

The mean of the distribution is m, where
m= 0 3 xρ(x)dx.

Thus
m= 2 27 0 3 x (6+x- x2 )dx= 2 27 0 3 (6x+ x2 - x3 )dx,

hence
m= 2 27 [3 x2 + x3 /3- x4 /4 ]0 3 = 2 27 [27+9-81/4]= 7 6 .

In a discrete distribution the mode is the value that occurs most frequently. In a continuous distribution it is the value where the probability density function takes its maximum value. Thus the mode is t, where 6+x- x2 takes its maximum value at t. Let f(x)=6+x- x2 ; then f'(x)=0 when x=1/2. Thus the maximum value of f is taken an one of the points 0, 1/2, 3. In fact the maximum value is at 1/2 so the mode is 1/2.