Question Number 69133 by Henri Boucatchou last updated on 20/Sep/19
$$\: \\ $$$$\:\:\:\:\:\:\:\:\:\:\:\int\left(\boldsymbol{\mathrm{x}}\:−\:\boldsymbol{\mathrm{tanx}}\right)^{\mathrm{2}} \:\boldsymbol{\mathrm{dx}}\:\:=\:? \\ $$$$ \\ $$
Commented by mathmax by abdo last updated on 20/Sep/19
$${let}\:{A}\:=\int\left({x}−{tanx}\right)^{\mathrm{2}} {dx}\:\Rightarrow{A}\:=\int\left({x}^{\mathrm{2}} −\mathrm{2}{x}\:{tanx}\:+{tan}^{\mathrm{2}} {x}\right){dx} \\ $$$$=\int\:{x}^{\mathrm{2}} {dx}\:−\mathrm{2}\:\int\:{xtanxdx}\:+\int\:{tan}^{\mathrm{2}} {xdx}\:\:{we}\:{have} \\ $$$$\int\:{x}^{\mathrm{2}} {dx}\:=\frac{{x}^{\mathrm{3}} }{\mathrm{3}}\:+{c}_{\mathrm{1}} \\ $$$$\int\:{tan}^{\mathrm{2}} {x}\:=\int\:\left(\mathrm{1}+{tan}^{\mathrm{2}} {x}−\mathrm{1}\right){dx}\:={tanx}\:−{x}\:{c}_{\mathrm{2}} \\ $$$$\int\:\:{x}\:{tanx}\:{dx}\:=_{{tanx}={t}} \:\:\int\:{t}\:{arctant}\:\frac{{dt}}{\mathrm{1}+{t}^{\mathrm{2}} } \\ $$$$=\int\:\:\:\frac{{t}}{\mathrm{1}+{t}^{\mathrm{2}} }\:{arctan}\left({t}\right){dt}\:\:=\frac{\mathrm{1}}{\mathrm{2}}{ln}\left(\mathrm{1}+{t}^{\mathrm{2}} \right){arctant}\:\:−\frac{\mathrm{1}}{\mathrm{2}}\int\:\:\frac{{ln}\left(\mathrm{1}+{t}^{\mathrm{2}} \right)}{\mathrm{1}+{t}^{\mathrm{2}} }{dt} \\ $$$${rest}\:{to}\:{find}\:\int\:\:\frac{{ln}\left(\mathrm{1}+{t}^{\mathrm{2}} \right)}{\mathrm{1}+{t}^{\mathrm{2}} }{dt}\:\:{let}\:{f}\left({x}\right)=\int\:\frac{{ln}\left(\mathrm{1}+{xt}^{\mathrm{2}} \right)}{\mathrm{1}+{t}^{\mathrm{2}} }{dt}\:\Rightarrow \\ $$$${f}^{'} \left({x}\right)\:=\:\int\:\:\:\frac{{t}^{\mathrm{2}} }{\left(\mathrm{1}+{xt}^{\mathrm{2}} \right)\left(\mathrm{1}+{t}^{\mathrm{2}} \right)}{dt}\:=\frac{\mathrm{1}}{{x}\:}\int\:\:\frac{\mathrm{1}+{xt}^{\mathrm{2}} −\mathrm{1}}{\left(\mathrm{1}+{xt}^{\mathrm{2}} \right)\left(\mathrm{1}+{t}^{\mathrm{2}} \right)}{dt} \\ $$$$=\frac{\mathrm{1}}{{x}}\:{arctan}\left({t}\right)−\frac{\mathrm{1}}{{x}}\:\int\:\:\:\frac{{dt}}{\left({xt}^{\mathrm{2}} +\mathrm{1}\right)\left({t}^{\mathrm{2}} +\mathrm{1}\right)}\:\:\:{rest}\:{to}\:{decompose} \\ $$$${F}\left({t}\right)\:=\frac{\mathrm{1}}{\left({xt}^{\mathrm{2}} +\mathrm{1}\right)\left({t}^{\mathrm{2}\:} +\mathrm{1}\right)}\:\:\:{be}\:{continued}…. \\ $$