heres the solution.
first letus convert the integralto taninverse.
then we get,
[ ]
[ ] tan
-1 
(x\a) dx
now substitute
x = a tan2 y.
dx = 2 * a * (tan y ) (sec2 y )
the integral becomes,

2a y tan y sec
2 y dy
nowapply parts.
take tan y sec 2 y as dv.
[ ]
[ ] dv =
[ ]
[ ] tan y sec
2 y dy
which is equal to
tan2 y \ 2.
then the final integral becomes by applyingparts,
2a { (y tan
2 y )\2 - 1\2
tan
2 y dy } ( write tan 2y as 1-sec2 y)
which is
2a { (y tan 2 y) \2 - 1\2 (y - tan y ) } + c
replace y by tan
-1 
(x\a)
thu sthe answer is
a tan
-1 
(x\a) * (x\a) - a ( tan
-1 
(x\a) -

( x\a) + c