Message Boards Message Boards

0
|
3249 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

"Equations may not give solutions for all 'solve' variables" w/ Solve

Posted 4 years ago

I am currently using Mathematica for a lab. I am attempting to solve for two variables/constants named c1 and c2. c1 and c2 are supposed to be zero. When I use the Solve[] command to do this for me, I get this: enter image description here

Does anyone have a clue with what I did wrong? I have a feeling that it's just a simple syntax error, but I can't figure it out. (Sorry, I'm still a little new to Mathematica). This was provided for me, and I did my best to translate it to Wolfram language: enter image description here

Help would be appreciated. Thank you!

POSTED BY: Eric 206
3 Replies

Check documentation for SolveAlways. That might be what you want here. If not, then you are asking for more than you can get (literally), since one equation will not suffice to solve for two unknowns.

POSTED BY: Daniel Lichtblau
Posted 4 years ago

I’ll try that, thank you! What does it do exactly?

POSTED BY: Eric 206
Posted 4 years ago

Hi Eric,

For situations like this, try Reduce.

Reduce[c1*E^x + c2*x*E^x == 0, {c1, c2}]

(* (x == 0 && c1 == 0) || (x != 0 && c2 == -(c1/x)) *)
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract