# how to solve double integral with mathematica?

**URL:** <https://community.wolfram.com/t/how-to-solve-double-integral-with-mathematica/4495>\
**Category:** Questions\
**Tags:** mathematica, calculus, numerical-computation\
**Created:** [January 8, 2015, 6:17pm UTC](https://community.wolfram.com/t/how-to-solve-double-integral-with-mathematica/4495 "2015-01-08T18:17:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vdinkarz](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vdinkarz/32/7145_2.png) [@vdinkarz](https://community.wolfram.com/u/vdinkarz)\
**Post date:** [January 8, 2015, 6:17pm UTC](https://community.wolfram.com/t/how-to-solve-double-integral-with-mathematica/4495/1 "2015-01-08T18:17:33Z")

</div>

Hello everyone, I am trying to solve the double integral written in the file attached. Please help me out. Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![fkampas](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/fkampas/32/41217_2.png) [@fkampas](https://community.wolfram.com/u/fkampas)\
**Post date:** [January 8, 2015, 7:18pm UTC](https://community.wolfram.com/t/how-to-solve-double-integral-with-mathematica/4495/2 "2015-01-08T19:18:26Z")

</div>

In[1]:= f1 = (1 - Exp[-5.5/Cos[y]])\*Sin[y];

```
In[2]:= xmin = 0;

In[3]:= xmax = Pi;

In[4]:= ymin = 0;

In[5]:= ymax = 
  ArcTan[300*Cos[x] + Sqrt[12.2500000000 - 90000*(Sin[x])^2]];

In[7]:= NIntegrate[f1, {x, xmin, xmax}, {y, ymin, ymax}]

Out[7]= 3.13316 - 1.0442*10^-9 I

```

I expect that the imaginary part is due to the fact a numerical method was used.

---

<div class="post-metadata">

**Author:** ![vdinkarz](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vdinkarz/32/7145_2.png) [@vdinkarz](https://community.wolfram.com/u/vdinkarz)\
**Post date:** [January 9, 2015, 4:53am UTC](https://community.wolfram.com/t/how-to-solve-double-integral-with-mathematica/4495/3 "2015-01-09T04:53:52Z")

</div>

thanks a lot.
