1
$\begingroup$

If I have the cubic equation, how can i find the real root of x ? I try this but i get complex root

Solve[b (q - 1)*(x^3) + (m - s)*(x^2) + (a - n)*x + v == 0, x]

where b,q,m,s,a,n,v are nonnative parameters

I apprciate for help

$\endgroup$
1
  • 2
    $\begingroup$ Do you want to know the conditions on the parameters that make all roots real? It's Discriminant[cubic, x] >= 0. $\endgroup$
    – Michael E2
    Commented Jun 27, 2020 at 16:17

1 Answer 1

1
$\begingroup$
Reduce[b (q - 1)*(x^3) + (m - s)*(x^2) + (a - n)*x + v == 0, x, Reals]

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

and many many more ...

$\endgroup$
2
  • 1
    $\begingroup$ So what your answer is supposed to demonstrate? This is not even an explicit form---you have Root object. And why is there so many roots? $\endgroup$
    – yarchik
    Commented Jun 27, 2020 at 12:11
  • 1
    $\begingroup$ @yarchik Adding the parameter constraints can help though: Reduce[Flatten[{b (q - 1)*(x^3) + (m - s)*(x^2) + (a - n)*x + v == 0, Map[# > 0 &, {b, q, m, s, a, n, v}]}], x, Reals] $\endgroup$ Commented Jun 27, 2020 at 16:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.