How to know if integral is correct

Hello,

I have the following function I need to find an integral for:

sin(x)^3*cos(x)^5

I have done my way and got to this integral:

cos(x)^6/6 - cos(x)^8/8 +C

I checked the answer in my book and saw the answer was:

sin(x)^4/4 - sin(x)^6/3 + sin(x)^8/8 +C

I checked the answer in wolfram and got this:

Wolfram Mathematica Online Integrator

I understand each function has a infinite number of integrals, and they can be shown is many different ways.

But still, I cant find a reliable way to check if my answer is correct.

I would like to ask how do you deal with such a problem ?

Thanks a lot,

Michael.

Re: How to know if integral is correct

The book answer has been achieved by means of the substitution u = sin x.

Mathematica has arrived at its result by making use of various trig identities to reduce powers to unity.

You seem to have used the substitution u = cos x, though I think that you've made a mistake, (a lost negative sign).

It should be possible to get from any one result to either of the other two by means of the various trig identities.

As to checking whether or not an integration is correct, the usual method is to differentiate the result to see whether it produces the thing that you started with.

Re: How to know if integral is correct

Quote:

Originally Posted by

**MichaelEngstler** Hello,

I have the following function I need to find an integral for:

sin(x)^3*cos(x)^5

I have done my way and got to this integral:

cos(x)^6/6 - cos(x)^8/8 +C

I checked the answer in my book and saw the answer was:

sin(x)^4/4 - sin(x)^6/3 + sin(x)^8/8 +C

I checked the answer in wolfram and got this:

Wolfram Mathematica Online Integrator
I understand each function has a infinite number of integrals, and they can be shown is many different ways.

But still, I cant find a reliable way to check if my answer is correct.

I would like to ask how do you deal with such a problem ?

Thanks a lot,

Michael.

Now let and the integral becomes

Your answer is out by a factor of -1.

Re: How to know if integral is correct

You can enter (your answer)-(the book's answer) into WolframAlpha. If it turns up a constant, you're answer is correct. I tried it on Prove It's answer, and it came up with .

- Hollywood