My equations is:
$$ y(x) = 2 + \int_x^2 \left[ t - ty(t) \right] dt $$
What I am not understanding is if I take the derivative of both sides I don't understand how my book gets x-xy on the right hand side. To my understanding if I take the derivative of an integral, it is almost like it is "cancelling" it out. So why wouldn't it be $x-xy(x)$ or $x-yx^2$?
HINT
Let $F(t)$ be the anti-derivative of $f(t)$, then $$ \frac{d}{dx} \int_x^2 f(t) dt = \frac{d}{dx} \left[ F(2)-F(x)\right] = -f(x). $$