Integration problem using u substitution

Click For Summary

Homework Help Overview

The discussion revolves around an integration problem involving the function \(\int \sin\left(\frac{\pi x}{L}\right) dx\) and the use of \(u\)-substitution. Participants are exploring the implications of substituting \(u = \frac{\pi x}{L}\) and how this affects the differential and the resulting integral.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the derivation of \(u\) and its impact on the differential \(dx\). There are questions about the transition from \(\frac{\pi}{L}\) to \(\frac{L}{\pi}\) in the context of the integral's evaluation. Some participants express confusion about the logic behind these transformations and seek clarification on the constants involved in the substitution process.

Discussion Status

The conversation is ongoing, with participants providing insights and asking for further clarification on the steps involved in the \(u\)-substitution method. There is a recognition of the need to carefully track boundaries in definite integrals, and some guidance has been offered regarding the handling of limits during integration.

Contextual Notes

There is an emphasis on understanding the relationship between the original variable \(x\) and the substituted variable \(u\), particularly in the context of definite integrals. Participants are also considering the implications of maintaining or adjusting limits of integration during the substitution process.

Lazy Rat
Messages
15
Reaction score
0

Homework Statement


## \int {sin} \frac{\pi x} {L} dx ##

Homework Equations


u substitution

The Attempt at a Solution


If i make ## u = \frac{\pi x} {L} ## and then derive u I get ## \frac {\pi}{L} ## yet the final solution has ## \frac {L}{\pi} ##
The final solution is ## \frac {L}{\pi} - cos \frac {\pi x} {L} + C ##

What I am struggling to understand is why it becomes ## \frac {L}{\pi} ## instead of ## \frac {\pi}{L} ## ?

I would very much appreciate some assistance regarding this.

Thank you
Lazy
 
Physics news on Phys.org
Lazy Rat said:

Homework Statement


## \int {sin} \frac{\pi x} {L} dx ##

Homework Equations


u substitution

The Attempt at a Solution


If i make ## u = \frac{\pi x} {L} ## and then derive u I get ## \frac {\pi}{L} ## yet the final solution has ## \frac {L}{\pi} ##
The final solution is ## \frac {L}{\pi} - cos \frac {\pi x} {L} + C ##

What I am struggling to understand is why it becomes ## \frac {L}{\pi} ## instead of ## \frac {\pi}{L} ## ?

I would very much appreciate some assistance regarding this.

Thank you
Lazy
Write it out. You have ##\dfrac{du}{dx}=\dfrac{\pi}{L}##. Now what do you get for ##c## in ##dx=c \cdot du\,## which has to be replaced?
 
Im sorry fresh_42 I am finding difficult to follow that logic. Are you asking what i would get for the constant?
 
Lazy Rat said:
Im sorry fresh_42 I am finding difficult to follow that logic. Are you asking what i would get for the constant?
Perhaps I shouldn't have chosen ##c## as name for my proportional factor. I just wanted you to calculate ##dx## so that you can substitute it by ##du## in the integral and then write the integral in terms of only ##u's##.
 
So rearranging I get ## dx = \frac {du\: L}{\pi} ## then the ## du ## part becomes the next step in ## \sin du ## ?
 
Lazy Rat said:
So rearranging I get ## dx = \frac {du\: L}{\pi} ## then the ## du ## part becomes the next step in ## \sin du ## ?
Not quite. After the substitution, your integral becomes ##\int \sin(u) \frac L\pi du = \frac L \pi \int \sin(u) du##
 
Lazy Rat said:
So rearranging I get ## dx = \frac {du\: L}{\pi} ## then the ## du ## part becomes the next step in ## \sin du ## ?
Yes, with that, you substitute what you have: ##\int \sin(\frac{\pi x}{L})dx = \int \sin(u) dx = \int \sin(u) \frac{du L}{\pi}= \frac{L}{\pi} \int \sin (u)\, du##
 
  • Like
Likes   Reactions: Lazy Rat
Lazy Rat said:
If i make ## u = \frac{\pi x} {L} ## and then derive u I get ## \frac {\pi}{L} ##
Actually you're finding the differential of u, which would be ##du = \frac \pi L dx##.
 
  • Like
Likes   Reactions: Lazy Rat
thank you for your assistance chaps.
 
  • #10
Lazy Rat said:
thank you for your assistance chaps.
Just a final remark: If you should have a definite integral, say ##\int_a^b \sin(\frac{\pi x}{L})dx## then you also have to adjust the boundaries. They actually mean ##\int_{x=a}^{x=b} \sin(\frac{\pi x}{L})dx##, so we get for the ##u-##notation
$$
\int_{a}^{b} \sin(\frac{\pi x}{L})dx = \int_{x=a}^{x=b} \sin(\frac{\pi x}{L})dx = \frac{L}{\pi} \int_{u=\frac{\pi a}{L}}^{u=\frac{\pi b}{L}} \sin(u)du =\frac{L}{\pi} \int_{\frac{\pi a}{L}}^{\frac{\pi b}{L}} \sin(u)du
$$
 
  • Like
Likes   Reactions: Lazy Rat
  • #11
fresh_42 said:
Just a final remark: If you should have a definite integral, say ##\int_a^b \sin(\frac{\pi x}{L})dx## then you also have to adjust the boundaries.
Not necessarily. After you've found the antiderivative, you can simply undo the substitution.

##\int_{x = a}^{b} \sin(\frac{\pi x}{L})dx = \int_{x = a}^{b} \sin(\frac{\pi x}{L})dx = \frac{L}{\pi} \int_{x = a}^{b} \sin(u)du =\frac{L}{\pi} \int_{x = a}^{b} \sin(u)du = -\frac{L}{\pi}\cos(u) |_{x = a}^b = -\frac{L}{\pi}\cos(\frac{\pi x}L) |_{x = a}^b##.

Undoing the substitution at the end allows you to keep the same limits of integration throughout. I've been careful to identify them as x values through each step.
 
  • #12
Mark44 said:
Not necessarily. After you've found the antiderivative, you can simply undo the substitution.

##\int_{x = a}^{b} \sin(\frac{\pi x}{L})dx = \int_{x = a}^{b} \sin(\frac{\pi x}{L})dx = \frac{L}{\pi} \int_{x = a}^{b} \sin(u)du =\frac{L}{\pi} \int_{x = a}^{b} \sin(u)du = -\frac{L}{\pi}\cos(u) |_{x = a}^b = -\frac{L}{\pi}\cos(\frac{\pi x}L) |_{x = a}^b##.

Undoing the substitution at the end allows you to keep the same limits of integration throughout. I've been careful to identify them as x values through each step.
Yes, but this assumes that you know what you do. We would simply skip the steps of conversion and reversion in between. But for students who still learn it, it's better not to skip steps. I remember integrals, where one substitution chased the other, so it's better to keep track of the boundaries. It's a potential source of mistakes.
 
  • #13
fresh_42 said:
Yes, but this assumes that you know what you do.
That's true of many (most?) things in life. When I taught calculus (the most recent time being a year ago), when I was doing a definite integral with a u-substitution, I would explain that you could revise the limits of integration, as you did in post #10, or you could bring them along unchanged. Writing "x = " explicitly in the lower integration limit reinforces the idea that although the dummy variable of the integral is now u, we can't evaluate the antiderivative until we undo the substitution to get back to an expression in x.
 
  • Like
Likes   Reactions: SammyS

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 9 ·
Replies
9
Views
1K