How does one arrive at the equality $\frac{1}{ab} = \left(\frac{1}{a} - \frac{1}{b}\right)(b - a)$ when $a < b$? I came across this identity in a competitive programming problem, but I couldn't find out any way to get it. For example,
$$\frac{1}{2 \cdot 3} = \left(\frac{1}{2} - \frac{1}{3}\right)\frac{1}{(3 - 2)},$$
and
$$\frac{1}{3 \cdot 5} = \left(\frac{1}{3} - \frac{1}{5}\right)\frac{1}{(5 - 3)}.$$
For $a,b\ne 0$ and $a\ne b$, multiply both sides in $ab(b-a)$ and double-sidedly conclude what you want.