A bead P sliding on a frictionless semi-circular string... bead Q ejected... relation between $t_P$ and $t_Q$ is
The value of \[ \int_0^{2} \sqrt{\frac{x(x^2+x+1)}{(x+1)(x^4+x^2+1)}} \, dx \] is