= 1/2a∫( 1/a+x)+( 1/x-a)dx
= 1/2 AlN[a+x]- 1/2 AlN[ 1/x-a]
= 1/2aln[a+x/a-x]
Here [] is the absolute value.