How the heck do I integrate sin(1/x) ?

  • Context: Undergrad 
  • Thread starter Thread starter Matt Jacques
  • Start date Start date
  • Tags Tags
    Integrate
Click For Summary

Discussion Overview

The discussion revolves around the integration of the function sin(1/x), exploring various methods and approaches to evaluate the integral. Participants engage in technical reasoning, mathematical exploration, and clarification of concepts related to integration techniques, including series expansions and the properties of odd functions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant expresses frustration with integration by parts, suggesting they are caught in increasingly complex integrals.
  • Another participant questions whether the integral is definite or indefinite.
  • Some participants inquire about the possibility of the anti-derivative being an elementary function.
  • A proposed solution involves the Cosine Integral function and a specific expression involving x and sin(1/x).
  • Another participant suggests using a Taylor or Maclaurin series for sin(1/x) to approximate the integral.
  • There is a discussion about the definition of logarithm, with some participants asserting that "log" typically refers to the natural logarithm in mathematics.
  • One participant notes that sin(1/x) is an odd function, leading to the conclusion that its definite integral over a symmetric interval around zero is zero.
  • Another participant raises concerns about integrating over a region where the function is not defined, particularly at x = 0.
  • There is a discussion about the implications of Lebesgue integration and the conditions under which the integral can be considered well-defined.
  • A later reply suggests that extending the domain of sin(1/x) to include zero could allow for the integral to be evaluated as zero.
  • One participant presents an alternative expression involving the Cosine Integral and a series representation.

Areas of Agreement / Disagreement

Participants express differing views on the nature of the integral, the definition of logarithms, and the appropriateness of integrating functions that are not defined at certain points. There is no consensus on a definitive method for integrating sin(1/x) or on the implications of integrating over regions where the function is undefined.

Contextual Notes

Participants highlight limitations regarding the assumptions made about the function's behavior at zero and the definitions of integrals in different contexts (Riemann vs. Lebesgue). There are unresolved mathematical steps and conditions that affect the discussion.

Matt Jacques
Messages
81
Reaction score
0
I tried parts by integration but I am caught in an endless loop of ever growing in complexity integrals! I must be missing something.
 
Physics news on Phys.org
is that an indefinite or definite integral?
 
Do you have any reason to believe its anti-derivative is an elementary function?
 
easy man

here's the answer:


-cosintegral[1/x] + xSin[1/x]
 
I got that, too. No way to further simplify?
 
apart from that the integral of 1/x is log(x) you mean?
 
If you're desperate, you could try working out a Taylor/Mclaurin series for it, and seeing if the integral of that is recognizable.
 
You can use a Maclaurin series to evaluate (or at least approximate) it...knowing that

[tex]sin(x)=\sum_{n=0}^{\infty}\frac{(-1)^nx^{(2n+1)}}{(2n+1)!}[/tex]


you can replace x with 1/x and integrate to get:


[tex]\int sin(\frac{1}{x})=\sum_{n=0}^{\infty}\frac{(-1)^{n-1}}{2(2n+1)!x^{2n}}[/tex]
 
Last edited:
Originally posted by matt grime
apart from that the integral of 1/x is log(x) you mean?


Wrong. ∫1/x dx = ln |x| + C.

∫1/(x(ln 10)) dx = log |x| + C.
 
  • #10
Originally posted by PrudensOptimus
Wrong. ∫1/x dx = ln |x| + C.

∫1/(x(ln 10)) dx = log |x| + C.

When a mathematician says "log" they are generally talking about the natural logarithm.
 
  • #11
Originally posted by master_coda
When a mathematician says "log" they are generally talking about the natural logarithm.

Right, and the rest of the time they usually mean [tex]log_2[/tex]
but anything other than [tex]log_e[/tex] gets a base.
 
  • #12
Originally posted by NateTG
Right, and the rest of the time they usually mean [tex]log_2[/tex]
but anything other than [tex]log_e[/tex] gets a base.

I don't see too many mathematicians refer to [itex]\log_2[/itex] as [itex]\log[/itex].
 
  • #13
It's typically for math/cs tpe situations and usually only applies to situations where hte base is not particuarly important.
 
  • #14
Originally posted by PrudensOptimus
Wrong. ∫1/x dx = ln |x| + C.

∫1/(x(ln 10)) dx = log |x| + C.


yes, i did omit the modulus sign, however you should probably be told that log always means base e. This is completely standard in mathematics, and just one more thing they misteach at high school


After all what other base would you possibly want?
 
  • #15
This might help too:

sin(1/x) is an odd function (meaning f(-x) = -f(x)).

The definite integral of any odd function on the interval [-a,a] is 0.
 
  • #16
one generally wouldn't integrate over a region where the function is not defined. (no choice at zero can make it continuous, interestingly enough, not that that's either here or there, and not that any choice would make the integral be anything but zero anyway, though 0 is the only choice that keeps it a genuine odd function.)
 
  • #17
I should have been more careful when answering, but isn't the integral still well defined since {0} is a set of measure 0?
 
  • #18
Do you mean to use Lebesgue integration?

[tex]\lim_{x \rightarrow 0}[/tex] might also not exist and thus cause problems.
 
  • #19
Originally posted by curiousbystander
I should have been more careful when answering, but isn't the integral still well defined since {0} is a set of measure 0?

The function hasn't been defined at 0, that's all. It is true that any assignment of a value at zero will produce a function that is Riemann integrable (you don't need to use the machinery of Lesbegue integration on it). Only the setting the value at 0 to be 0 will provide an odd function. No assignment produces a continuous function.

I wouldn't like to make any definitive statements about the propriety of integrating a function over region in which it contains points where it isn't defined, other than it seems something you shouldn't do.
 
  • #20
Originally posted by NateTG
Do you mean to use Lebesgue integration?

[tex]\lim_{x \rightarrow 0}[/tex] might also not exist and thus cause problems.
Good point-- I had confused the Riemannian integral with the Lebesque. Time to shake the dust off my old real analysis books and review the basics. I think it will still work out:

If I follow Matt's advice and extend the domain of [tex]\sin(\frac{1}{x})[/tex] to include 0 so that [tex]\sin(\frac{1}{x})=0[/tex], then I have a function which is bounded and continuous everywhere except 0. The Riemann Integral is defined for such a function, and since the function is odd and defined on all of [-a,a] its integral will be 0.

Since the function is Riemann integrable on [-a,a] it will also be Lebesgue integrable on [-a,a] and the two integrals will agree.

Now that I'm working with the Lebesgue integral my functions only need to be defined almost everywhere so the Lebesgue integral of [tex]\sin(\frac{1}{x})[/tex] from [-a,a] exists and is 0.

Anybody see any problems with that? Analysis has never been my strong point.

Edit: Matt's last post came up while I was in the midst of writing this so I didn't see it. It does sound like I'm responding directly to what he wrote though doesn't it?
 
Last edited:
  • #21
i get CosIntegral(1/x)+xSin(1/x)

where CosIntegral(x) == Log[x] + EulerGamma + (1/2) Sum[((-1)^k x^(2 k))/(k (2k)!), {k, 1, Infinity}]
 

Similar threads

  • · Replies 21 ·
Replies
21
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
Replies
5
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K