Mathematica does not display real solutions?

  • Context: Mathematica 
  • Thread starter Thread starter Siron
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
SUMMARY

The discussion focuses on solving a quartic equation using Mathematica, specifically the command Solve[16 x^4 - 40 a x^3 + (15 a^2 + 24 b) x^2 - 18 a b x + 3 b^2 == 0, x, Reals]. The user initially expected real solutions but encountered only x == 0. It was concluded that adding 'Reals' does not guarantee real solutions; instead, incorporating conditions like '&& x < 0' effectively restricts the solution set to real numbers. This insight is critical for users dealing with quartic equations in Mathematica.

PREREQUISITES
  • Understanding of quartic equations and their properties.
  • Familiarity with Mathematica syntax and functions.
  • Knowledge of real and complex number systems.
  • Basic algebraic manipulation skills.
NEXT STEPS
  • Explore the Reduce function in Mathematica for more complex inequalities.
  • Learn about the FindRoot function for numerical solutions of equations.
  • Investigate the implications of the discriminant in quartic equations.
  • Study the behavior of polynomial functions under various constraints.
USEFUL FOR

Mathematica users, mathematicians, and students studying algebraic equations, particularly those working with quartic equations and seeking real solutions.

Siron
Messages
148
Reaction score
0
Hello!

I let Mathematica run the following command:

HTML:
Solve[16 x^4 - 40 a x^3 + (15 a^2 + 24 b) x^2 - 18 a b x + 3 b^2 == 0 && 5 a x - 4 x^2 - b > 0 && 15 a x - 20 x^2 - 3 b < 0 && 4 x^3 - 8 c x^2 + 5 a c x - c b < 0 && a < 0 && x < 0 && c < 0, x]

It displays a solutions in function of Roots Objects. However, I'm only interested in solutions over the reals. Therefore, I thought to just add 'Reals' at the end:

HTML:
Solve[16 x^4 - 40 a x^3 + (15 a^2 + 24 b) x^2 - 18 a b x + 3 b^2 == 0 && 5 a x - 4 x^2 - b > 0 && 15 a x - 20 x^2 - 3 b < 0 && 4 x^3 - 8 c x^2 + 5 a c x - c b < 0 && a < 0 && x < 0 && c < 0, x, Reals]
and Mathematica returns
HTML:
x == 0

It looks like it can't find any reals, which is quite strange? Is there someone who can tell what I'm doing wrong here? Furthermore, can someone perhaps recheck this with Mathematica?

Thanks in advance!
 
Physics news on Phys.org
Siron said:
Hello!

I let Mathematica run the following command:

HTML:
Solve[16 x^4 - 40 a x^3 + (15 a^2 + 24 b) x^2 - 18 a b x + 3 b^2 == 0 && 5 a x - 4 x^2 - b > 0 && 15 a x - 20 x^2 - 3 b < 0 && 4 x^3 - 8 c x^2 + 5 a c x - c b < 0 && a < 0 && x < 0 && c < 0, x]

It displays a solutions in function of Roots Objects. However, I'm only interested in solutions over the reals. Therefore, I thought to just add 'Reals' at the end:

HTML:
Solve[16 x^4 - 40 a x^3 + (15 a^2 + 24 b) x^2 - 18 a b x + 3 b^2 == 0 && 5 a x - 4 x^2 - b > 0 && 15 a x - 20 x^2 - 3 b < 0 && 4 x^3 - 8 c x^2 + 5 a c x - c b < 0 && a < 0 && x < 0 && c < 0, x, Reals]
and Mathematica returns
HTML:
x == 0

It looks like it can't find any reals, which is quite strange? Is there someone who can tell what I'm doing wrong here? Furthermore, can someone perhaps recheck this with Mathematica?

Thanks in advance!
See here for W|A's solution.

If you look carefully there are no complex numbers listed so I'm guessing that means this is your solution. It's a quartic equation so the results can be predicted to be messy. Were you expecting any particular form for the result?

-Dan
 
Thanks for the answer!

The expressions are indeed quite messy to work so its difficult to conclude if a solution is indeed real. I did some small tests with some easy examples. Apparently, adding 'Reals' or 'Complexes' does not matter to Mathematica, it displays the same solutions. So it looks like this is not the way to guarantee the existence of real solutions. On the other hand, what works better is to add '&& x <0' or '&& x > 0'. In this case, it seems that Mathematica only displays real solutions.

After some investigation of the quartic, I found that $a<0$ implies $x<0$. Since in my calculations $a<0$ is always satisfied, adding '&& x<0' should lead to real solutions only.
 

Similar threads

Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K