How Do You Solve the Integral of ln|a+b*sin(x)| from 0 to 2π?

  • MHB
  • Thread starter Saitama
  • Start date
  • Tags
    Integral
In summary, the value of the integral \int_0^{2 \pi} \ln \left \vert a+b \sin x \right \vert dx where 0 < a < b is 2 \pi \ln \frac{b}{2}
  • #1
Saitama
4,243
93
I am trying to evaluate the following integral:
$$\int_0^{2\pi} \ln|a+b\sin x|\,dx$$
where $0<a<b$.

Source: homework - Find the value of the integral $\int_0^{2\pi}\ln|a+b\sin x|dx$ where $0\lt a\lt b$ - Mathematics Stack Exchange

Attempt:
Consider
$$I(a)=\int_0^{2\pi} \ln|a+b\sin x|\,dx$$
It can be shown that:
$$I(a)=2\int_0^{\pi/2} \ln|a^2-b^2\sin^2x|\,dx$$
Differentiate both sides wrt $a$ to get:
$$\frac{dI}{da}=4a\int_0^{\pi/2}\frac{dx}{a^2-b^2\sin^2x}$$
Next, I rewrite the denominator as:
$$a^2-b^2\sin^2x=\frac{a^2+(a^2-b^2)\tan^2x}{\sec^2x}$$
Using the substitution $\tan x=t$, I obtain the following definite integral:
$$\frac{dI}{da}=4a\int_0^{\infty} \frac{dt}{a^2+(a^2-b^2)t^2}$$
$$\Rightarrow \frac{dI}{da}=\frac{2\pi}{\sqrt{a^2-b^2}}$$
This is where I am stuck. I don't find the result correct because as per the question, $b>a$ due to which $\sqrt{a^2-b^2}$ doesn't make sense. :confused:

Any help is appreciated. Thanks!

EDIT: I thought about it some more and I think I see the error. I found an error at this step:
$$I(a)=2\int_0^{\pi/2} \ln|a^2-b^2\sin^2x|\,dx$$
I cannot simply differentiate the above because of the modulus symbol. $|a^2-b^2\sin^2x|=a^2-b^2\sin^2x$ only if $sin(x)<=a/b$, hence,
$$I(a)=2\left(\int_0^{a/b}\ln(a^2-b^2\sin^2x)\,dx+\int_{a/b}^{\pi/2} \ln(b^2\sin^2x-a^2)\,dx\right)$$
If I differentiate the above, I get:
$$\frac{dI}{da}=2\left(\int_0^{a/b}\frac{2a}{a^2-b^2\sin^2x}\,dx+\int_{a/b}^{\pi/2} \frac{-2a}{b^2\sin^2x-a^2}\,dx\right)$$
which is the same integral as before. :confused:
 
Last edited:
Physics news on Phys.org
  • #2
We are given

\(\displaystyle I= \int_0^{2 \pi} \ln \left \vert a+b \sin x \right \vert dx \).

The reason your evaluation of the integral was incorrect is because there are two discontinuities on \(\displaystyle [0, 2 \pi] \), at \(\displaystyle x= \pi + \arcsin(a/b) \) and \(\displaystyle 2 \pi - \arcsin(a/b) \). Therefore, we must split the integral at these points. Also, the absolute value of \(\displaystyle a+b \sin x \) on \(\displaystyle [0, \pi + \arcsin(a/b)] \) and \(\displaystyle [2 \pi - \arcsin(a/b), 2 \pi] \) is just \(\displaystyle a+b \sin x \), while on \(\displaystyle [\pi + \arcsin(a/b), 2 \pi - \arcsin(a/b)] \), it is \(\displaystyle -a-b \sin x \).
Putting these together and setting \(\displaystyle \pi + \arcsin(a/b)=c \) and \(\displaystyle 2 \pi - \arcsin(a/b)=d \), we have

\(\displaystyle I= \int_0^{c} \ln (a+b \sin x) dx + \int_c^{d} \ln (-a-b \sin x) dx +\int_d^{2 \pi} \ln (a+b \sin x) dx \).

Considering I to be a function of a and differentiating under the integral sign, we have

\(\displaystyle \frac{dI}{da} = \int_0^{c} \frac{1}{a+b \sin x} dx +\int_c^{d} \frac{-1}{-a- b \sin x} dx +\int_d^{2 \pi} \frac{1}{a+b \sin x} dx \).

Using the substitution \(\displaystyle z=\tan \frac{x}{2} \) and completing the square, the integrand becomes

\(\displaystyle \frac{2}{a} \frac{1}{(z+\frac{b}{a})^2+(1-\frac{b^2}{a^2})} \).

Integrating (without bounds for the moment), we have

\(\displaystyle \frac{2}{\sqrt{a^2-b^2}} \arctan \frac{a \tan \frac{x}{2} +b}{\sqrt{a^2-b^2}} +C\).

But since \(\displaystyle a < b \), this quantity is imaginary! All is not lost, however. We have

\(\displaystyle \operatorname{arctanh} z = \frac{1}{i} \arctan iz \).

Using this relation, the integral becomes

\(\displaystyle \frac{2}{\sqrt{b^2-a^2}} \operatorname{arctanh} \frac{a \tan \frac{x}{2} +b}{\sqrt{b^2-a^2}} +C\),

which is real.
Evaluating between the three sets of bounds, we have

\(\displaystyle \frac{dI}{da} = \frac{2}{\sqrt{b^2-a^2}} \left ( \operatorname{arctanh} \frac{b}{\sqrt{b^2-a^2}} -\operatorname{arctanh} \frac{b}{\sqrt{b^2-a^2}} \right ) =0 \).

We would appear to be stuck. However, all this implies is that I is not a function of a, as we had previously assumed. Therefore, letting a approach 0 in the original integral gives

\(\displaystyle I= \int_0^{2 \pi} \ln \left \vert b \sin x \right \vert dx \).

Splitting up the argument of the ln, and using the fact that the integral of sine on \(\displaystyle [0, 2 \pi] \) is four times the integral on \(\displaystyle [0, \frac{\pi}{2}] \), we have

\(\displaystyle I= 2 \pi \ln b + 4 \int_0^{\frac{\pi}{2}} \ln \sin x dx \).

Taking \(\displaystyle \sin x = 2 \sin \frac{x}{2} \cos \frac{x}{2} \) and splitting up the logarithmic terms, the second term becomes

\(\displaystyle 2 \pi \ln 2 + 4 \int_0^{\frac{\pi}{2}} \ln \sin \frac{x}{2} dx + 4 \int_0^{\frac{\pi}{2}} \ln \cos \frac{x}{2} dx \).

Substituting \(\displaystyle u= \frac{x}{2} \), the integrals become

\(\displaystyle 8 \int_0^{\frac{\pi}{4}} \ln \sin u \ du + 8 \int_0^{\frac{\pi}{4}} \ln \cos u \ du \).

Substituting \(\displaystyle u= \frac{\pi}{2} –t \) into the cosine integral, it becomes

\(\displaystyle \int_{\frac{\pi}{4}}^{\frac{\pi}{2}} \ln \sin t \ dt \).

Therefore,

\(\displaystyle 4 \int_0^{\frac{\pi}{2}} \ln \sin x dx= 2\pi \ln 2 + 8 \int_0^{\frac{\pi}{2}} \ln \sin x dx \).

Cancelling, and remembering the fact that the integral of sine over a period is equal to four times its integral over a quarter-period, we have

\(\displaystyle 4 \int_0^{\frac{\pi}{2}} \ln \sin x dx=\int_0^{2 \pi} \ln \sin x dx = -2 \pi \ln 2 \).

Substituting into the equation for I and combining logarithmic terms, we obtain (finally)

\(\displaystyle I= 2 \pi \ln \frac{b}{2} \).
 
Last edited:

FAQ: How Do You Solve the Integral of ln|a+b*sin(x)| from 0 to 2π?

What is an integral?

An integral is a mathematical concept that represents the area under a curve. It is used to find the total amount or accumulation of something, such as distance, velocity, or volume.

Why is it important to evaluate integrals?

Evaluating integrals allows us to solve real-world problems and make predictions based on mathematical models. It is also a fundamental tool in calculus and is used in many other branches of mathematics, physics, and engineering.

How do you evaluate an integral?

To evaluate an integral, we use techniques such as substitution, integration by parts, and trigonometric substitution. We also use tables of integrals and computer software to help with more complicated integrals.

What is the difference between definite and indefinite integrals?

A definite integral has specific limits of integration, meaning we are finding the area under the curve between two specific points. An indefinite integral does not have limits of integration and represents a family of functions that differ by a constant.

What are some common applications of integrals?

Integrals are used in many areas of science and engineering, such as calculating work and energy, finding the center of mass of an object, and determining the probability of certain events. They are also used in economics, statistics, and signal processing.

Similar threads

Replies
1
Views
2K
Replies
6
Views
546
Replies
2
Views
2K
Replies
29
Views
2K
Replies
6
Views
2K
Back
Top