I am reading "Principles of Mathematical Analysis" by Walter Rudin.
I read the proof of theorem 3.42 on p.71.
And I have a simple question about the following calculation:
$$|\sum_{n=p}^{q} a_n b_n| = |\sum_{n=p}^{q-1} A_n (b_n - b_{n+1}) + A_q b_q - A_{p-1} b_p| \leq M |\sum_{n=p}^{q-1} (b_n - b_{n+1}) + b_q + b_p|.$$
My calculation is here:
$$|\sum_{n=p}^{q} a_n b_n| = |\sum_{n=p}^{q-1} A_n (b_n - b_{n+1}) + A_q b_q - A_{p-1} b_p| \leq \\\sum_{n=p}^{q-1} |A_n| |(b_n - b_{n+1})| + |A_q| |b_q| + |A_{p-1} | |b_p| \leq \\\sum_{n=p}^{q-1} M |(b_n - b_{n+1})| + M |b_q| + M |b_p| = \\\sum_{n=p}^{q-1} M (b_n - b_{n+1}) + M b_q + M b_p = \\ M (\sum_{n=p}^{q-1} (b_n - b_{n+1}) + b_q + b_p).$$
Of course,
$$M |\sum_{n=p}^{q-1} (b_n - b_{n+1}) + b_q + b_p| = M (\sum_{n=p}^{q-1} (b_n - b_{n+1}) + b_q + b_p),$$
but why did Rudin write as follows?
$$M |\sum_{n=p}^{q-1} (b_n - b_{n+1}) + b_q + b_p|.$$
You're calculation is fine.
Rudin used a fact which made his proof a bit shorter; it's an intuitive fact but I'll just prove it for completeness. I'll prove it for the case of two numbers for sake of readability and convenience. The argument for the general case is directly analogous.
Note that using the above fact makes the proof shorter than using the Triangle Inequality, but again, you're proof is still fine.