Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5296 > unrolled thread
| Started by | Salman Durrani <dsalman96@yahoo.com> |
|---|---|
| First post | 2011-09-30 08:03 +0000 |
| Last post | 2011-10-01 07:13 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
help with double integration Salman Durrani <dsalman96@yahoo.com> - 2011-09-30 08:03 +0000
Re: help with double integration Peter Pein <petsie@dordos.net> - 2011-10-01 07:12 +0000
Re: help with double integration "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-10-01 07:13 +0000
| From | Salman Durrani <dsalman96@yahoo.com> |
|---|---|
| Date | 2011-09-30 08:03 +0000 |
| Subject | help with double integration |
| Message-ID | <j63t52$6dv$1@smc.vnet.net> |
Hello
I am trying to use mathematica to do the following double integration:
Integrate[
Integrate[
r^2*ArcCos[x/r] - x*Sqrt[r^2 - x^2], {x, Sqrt[3] y,
Sqrt[r^2 - y^2]}], {y, 0, r/2}]
The correct answer is:
r^4(pi^2/144 + pi/(24Sqrt{3}) - 1/32)
However I am unable to get mathematica to produce the correct result. I have tried splitting into two integrations and using the assumptions option (suggested by newsgroup):
Integrate[
r^2*ArcCos[x/r] - x*Sqrt[r^2 - x^2], {x, Sqrt[3] y,
Sqrt[r^2 - y^2]}, Assumptions -> {y > 0, r > 2 y}] // Simplify
The above produces the result for the inner integration but then
Integrate[
y^3/3 + 2/3 r^2 Sqrt[r^2 - 3 y^2] + y^2 Sqrt[r^2 - 3 y^2] -
r^2 y (1 + Sqrt[3] ArcCos[(Sqrt[3] y)/r]) +
r^2 Sqrt[r^2 - y^2] ArcSec[r/Sqrt[r^2 - y^2]], {y, 0,
r/2}] // Simplify
does not produce any result.
Am I missing something fundamental here. Any help would be appreciated.
Thanks
Kahless
[toc] | [next] | [standalone]
| From | Peter Pein <petsie@dordos.net> |
|---|---|
| Date | 2011-10-01 07:12 +0000 |
| Message-ID | <j66egl$hfa$1@smc.vnet.net> |
| In reply to | #5296 |
Am 30.09.2011 10:03, schrieb Salman Durrani:
> Hello
>
> I am trying to use mathematica to do the following double integration:
>
> Integrate[
> Integrate[
> r^2*ArcCos[x/r] - x*Sqrt[r^2 - x^2], {x, Sqrt[3] y,
> Sqrt[r^2 - y^2]}], {y, 0, r/2}]
>
> The correct answer is:
> r^4(pi^2/144 + pi/(24Sqrt{3}) - 1/32)
>
> However I am unable to get mathematica to produce the correct result. I have tried splitting into two integrations and using the assumptions option (suggested by newsgroup):
>
> Integrate[
> r^2*ArcCos[x/r] - x*Sqrt[r^2 - x^2], {x, Sqrt[3] y,
> Sqrt[r^2 - y^2]}, Assumptions -> {y > 0, r > 2 y}] // Simplify
>
> The above produces the result for the inner integration but then
>
> Integrate[
> y^3/3 + 2/3 r^2 Sqrt[r^2 - 3 y^2] + y^2 Sqrt[r^2 - 3 y^2] -
> r^2 y (1 + Sqrt[3] ArcCos[(Sqrt[3] y)/r]) +
> r^2 Sqrt[r^2 - y^2] ArcSec[r/Sqrt[r^2 - y^2]], {y, 0,
> r/2}] // Simplify
>
> does not produce any result.
>
> Am I missing something fundamental here. Any help would be appreciated.
>
> Thanks
>
> Kahless
>
Hi,
if you express ArcCos in terms of Log it works well:
In[1]:= Integrate[TrigToExp[r^2*ArcCos[x/r] - x*Sqrt[r^2 - x^2]], {y, 0,
r/2}, {x, Sqrt[3]*y, Sqrt[r^2 - y^2]}, Assumptions -> r > 2*y > 0]
Out[1]= (1/288)*(-9 + 4*Sqrt[3]*Pi + 2*Pi^2)*r^4
and
In[2]:= Expand[(1/288)*(-9 + 4*Sqrt[3]*Pi + 2*Pi^2)*r^4 -
r^4*(Pi^2/144 + Pi/(24*Sqrt[3]) - 1/32)]
Out[2]= 0
shows that this is the expected result.
hth,
Peter
[toc] | [prev] | [next] | [standalone]
| From | "Dr. Wolfgang Hintze" <weh@snafu.de> |
|---|---|
| Date | 2011-10-01 07:13 +0000 |
| Message-ID | <j66eii$hfn$1@smc.vnet.net> |
| In reply to | #5296 |
"Salman Durrani" <dsalman96@yahoo.com> schrieb im Newsbeitrag
news:j63t52$6dv$1@smc.vnet.net...
> Hello
>
> I am trying to use mathematica to do the following double
> integration:
>
> Integrate[
> Integrate[
> r^2*ArcCos[x/r] - x*Sqrt[r^2 - x^2], {x, Sqrt[3] y,
> Sqrt[r^2 - y^2]}], {y, 0, r/2}]
>
> The correct answer is:
> r^4(pi^2/144 + pi/(24Sqrt{3}) - 1/32)
>
> However I am unable to get mathematica to produce the correct result.
> I have tried splitting into two integrations and using the
> assumptions option (suggested by newsgroup):
>
> Integrate[
> r^2*ArcCos[x/r] - x*Sqrt[r^2 - x^2], {x, Sqrt[3] y,
> Sqrt[r^2 - y^2]}, Assumptions -> {y > 0, r > 2 y}] // Simplify
>
> The above produces the result for the inner integration but then
>
> Integrate[
> y^3/3 + 2/3 r^2 Sqrt[r^2 - 3 y^2] + y^2 Sqrt[r^2 - 3 y^2] -
> r^2 y (1 + Sqrt[3] ArcCos[(Sqrt[3] y)/r]) +
> r^2 Sqrt[r^2 - y^2] ArcSec[r/Sqrt[r^2 - y^2]], {y, 0,
> r/2}] // Simplify
>
> does not produce any result.
>
> Am I missing something fundamental here. Any help would be
> appreciated.
>
> Thanks
>
> Kahless
>
Hello,
sometimes Mathematica needs some manual help. Then it works fine as we
shall see.
Let us start with your last integral which Mathemacia could not solve
directly, and let's split in into three parts
1)
Integrate[
y^3/3 + 2/3 r^2 Sqrt[r^2 - 3 y^2] + y^2 Sqrt[r^2 - 3 y^2] , {y, 0,
r/2},Assumptions->r>0]
((9 + 4*Sqrt[3]*Pi)*r^4)/96
no problem!
2)
- Integrate[
r^2 y (1 + Sqrt[3] ArcCos[(Sqrt[3] y)/r]) , {y, 0,
r/2}] // Simplify // InputForm
-((9 + 7*Sqrt[3]*Pi)*r^4)/144
no problem!
3)
Integrate[
r^2 Sqrt[r^2 - y^2] ArcSec[r/Sqrt[r^2 - y^2]], {y, 0,
r/2}] // Simplify
Integrate[r^2*Sqrt[r^2 - y^2]*
ArcSec[r/Sqrt[r^2 - y^2]], {y, 0, r/2}]
Problem!
In order to solve 3) we change the variable of integration from y to
y/r
(notice the extra factor r in front of the expression. This takes care
of the change in dy)
3.1)
Integrate[
r (r^2 Sqrt[r^2 - y^2] ArcSec[r/Sqrt[r^2 - y^2]]) /. y -> r t, {t, 0,
1/2}] //
Simplify
Integrate[r^2*Sqrt[-(r^2*(-1 + t^2))]*
ArcSec[r/Sqrt[-(r^2*(-1 + t^2))]], {t, 0, 1/2}]
The problem persists!
Now tell Mathematica that r>0
3.2)
Integrate[
r (r^2 Sqrt[r^2 - y^2] ArcSec[r/Sqrt[r^2 - y^2]]) /. y -> r t, {t, 0,
1/2},
Assumptions -> r > 0] // Simplify
((-9 + 3*Sqrt[3]*Pi + Pi^2)*r^3)/144
Hurray! Now adding the three terms gives the desired result.
3.3) Unfortunately, simply imposing r>0 in 3) is not sufficient.
Hope this helps.
Regards,
Wolfgang
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web