Find the result of definite integration

  • Thread starter Thread starter songoku
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around evaluating the definite integral of the product of sine functions, specifically $$\frac{2}{L} \int_{0}^{L} \sin\left(\frac{5x}{L}\right) \sin \left(\frac{n\pi x}{L} \right) dx$$. Participants are exploring the conditions under which the integral yields specific results based on the value of \( n \).

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the potential presence of a missing factor of \( \pi \) in the integral's expression and its implications on the evaluation. There are considerations about how to handle the case when \( n = 5 \) and whether limits should be applied in such scenarios.

Discussion Status

The discussion is active, with participants providing insights and questioning the original problem setup. Some have suggested using limits to resolve indeterminate forms, while others have pointed out the need to treat the case of \( n = 5 \) separately. There is no explicit consensus yet, but several productive lines of reasoning are being explored.

Contextual Notes

Participants note that \( n \) must be a positive integer, and there is an ongoing debate regarding the accuracy of the original problem statement, particularly concerning the presence of \( \pi \) in the integral.

songoku
Messages
2,509
Reaction score
393
Homework Statement
Find ##\frac{2}{L} \int_{0}^{L} \sin\left(\frac{5x}{L}\right) \sin \left(\frac{n\pi x}{L} \right) dx##
Relevant Equations
Trigonometry Identity

Integration
$$\frac{2}{L} \int_{0}^{L} \sin\left(\frac{5x}{L}\right) \sin \left(\frac{n\pi x}{L} \right)dx$$
$$=\frac{2}{L} \int_{0}^{L} \left(\frac{1}{2} \cos\left[\left(\frac{5-n\pi}{L}\right)x\right] -\frac{1}{2}\cos \left[\left(\frac{5 + n\pi}{L} \right)x\right]\right)dx$$
$$=\frac{1}{5-n\pi} \sin (5-n\pi)-\frac{1}{5+n\pi}\sin(5+n\pi)$$

This is as far as I can get but the answer key is if ##n=5## then the result of integration is 1 and will be zero for other values of ##n##.

How to proceed to get the answer? Thanks
 
Physics news on Phys.org
songoku said:
Homework Statement: Find ##\frac{2}{L} \int_{0}^{L} \sin\left(\frac{5x}{L}\right) \sin \left(\frac{n\pi x}{L} \right) dx##
Are you sure there's not a factor of ##\pi## missing in that expression? I think it should read:$$\frac{2}{L} \int_{0}^{L} \sin\left(\frac{5\pi x}{L}\right) \sin \left(\frac{n\pi x}{L} \right) dx$$
 
  • Like
Likes   Reactions: D H, PeroK and songoku
renormalize said:
Are you sure there's not a factor of ##\pi## missing in that expression? I think it should read:$$\frac{2}{L} \int_{0}^{L} \sin\left(\frac{5\pi x}{L}\right) \sin \left(\frac{n\pi x}{L} \right) dx$$
No, in the original question there is no ##\pi##

But let say if there is ##\pi##, then the integration becomes:
$$=\frac{1}{5\pi-n\pi} \sin (5\pi-n\pi)-\frac{1}{5\pi+n\pi}\sin(5\pi+n\pi)$$

In this case, ##n## can not be 5 because one of the denominator will become 0 and for other value of ##n## (sorry I forgot to put that ##n## must be positive integer) the sin term will be zero. Still does not match the answer key for ##n=5##

Thanks

EDIT: I just realize the numerator of the first term is also zero. Does it mean I have to use limit as ##n## approaches 5 to find the value of the first term? I tried and the result is 1
 
songoku said:
EDIT: I just realize the numerator of the first term is also zero. Does it mean I have to use limit as ##n## approaches 5 to find the value of the first term? I tried and the result is 1
Correct.
 
  • Like
Likes   Reactions: songoku
songoku said:
No, in the original question there is no ##\pi##
Well then there's definitely a typo in the original homework statement. And yes, your limit approach gives the correct answer for ##n=5##. But you can also get the correct result by setting ##n=5## in the integrand before you do the integral. Try it!
 
  • Like
Likes   Reactions: songoku
songoku said:
But let say if there is ##\pi##, then the integration becomes:
$$=\frac{1}{5\pi-n\pi} \sin (5\pi-n\pi)-\frac{1}{5\pi+n\pi}\sin(5\pi+n\pi)$$
When you divide by something, you must always specify that something is not zero. For example:
$$\int \cos(nx) \ dx = \frac 1 n \sin(nx) + C \ (n \ne 0)$$In this case, if ##n = 0##, then:
$$\int \cos(nx) \ dx = \int 1 \ dx = x + C$$
 
  • Like
Likes   Reactions: songoku
renormalize said:
Well then there's definitely a typo in the original homework statement. And yes, your limit approach gives the correct answer for ##n=5##. But you can also get the correct result by setting ##n=5## in the integrand before you do the integral. Try it!
PeroK said:
When you divide by something, you must always specify that something is not zero. For example:
$$\int \cos(nx) \ dx = \frac 1 n \sin(nx) + C \ (n \ne 0)$$In this case, if ##n = 0##, then:
$$\int \cos(nx) \ dx = \int 1 \ dx = x + C$$
Ah I see. Since I need to divide by ##5\pi-n\pi##, I need to realize this is for the case where ##n\neq 5##. The case ##n=5## must be done separately.

Thank you very much for the help and explanation renormalize, Gavran, PeroK
 
  • Like
Likes   Reactions: Gavran

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K