A probability distribution function is given as:
\[ p(x) = \begin{cases} \dfrac{1}{a}, & x \in (0, a) \\ 0, & \text{otherwise} \end{cases} \]
Where \( a \) is a positive constant. For a function \( f(x) = x^2 \), the expectation of \( f(x) \) is: