function with a condition

Hello dear
how to write the expectation and variance of a continuous variable, for example:
```Suppose X is a random density variable
if 0<=x<=1, f(x)=4/3*x^(1/3) ; else f(x)=0