Integration by parts and coefficients

Click For Summary

Discussion Overview

The discussion revolves around the calculation of Fourier coefficients, specifically the coefficient \( b_n \) for the function \( \sin(x) \) using integration by parts. Participants explore the implications of the odd and even properties of sine functions in the context of definite integrals.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents the integral \( b_n = \frac{1}{\pi}\int^{\pi}_{-\pi}\sin\theta \sin n\theta d\theta \) and attempts to evaluate it using integration by parts.
  • Another participant suggests that the result should not be zero and implies that two applications of integration by parts are necessary.
  • A participant expresses confusion, stating they still arrive at zero after performing integration by parts twice.
  • One participant points out a potential error, suggesting that a denominator should be \( n^2 \) instead of \( n \), which could affect the cancellation of terms.
  • A later reply acknowledges that the integrand is an even function due to the product of two odd functions, leading to the conclusion that the integral evaluates to zero over symmetric limits.
  • Another participant expresses skepticism about the result being zero, noting that while \( a_n \) coefficients should be zero, \( b_n \) coefficients should yield non-zero values.

Areas of Agreement / Disagreement

Participants express differing views on whether the integral evaluates to zero. While one participant concludes that the integral is indeed zero based on the properties of the functions involved, others maintain that the \( b_n \) coefficients should not be zero, indicating unresolved disagreement.

Contextual Notes

The discussion highlights potential misunderstandings regarding the properties of odd and even functions in integration, as well as the implications of integration by parts on the evaluation of Fourier coefficients.

Somefantastik
Messages
226
Reaction score
0
[tex]b_{n} = \frac{1}{\pi}\int^{\pi}_{-\pi}sin\theta sin n\theta d \theta[/tex]

let

[tex]u = sin \theta, \ du = cos \theta d \theta[/tex]
[tex]dv = sin n \theta d \theta, \ v = -\frac{1}{n}cosn \theta[/tex]

[tex]= \left[-\frac{1}{n} sin \theta cos n \theta \right|^{\pi}_{-\pi} + \frac{1}{n} \int^{\pi}_{-\pi} cos \theta cos n \theta d \theta \right][/tex]

now [tex]-\frac{1}{n} sin \theta cos n \theta \right|^{\pi}_{-\pi} = 0[/tex]

and

[tex]u = cos\theta, \ du = -sin \theta d\theta[/tex]

[tex]dv = -sin\theta d\theta, \ v = \frac{1}{n}sin n \theta[/tex]

[tex]= \frac{1}{n} \left[\frac{1}{n} cos \theta sin n \theta \right|^{\pi}_{-\pi} + \frac{1}{n} \int^{\pi}_{-\pi} sin \theta sin n\theta \right][/tex]

I keep getting that to come out to zero but I know it shouldn't. I'm not sure what it should come out to, but it's a Fourier coeff for expanding sin(x). Since sin(x) is an odd function, I know that this coeff should have a value other than 0.

Can someone help me?
 
Physics news on Phys.org
You have to do "integration by parts" twice to get the answer. You are correct - it's not zero.
 
well I did, and got zero. The second integration by parts is the last line. What am I missing here?
 
I don't have time to go through your entire calculation, but one of the denominators should be n-squared and not n. Then the terms don't cancel. I hope this helps.
 
Ok thanks for looking. I'll keep trying.
 
[tex]b_{n} = \frac{1}{\pi}\int^{\pi}_{-\pi}sin\theta sin n\theta d \theta[/tex]

let

[tex]u = sin \theta, \ du = cos \theta d \theta[/tex]
[tex]dv = sin n \theta d \theta, \ v = -\frac{1}{n}cosn \theta[/tex]

[tex]= \left[-\frac{1}{n} sin \theta cos n \theta \right]^{\pi}_{-\pi} + \left[\frac{1}{n} \int^{\pi}_{-\pi} cos \theta cos n \theta d \theta \right][/tex]

now [tex]\left[-\frac{1}{n} sin \theta cos n \theta \right]^{\pi}_{-\pi} = 0[/tex]

and

[tex]u = cos\theta, \ du = -sin \theta d\theta[/tex]

[tex]dv = -sin\theta d\theta, \ v = \frac{1}{n}sin n \theta[/tex]

[tex]= \frac{1}{n} \left[\frac{1}{n} cos \theta sin n \theta \right]^{\pi}_{-\pi} + \frac{1}{n} \left[\frac{1}{n} \int^{\pi}_{-\pi} sin \theta sin n\theta \right][/tex]

since [tex]\frac{1}{n} \left[\frac{1}{n}cos\theta sin n \theta \right]^{\pi}_{-\pi} = 0[/tex]

Then

[tex]\frac{1}{\pi}\int^{\pi}_{-\pi}sin\theta sin n\theta d \theta = \frac{1}{n^{2}}\int^{\pi}_{-\pi}sin\theta sin n\theta d \theta[/tex]

That still looks like zero to me. ? :(
 
Sorry - yesterday I never actually evaluated my answer.

After reconsidering the problem, I realize that because the integrand is the sine of theta - an odd function - times the sine of (n times theta) - another odd function - the integrand is an even function. Therefore integrating over limits that are symmetrical to theta = zero will yield an answer of zero.

I verified this by evaluating my answer from negative pi to pi.

So, I now believe your original answer is correct, despite your misgivings.
 
Weird. Shouldn't be zero. I was trying to find the coefficients for a Fourier series exp. of sin(theta). All the an's should be zero, but the bn's should be some value.
 

Similar threads

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