I am reading Tom M Apostol's Calculus Vol 1, and was confused by how he used the method of exhaustion to determine the value of the area under the curve $ {b}^{2} $. He first shows a method of approximating the sum using two series, $S_n$ and $s_n$. He divides the area under $b^2$ into a sum of $n$ rectangles of width $ \frac {b}{n} $ and height ${(\frac {kb}{n})}^2$. This can be expressed as $ \frac {b^3}{n^3}k^2$ where $k^2$ is $$ \sum_{k=1}^n k^2 $$ for $S_n$ and $$ \sum_{k=1}^{n-1} k^2 $$ for $s_n$. This can be seen in pages 1 and 2: Page 1 Page 2
He then gives the identity in page 3: $$ \sum_{k=1}^n k^2 = \frac {n^3}{3} + \frac {n^2}{2} + \frac {n}{6}$$
He also states an inequality: $$ \sum_{k=0}^n k^2> \frac {n^3}{3} > \sum_{k=0}^{n-1} k^2$$
Multiplying the inequality by $ \frac {b^3}{n^3}$, he obtains: $ S_n > \frac {b^3}3 > s_n$
He then tries to prove that it is this value: $ \frac {b^3}{3} $, that is the exact area under the curve where I am confused by his reasoning
Thus, I tried looking online for more such solutions, and found one, in a site linked below, except it uses the curve $2b^2$, which should make no difference in the essence of reasoning why $ \frac {2b^3}{3} $ is the area under the curve.
This site uses the following way of proving that it is indeed $ \frac {2b^3}{3} $ which is the area under the curve: Proof In the proof: $$ \frac {2b^3}{3} < S_n (1) $$ $$ \frac {2b^3}{3} - s_n < S_n - s_n (2) $$ $$ \frac {2b^3}{3} - A < \frac {2b^3}{n} (3) $$ $$ n < \frac {2b^3}{\frac {2b^3}{3} - A} (4) $$
I don't understand how the $s_n$ in (2) magically changes into A in (3)
Proof Part 2 He does it, again, here, where $s_n$ seemingly magically changes into $\frac {2b^3}{3}$
This confuses me greatly, and thus I am not able to understand the first part of the textbook, and proceed with reading ahead. If someone could help me understand Apostol's proof listed as Page 4, or explain this mysterious transformation of the inequalities, it would be much appreciated!