I need to expand the conditional variance of continuous random variable as a sum of integrals. Here is my try:
$$D(Y|X)=E[Y^2|X] - [E(Y|X)]^2 + EY = \int_y y^2f(x|y)dy -\left(\int_y yf(x|y)\right)^2dy $$ But I know that the second term is incorrect / could be rewritten otherwise. Maybe somoene has an insight?