We need to evaluate ∫1/33∣lnx∣dx. Since lnx<0 for x∈[1/3,1) and lnx≥0 for x∈[1,3], we split the integral as ∫1/31(−lnx)dx+∫13lnxdx.
Using ∫lnxdx=xlnx−x+C, the first part evaluates to [−xlnx+x]1/31=(0+1)−(−31ln31+31)=1−31ln3−31=32−3ln3. The second part gives [xlnx−x]13=(3ln3−3)−(0−1)=3ln3−2.
Adding these: 32−3ln3+3ln3−2=38ln3−4=34(2ln3−1)=34ln(e32).
Comparing with nmln(en2), we get m=4 and n=3, which are coprime. Therefore m2+n2−5=16+9−5=20.