Suppose I have either of the following expressions:
$$\newcommand{\rd}{\mathrm{d}} \int\nolimits_1^n\int\nolimits_1^\frac{n}{x} \,\rd y\, \rd x - \sum_{x=2}^n\sum_{y=2}^\frac{n}{x}1 $$
$$ \int\nolimits_1^n\int\nolimits_1^\frac{n}{x} \log y \,\rd y\, \rd x - \sum_{x=2}^n\sum_{y=2}^\frac{n}{x}\log y $$
Are there any simpler forms I could convert either of these into? Or any other ways of expressing these that might yield insight or let me work with them in other interesting ways?
I already know there are several different ways of rewriting just the integrals on the left in isolation ($ n \log n - n + 1 $ at the simplest for the first one, for example), but I'm really looking for expressions that capture the difference between the continuous and the discrete here, kind of the way Euler-Maclaurin summation does.