Question Number 38718 by maxmathsup by imad last updated on 28/Jun/18
$$\left.\mathrm{1}\right)\:{find}\:{f}\left({x}\right)=\int_{\mathrm{0}} ^{\pi} \:{ln}\left(\mathrm{2}+{x}\:{cos}\theta\right){d}\theta \\ $$$$\left.\mathrm{2}\right)\:{calculate}\:\int_{\mathrm{0}} ^{\pi} \:{ln}\left(\mathrm{2}\:\:+{cos}\theta\right){d}\theta \\ $$$$ \\ $$
Commented by math khazana by abdo last updated on 30/Jun/18
$$\left.\mathrm{1}\right)\:{we}\:{have}\:{f}^{'} \left({x}\right)=\:\int_{\mathrm{0}} ^{\pi} \:\:\:\frac{{cos}\theta}{\mathrm{2}+{x}\:{cos}\theta}{d}\theta\:{changement} \\ $$$${tan}\left(\frac{\theta}{\mathrm{2}}\right)={t}\:\Rightarrow{f}^{'} \left({x}\right)=\int_{\mathrm{0}} ^{\infty} \:\:\:\:\frac{\frac{\mathrm{1}−{t}^{\mathrm{2}} }{\mathrm{1}+{t}^{\mathrm{2}} }}{\mathrm{2}+{x}\frac{\mathrm{1}−{t}^{\mathrm{2}} }{\mathrm{1}+{t}^{\mathrm{2}} }}\:\:\frac{\mathrm{2}{dt}}{\mathrm{1}+{t}^{\mathrm{2}} } \\ $$$${f}^{'} \left({x}\right)\:=\:\mathrm{2}\int_{\mathrm{0}} ^{\infty} \:\:\:\:\:\frac{\mathrm{1}−{t}^{\mathrm{2}} }{\left(\mathrm{1}+{t}^{\mathrm{2}} \right)\left(\mathrm{2}+\mathrm{2}{t}^{\mathrm{2}} \:+{x}−{xt}^{\mathrm{2}} \right)}{dt} \\ $$$$=\mathrm{2}\:\int_{\mathrm{0}} ^{\infty} \:\:\:\:\:\frac{\mathrm{1}−{t}^{\mathrm{2}} }{\left(\mathrm{1}+{t}^{\mathrm{2}} \right)\left\{\left(\mathrm{2}−{x}\right){t}^{\mathrm{2}} \:+{x}+\mathrm{2}\right\}}{dt}\:{let}\: \\ $$$${f}^{'} \left({x}\right)\:=\int_{−\infty} ^{+\infty} \:\:\:\:\frac{\mathrm{1}−{t}^{\mathrm{2}} }{\left(\mathrm{1}+{t}^{\mathrm{2}} \right)\left\{\:\left(\mathrm{2}−{x}\right){t}^{\mathrm{2}\:} \:+{x}+\mathrm{2}\right\}}\:{dt}\:\:\:{let} \\ $$$$\varphi\left({z}\right)=\:\frac{\mathrm{1}−{z}^{\mathrm{2}} }{\left({z}^{\mathrm{2}} +\mathrm{1}\right)\left\{\:\left(\mathrm{2}−{x}\right){z}^{\mathrm{2}} \:+{x}+\mathrm{2}\right\}}\:{if}\:{x}\neq\mathrm{2} \\ $$$$\varphi\left({z}\right)\:=\:\frac{\mathrm{1}−{z}^{\mathrm{2}} }{\left(\mathrm{2}−{x}\right)\left({z}^{\mathrm{2}} +\mathrm{1}\right)\left\{\:{z}^{\mathrm{2}} \:+\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}\right\}} \\ $$$${case}\:\mathrm{1}\:\:\:\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}>\mathrm{0}\:\Rightarrow \\ $$$$\varphi\left({z}\right)=\:\frac{\mathrm{1}−{z}^{\mathrm{2}} }{\left(\mathrm{2}−{x}\right)\left({z}−{i}\right)\left({z}+{i}\right)\left({z}−{i}\sqrt{\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}}\right)\left({z}+{i}\sqrt{\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}}\right)} \\ $$$$\int_{−\infty} ^{+\infty} \:\varphi\left({z}\right){dz}\:=\mathrm{2}{i}\pi\left\{\:{Res}\left(\varphi,{i}\right)\:+{Res}\left(\varphi,{i}\sqrt{\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}}\right)\right\} \\ $$$${Res}\left(\varphi,{i}\right)\:=\:\frac{\mathrm{2}}{\left(\mathrm{2}−{x}\right)\left(\mathrm{2}{i}\right)\left(−\mathrm{1}\:+\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}\right)} \\ $$$$=\:\frac{−{i}\left(\mathrm{2}−{x}\right)}{\left(\mathrm{2}−{x}\right)\left(−\mathrm{2}+{x}+\mathrm{2}+{x}\right)}\:=\frac{−{i}}{\mathrm{2}{x}} \\ $$$${Res}\left(\varphi,{i}\sqrt{\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}}\right)\:=\:\:\frac{\mathrm{1}\:+\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}}{\left(\mathrm{2}−{x}\right)\left(−\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}\:+\mathrm{1}\right)\mathrm{2}{i}\sqrt{\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}}} \\ $$$$=\:\:\frac{\mathrm{4}}{\left(\mathrm{2}−{x}\right)^{\mathrm{2}} \left(\frac{−\mathrm{2}−{x}+\mathrm{2}−{x}}{\mathrm{2}−{x}}\right)\mathrm{2}{i}\sqrt{\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}}} \\ $$$$=\:\frac{−\mathrm{2}{i}}{\left(\mathrm{2}−{x}\right)\left(−\mathrm{2}{x}\right)\frac{\sqrt{\mathrm{2}+{x}}}{\:\sqrt{\mathrm{2}−{x}}}}\:=\:\frac{{i}}{\:\sqrt{\mathrm{4}−{x}^{\mathrm{2}} }} \\ $$$$\int_{−\infty} ^{+\infty} \:\varphi\left({z}\right){dz}\:=\mathrm{2}{i}\pi\left\{\:\frac{−{i}}{\mathrm{2}{x}}\:+\:\frac{{i}}{\:\sqrt{\mathrm{4}−{x}^{\mathrm{2}} }}\right\} \\ $$$$=\frac{\pi}{{x}}\:+\frac{\mathrm{2}\pi}{\:\sqrt{\mathrm{4}−{x}^{\mathrm{2}} }}\:={f}^{'} \left({x}\right)\:\Rightarrow \\ $$$${f}\left({x}\right)\:=\pi{ln}\mid{x}\mid\:\:+\:\mathrm{2}\pi\:\int\:\:\:\frac{{dx}}{\:\sqrt{\mathrm{4}−{x}^{\mathrm{2}} }}\:\:+{c}\:\:{changement} \\ $$$${x}=\mathrm{2}{u}\:{give}\:\int\:\:\:\frac{{dx}}{\:\sqrt{\mathrm{4}−{x}^{\mathrm{2}} }}\:=\:\int\:\:\:\frac{\mathrm{2}{du}}{\mathrm{2}\sqrt{\mathrm{1}−{u}^{\mathrm{2}} }} \\ $$$$=\:{arcsin}\left(\frac{{x}}{\mathrm{2}}\right)\:\Rightarrow{f}\left({x}\right)=\pi\:{ln}\mid{x}\mid\:+\mathrm{2}\pi\:{arcsin}\left(\frac{{x}}{\mathrm{2}}\right)\:+{c} \\ $$$${f}\left(\mathrm{1}\right)\:=\mathrm{2}\pi\:\frac{\pi}{\mathrm{2}}\:+{c}\:=\:\pi^{\mathrm{2}} \:+{c}\:\Rightarrow{c}={f}\left(\mathrm{1}\right)\:−\pi^{\mathrm{2}} \:\Rightarrow \\ $$$${f}\left({x}\right)\:=\pi\:{ln}\mid{x}\mid\:+\mathrm{2}\pi\:{arcsin}\left(\frac{{x}}{\mathrm{2}}\right)\:+{f}\left(\mathrm{1}\right)−\pi^{\mathrm{2}} \:. \\ $$$$ \\ $$
Commented by math khazana by abdo last updated on 30/Jun/18
$${case}\:\mathrm{2}\:\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}\:<\mathrm{0}\:\:{we}\:{follow}\:{the}\:{same}\:{method}.. \\ $$
Commented by math khazana by abdo last updated on 30/Jun/18
$${error}\:{from}\:{line}\:\mathrm{15} \\ $$$${Res}\left(\varphi,{i}\sqrt{\frac{\mathrm{2}+{x}}{\mathrm{2}−{x}}}\right)\:=\:\:\frac{{i}}{{x}\sqrt{\mathrm{4}−{x}^{\mathrm{2}} }}\:\Rightarrow \\ $$$$\int_{−\infty} ^{+\infty} \:\varphi\left({z}\right){dz}\:=\mathrm{2}{i}\pi\left\{\:\frac{−{i}}{\mathrm{2}{x}}\:\:+\frac{{i}}{{x}\sqrt{\mathrm{4}−{x}^{\mathrm{2}} }}\right\} \\ $$$$=\:\frac{\pi}{{x}}\:\:−\frac{\mathrm{2}\pi}{{x}\sqrt{\mathrm{4}−{x}^{\mathrm{2}} }}\:={f}^{'} \left({x}\right)\:\Rightarrow \\ $$$${f}\left({x}\right)\:=\pi{ln}\mid{x}\mid\:\:−\mathrm{2}\pi\:\int\:\:\:\:\:\frac{{dx}}{{x}\sqrt{\mathrm{4}−{x}^{\mathrm{2}} }}\:\:.{changement} \\ $$$${x}=\:\mathrm{2}{sint}\:\Rightarrow \\ $$$$\int\:\:\:\frac{{dx}}{{x}\sqrt{\mathrm{4}−{x}^{\mathrm{2}} }}\:=\:\int\:\:\:\frac{\mathrm{2}{cost}}{\mathrm{2}{sint}\:\mathrm{2}\:{cost}}{dt} \\ $$$$=\frac{\mathrm{1}}{\mathrm{2}}\:\int\:\:\:\frac{{dt}}{{sint}\:}\:{then}\:{chang}.{tan}\left(\frac{{t}}{\mathrm{2}}\right)={u} \\ $$$$\left.=\frac{\mathrm{1}}{\mathrm{2}}\:\int\:\:\:\:\frac{\mathrm{1}}{\frac{\mathrm{2}{u}}{\mathrm{1}+{u}^{\mathrm{2}} }}\:\frac{\mathrm{2}{du}}{\mathrm{1}+{u}^{\mathrm{2}} }\:=\frac{\mathrm{1}}{\mathrm{2}}\:\int\:\:\frac{{du}}{{u}}\:=\frac{\mathrm{1}}{\mathrm{2}}{ln}\mid{tan}\left(\frac{{t}}{\mathrm{2}}\right)\right) \\ $$$$=\frac{\mathrm{1}}{\mathrm{2}}{ln}\mid\:{tan}\left(\frac{\mathrm{1}}{\mathrm{2}}\:{arcsin}\left(\frac{{x}}{\mathrm{2}}\right)\right)\mid\Rightarrow \\ $$$${f}\left({x}\right)=\pi{ln}\mid{x}\mid\:−\pi{ln}\mid\:{tan}\left(\frac{\mathrm{1}}{\mathrm{2}}{arcsin}\left(\frac{{x}}{\mathrm{2}}\right)\mid\:\:+{c}\right. \\ $$$${f}\left(\mathrm{1}\right)\:=\:{c}\:\Rightarrow \\ $$$${f}\left({x}\right)=\pi{ln}\mid{x}\mid\:−\pi{ln}\mid{tan}\left(\frac{\mathrm{1}}{\mathrm{2}}{arcsin}\left(\frac{{x}}{\mathrm{2}}\right)\mid\:+\:\int_{\mathrm{0}} ^{\pi} {ln}\left(\mathrm{2}+{cos}\theta\right){d}\theta\right. \\ $$