Finding the Limit of a Definite Integral in an Integral Problem

In summary, the conversation discusses the integral of the function ##f(r)=\int_0^{\pi/2} x^r\sin x \,\, dx##, and matches it with potential answers involving limits and ratios as r approaches infinity. The solution may involve integration by parts, and the integral in the last option (S) may be equal to 0 as suggested by sketching the function ##x^r## for increasing powers of r on the interval [0,1].
  • #1
Saitama
4,243
93

Homework Statement


Let ##\displaystyle f(r)=\int_0^{\pi/2} x^r\sin x \,\, dx##. Now match the following List-I with List-II.

$$
\begin{array} {|c| c | l c|}
\hline
& \text{List-I} & & \text{List-II} & & \\
\hline
\text{(P)} & \lim_{r\rightarrow \infty} r\left(\frac{2}{\pi}\right)^{r+1}f(r) & 1\cdot & 0 & & \\
\\
\\
\\
\text{(Q)} & \lim_{r\rightarrow \infty} \frac{f(r)}{f(r+1)} & 2\cdot & 1 & &\\
\\
\\
\\
\text{(R)} & \lim_{r\rightarrow \infty} \left(\frac{f(r)}{r\int_0^{\pi/2} x^r\cos x \,\, dx}\right) & 3\cdot & \frac{2}{\pi} & & \\
\\
\\
\\
\text{(S)} & \lim_{r\rightarrow \infty} \int_0^1 x^r\sin x \,\, dx & 4\cdot & \frac{\pi}{2} & &\\
\hline
\end{array}
$$

Homework Equations





The Attempt at a Solution


I haven't been able to make any useful attempt on this problem. I tried integrating by parts and reached the following:

$$f(r)=r\left(\frac{\pi}{2}\right)^{r-1}-r(r-1)f(r-2)$$
I am not sure if above is of any help.

Any help is appreciated. Thanks!
 
Last edited:
Physics news on Phys.org
  • #2
In your f(r) function integral aren't you missing argument for the sin function?
 
  • #3
jedishrfu said:
In your f(r) function integral aren't you missing argument for the sin function?

Woops, edited! Thanks. :)
 
  • #4
It seems that doing an integration may be too time consuming.

Have you looked at the questions and the potential answers.

For example, the last one where r goes to infinity with x ranging of 0 to 1, how would that curve look if you drew it for r=1 the r=2...?

then which answer would most likely be its answer?
 
  • #5
jedishrfu said:
For example, the last one where r goes to infinity with x ranging of 0 to 1, how would that curve look if you drew it for r=1 the r=2...?

Can we please look for a proper method? :rolleyes:

I usually sketch the curve when everything else fails. I doubt that there is a need to sketch the curve in this case.
 
  • #6
Pranav-Arora said:
Can we please look for a proper method? :rolleyes:

I usually sketch the curve when everything else fails. I doubt that there is a need to sketch the curve in this case.

Okay, this looks like a speed exam problem where you may need to improvise. Sometimes they will give you a really tough integral to put you off track wasting time trying to evaluate it. I agree that if you had the integral evaluated the answers would probably pop right out.

Okay so when I integrate by parts I define u=x^r and v'=sinx so that v=-cosx

and get integral f(r) = [-x^r*cos(x) + x^(r+1)*cos(x)*1/(r+1) ] 0 to pi/2

maybe by leaving it in that form the limits will be easier to evaluate.
 
Last edited:
  • #7
jedishrfu said:
Okay, this looks like a speed exam problem where you may need to improvise. Sometimes they will give you a really tough integral to put you off track wasting time trying to evaluate it. I agree that if you had the integral evaluated the answers would probably pop right out.

Okay so when I integrate by parts I define u=x^r and v'=sinx so that v=-cosx

and get integral f(r) = [-x^r*cos(x) + x^(r+1)*cos(x)*1/(r+1) ] 0 to pi/2

maybe by leaving it in that form the limits will be easier to evaluate.

Yes, its an exam problem.

Before I proceed with your approach, I was wondering if you could comment on my thoughts about this problem.

In the first post, I found f(r) to be:
$$f(r)=r\left(\frac{\pi}{2}\right)^{r-1}-r(r-1)f(r-2)$$
I am thinking that if ##r\rightarrow \infty##, I can take ##f(r) \approx f(r-2)##, would this be valid?
 
  • #8
It doesn't seem right.

Wouldn't the pi/2 term be bigger than f(r-2) term?

You have an r factor that can be removed to make your relation more like:

f(r) ~ r*f(r-2)

How did you get your relation of f(r) = f(r-2) ?

We need a mathematician here...
 
  • #9
jedishrfu said:
It doesn't seem right.

Wouldn't the pi/2 term be bigger than f(r-2) term?

You have an r factor that can be removed to make your relation more like:

f(r) ~ r*f(r-2)

How did you get your relation of f(r) = f(r-2) ?

We need a mathematician here...

My logic was that a function should have almost the same values near infinity. We have ##f(\infty)## and ##f(\infty-2)##, both should have almost the same value as ##r\rightarrow \infty##.
 
  • #10
Maybe you can send a PM to Mark44 or HallsofIvy who more versed in mathematics to look at your thread.

If there is a method to solving this kind of problem they would know it.

I am more of an amateur trying to relearn stuff I learned decades ago.
 
  • #11
Pranav-Arora said:
Can we please look for a proper method? :rolleyes:
I don't see anything wrong with sketching a curve.
Pranav-Arora said:
I usually sketch the curve when everything else fails.
Sketching a graph is usually the first thing I do, not something that I try as a last resort. Getting a feel for the geometry of a problem brings in a whole different area of your brain than when you limit yourself to the area that works in symbols. In effect, you are tying one hand behind your back.
Pranav-Arora said:
I doubt that there is a need to sketch the curve in this case.
I've just started looking at this problem, so I don't have much insight into it. However, the "Q" item in the first column is looking at the ratio of f(r) to f(r+1). I think you can rule out 0 as a potential answer.

As far as the integral itself, integration by parts is definitely something that I would try - maybe twice.
 
  • #12
Pranav-Arora said:
In the first post, I found f(r) to be:
$$f(r)=r\left(\frac{\pi}{2}\right)^{r-1}-r(r-1)f(r-2)$$
I am thinking that if ##r\rightarrow \infty##, I can take ##f(r) \approx f(r-2)##, would this be valid?
This would probably be valid if f(r) converged to a finite value, but it doesn't appear to.

I'd go with the integral in S being equal to 0. Just sketch ##x^r## for increasing powers of ##r## on the interval [0,1] to see this.
 
  • #13
Since you know the limit in P is finite, you can deduce how f(r) behaves for large r. From that, you can get the likely answer for Q is #3.
 
  • #14
S is easy. Just use 0 <= sin(x) <= sin(1) < 1 and 0 <= x <= 1.
By elimination, that tells you P converges to a nonzero value. As vela suggests, it's then easy to find Q - just let c > 0 be the answer to P. That just leaves two choices for P and R. maybe it's easy to see which is larger?

Fwiw, I think I solved the recurrence relation for f. Something like ##\frac 1{2i}s^{-r}((1+is)^r - (1-is)^{r})##, where ##s = \frac 2 \pi##
 
Last edited:
  • #15
haruspex said:
S is easy. Just use 0 <= sin(x) <= sin(1) < 1 and 0 <= x <= 1.
Oh yes, that was easy. Thanks! :)
As vela suggests, it's then easy to find Q - just let c > 0 be the answer to P.
What is c? :rolleyes:

That just leaves two choices for P and R. maybe it's easy to see which is larger?
How? :confused:

Fwiw, I think I solved the recurrence relation for f. Something like ##\frac 1{2i}s^{-r}((1+is)^r - (1-is)^{r})##, where ##s = \frac 2 \pi##

Can you please post the steps to solve the recurrence relation? It's not going to help me at the moment but I will someday return to this thread when I am done with recurrence relations. Thanks!
 
  • #16
haruspex said:
S is easy. Just use 0 <= sin(x) <= sin(1) < 1 and 0 <= x <= 1.
By elimination, that tells you P converges to a nonzero value. As vela suggests, it's then easy to find Q - just let c > 0 be the answer to P. That just leaves two choices for P and R. maybe it's easy to see which is larger?

Fwiw, I think I solved the recurrence relation for f. Something like ##\frac 1{2i}s^{-r}((1+is)^r - (1-is)^{r})##, where ##s = \frac 2 \pi##

You need [itex]f(0) = \int_0^{\pi/2} \sin x\,dx = \cos 0 - \cos \frac\pi 2 = 1[/itex]. Your formula gives [itex]f(0) = 0[/itex].

I agree that [itex]f[/itex] is the imaginary part of
[tex]I(r) = \int_0^{\pi/2} x^r e^{ix}\,dx = \left( \frac \pi 2 \right)^r + irI(r-1)[/tex]
subject to [itex]I(0) = 1 + i[/itex] but I don't think you've solved the recurrence correctly.
 
  • #17
Is there perhaps a typo in one of the limits? I find both Q and R converge to the same value.
 
  • #18
vela said:
Is there perhaps a typo in one of the limits? I find both Q and R converge to the same value.

No there is no typo but according to the answer key, both Q and R share the same answer.

Any hints on how you determine that?
 
  • #19
Pranav-Arora said:
What is c? :rolleyes:
Any of answers 2, 3, 4 - it doesn't matter. Since S=0, P cannot be 0. So we know P converges to some constant c, 0 < c < ∞, giving us an expression for the asymptotic behaviour of f. Substitute that in Q.
How? :confused:
That was just a possibility, but I see another way.
Go back and look at your integration by parts. You did two steps of that to get your recurrence relation, right? The first step gave you something very close to the denominator in R. Can you see whether that makes R more or less than 1?

Can you please post the steps to solve the recurrence relation? It's not going to help me at the moment but I will someday return to this thread when I am done with recurrence relations. Thanks!
OK, but not right now. I did say 'something like'; I knew I had not started it off correctly at f(0), as pasmith notes.
 
  • #20
haruspex said:
S is easy. Just use 0 <= sin(x) <= sin(1) < 1 and 0 <= x <= 1.
By elimination, that tells you P converges to a nonzero value. As vela suggests, it's then easy to find Q - just let c > 0 be the answer to P. That just leaves two choices for P and R. maybe it's easy to see which is larger?

Fwiw, I think I solved the recurrence relation for f. Something like ##\frac 1{2i}s^{-r}((1+is)^r - (1-is)^{r})##, where ##s = \frac 2 \pi##

I don't think it is this simple. For integer r the recursions for even r and for odd r separate. For even r, the recursion for ##g(m) = f(2m)## is
[tex] g(m) = \frac{2}{c} p^m - 2m (2m-1) g(m-1), \; g(0) = 1,[/tex]
where ##c = \pi/2## and ##p = c^2 = \pi^2/4##. Maple gets the solution
[tex] g(m) = \frac{(-1)^m 4^m}{\sqrt{\pi}} m! (m \, - \, 1/2)!
\left( 1 - \frac{\sqrt{\pi}}{2c} \sum_{j=0}^{m-1} (-1)^j
\frac{(j+1)p^{j+1}}{4^j (j+1)! (j \,+\,1/2)!} \right) [/tex]
where ##u! \equiv \Gamma(u+1)## for any ##u##.

We can get something similar for odd r.
 
  • Like
Likes 1 person
  • #21
Pranav-Arora said:
No there is no typo but according to the answer key, both Q and R share the same answer.

Any hints on how you determine that?
Oh, okay. For Q, I think the simplest way to see it is to make the limits look like the one in P. Start with
$$\lim_{r \to \infty} \frac{f(r)}{f(r+1)} = \lim_{r \to \infty} \frac{r\left(\frac{2}{\pi}\right)^{r+2}f(r)}{r\left(\frac{2}{\pi}\right)^{r+2}f(r+1)}$$ and go from there.

For R, use integration by parts to write the denominator in terms of f(r+1). Then it looks kinda like Q.
 
  • #22
pasmith said:
I agree that [itex]f[/itex] is the imaginary part of
[tex]I(r) = \int_0^{\pi/2} x^r e^{ix}\,dx = \left( \frac \pi 2 \right)^r + irI(r-1)[/tex]
subject to [itex]I(0) = 1 + i[/itex] but I don't think you've solved the recurrence correctly.
You're right, I blundered.
The recurrence relation leads to ##I_r = s^{-r}\Sigma_{k=0}^r(is)^k\frac{r!}{(r-k)!} + i^{r+1}r!##, but I erroneously wrote down rCk instead of r!/(r-k)!.
So ##f_r = s^{-r}\Sigma_{k=0}^{2k+1 ≤ r}(-1)^ks^{2k+1}\frac{r!}{(r-2k-1)!} + Re((-1)^{\frac r2})r!##
 
  • #23
Guys, isn't it obvious the last one is zero? I'm almost sure it is without doing any work on it. If indeed so, we could at least get rid of that answer.
 
  • #24
vela said:
Oh, okay. For Q, I think the simplest way to see it is to make the limits look like the one in P. Start with
$$\lim_{r \to \infty} \frac{f(r)}{f(r+1)} = \lim_{r \to \infty} \frac{r\left(\frac{2}{\pi}\right)^{r+2}f(r)}{r\left(\frac{2}{\pi}\right)^{r+2}f(r+1)}$$ and go from there.
Since I don't know the answer to P, I assume it is c.

As per your suggestion, I write Q as
$$\frac{f(r)}{f(r+1)}\cdot \frac{r}{r} \cdot \frac{r+1}{r+1} \cdot \frac{(2/\pi)^{r+1}}{(2/\pi)^{r+1}} \cdot \frac{(2/\pi)^{r+2}}{(2/\pi)^{r+2}}$$
Taking the limit, I get ##(2/\pi)## as the answer.

Thanks a lot vela! :)

vela said:
For R, use integration by parts to write the denominator in terms of f(r+1). Then it looks kinda like Q.

I have
$$f(r+1)=(r+1)\left(\frac{\pi}{2}\right)^r-r(r+1)f(r-1)$$

I used integration by parts on the denominator as you say,
$$\int_0^{\pi/2} x^r\cos x \,dx=\left(\frac{\pi}{2}\right)^r-r(r-1)\int_0^{\pi/2}x^{r-2}\cos x\, dx$$
but I don't see how this is similar to Q. :(

haruspex said:
Any of answers 2, 3, 4 - it doesn't matter. Since S=0, P cannot be 0. So we know P converges to some constant c, 0 < c < ∞, giving us an expression for the asymptotic behaviour of f. Substitute that in Q.
What is "asymptotic behaviour"? :confused:
jackmell said:
Guys, isn't it obvious the last one is zero? I'm almost sure it is without doing any work on it. If indeed so, we could at least get rid of that answer.

Hi jackmell! :)

A few posts before, everyone already agreed that answer to S is zero. We are discussing about P, Q and R.
 
  • #25
Pranav-Arora said:
I have
$$f(r+1)=(r+1)\left(\frac{\pi}{2}\right)^r-r(r+1)f(r-1)$$

I used integration by parts on the denominator as you say,
$$\int_0^{\pi/2} x^r\cos x \,dx=\left(\frac{\pi}{2}\right)^r-r(r-1)\int_0^{\pi/2}x^{r-2}\cos x\, dx$$
but I don't see how this is similar to Q. :(
You can't use the recurrence relation you derived for f(r) because the denominator isn't equal to f(r). It has a cosine in it, not a sine.

Use integration by parts to raise the power of x from r to r+1.
 
  • Like
Likes 1 person
  • #26
Pranav-Arora said:
I have
$$f(r+1)=(r+1)\left(\frac{\pi}{2}\right)^r-r(r+1)f(r-1)$$

I used integration by parts on the denominator as you say,
$$\int_0^{\pi/2} x^r\cos x \,dx=\left(\frac{\pi}{2}\right)^r-r(r-1)\int_0^{\pi/2}x^{r-2}\cos x\, dx$$
but I don't see how this is similar to Q. :(
I think Vela was making the same suggestion I posted previously, but wrote Q by mistake for R?
haruspex said:
Go back and look at your integration by parts. You did two steps of that to get your recurrence relation, right? The first step gave you something very close to the denominator in R.
##f(r) = \int_0^{\pi/2} x^r\sin x \,dx=\left[-x^r\cos x\right]_0^{\pi/2}+r\int_0^{\pi/2}x^{r-1}\cos x\, dx = r\int_0^{\pi/2}x^{r-1}\cos x\, dx##
So R becomes
##\frac{\int_0^{\pi/2}x^{r-1}\cos x\, dx}{\int_0^{\pi/2}x^{r}\cos x\, dx}##
It's not hard to show that, for the purposes of the limit, you can change the ranges of integration to be from 1 instead of 0. From that you can see the limit cannot exceed 1.
What is "asymptotic behaviour"? :confused:
It's the behaviour as r → ∞. But you already used Vela's more informative version of this suggestion.
 
  • Like
Likes 1 person
  • #27
vela said:
You can't use the recurrence relation you derived for f(r) because the denominator isn't equal to f(r). It has a cosine in it, not a sine.

Use integration by parts to raise the power of x from r to r+1.

Very sorry, I don't know why I wrote f(r+1) there. :redface:

Increase the power? Usually, while integrating by parts, the trigonometric expression is integrated but I follow your advice.

$$\int_0^{\pi/2} x^r\cos x\, dx=\left(\cos x \cdot \frac{x^{r+1}}{r+1}\right|_0^{\pi/2}+\frac{1}{r+1}\int_0^{\pi/2}x^{r+1} \sin x\,dx $$
$$\Rightarrow \int_0^{\pi/2} x^r\cos x\, dx=\frac{1}{r+1}\int_0^{\pi/2}x^{r+1} \sin x\,dx $$

Wow, great vela, thanks a lot! :)

How did you think of integrating x^r instead of cos x which is usually done while integrating by parts? Some insight would be helpful. :)

The only question remaining is P, can I get some hints?
 
  • #28
haruspex said:
It's not hard to show that, for the purposes of the limit, you can change the ranges of integration to be from 1 instead of 0. From that you can see the limit cannot exceed 1.
Nice explanation, this is a good way of finding the answers, thanks haruspex. :)

But is it possible to continue from your expression and reach the answer? vela's suggestion helped me to convert the limit in R similar to the one in Q and that immediately gave the answer. I am sorry if I am missing something obvious.
 
  • #29
Pranav-Arora said:
How did you think of integrating x^r instead of cos x which is usually done while integrating by parts? Some insight would be helpful. :)
Trial and error. :smile: I originally tried the usual approach, but it didn't seem to help. Also, I could see if I kept the cosine around for the surface term, that term would disappear because of the limits of integration, so it seemed like trying it was worth a shot.
 
  • Like
Likes 1 person
  • #30
vela said:
Trial and error. :smile: I originally tried the usual approach, but it didn't seem to help. Also, I could see if I kept the cosine around for the surface term, that term would disappear because of the limits of integration, so it seemed like trying it was worth a shot.

Thanks! :smile:

Can I please have a few hints for P?
 
  • #31
don't forget to use the thanks button to thank those who helped.
 
  • Like
Likes 1 person
  • #32
I haven't figured out P yet, though I know the likely answer from plotting f(r). One thing you can do is use the fact that ##\sin x \le 1## to find an upper bound on f(r). By doing that, you can eliminate one of the answers. Based on the answer to Q, I think you can eliminate another possibility as well.
 
  • #33
Pranav-Arora said:
Thanks! :smile:

Can I please have a few hints for P?

We know P by process of elimination, yes? Are you just looking for some independent way of finding the value?
Edit: hmmm... I was reading the question as implying a 1-1 matching between the integrals and the answers. maybe that was wrong.
##r \left(\frac{2}{\pi}\right)^{r+1}f(r) = r \left(\frac{2}{\pi}\right)^{r+1}\int_0^{\frac{\pi}{2}} x^r \sin(x).dx##
## = r \left(\frac{2}{\pi}\right)^{r+1}\int_0^{\frac{\pi}{2}} (\frac{\pi}{2}-x)^r \cos(x).dx = r \frac{2}{\pi}\int_0^{\frac{\pi}{2}} (1-x\frac{2}{\pi})^r \cos(x).dx##
## = r \int_0^1 (1-x)^r \cos(x\frac{\pi}{2}).dx##
I'm running out of time to write this all out, but i think if you then integrate by parts the 'wrong' way you'll get an r/(r+1) term plus an integral with (1-x)^(r+1) sin(αx). If you break the range of integral at some small c > 0, you can take an upper bound for 1-x in one range and for sine in the other range such that both integrals can be shown to tend to 0 as r→∞.
But I was wrong last time.
 
Last edited:
  • #34
haruspex said:
We know P by process of elimination, yes? Are you just looking for some independent way of finding the value?
Edit: hmmm... I was reading the question as implying a 1-1 matching between the integrals and the answers. maybe that was wrong.
##r \left(\frac{2}{\pi}\right)^{r+1}f(r) = r \left(\frac{2}{\pi}\right)^{r+1}\int_0^{\frac{\pi}{2}} x^r \sin(x).dx##
## = r \left(\frac{2}{\pi}\right)^{r+1}\int_0^{\frac{\pi}{2}} (\frac{\pi}{2}-x)^r \cos(x).dx = r \frac{2}{\pi}\int_0^{\frac{\pi}{2}} (1-x\frac{2}{\pi})^r \cos(x).dx##
## = r \int_0^1 (1-x)^r \cos(x\frac{\pi}{2}).dx##
I'm running out of time to write this all out, but i think if you then integrate by parts the 'wrong' way you'll get an r/(r+1) term plus an integral with (1-x)^(r+1) sin(αx). If you break the range of integral at some small c > 0, you can take an upper bound for 1-x in one range and for sine in the other range such that both integrals can be shown to tend to 0 as r→∞.
But I was wrong last time.

Integrating by parts,
$$r\left(\frac{1}{r+1}-\frac{\pi}{2(r+1)}\int_0^1 \sin\left(\frac{\pi}{2}x\right)\cdot(1-x)^{r+1} \, \,dx \right)$$
It is similar to S now, right?
 
  • #35
haruspex said:
##r \left(\frac{2}{\pi}\right)^{r+1}f(r) = r \left(\frac{2}{\pi}\right)^{r+1}\int_0^{\frac{\pi}{2}} x^r \sin(x).dx##
## = r \left(\frac{2}{\pi}\right)^{r+1}\int_0^{\frac{\pi}{2}} (\frac{\pi}{2}-x)^r \cos(x).dx = r \frac{2}{\pi}\int_0^{\frac{\pi}{2}} (1-x\frac{2}{\pi})^r \cos(x).dx##
## = r \int_0^1 (1-x)^r \cos(x\frac{\pi}{2}).dx##
Too complicated!

There's no need for the change of variables here.

All that is needed is a relationship between ##f(r) \equiv \int_0^{\pi/2} x^r \sin x\,dx## and ##g(r) \equiv \int_0^{\pi/2} x^r \cos x\,dx##. Integration by parts will give that relationship. It's best to choose u and v such that ##uv\bigl|_0^{\pi/2} = 0##.
 

Similar threads

Replies
9
Views
779
Replies
2
Views
1K
Replies
8
Views
1K
Replies
2
Views
1K
Replies
9
Views
1K
Replies
9
Views
1K
Back
Top