Xét \(I_1=\int\limits^{\dfrac{\pi}{3}}_{\dfrac{\pi}{4}}\dfrac{f\left(tanx\right)}{cos^2x}dx=\int\limits^{\dfrac{\pi}{3}}_{\dfrac{\pi}{4}}f\left(tanx\right)d\left(tanx\right)\)
Đặt \(tanx=t\Rightarrow t\in\left[1;\sqrt{3}\right]\Rightarrow f\left(t\right)=2t^3-t\)
\(I_1=\int\limits^{\sqrt{3}}_1f\left(t\right)dt=\int\limits^{\sqrt{3}}_1\left(2t^3-t\right)dt=3\)
Xét \(I_2=\int\limits^{\sqrt{e-1}}_0\dfrac{xf\left(ln\left(x^2+1\right)\right)}{x^2+1}dx=\dfrac{1}{2}\int\limits^{\sqrt{e-1}}_0f\left(ln\left(x^2+1\right)\right).d\left[ln\left(x^2+1\right)\right]\)
Đặt \(ln\left(x^2+1\right)=t\Rightarrow t\in\left[0;1\right]\Rightarrow f\left(t\right)=-3t+4\)
\(I_2=\dfrac{1}{2}\int\limits^1_0\left(-3t+4\right)dt=\dfrac{5}{4}\)
\(\Rightarrow I=3+\dfrac{5}{4}=\dfrac{17}{4}\Rightarrow P=21\)