suppose that Y1,...Yn are random samples from a uniform distribtution with

f(y l θ ) = 1/ (2θ +1) for 0<y<2θ +1.

find the max likelihood for θ.

my working:

L = product of 1/ (2θ +1) n times

= [1/ (2θ +1) ]^n

taking ln and then differentiation, i get (-2n) / (2θ +1)

but if i set that to 0, i do not get an answer.

may i know what went wrong?