Definite integral is undefined and not undefined

  • Context: Undergrad 
  • Thread starter Thread starter dyn
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary
SUMMARY

The discussion centers on the evaluation of the definite integral of the product of sine functions, specifically sin(nπx/L)sin(kπx/L), and the discrepancies encountered when n equals k. When applying the trigonometric identity 2sinAsinB = cos(A-B) - cos(A+B), the integral becomes undefined due to a zero denominator. However, using the identity sin²(nπx/L) = (1 - cos(2nπx/L))/2 yields a defined value of L/2. The integral's behavior highlights the necessity of treating cases where n = k separately and understanding the limitations of the applied formulas.

PREREQUISITES
  • Understanding of definite integrals and limits in calculus
  • Familiarity with trigonometric identities, specifically 2sinAsinB and sin² identities
  • Knowledge of antiderivatives and their exceptions, particularly with zero denominators
  • Ability to manipulate and interpret mathematical expressions in LaTeX
NEXT STEPS
  • Study the properties of definite integrals, focusing on cases with singularities
  • Learn about the application of limits in calculus, particularly L'Hôpital's Rule
  • Explore advanced trigonometric identities and their implications in integration
  • Investigate the concept of continuity and differentiability in relation to integrals
USEFUL FOR

Mathematicians, calculus students, educators, and anyone involved in advanced mathematical analysis or integration techniques.

dyn
Messages
774
Reaction score
63
Hi
If i calculate the definite integral between the limits of L and 0 of sin(nπx/L)sin(kπx/L) using the trig formula 2sinAsinB = cos (A-B) - cos (A+B) it is undefined when n=k because (n-k) appears in the denominator. If i calculate the same integral with n=k using the formula
sin2(nπx/L) = ( 1 - cos(2nπx/L))/2 i get the value L/2. So my question is , how can the integral be undefined when calculated one way but defined with an exact value when calculated another way ?
Thanks
 
Physics news on Phys.org
dyn said:
because (n-k) appears in the denominator
No it doesn’t. The integral of cos(0) = 1 is not sin(0)/0. You will have to treat that case separately.
 
  • Like
Likes   Reactions: PeroK
Alternatively, consider ##n## and ##k## to be reals rather than integers and then take the limit ##n \to k## for ##\sin((n-k)x)/(n-k) \to x##.
 
If i integrate cos (πx/L) ( n-k) , i get L/(π(n-k))sin (πx/L)(n-k) which is undefined at n=k
 
  • Skeptical
Likes   Reactions: PeroK
dyn said:
If i integrate cos (πx/L) ( n-k) , i get L/(π(n-k))sin (πx/L)(n-k) which is undefined at n=k
Please use LaTeX to make it clearer what you mean.

I assume the (n-k) is inside the cosine because that is what it should be - even if not clear from your post.

In this case my first comment applies, and second comment. You simply cannot integrate like that because the formula you are using for the primitive function assumes that ##n \neq k##.
 
Orodruin said:
You simply cannot integrate like that because the formula you are using for the primitive function assumes that ##n \neq k##.


The trig formula 2sinAsinB = cos (A-B) - cos (A+B) applies for A=B and A≠B so when i use that formula in the integral why does it not apply for A=B ? I see your point that it gives cos(A-B) which is 1 when A=B so integrating 1 ends up giving the correct answer. But what i don't understand is why if the trig formula is valid for any A and B is it not valid in the integral for A=B ? In other words , why can't the formula just be followed as a prescription ?
 
  • Skeptical
Likes   Reactions: PeroK
The trigonometric formula is fine. The primitive function is not.
 
dyn said:
Hi
If i calculate the definite integral between the limits of L and 0 of sin(nπx/L)sin(kπx/L) using the trig formula 2sinAsinB = cos (A-B) - cos (A+B) it is undefined when n=k because (n-k) appears in the denominator. If i calculate the same integral with n=k using the formula
sin2(nπx/L) = ( 1 - cos(2nπx/L))/2 i get the value L/2. So my question is , how can the integral be undefined when calculated one way but defined with an exact value when calculated another way ?
Thanks

\cos(0x) = \cos(0) = 1 and \sin(0x) = \sin 0 = 0 are constants; accordingly the relevant antiderivative is \int k\,dx = kx + C. The same applies to \exp(0x) = \exp(0) = 1.

Another well-known exception which would produce a zero denominator according to the general rule is \int x^{-1}\,dx = \ln x + C.
 
In general if
$$\int f(x) dx = F(x)$$Then$$\int f(ax)dx = \frac 1 a F(ax) \ (a \ne 0)$$It ought to be clear why that doesn't work for ##a=0##.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K