I want to find a few examples of non-trivial random variables $X, Y$ such that $E[X|X^2] = X$ and $E[Y|Y^2] = 0$.
From what i gather for $E[X|X^2] = X$ i need to find a function such that if $X=u$ then $f(-u)=0$. Then for $E[Y|Y^2] = 0$ if $Y=u$ then $f(u)=f(-u)$.
Assume that $X$ is any positive random variable. Then $X=\sqrt{X^2}$ is $\sigma(X^2)$-measurable so the conditional expectation of $X$ given $X^2$ is $X$.
Let $Y$ be any $L^2$ symmetric random variable. Then, for any bounded function $g$, $Yg(Y^2)$ is symmetric so has mean $0$, which is the mean value of $0\cdot g(Y^2)$, and $0$ is $\sigma(Y^2)$-measurable, so the conditional expectation of $Y$ given $Y^2$ is zero.