Taylor series integration of cosx -1 / x

Click For Summary
SUMMARY

The integral of the function (cos(x) - 1)/x can be approached using Taylor series expansion. The discussion highlights two methods: one participant split the integral into two parts, ∫(cos(x)/x)dx - ∫(1/x)dx, while the solution manual utilized a series expansion starting from n=1, effectively eliminating the constant term. Both methods yield the same result, but the first participant's approach introduced an unnecessary natural logarithm, which was clarified as incorrect. The correct approach involves recognizing the Taylor series expansion of cos(x) and properly handling the n=0 term.

PREREQUISITES
  • Taylor Series expansion of functions
  • Integration techniques for non-elementary functions
  • Understanding of Maclaurin series
  • Basic calculus concepts, particularly integration of trigonometric functions
NEXT STEPS
  • Study the Taylor Series expansion of cos(x) in detail
  • Learn about the integration of non-elementary functions
  • Explore Maclaurin series and their applications in calculus
  • Review techniques for handling singularities in integrals
USEFUL FOR

Students studying calculus, particularly those focusing on integration techniques and Taylor series, as well as educators looking for clarification on common pitfalls in solving integrals involving trigonometric functions.

Feodalherren
Messages
604
Reaction score
6

Homework Statement



∫((cosX)-1)/x dx

Homework Equations


Taylor Series


The Attempt at a Solution



My approach was basically to to split the integral into two more manageable parts which gave me

∫(cosX/x)dx - ∫(1/x)dx

The solutions manual did it completely differently and instead changed the index of the sum to start from n=1 instead of n=0 which "ate up" the 1 on top. I guess my question is, did I do it wrong or is my solution correct, only not as pretty?

I got the same sum as they did, except mine starts at 0 and I have an extra natural log.
 
Physics news on Phys.org
Feodalherren said:

Homework Statement



∫((cosX)-1)/x dx

Homework Equations


Taylor Series

The Attempt at a Solution



My approach was basically to to split the integral into two more manageable parts which gave me

∫(cosX/x)dx - ∫(1/x)dx

The solutions manual did it completely differently and instead changed the index of the sum to start from n=1 instead of n=0 which "ate up" the 1 on top. I guess my question is, did I do it wrong or is my solution correct, only not as pretty?

I got the same sum as they did, except mine starts at 0 and I have an extra natural log.

You should really post what you actually did. The answer shouldn't have any natural logs at all. The Taylor series of cos(x) already has a 1 in it.
 
I solved the two integrals: ∫(cosX/x)dx - ∫(1/x)dx.

The first one is exactly the same answer as the book got, except they shifted their index. I solved it by using the infinite sum definition of cosine. The integral of 1/x is ln x, that's where the log came from.
 
Feodalherren said:
I solved the two integrals: ∫(cosX/x)dx - ∫(1/x)dx.

The first one is exactly the same answer as the book got, except they shifted their index. I solved it by using the infinite sum definition of cosine. The integral of 1/x is ln x, that's where the log came from.

What did you do with the 1 in the series expansion of cos(x)? What do you think the series expansion of cos(x) is? These are the questions I'm trying to get at.
 
Feodalherren said:
I solved the two integrals: ∫(cosX/x)dx - ∫(1/x)dx.

The first one is exactly the same answer as the book got, except they shifted their index. I solved it by using the infinite sum definition of cosine. The integral of 1/x is ln x, that's where the log came from.

The integral of cos(x)/x is non-elementary, but it is expressible in terms of already-defined non-elementary functions. Is that what you did?
 
Here's a picture of what I did. The light is kinda iffy but hopefully you'll see what's going on.

photo_2.jpg
 
What you did is invalid. You have ##\frac{\cos x}{x} = \sum_{n=0}^{\infty} (-1)^n \frac{x^{2n-1}}{(2n)!}##. That's fine, but your integration of that isn't fine. Look at the n=0 term. You integrated that incorrectly.
 
Hmm I'm not sure I understand what you mean. What term exactly are you referring to?
 
The n=0 term of your sum, of course. You computed ##\int \frac{x^{2n-1}}{(2n!)}\,dx## as ##\frac{x^{2n}}{(2n)(2n!)}##. That is not valid when n=0.
 
  • Like
Likes   Reactions: 1 person
  • #10
Feodalherren, you're making this much harder than it needs to be. Do not split (cos(x) -1)/x into two terms. Write the Maclaurin series expansion of cos(x) - 1, preferably without the summation sign so that you can get the first few terms right.
 
  • #11
Ohh now I got it. Thanks.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
5
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K