There is something pretty strange going on with mathematica right now.(adsbygoogle = window.adsbygoogle || []).push({});

When I do the following function

I get the resultCode (Text):Integrate[(n x + 1)^2,x]

[tex]\frac{(1+nx)^3}{3n}[/tex]

Expanded this is

[tex]\frac{1}{3 n}+x+n x^2+\frac{n^2 x^3}{3}[/tex]

However this is not the result I get if I integrate the individual parts of the expansion

[tex](nx+1)^2=1+2nx+n^2x^2[/tex]

and add the results of the integrals

i.e.

which gives meCode (Text):Integrate[n^2 x^2, x] + Integrate[2*n*x, x] + Integrate[1, x]

[tex]x+n x^2+\frac{n^2 x^3}{3}[/tex]

Please tell me I am missing somthing obvious and mathematica isn't making a mistake?

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica Mistake?

Loading...

Similar Threads - Mathematica Mistake | Date |
---|---|

Mathematica Cannot do the integral of the Hyper-geometric function? | Mar 11, 2018 |

Mathematica Cannot Plot This Function in Mathematica | Feb 26, 2018 |

Mathematica While Loop in Mathematica | Feb 25, 2018 |

Mathematica Mathematica Real Part | Feb 24, 2018 |

Where is my mistake in this MATLAB code? | Oct 25, 2012 |

**Physics Forums - The Fusion of Science and Community**