Question Number 141387 by cesarL last updated on 18/May/21
$$\int_{−\pi/\mathrm{4}} ^{\pi/\mathrm{4}} \left({sec}^{\mathrm{2}} {x}+{tgx}\right)^{\mathrm{2}} {dx} \\ $$
Answered by MJS_new last updated on 18/May/21
$$\underset{−\pi/\mathrm{4}} {\overset{\pi/\mathrm{4}} {\int}}\left(\mathrm{sec}^{\mathrm{2}} \:{x}\:+\mathrm{tan}\:{x}\right)^{\mathrm{2}} \:{dx}= \\ $$$$\:\:\:\:\:\left[{t}=\mathrm{tan}\:{x}\:\rightarrow\:{dx}=\mathrm{cos}^{\mathrm{2}} \:{x}\:{dt}\right] \\ $$$$=\underset{−\mathrm{1}} {\overset{\mathrm{1}} {\int}}\frac{\left({t}^{\mathrm{2}} +{t}+\mathrm{1}\right)^{\mathrm{2}} }{{t}^{\mathrm{2}} +\mathrm{1}}{dt}=\underset{−\mathrm{1}} {\overset{\mathrm{1}} {\int}}\left({t}^{\mathrm{2}} +\mathrm{2}{t}+\mathrm{2}−\frac{\mathrm{1}}{{t}^{\mathrm{2}} +\mathrm{1}}\right){dt}= \\ $$$$=\left[\frac{{t}^{\mathrm{3}} }{\mathrm{3}}+{t}^{\mathrm{2}} +\mathrm{2}{t}−\mathrm{arctan}\:{t}\right]_{−\mathrm{1}} ^{\mathrm{1}} =\frac{\mathrm{14}}{\mathrm{3}}−\frac{\pi}{\mathrm{2}} \\ $$