# Unexpected additional value in output of integral

**URL:** <https://community.wolfram.com/t/unexpected-additional-value-in-output-of-integral/16836>\
**Category:** Questions\
**Tags:** calculus\
**Created:** [October 6, 2020, 7:37pm UTC](https://community.wolfram.com/t/unexpected-additional-value-in-output-of-integral/16836 "2020-10-06T19:37:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![masandlin](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@masandlin](https://community.wolfram.com/u/masandlin)\
**Post date:** [October 6, 2020, 7:37pm UTC](https://community.wolfram.com/t/unexpected-additional-value-in-output-of-integral/16836/1 "2020-10-06T19:37:38Z")

</div>

Hi;  
In calculating an integral (using both the icon from the Classroom Pallett and the Integrate[] function in Mathematica) , it appears that Mathematica is placing an additional value in the results that is both unexpected and unwanted (see attached for full explanation).

Possibly, there is something that I am not understanding about the Integrate command, so please help me understand what I am doing incorrectly, or why Mathematica is placing the extra value that I don’t seem to need.

Thank you so much,

Mitchell Sandlin

[IntegralQuestion.nb](https://community.wolfram.com/uploads/short-url/cWKzFM8LikeRqhz3a8R5QzVmp9f.nb) (18.1 KB)

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [October 7, 2020, 11:02am UTC](https://community.wolfram.com/t/unexpected-additional-value-in-output-of-integral/16836/2 "2020-10-07T11:02:50Z")

</div>

Strange! No idea.

Look at

```
Simplify[Integrate[(x^2 - 3 x + 2)/(x + 1), {x, 0, xx}] /. xx -> x, x > -1] // Expand

```

---

<div class="post-metadata">

**Author:** ![henrikschachner](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/henrikschachner/32/32119_2.png) [@henrikschachner](https://community.wolfram.com/u/henrikschachner)\
**Post date:** [October 7, 2020, 1:51pm UTC](https://community.wolfram.com/t/unexpected-additional-value-in-output-of-integral/16836/3 "2020-10-07T13:51:04Z")

</div>

This simply is because `Integrate` in this way gives an _antiderivative_ - and an antiderivative is always determined up to some arbitrary constant.

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [October 7, 2020, 2:56pm UTC](https://community.wolfram.com/t/unexpected-additional-value-in-output-of-integral/16836/4 "2020-10-07T14:56:13Z")

</div>

Hallo Henrik,

clear, but why - 9 / 2 and not some constant, e.g. like C[1] ?

And for example

```
Integrate[(x + 2)/(x + 1), x]

```

does nothing like that  
Gruß Hans

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [October 7, 2020, 4:09pm UTC](https://community.wolfram.com/t/unexpected-additional-value-in-output-of-integral/16836/5 "2020-10-07T16:09:25Z")

</div>

And look at this !?

```
p[n_] := Sum[a[j] x^j, {j, 0, n}]  

Table[(Integrate[p[n]/(1 + x), x] // Expand) /. x -> 0, {n, 0, 15}]

```

and

```
Table[(Integrate[p[n]/(1 + x) /. a[n] -> 1, x] // Expand) /. x -> 0, {n, 0, 15}]

```

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [October 7, 2020, 7:01pm UTC](https://community.wolfram.com/t/unexpected-additional-value-in-output-of-integral/16836/6 "2020-10-07T19:01:04Z")

</div>

I gave the integral to Wolfram|Alpha with step-by-step integration. The constant `- 9 / 2` appears out of nowhere in the final result, together with “+constant”. I suppose it comes from the internals of the Risch algorithm, which is far from the way a human would normally do.
