Consider the measure space $(\mathbb{R}, B( \mathbb{R}), \lambda)$, where $B( \mathbb{R}) $ denotes the Borel $\sigma$-algebra and $\lambda$ denotes the Lebesgue measure.
a) Let $f\in L^1$ be a function with values in $ [0,1]$ such that $$\int_{ \mathbb{R} } f^2 d \lambda = \int_{ \mathbb{R} } f d \lambda . $$
Show that there exists a borel set $B$ of finite measure such that $f$ is the characteristic function almost everywhere.
b) Let $f\in L^1$ be a positive function such that $\forall n \geq 1$ $$\int_{ \mathbb{R} } f^{2n} d \lambda = \int_{ \mathbb{R} } f d \lambda . $$
1) Show that $\forall \alpha >0,$ $\lambda (f^{-1}([1+ \alpha ,\infty)))=0$.
2) Show that $\lambda(f^{-1}((1,\infty)))=0$.
3) What can we conclude about $f$?
I have already done part a) of this problem, since we can choose $B=supp(f)$. Also, part b) 2) follows from part b)1) by monotony and $\sigma$-subadditivity since we have that $(1,\infty)=\bigcup_{n\in \mathbb{N}}[1+\frac{1}{n} , \infty)$. Also, what we can conclude about $f$, I believe, it's that from b)2) we would have that the set of elements such that the image belongs to $(1,\infty)$ has measure $0$, so we could apply part a) again and that condition will hold again, so $f$ can be seen almost everywhere again as a characteristic function in a borel set of finite measure.
If that is correct, my only trouble would be proving part b)1), and here I don't really know what to do, so any hint would be very appreciated. Thank you!
Hint : Let $A= f^{-1}([1+\alpha, \infty ))$. Then $\int_A f^{2n} \mathrm{d}\lambda \leq \int_\mathbb{R} f\mathrm{d}\lambda$.
But also $\int_Af^{2n} \mathrm{d}\lambda \geq (1+\alpha)^{2n} \lambda(A)$