HP Forums

Full Version: CAS: solve solutions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hp-prime
solve(((x+5)*e^x) = ((x+5)*e^(2*x))) [ENTER] returns ->
{0} // one answer
why the CAS returns only one answer?

Expanded form
expand( (x+5)*e^x) = (x+5)*e^(2*x) ) [ENTER] returns -> x*e^x+5*e^x = x*e^(2*x)+5*e^(2*x)

mathematica returns 3 answers
https://www.wolframalpha.com/input/?i=(x...*e%5E(2*x) [ENTER] returns ->
x = -5 // real solution
x = 0 // real solution
x = 2*π*i*n where n ∈ Z // a symbolic answer =]
I tried it (with different parentheses) and, after a cryptic warning, got the same answer Mathematica did.
Hi Steve!

(08-25-2016 08:22 PM)Steve Keeley Wrote: [ -> ]I tried it (with different parentheses) and, after a cryptic warning, got the same answer Mathematica did.

How did you write it to obtain the full answer?
I get the same result as compsystems
Have you select Complex? (CAS settings)
I have the same answer as Steve (10077)
but the answer (-5) is not complex output is real number
Have you try it?
Deselect complex, answer is {0}
Selected complex, answer is {-5 0}
Specifying a range works here as well.

-10..10 returns -5,0 also

Perhaps bernard can shed some light as to why it only finds the one solution in this case without specifying a range.
(08-26-2016 07:49 AM)retoa Wrote: [ -> ]Hi Steve!

How did you write it to obtain the full answer?
I get the same result as compsystems

solve((x+5)*e^x = (x+5)*e^(2*x),x)

(note that on the calculator I didn't have the parentheses around the 2*x term since in textbook form it was obvious that the whole term was part of the power of e)

My settings were Exact on, Complex on, Use Sq on, Use i off, Principal off and increasing off.

The warning I got was:

Warning: solving x in equation
-x*(e^x)^2+x*e^x-5*(e^x)^2+5*e^x=0

Anybody know what this warning means?
Right, with complex on it gives both answers.
Does it need to use complex numbers for some substitution?
With the current version of Xcas I get -5 and 0 for solve((x+5)*e^x = (x+5)*e^(2*x),x). I don't know why it does not work for older versions of giac.
Reference URL's