HP Forums
∫−sin(x)*(cos(x))^7dx wrong answer? [SOLVED] - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: ∫−sin(x)*(cos(x))^7dx wrong answer? [SOLVED] (/thread-10801.html)



∫−sin(x)*(cos(x))^7dx wrong answer? [SOLVED] - vvolkan - 05-25-2018 07:34 PM

I share screenshots wolfram alpha and hp prime pro (additionally, after trig->cos rewrite function) screenshots.


RE: ∫−sin(x)*(cos(x))^7dx wrong answer? - Arno K - 05-25-2018 09:52 PM

The prime usually omits this constant as you can see when you enter a simple integral like int(x,x) which outputs 1/2*x^2, the 1/8 constant results from your trig->cos.
Arno


RE: ∫−sin(x)*(cos(x))^7dx wrong answer? - vvolkan - 05-25-2018 10:09 PM

Hi Arno, how should i enter the integral to get the most proper "cos^8(x)/8" result? I tried this calculation on some other calculator softwares all give "cos^8(x)/8" besides hp prime.


RE: ∫−sin(x)*(cos(x))^7dx wrong answer? - Arno K - 05-26-2018 05:40 AM

I don't know a way to do so, on the 50G there was a flag to prefer sine or cosine, if I remember correctly but even here you have to know what you want.. Perhaps Mr. Parisse can give deeper insight.
Arno
Edit: but this doesn't make the 50G give your desired resolt


RE: ∫−sin(x)*(cos(x))^7dx wrong answer? - parisse - 05-26-2018 05:58 AM

Run ∫−(cos(x))^7*sin(x) (product argument reversed).
The integration algorithm tries to detect a f'(u)*u' form, the first one detected that works is used. Here you could use u=cos(x) or u=sin(x), both work (once you rewrite cos(x)^6 as (1-sin(x)^2)^3). Reverting the arguments will select the other possible u.


RE: ∫−sin(x)*(cos(x))^7dx wrong answer? - Aries - 05-26-2018 07:24 AM

(05-25-2018 10:09 PM)vvolkan Wrote:  Hi Arno, how should i enter the integral to get the most proper "cos^8(x)/8" result? I tried this calculation on some other calculator softwares all give "cos^8(x)/8" besides hp prime.

[Image: Integral.jpg]image hosting over 10mb

Best,

Aries Wink


RE: ∫−sin(x)*(cos(x))^7dx wrong answer? - Arno K - 05-26-2018 07:29 AM

Well, I don't bother other calculators, and the integral above is not one of those I use a calculator for as the necessary substitution can easily be seen, I do things like that by hand (here: in head), I had seen this topic and so gave it a try on the prime and the 50G as well.
Arno


RE: ∫−sin(x)*(cos(x))^7dx wrong answer? - Aries - 05-26-2018 08:19 AM

(05-26-2018 07:29 AM)Arno K Wrote:  Well, I don't bother other calculators, and the integral above is not one of those I use a calculator for as the necessary substitution can easily be seen, I do things like that by hand (here: in head), I had seen this topic and so gave it a try on the prime and the 50G as well.
Arno

Im with you, Arno Wink
Best,

Aries Smile


RE: ∫−sin(x)*(cos(x))^7dx wrong answer? - parisse - 05-26-2018 01:40 PM

to Aries: I guess the TI nspire does not try as many transformations than the HP.
Therefore simple exercices (that can be solved in your head) might return a more complicated answer on the HP because the HP algorithm tries a rule that the TI does not try. But when you get an answer on the HP and nothing on the TI, you are happy to have the HP. For example sin(x)^2*cos(x)^2*exp(x). Or (2x^2+1)*exp(x^2).


RE: ∫−sin(x)*(cos(x))^7dx wrong answer? - vvolkan - 05-27-2018 12:10 PM

(05-26-2018 01:40 PM)parisse Wrote:  to Aries: I guess the TI nspire does not try as many transformations than the HP.
Therefore simple exercices (that can be solved in your head) might return a more complicated answer on the HP because the HP algorithm tries a rule that the TI does not try. But when you get an answer on the HP and nothing on the TI, you are happy to have the HP. For example sin(x)^2*cos(x)^2*exp(x). Or (2x^2+1)*exp(x^2).

I agree. Hp can give the same result. The issue is that to know/learn how to use it.