3

How do I evaluate $\int_0^{\pi}\frac{1}{5+3\cos{x}}dx$? Because for this type of integral I would normally use the substitution $t=\tan{\frac{x}{2}}$ but $\tan{\frac{\pi}{2}}$ is undefined. How can I evaluate this integral still using this method (I want to still use this method because it is the method my school expects me to use)?

  • 1
    Break it in two and use limits... – abiessu Sep 24 '21 at 04:38
  • @abiessu Could you show me what using limits looks like in this case? – Pen and Paper Sep 24 '21 at 04:42
  • 1
    Note that $\lim_{x\to\pi^-}t=+\infty$, so you get $\int_0^{+\infty}\dots,\mathrm{d}t$, etc. – user10354138 Sep 24 '21 at 04:45
  • @Quippy Your integral seems to be having $dx$ missing. – Mohd Saad Sep 24 '21 at 04:47
  • @Quippy You can try evaluating yourself but I can tell you that the integrals value is $\frac{\pi}{4}$ – Mohd Saad Sep 24 '21 at 04:49
  • This is how the tan method works with a cosine in the denominator. There should be no difference in the execution, I think. – Sarvesh Ravichandran Iyer Sep 24 '21 at 04:52
  • @TeresaLisbon, I understand how the substitution works, it's only that when changing the limits, the top limit becomes $\tan{\frac{\pi}{2}}$ which is undefined – Pen and Paper Sep 24 '21 at 04:58
  • @Quippy Good point. To relieve ourselves of that, let's write it as $\int_0^{\frac \pi 2} \frac{1}{5+3 \cos x} dx + \int_{\frac \pi 2}^{\pi} \frac 1{5+3 \cos x} dx$. The second integral, by a change of variable $u = \pi - x$ becomes $-\int_{\frac \pi 2}^0 \frac{1}{5-3 \cos u}du$. Now, has the infinity problem vanished? – Sarvesh Ravichandran Iyer Sep 24 '21 at 05:02
  • @TeresaLisbon Is there a way I can do this without evaluating a second integral? Because this question is worth only two marks in the past paper and the part beforehand asked me to find the indefinite integral. – Pen and Paper Sep 24 '21 at 05:20
  • 2
    @Quippy I'll have to think about this : I'm also thinking about whether the $+\infty$ causes a problem at all. You see, forgetting about the limits of the integral which are $0$ and $\pi$, the indefinite integral $\int \frac 1{5 + 3 \cos x}$ can be evaluated using the substitution $ u= \tan \frac x2$ to equal $\frac{-1}{2} \tan^{-1}(2 \cot(\frac x2))$. The point is that $0$ and $\pi$ can be substituted into this anti-derivative , even if there's infinities lurking, because $\tan^{-1}(\infty) = \frac \pi 2$. For a 2 mark question I'd say realizing this reflects the marking scheme better. – Sarvesh Ravichandran Iyer Sep 24 '21 at 05:30
  • Nevertheless, I will keep thinking about this, because even the above to me seems a little hacky. There must be a better way. – Sarvesh Ravichandran Iyer Sep 24 '21 at 05:33
  • 1
    @TeresaLisbon If it helps, they gave you the graph of $y=\frac{1}{5+3\cos{x}}$, I tried to use symmetry by instead evaluating up to the limit of $2\pi$ then having it but when I substituted those limits it came out as $0$ because I left my indefinite form as $\frac12\tan^{-1}\left(\frac12\tan\left(\frac{x}{2}\right)\right)$. – Pen and Paper Sep 24 '21 at 05:48
  • 1
    @Quippy The graph doesn't help get the exact value, beyond the fact that it might show some symmetries (the same symmetries that I used to create my earlier decomposition, if you like). I think Jean-Claude's link is the key that explains why the $2 \pi$ issue arises. Basically, your substitution has to be a bijective substitution on the interval, and $\tan \frac x2$ has this property on $[0,\pi]$ but not $[0,2 \pi]$. So that's something to keep in mind. I think the hacky method, unfortunately, seems to be the 2-mark method here. – Sarvesh Ravichandran Iyer Sep 24 '21 at 06:05
  • 1
    @TeresaLisbon Thanks for your help, yeah I think our school isn't looking for an extremely solid method so I'll just go with the inverse tan of infinity identity – Pen and Paper Sep 24 '21 at 06:14
  • 1
    @Quippy You're welcome! I would suggest that you self-answer your question, +1. – Sarvesh Ravichandran Iyer Sep 24 '21 at 06:15
  • Are you familiar with some complex analysis/residue calculus? If so, there is a very nice solution to your problem this way. – jasnee Sep 24 '21 at 06:59
  • @jasnee Unfortunately I'm not, if you have any alternative ways, as long as it's at a highschool level then it should be fine. – Pen and Paper Sep 24 '21 at 07:50

2 Answers2

3

Use $\cos x=\frac{1-\tan^2(x/2)}{1+\tan^2(x/2)}$, then $$I=\int_{0}^{\pi} \frac{dx}{5+3\cos x}=\int_{0}^{\pi}\frac{\sec^2(x/2) dx}{8+2\tan^2(x/2)}.$$ $\tan(x/2)=t \implies \sec^2(x/2)dx=2dt$ $$I=\int_{0}^{\infty} \frac{dt}{4+ t^2}=\frac{1}{2} \tan^{-1} t/2|_0^{\infty}=\frac{\pi}{4}.$$

Z Ahmed
  • 43,235
2

Self answer after comment discussion;

$\int_0^{\pi}\frac{1}{5+3\cos{x}}dx=\int_0^{+\infty}\frac{1}{5+3\left(\frac{1-t^2}{1+t^2}\right)}\frac{2}{1+t^2}dt$ after the substitution of $t=\tan\left(\frac{x}{2}\right)$
$=\int_0^{+\infty}\frac{2}{8+2t^2}dt$

$=\sqrt{2}\int_0^{+\infty}\frac{\sqrt{2}}{(2\sqrt{2})^2+(\sqrt2t)^2}dt$

$=\frac{\sqrt{2}}{2\sqrt2}\tan^{-1}\left(\frac{\sqrt2\times\infty}{2\sqrt2}\right)-\frac{\sqrt{2}}{2\sqrt2}\tan^{-1}\left(\frac{\sqrt2\times0}{2\sqrt2}\right)$

$=\frac12\tan^{-1}{(+\infty)}$

$=\frac{\pi}{4}\because\tan^{-1}{(+\infty)}=\frac{\pi}{2}$