Definite integral is undefined and not undefined

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

Discussion Overview

The discussion revolves around the evaluation of the definite integral of the product of sine functions, specifically sin(nπx/L)sin(kπx/L), and the apparent contradiction in results when using different trigonometric identities. Participants explore the implications of the limits of integration and the behavior of the integral when n equals k versus when n does not equal k.

Discussion Character

  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant notes that the integral is undefined when n=k due to (n-k) appearing in the denominator when using a specific trigonometric formula.
  • Another participant challenges this by stating that the integral of cos(0) = 1 is not undefined, suggesting that the case where n=k should be treated separately.
  • A different perspective is offered, proposing to consider n and k as real numbers and taking the limit as n approaches k, which leads to a different evaluation of the integral.
  • One participant reiterates that integrating cos(πx/L)(n-k) results in an undefined expression at n=k, emphasizing the need for careful treatment of this case.
  • There is a discussion about the validity of the trigonometric formula when A=B, with one participant questioning why the formula cannot be applied directly in the integral for A=B.
  • Another participant asserts that while the trigonometric formula is valid, the primitive function used in the integration process is not applicable when n=k.
  • Further clarification is provided regarding constants in the context of integration, highlighting that certain expressions lead to well-defined results despite potential zero denominators in general cases.
  • A participant mentions a general rule for integration that does not hold when a specific parameter equals zero, reinforcing the need for careful consideration in these scenarios.

Areas of Agreement / Disagreement

Participants express differing views on the treatment of the integral when n=k, with some asserting it is undefined while others provide alternative interpretations or limits. The discussion remains unresolved, with multiple competing perspectives on the validity of the approaches used.

Contextual Notes

Limitations include the dependence on the definitions of n and k, the assumptions made about their values, and the unresolved mathematical steps regarding the integration process when n equals k.

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
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K