We use the substitution x=tanu, dx=sec2u du. Note tan0=0 and tan4π=1.
∫01x2+13x2dx=∫0π/4tan2u+13tan2usec2u du=∫0π/4sec2u3tan2usec2u du=∫0π/4secutan2u du=∫0π/4secusec2u−1 du=∫0π/4(secu−cosu) du=[log∣secu+tanu∣−sinu]0π/4=(log2+1−21)−(log∣1+0∣−0)=log(1+2)−21