Skip to main content
7-Bedrock
March 1, 2017
Solved

Cubic equation with complex coefficients

  • March 1, 2017
  • 4 replies
  • 16485 views

Hello everyone !

For the cubic equation with real coeffs there are Cardano relations to find out roots. Or the use of trigonometric substitution.

Do you know similar formulas for the case of complex coefficients ?

Google is pointing to a paper in Soviet (now : Russian) Journal of Numerical Analysis & Mathematical Modelling, vol. 4(1991)/uncertain year/ (No. 2), p.315, which is out of my reach for the time being.

Thank you & best regards, Liv.

Best answer by VladimirN

Please find this article in attachment.

4 replies

23-Emerald IV
March 1, 2017

Why not let Mathcad solve it:

the solution is a bit too wide to show here (like some 15 pages) The middle part is

It ends like:

Just a specific example:

The full symbolic solution is:

Luc

Liv7-BedrockAuthor
7-Bedrock
March 1, 2017

Oh, ok,  it's an idea !  Thank you !

Forgot completely that there is symbolic calculation available. Should have thought about....

I'll try to make that work for my application.

(For the sake of completeness, let me recall polyroots function, which is able to provide the roots for both real or complex coefficients cases).

However, still curious about relations given in the mentioned Russian journal.

You got it in Prime or Mcd15 ? If in Mcd15 how u managed to display all that when solving w(x) symbolically for roots, because I'm getting in Mcd15 the message " The symbolic result returned is too large to display, but it can be used in subsequent calculations if assigned to a function or variable " .

Best, Liv.

23-Emerald IV
March 1, 2017

This was done in Mathcad 11... I can have my symbolic results virtually as large as I like. I believe that facility was not supported after Mathcad 11.

But in Mathcad 15 you should be able to use the results, even if you cannot see them.

In case you have a specific equation you want the full symbolic result of, I can do it and copy that to another expression. Then you can use it in Mathcad 15.

Success!
Luc

12-Amethyst
March 2, 2017

The algebraic solutions/formulas for the cubic equation should remain valid for complex coefficients as well as for real coefficients. I'm not aware of anything in the process of finding these formulas that depends on the coefficients being real. Some assertions as to certain terms being real or imaginary may be depend on the coefficients being real, but not the formulas themselves.

Lou

Liv7-BedrockAuthor
7-Bedrock
March 2, 2017

Agree... & wondering the same initially : why & what step of Cardano procedure might be inadequate for complex coefficients in Mathcad. I'll try to look better later for that. I've tested for the moment Cardano formulas f real coefficients and such as they provide wrong roots in the case of complex coefficients (but one root my be correct if one of the coefficients is real).

Best, Liv

12-Amethyst
March 2, 2017

Liv,

I tried a simple example (attached) in mathcad 11 using complex coefficients (almost same values as Luc), and found that symbolic and numeric solutions agreed.Can you post your example where you think the solutions for complex coefficients are incorrect?

For some reason, the symbolic evaluations in Luc's file didn't work in my Mathcad.

Lou

VladimirN24-Ruby IIIAnswer
24-Ruby III
March 2, 2017

Please find this article in attachment.

Liv7-BedrockAuthor
7-Bedrock
March 2, 2017

Thanks a lot Vladimir & all.

L.

24-Ruby III
March 3, 2017

You're welcome.

Liv7-BedrockAuthor
7-Bedrock
March 10, 2017

Coined file - sent.

Best, Liv.

(ok, attaching files available only from "Advanced Editor"... ?)

23-Emerald IV
March 10, 2017

I put some of the symbolic results of mathcad11 as .solved expressions in, they are marked green.

If this helps you, and you need more, don't hesitate.

Good luck.

Luc

To attach, choose the advanced editor;

or first submit, then Action => Edit gives you the attach link.

Liv7-BedrockAuthor
7-Bedrock
March 10, 2017

Thank you, Luc !

LOL, huge... (80 p wide).

But again same problem : makes my Mcd15 to hang (and my laptop is not so bad...), even if put Disabled to the first green area (the wide one).

So, to complete, please resend the file without this area.

Adding   assume r0, r1, ..., m3 = real / & simplify    after solve doesn't produce something simpler/shorter... ?

Regards, Liv.