Two different results of an integral

  • Context: MHB 
  • Thread starter Thread starter Dustinsfl
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary
SUMMARY

The integral of \(\int \frac{dx}{\sin(x)}\) yields two different results: the professor's solution is \(-\frac{1}{2}\ln\left[\frac{1 + \cos(x)}{1 - \cos(x)}\right]\), while Wolfram Alpha (W/A) provides \(-\ln\left[\frac{1 + \cos(x)}{1 - \cos(x)}\right]\). The professor's solution is verified as correct through differentiation, while W/A's result leads to an incorrect derivative. The discrepancy affects the solitary wave solution in the KdV equation, altering the amplitude-width relationship.

PREREQUISITES
  • Understanding of calculus, specifically integration and differentiation.
  • Familiarity with the Korteweg-de Vries (KdV) equation and solitary wave solutions.
  • Knowledge of hyperbolic functions, particularly \(\sech\).
  • Experience using computational tools like Wolfram Alpha for mathematical verification.
NEXT STEPS
  • Review the derivation of integrals involving trigonometric functions.
  • Study the properties of solitary waves in the context of the KdV equation.
  • Learn how to verify integrals using differentiation techniques.
  • Explore alternative computational tools for integral evaluation beyond Wolfram Alpha.
USEFUL FOR

Mathematicians, physicists, and students studying differential equations, particularly those interested in wave phenomena and integral calculus.

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?
 

Similar threads

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