Complicated double integral

  • A
  • Thread starter hunt_mat
  • Start date
  • #1
hunt_mat
Homework Helper
1,772
28
TL;DR Summary
Double integral as a result of some work I'm doing
I have an integral:
[tex]
\int_{-1}^{0}\int_{-1}^{q}\delta(s+a)\sinh[k(q-s)]dsdq
[/tex]
where [itex]0<a<1[/itex] and [itex]\delta (s-a)[/itex] is a dirac delta function. Anyone know what to do?
 
Last edited:

Answers and Replies

  • #2
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
You could try integrating the ##\sinh## function!

What's the difficulty?
 
  • #3
hunt_mat
Homework Helper
1,772
28
The delta function perhaps? I get it that it's a complicated integral.
 
  • #4
Vanadium 50
Staff Emeritus
Science Advisor
Education Advisor
29,951
15,641
What does the delta function do when you integrate over s?
 
  • #5
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
The delta function perhaps? I get it that it's a complicated integral.
Okay, there's a ##q## in the integration bounds. I didn't see that.

Try looking at the cases ##q < a## and ##q > a##.
 
  • #6
hunt_mat
Homework Helper
1,772
28
What does the delta function do when you integrate over s?
You don't know a priori if [itex]a\in(-1,q][/itex], that's the crux of the problem.
 
  • #7
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
You don't know a priori if [itex]a\in(-1,q]\[/itex], that's the crux of the problem.
Split the integral. Then you do know.

##a \in [-1, q]## when ##q > a##.
 
  • Like
  • Skeptical
Likes Vanadium 50 and hunt_mat
  • #8
hunt_mat
Homework Helper
1,772
28
Okay, there's a ##q## in the integration bounds. I didn't see that.

Try looking at the cases ##q < a## and ##q > a##.
How's that going to help when you have another integral to do. I was thinking that at one point [itex]a[/itex] would be in the integration range, so you can simply write:
[tex]
\int_{-1}^{0}\int_{-1}^{q}\delta (s+a)\sinh[k(q-s)]dsdq=\int_{-1}^{0}\sinh[k(q+a)]=\frac{1}{k}(\cosh(ka)-\cosh[k(a-1)])
[/tex]
This seems like a sloppy way of arguing however.
 
  • #9
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
How's that going to help when you have another integral to do. I was thinking that at one point [itex]a[/itex] would be in the integration range, so you can simply write:
[tex]
\int_{-1}^{0}\int_{-1}^{q}\delta (s+a)\sinh[k(q-s)]dsdq=\int_{-1}^{0}\sinh[k(q+a)]=\frac{1}{k}(\cosh(ka)-\cosh[k(a-1)])
[/tex]
This seems like a sloppy way of arguing however.
That doesn't look right. You can split the outer integral in ##dq##.
 
  • #10
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
Ps you've got ##\delta(s + a)## in your integral. I assume it should be ##\delta(s -a)##.
 
  • #11
hunt_mat
Homework Helper
1,772
28
Ps you've got ##\delta(s + a)## in your integral. I assume it should be ##\delta(s -a)##.
You assume wrong. If you look at the interval and the range [itex]a[/itex] can take, then you'll see where you mistake is.
 
  • #12
hunt_mat
Homework Helper
1,772
28
That doesn't look right. You can split the outer integral in ##dq##.
How is that going to help? [itex]a\in (-1,0)[/itex] and so it's going to be in there no matter what.
 
  • #13
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
How is that going to help? [itex]a\in (-1,0)[/itex] and so it's going to be in there no matter what.
Did you come for help or simply to reject any help you are offered?
 
  • #14
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
You assume wrong. If you look at the interval and the range [itex]a[/itex] can take, then you'll see where you mistake is.

If ##q, s, a## are all negative then ##\delta(s+a)## is always ##0##.
 
  • #15
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
Summary: Double integral as a result of some work I'm doing

I have an integral:
[tex]
\int_{-1}^{0}\int_{-1}^{q}\delta(s+a)\sinh[k(q-s)]dsdq
[/tex]
where [itex]-1<a<0[/itex] and [itex]\delta (s-a)[/itex] is a dirac delta function. Anyone know what to do?
Note that you have both ##s +a## and ##s-a## in this post.
 
  • #16
hunt_mat
Homework Helper
1,772
28
Did you come for help or simply to reject any help you are offered?
No. I'm just questioning your answers. It's an involved integral. I don't have access to a symbolic algebra program. I gave the best thought I had, you rejected that without much justification. I'm open to suggestions, but I do have questions.
 
  • #17
hunt_mat
Homework Helper
1,772
28
Note that you have both ##s +a## and ##s-a## in this post.
I wanted to point out that it was a delta function.
 
  • #18
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
No. I'm just questioning your answers. It's an involved integral. I don't have access to a symbolic algebra program. I gave the best thought I had, you rejected that without much justification. I'm open to suggestions, but I do have questions.
##\int_{-1}^0 dq = \int_{-1}^a dq + \int_a^0 dq##

The first integral vanishes as ##s## is in the range ##[-1, q]## which does not include ##a##.

For the second integral tge range of ##s## always includes ##a##.
 
  • Like
Likes Vanadium 50
  • #19
hunt_mat
Homework Helper
1,772
28
If ##q, s, a## are all negative then ##\delta(s+a)## is always ##0##.
I don't think so.
 
  • #20
hunt_mat
Homework Helper
1,772
28
##\int_{-1}^0 dq = \int_{-1}^a dq + \int_a^0 dq##

The first integral vanishes as ##s## is in the range ##[-1, q]## which does not include ##a##.

For the second integral tge range of ##s## always includes ##a##.
I don't understand why this is relevant.
 
  • #21
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
I don't think so.
Why not? ##\delta(x) =0## except when ##x=0##. You can't get zero by adding two negative numbers. But, you can by subtracting them.
 
  • #22
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
##\frac 1 k (\cosh(ka)-1)##
Go figure.
 
  • #23
hunt_mat
Homework Helper
1,772
28
I see where you're confused. Having thought about it [itex]a\in(0,1)[/itex] which is confusing things.
 
  • #24
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
I see where you're confused. Having thought about it [itex]a\in(0,1)[/itex] which is confusing things.
You see where I'm confused! That's a bit rich!

It's your post. If ##a## should be positive and you stated it was negative that's your confusion. Not mine.
 
  • Like
Likes DEvens and Vanadium 50
  • #25
hunt_mat
Homework Helper
1,772
28
If you split up the inner integral as:
[tex]
\int_{-1}^{q}=\int_{-1}^{a-\varepsilon}+\int_{a-\varepsilon}^{a+\varepsilon}+\int_{a+\varepsilon}^{q}
[/tex]
Then you're going to get the function I posted. Splitting up the outer integral isn't going to do much in my opinion.
 
  • #26
hunt_mat
Homework Helper
1,772
28
##\frac 1 k (\cosh(ka)-1)##
Go figure.
This solution doesn't look right to me.
 
  • #27
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,046
15,752
This solution doesn't look right to me.
I figured as much. DIY
 
  • #28
hunt_mat
Homework Helper
1,772
28
I figured as much. DIY
I did, or what I thought looked sensible. My solution doesn't look right to you, and yours doesn't look right to me.
 
  • #29
hunt_mat
Homework Helper
1,772
28
Thank you for your help thought PeroK.
 
  • #30
Vanadium 50
Staff Emeritus
Science Advisor
Education Advisor
29,951
15,641
This has been painful to watch. PeroK has been giving excellent advice.

  • First, split the integral into two pieces, one where the delta function is zero everywhere and one where it is not.
  • Do the inner integral. The first part (above) is zero and the second part (above) sets s = -a. The only q left should be inside the sinh.
  • Set a new variable r = q + a. Set you limits in terms of r.
  • Do the outer (and only remaining) integral. I believe you will have only one a left.
 
  • Skeptical
  • Like
Likes hunt_mat and PeroK
  • #31
hunt_mat
Homework Helper
1,772
28
Thank you.
 
  • #32
hunt_mat
Homework Helper
1,772
28
This has been painful to watch. PeroK has been giving excellent advice.

  • First, split the integral into two pieces, one where the delta function is zero everywhere and one where it is not.
  • Do the inner integral. The first part (above) is zero and the second part (above) sets s = -a. The only q left should be inside the sinh.
  • Set a new variable r = q + a. Set you limits in terms of r.
  • Do the outer (and only remaining) integral. I believe you will have only one a left.
Actually I did that, and I posted the function. Why was that incorrect?
 
  • #33
HomogenousCow
737
211
You can do it pretty easily just be inspecting the integral limits and looking at the interval on which the delta function is nonzero. More specifically, changing the lower bound on the outer integral to ##-a## projects out the integration interval on which the delta function is "satisfied".
 

Suggested for: Complicated double integral

Replies
2
Views
392
  • Last Post
Replies
1
Views
507
  • Last Post
Replies
1
Views
914
  • Last Post
Replies
5
Views
93
  • Last Post
Replies
5
Views
1K
  • Last Post
Replies
1
Views
1K
Replies
9
Views
130
  • Last Post
Replies
24
Views
2K
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
3
Views
120
Top