(i) Consider the following small quantity: $y^2 \mathrm{~d} x+x y \mathrm{~d} y$. Find the integral of this quantity from $(x, y)=(0,0)$ to $(x, y)=(1,1)$, first along the path consisting of two straight-line portions $(0,0)$ to $(0,1)$ to $(1,1)$, and then along the diagonal line $x=y$. Comment.
(ii) Now consider the small quantity $y^2 \mathrm{~d} x+2 x y \mathrm{~d} y$. Find (by trial and error or any other method) a function $f$ of which this is the total differential.