MHB Two different results of an integral

  • Thread starter Thread starter Dustinsfl
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary
The discussion centers on the discrepancies between two results for the integral of 1/sin(x). The professor's result, which is correct, yields a solitary wave solution consistent with the KdV equation, while Wolfram's result leads to an incorrect wave solution. Differentiation confirms the professor's integral is valid, producing the expected derivative of 1/sin(x). In contrast, Wolfram's solution results in an erroneous derivative, raising questions about its accuracy. The conversation highlights the importance of verifying integral results, especially in the context of solitary wave solutions.
Dustinsfl
Messages
2,217
Reaction score
5
$\DeclareMathOperator{\sech}{sech}$

This integral arose when solving for a solitary wave in the KdV equation.

In class, the professor came up with:

\[
\int\frac{dx}{\sin(x)} = -\frac{1}{2}\ln\left[\frac{1 + \cos(x)}{1 - \cos(x)}\right]
\]
However, Wolfram obtains
\[
\int\frac{dx}{\sin(x)} = -\ln\left[\frac{1 + \cos(x)}{1 - \cos(x)}\right]
\]
but that changes our solitary waves solution from
\[
\sqrt{2\mu}e^{i\varepsilon^2\mu t}
\sech\left[\sqrt{\mu}(x - vt - x_0)\right]
\]
to
\[
\sqrt{2\mu}e^{i\varepsilon^2\mu t}
\sech\left[\frac{\sqrt{\mu}}{2}(x - vt - x_0)\right]
\]
For a solitary wave, the relation between the amplitude and the width has to at a certain portion. The professors solution for the solitary wave is correct but his integral doesn't workout compared to Wolframs.

Is there something I am missing?
 
Physics news on Phys.org
Re: two different results of an integral

Check by differentiation:
\begin{align*}
\frac{d}{dx} \left[ -\frac{1}{2} \ln \left( \frac{1 + \cos(x)}{1 - \cos(x)} \right) \right]
&=- \frac{1}{2} \frac{1- \cos(x)}{1+ \cos(x)} \frac{(1- \cos(x))(- \sin(x))-(1+ \cos(x))( \sin(x))}{(1- \cos(x))^{2}} \\
&=- \frac12 \frac{- \sin(x)+ \sin(x) \cos(x)- \sin(x)- \sin(x) \cos(x)}{1- \cos^{2}(x)} \\
&= \frac{ \sin(x)}{ \sin^{2}(x)} \\
&= \frac{1}{ \sin(x)},
\end{align*}
as needed. So your professor's answer is definitely correct. Checking W/A's solution:
\begin{align*}
\frac{d}{dx} \left[- \ln \left( \frac{1 + \cos(x)}{1 - \cos(x)} \right) \right]
&= \frac{2}{ \sin(x)},
\end{align*}
which is definitely incorrect. That's odd that W/A would make a mistake like that. This does not strike me as a trivial mistake. When I plug this into W/A, it gives me
$$ \int \frac{dx}{ \sin(x)}= \ln \left( \sin \left( \frac{x}{2} \right) \right)-
\ln \left( \cos \left( \frac{x}{2} \right) \right)
=\ln \left( \tan \left( \frac{x}{2} \right) \right).$$
This answer is correct. What exactly are you typing into W/A?
 
Thread 'Problem with calculating projections of curl using rotation of contour'
Hello! I tried to calculate projections of curl using rotation of coordinate system but I encountered with following problem. Given: ##rot_xA=\frac{\partial A_z}{\partial y}-\frac{\partial A_y}{\partial z}=0## ##rot_yA=\frac{\partial A_x}{\partial z}-\frac{\partial A_z}{\partial x}=1## ##rot_zA=\frac{\partial A_y}{\partial x}-\frac{\partial A_x}{\partial y}=0## I rotated ##yz##-plane of this coordinate system by an angle ##45## degrees about ##x##-axis and used rotation matrix to...

Similar threads

Replies
12
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
3
Views
3K
Replies
5
Views
2K
Replies
2
Views
3K