Any idea what was done between step 2 and 3? The integration performed. I.e:
Line 2, the fraction, parameter between a and 0, integrated with respect to r.
You can see line 3 their definite integral... However I've got no idea how the hell they got there.
See...