Let I=∫[log(logx)+(logx)21]dx=∫log(logx)⋅1dx+∫(logx)2dx
Integrating the first integral by parts (taking log(logx) as the first function):
∫log(logx)⋅1dx=xlog(logx)−∫x⋅logx1⋅x1dx=xlog(logx)−∫logxdx
Again by parts (taking logx1 as the first function):
∫logxdx=logxx−∫x⋅(−(logx)21⋅x1)dx=logxx+∫(logx)2dx
Therefore,
I=xlog(logx)−logxx−∫(logx)2dx+∫(logx)2dx=xlog(logx)−logxx+C