Question Number 54529 by tarun kunar last updated on 05/Feb/19
$$\int\mathrm{5cos}\:{x}−\mathrm{4sin}\:{x}/\mathrm{2cos}\:{x}+\mathrm{sin}\:{x}\:{dx} \\ $$
Commented by maxmathsup by imad last updated on 05/Feb/19
$${let}\:{I}\:=\int\:\frac{\mathrm{5}{cosx}−\mathrm{4}{sinx}}{\mathrm{2}{cosx}\:+{sinx}}{dx}\:\:{let}\:{use}\:{the}\:{changement}\:{tan}\left(\frac{{x}}{\mathrm{2}}\right)={t}\:\Rightarrow \\ $$$${I}\:=\int\:\:\frac{\frac{\mathrm{5}\left(\mathrm{1}−{t}^{\mathrm{2}} \right)}{\mathrm{1}+{t}^{\mathrm{2}} }−\frac{\mathrm{8}{t}}{\mathrm{1}+{t}^{\mathrm{2}} }}{\mathrm{2}\frac{\mathrm{1}−{t}^{\mathrm{2}} }{\mathrm{1}+{t}^{\mathrm{2}} }\:+\frac{\mathrm{2}{t}}{\mathrm{1}+{t}^{\mathrm{2}} }}\:\:\frac{\mathrm{2}{dt}}{\mathrm{1}+{t}^{\mathrm{2}} }\:=\int\:\:\:\frac{−\mathrm{5}{t}^{\mathrm{2}} −\mathrm{8}{t}\:+\mathrm{5}}{\left({t}^{\mathrm{2}} \:+\mathrm{1}\right)\left(\mathrm{2}−\mathrm{2}{t}^{\mathrm{2}} \:+\mathrm{2}{t}\right)}{dt} \\ $$$$=\int\:\:\frac{\mathrm{5}{t}^{\mathrm{2}} \:+\mathrm{8}{t}−\mathrm{5}}{\left({t}^{\mathrm{2}} \:+\mathrm{1}\right)\left({t}^{\mathrm{2}} −{t}−\mathrm{1}\right)}{dt}\:\:{let}\:{decompose}\:{F}\left({t}\right)=\frac{\mathrm{5}{t}^{\mathrm{2}} \:+\mathrm{8}{t}−\mathrm{5}}{\left({t}^{\mathrm{2}} \:+\mathrm{1}\right)\left({t}^{\mathrm{2}} −{t}−\mathrm{1}\right)}{dt} \\ $$$${roots}\:{of}\:{t}^{\mathrm{2}} −{t}−\mathrm{1}\:\rightarrow\Delta=\mathrm{1}+\mathrm{4}=\mathrm{5}\:\Rightarrow{t}_{\mathrm{1}} =\frac{\mathrm{1}+\sqrt{\mathrm{5}}}{\mathrm{2}}\:{and}\:{t}_{\mathrm{2}} =\frac{\mathrm{1}−\sqrt{\mathrm{5}}}{\mathrm{2}} \\ $$$${F}\left({t}\right)=\frac{{a}}{{t}−{t}_{\mathrm{1}} }\:+\frac{{b}}{{t}−{t}_{\mathrm{2}} }\:+\frac{{ct}+{d}}{{t}^{\mathrm{2}} \:+\mathrm{1}} \\ $$$${a}\:={lim}_{{t}\rightarrow{t}_{\mathrm{1}} } \:\:\:\left({t}−{t}_{\mathrm{1}} \right){F}\left({t}\right)=\frac{\mathrm{5}{t}_{\mathrm{1}} ^{\mathrm{2}} \:+\mathrm{8}{t}_{\mathrm{1}} −\mathrm{5}}{\left({t}_{\mathrm{1}} ^{\mathrm{2}} \:+\mathrm{1}\right)\sqrt{\mathrm{5}}} \\ $$$${b}\:={lim}_{{t}\rightarrow{t}_{{z}} } \left({t}−{t}_{\mathrm{2}} \right){F}\left({t}\right)=\frac{\mathrm{5}{t}_{\mathrm{2}} ^{\mathrm{2}} \:+\mathrm{8}{t}_{\mathrm{2}} −\mathrm{5}}{\left({t}_{\mathrm{2}} ^{\mathrm{2}} \:+\mathrm{1}\right)\left(−\sqrt{\mathrm{5}}\right)} \\ $$$${lim}_{{t}\rightarrow+\infty} {tF}\left({t}\right)=\mathrm{0}\:={a}+{b}\:+{c}\:\Rightarrow{c}=−{a}−{b} \\ $$$${F}\left(\mathrm{0}\right)\:=\mathrm{5}\:=−\frac{{a}}{{t}_{\mathrm{1}} }\:−\frac{{b}}{{t}_{\mathrm{2}} }\:+{d}\:\Rightarrow{d}=\mathrm{5}\:+\frac{{a}}{{t}_{\mathrm{1}} }\:+\frac{{b}}{{t}_{\mathrm{2}} }\:\Rightarrow \\ $$$$\int\:{F}\left({t}\right){dt}\:={aln}\mid{t}−{t}_{\mathrm{1}} \mid+{bln}\mid{t}−{t}_{\mathrm{2}} \mid\:+\frac{{c}}{\mathrm{2}}{ln}\left({t}^{\mathrm{2}} \:+\mathrm{1}\right)\:+{d}\:{arctant}\:+\lambda\: \\ $$$$ \\ $$
Commented by maxmathsup by imad last updated on 05/Feb/19
$$\Rightarrow\:{I}\:={aln}\mid{tan}\left(\frac{{x}}{\mathrm{2}}\right)−{t}_{\mathrm{1}} \mid\:+{bln}\mid{tan}\left(\frac{{x}}{\mathrm{2}}\right)−{t}_{\mathrm{2}} \mid\:+\frac{{c}}{\mathrm{2}}{ln}\left(\mathrm{1}+{tan}^{\mathrm{2}} \left(\frac{{x}}{\mathrm{2}}\right)\right)\:+\frac{{dx}}{\mathrm{2}}\:+\lambda\:. \\ $$
Answered by tanmay.chaudhury50@gmail.com last updated on 05/Feb/19
$$\int\frac{\mathrm{5}{cosx}−\mathrm{4}{sinx}}{\mathrm{2}{cosx}+{sinx}}{dx} \\ $$$$\int\frac{{a}\left(\mathrm{2}{cosx}+{sinx}\right)+{b}\frac{{d}}{{dx}}\left(\mathrm{2}{cosx}+{sinx}\right)}{\mathrm{2}{cosx}+{sinx}}{dx} \\ $$$${a}\int{dx}+{b}\int\frac{{d}\left(\mathrm{2}{cosx}+{sinx}\right)}{\mathrm{2}{cosx}+{sinx}} \\ $$$${ax}+{bln}\left(\mathrm{2}{cosx}+{sinx}\right)+{c} \\ $$$${now}\:{we}\:{calculate}\:{a}\:{and}\:{b} \\ $$$$\mathrm{5}{cosx}−\mathrm{4}{sinx}={a}\left(\mathrm{2}{cosx}+{sinx}\right)+{b}\frac{{d}}{{dx}}\left(\mathrm{2}{cosx}+{sinx}\right) \\ $$$$\mathrm{5}{cosx}−\mathrm{4}{sinx}={a}\left(\mathrm{2}{cosx}+{sinx}\right)+{b}\left(−\mathrm{2}{sinx}+{cosx}\right) \\ $$$$\mathrm{5}{cosx}−\mathrm{4}{sinx}={cosx}×\left(\mathrm{2}{a}+{b}\right)+{sinx}×\left({a}−\mathrm{2}{b}\right) \\ $$$${comparing}\:{coefficient}\:{of}\:{cosx}\:{and}\:{sinx}\:{bot}\:{side} \\ $$$$\mathrm{2}{a}+{b}=\mathrm{5}\:\:×\mathrm{1}\:\:\:\:\:\:\:\:\:\:\left[{solve}\:{it}\right] \\ $$$${a}−\mathrm{2}{b}=−\mathrm{4}\:×\mathrm{2} \\ $$$$\mathrm{2}{a}+{b}=\mathrm{5} \\ $$$$\mathrm{2}{a}−\mathrm{4}{b}=−\mathrm{8} \\ $$$$\mathrm{5}{b}=\mathrm{13}\:\:\:{so}\:{b}=\frac{\mathrm{13}}{\mathrm{5}} \\ $$$$\mathrm{2}{a}+{b}=\mathrm{5} \\ $$$$\mathrm{2}{a}=\mathrm{5}−\frac{\mathrm{13}}{\mathrm{5}}\rightarrow\:\:\mathrm{2}{a}=\frac{\mathrm{12}}{\mathrm{5}} \\ $$$${so}\:\:{a}=\frac{\mathrm{6}}{\mathrm{5}} \\ $$$${so}\:{answer}\:{is} \\ $$$$=\frac{\mathrm{6}}{\mathrm{5}}\left({x}\right)+\left(\frac{\mathrm{13}}{\mathrm{5}}\right){ln}\left(\mathrm{2}{cosx}+{sinx}\right)+{c} \\ $$$$ \\ $$