(0 to a)

log(1+ax)/(1+x
2) dx
partially differentiating keepingx constant
(0 to a)

1/(1+ax) * x/(1+x
2) dx
now for this integral we apply partial fractions technique
numerator is written as x-a+a
with x-a we get
(0 to a)

a/(a+x) dx -(0 to a)

x/(1+x
2) dx +a (0 to a)

dx/(1+ax)(1+x
2)
now all are easily integrable and further integration is also easy to obtain
1/2 tan-1a log(1+a2)