Find the result of definite integration

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

The forum discussion centers on evaluating the definite integral $$\frac{2}{L} \int_{0}^{L} \sin\left(\frac{5x}{L}\right) \sin \left(\frac{n\pi x}{L} \right)dx$$. The participants clarify that for the case when \( n=5 \), the result of the integration is 1, while for other positive integer values of \( n \), the result is zero. A limit approach is suggested to handle the indeterminate form when \( n \) approaches 5, confirming the answer aligns with the provided answer key. The discussion also addresses potential typos in the original problem statement regarding the presence of \( \pi \).

PREREQUISITES
  • Understanding of definite integrals in calculus
  • Familiarity with trigonometric identities and integration techniques
  • Knowledge of limits and handling indeterminate forms
  • Basic understanding of the sine function and its properties
NEXT STEPS
  • Explore the concept of limits in calculus, particularly L'Hôpital's rule
  • Study the properties of sine functions and their integrals
  • Learn about Fourier series and their applications in integrals
  • Investigate common pitfalls in evaluating definite integrals involving parameters
USEFUL FOR

Students studying calculus, particularly those focusing on integration techniques, as well as educators looking for examples of definite integrals involving trigonometric functions.

songoku
Messages
2,508
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