Square of absolute value of a function different than square of function

70 Views Asked by At

How come if f is measurable, we might have $|f|^2\neq f^2$? Can you provide an example? I think it is true if f is real.

1

There are 1 best solutions below

1
On

Consider $f(x) = \dfrac{i}{1+x^2}$. Simpler: consider $g(x) = i\chi_{[0,1]}(x).$