I am trying to find the MLE for $\{X_i\}_{i=1}^{n}$ that have the following pdf
$$\frac{3x^2}{\theta^3}I(0\le x \le \theta)$$
I tried solving it directly by taking the log of the likelihood and then through the derivative solve for $\theta$, but the indicator function gives me issues. Intuitively, to maximize the mle I need a very small $\theta$ by the restriction $X_{(1)}$ is the MLE. Is this correct or is there a way to solve this directly?