Let I=∫0ax+a−xxdx ... (1)
Using the property ∫0af(x)dx=∫0af(a−x)dx, replace x with (a−x):
I=∫0aa−x+a−(a−x)a−xdx
Since a−(a−x)=x:
I=∫0aa−x+xa−xdx ... (2)
Adding equations (1) and (2):
I+I=∫0ax+a−xxdx+∫0ax+a−xa−xdx
2I=∫0a[x+a−xx+a−x]dx
2I=∫0a1dx
2I=[x]0a
2I=a−0
2I=a
I=2a
Therefore, ∫0ax+a−xxdx=2a