# Ahmed Integral doesn't evaluate

**URL:** <https://community.wolfram.com/t/ahmed-integral-doesnt-evaluate/23770>\
**Category:** Questions\
**Tags:** calculus\
**Created:** [March 22, 2024, 7:44am UTC](https://community.wolfram.com/t/ahmed-integral-doesnt-evaluate/23770 "2024-03-22T07:44:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![juniotor2023](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@juniotor2023](https://community.wolfram.com/u/juniotor2023)\
**Post date:** [March 22, 2024, 7:44am UTC](https://community.wolfram.com/t/ahmed-integral-doesnt-evaluate/23770/1 "2024-03-22T07:44:29Z")

</div>

Why doesn’t Mathematica evaluate the well-known Ahmed integral?

\int\_0^1 \frac{\tan ^{-1}\left(\sqrt{x^2+2}\right)}{\left(x^2+1\right) \sqrt{x^2+2}} \, dx 

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/8f674141-14a4-4063-a5e5-b7e8ea9c9eb5)

---

<div class="post-metadata">

**Author:** ![danl](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/danl/32/41267_2.png) [@danl](https://community.wolfram.com/u/danl)\
**Post date:** [March 22, 2024, 5:17pm UTC](https://community.wolfram.com/t/ahmed-integral-doesnt-evaluate/23770/2 "2024-03-22T17:17:38Z")

</div>

I will venture the obvious reason, that it does not know how to do this integral.

---

<div class="post-metadata">

**Author:** ![ssuciu](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@ssuciu](https://community.wolfram.com/u/ssuciu)\
**Post date:** [March 23, 2024, 11:37pm UTC](https://community.wolfram.com/t/ahmed-integral-doesnt-evaluate/23770/3 "2024-03-23T23:37:12Z")

</div>

Looking at [Ahmed's Integral -- from Wolfram MathWorld](https://mathworld.wolfram.com/AhmedsIntegral.html) it seems that Mathematica evaluates the generic integrals but not to the same results from the article.

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/c490cb05-ab3b-4402-8a14-6389f11e7f5a)

---

<div class="post-metadata">

**Author:** ![bmmmburns](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/bmmmburns/32/3126_2.png) [@bmmmburns](https://community.wolfram.com/u/bmmmburns)\
**Post date:** [March 24, 2024, 2:00am UTC](https://community.wolfram.com/t/ahmed-integral-doesnt-evaluate/23770/4 "2024-03-24T02:00:30Z")

</div>

Mathematica did it this way:

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/2f00a048-da0e-4cc2-8169-d98073236cf9)

---

<div class="post-metadata">

**Author:** ![juniotor2023](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@juniotor2023](https://community.wolfram.com/u/juniotor2023)\
**Post date:** [March 25, 2024, 9:46am UTC](https://community.wolfram.com/t/ahmed-integral-doesnt-evaluate/23770/5 "2024-03-25T09:46:05Z")

</div>

Gracias Sorin Suciu.  
Ya conocía [Ahmed's Integral -- from Wolfram MathWorld](https://mathworld.wolfram.com/AhmedsIntegral.html).  
Mathematica puede evaluar formalmente integrales como:

```
Integrate[ArcTan[Sqrt[1 + x^2]]/(1 + x^2)^(3/2), {x, 0, 1}] // FullSimplify,
Integrate[ArcTan[x]/((1 + x^2) x), {x, 1, Infinity}]

```

, etc.  
Me sorprende que no calcule formalmente la muy conocida integral de Ahmed.  
Siguiendo el artículo " Integral de Ahmed: la solución inaugural " y con ayuda de Mathematica se obtiene:

```
Integrate[(Pi/2)/(Sqrt[2 + x^2] (1 + x^2)), {x, 0, 1}] = \[Pi]^2/12

Apart[1/((1 + x^2) (2 + x^2 + y^2)), x] = 
1/((1 + x^2) (1 + y^2)) - 1/((1 + y^2) (2 + x^2 + y^2))......etc

Integrate[ArcTan[Sqrt[2 + x^2]]/(Sqrt[2 + x^2] (1 + x^2)), {x, 0, 1}]=(5 \[Pi]^2)/96

```

---

<div class="post-metadata">

**Author:** ![mariuszi28cg](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mariuszi28cg/32/308_2.png) [@mariuszi28cg](https://community.wolfram.com/u/mariuszi28cg)\
**Post date:** [March 25, 2024, 11:01am UTC](https://community.wolfram.com/t/ahmed-integral-doesnt-evaluate/23770/6 "2024-03-25T11:01:25Z")

</div>

How to solve see [here](https://math.stackexchange.com/questions/3693547/ahmed-integral-revisited-int-01-frac-tan-1-left-sqrtx24-right-l) and [here](https://math.stackexchange.com/questions/1168018/a-definite-integral-related-to-ahmeds-integral)

Regards M.I

---

<div class="post-metadata">

**Author:** ![juniotor2023](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@juniotor2023](https://community.wolfram.com/u/juniotor2023)\
**Post date:** [March 25, 2024, 6:23pm UTC](https://community.wolfram.com/t/ahmed-integral-doesnt-evaluate/23770/7 "2024-03-25T18:23:32Z")

</div>

Gracias Sorin Suciu.  
Ya conocía [Ahmed's Integral -- from Wolfram MathWorld](https://mathworld.wolfram.com/AhmedsIntegral.html).  
Mathematica puede evaluar formalmente integrales como:  
Integrate[ArcTan[Sqrt[1 + x^2]]/(1 + x^2)^(3/2), {x, 0, 1}] // FullSimplify,  
Integrate[ArcTan[x]/((1 + x^2) x), {x, 1, Infinity}] , etc.  
Me sorprende que no calcule formalmente la muy conocida integral de Ahmed.  
Siguiendo el artículo " Integral de Ahmed: la solución inaugural " y con ayuda de Mathematica se obtiene:  
Integrate[(Pi/2)/(Sqrt[2 + x^2] (1 + x^2)), {x, 0, 1}] = [Pi]^2/12

Apart[1/((1 + x^2) (2 + x^2 + y^2)), x] =  
1/((1 + x^2) (1 + y^2)) - 1/((1 + y^2) (2 + x^2 + y^2))…etc

Integrate[ArcTan[Sqrt[2 + x^2]]/(Sqrt[2 + x^2] (1 + x^2)), {x, 0, 1}]=(5 [Pi]^2)/96
