I encountered the following integral a while ago and solved it using Feynman's trick as follows. However, it looks like the residue theorem would be elegant for this problem. Does anyone know how that might work out?
P.S: It would be helpful if someone would check my solution as well.
I(a,b)=∫0π/2ln(asin2θ+bcos2θ)dθ
Upon taking the partial derivatives wrt a and b, we have the following:
∂a∂I=∫0π/2asin2θ+bcos2θsin2θdθ,∂b∂I=∫0π/2asin2θ+bcos2θcos2θdθ
Next, observe that linear combinations of these two integrals results in integrals that are relatively simple to evaluate. In particular,
a∂a∂I+b∂b∂I=∫0π/2asin2θ+bcos2θasin2θ+bcos2θdθ=∫0π/2dθ=2π
and upon summing the two partial derivatives normally, we have ∂a∂I+∂b∂I=∫0π/2asin2θ+bcos2θsin2θ+cos2θdθ=∫0π/2asin2θ+bcos2θdθ=∫0π/2b+atan2θsec2θdθ
In order to convert this integral into the more familiar inverse tangent form, we set tanθ=abtanφ so that sec2θdθ=absec2φdφ. For finite a,b and a=0, the limits of integration do not change. Then
∂a∂I+∂b∂I=∫0π/2ab⋅b+a⋅abtan2φsec2φdφ=∫0π/2ab⋅b+a⋅abtan2φsec2φdφ=∫0π/2abdφ∂a∂I+∂b∂I=2abπ
Thus from (1) and (2), we have a system of partial differential equations that can easily be solved. We take (1)−b⋅(2) to get
(a−b)∂a∂I=2π(1−ab), or equivalently ∂a∂I=2π⋅(a−b)aa−b=2a(a+b)π
Upon integrating wrt a, we get an analytic solution for I, upto a constant
I(a,b)=∫2a(a+b)πda=πln(a+b)+C
Notice that this solution is symmetric in a and b, just like our system of partial differential equations, so there is no need to integrate wrt b. We can differentiate and check that this is indeed a solution to the system of differential equations. To evaluate the constant C, notice that for a=b=1, we have
I(1,1)=∫0π/2ln(sin2θ+cos2θ)dθ=0
so then for our closed form, we obtain
0=πln(2)+C, or C=−πln(2)
With this, we now have a general solution to this particular family of integrals,
I(a,b)=πln(a+b)−πln2=πln2a+b
This discussion board is a place to discuss our Daily Challenges and the math and science
related to those challenges. Explanations are more than just a solution — they should
explain the steps and thinking strategies that you used to obtain the solution. Comments
should further the discussion of math and science.
When posting on Brilliant:
Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.
Markdown
Appears as
*italics* or _italics_
italics
**bold** or __bold__
bold
- bulleted - list
bulleted
list
1. numbered 2. list
numbered
list
Note: you must add a full line of space before and after lists for them to show up correctly
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
Here is a video by a really good math Youtuber that uses a nice approach also : https://www.youtube.com/watch?v=NAWZx77ZOpw&t=584s
Also, your solution looks good to me :)
Log in to reply
Thank you so much for the reference! :)
I have derived using series manipulation, you may wish to check out here. Also you can find that second solution follows what you have requested.
How did you learn all this at 17? I only recently started learning the basics on real analysis.