Professional Documents
Culture Documents
Cardano’s Method
A1.1. Introduction
In the following, we use the mathematical function sgn(x) for the sign
function of a real x, and we also use:
3
x = |x|1/3.sgn(x) with |x|=sgn(x).x [A1.1]
g (t ) = at 3 + bt 2 + ct + d = 0 with a ≠ 0 [A1.2]
b c d
t3 + a t2 + a t + a = 0 [A1.3]
f(x) = x3 + px + q = 0 by setting
b 3ac - b2 27a2d + 2b3 - 9abc
x = t + 3a ; p = and q = [A1.5]
3a2 27a3
⎧⎪Y = y3 ⎧⎪Y + Z = - q
⎨ and then ⎨ p [A1.7]
⎩⎪Z = z3 (YZ)1/3 = - 3
⎩⎪
Knowing the sum and the product of Y and Z, these numbers are
p3
necessarily the roots U1 and U2 of the quadratic equation: U2 + qU - 27 = 0.
If U1 and U2 are known, then y and z are calculated from (e2kip U1)1/3 and
(e2kip U2)1/3, which should be associated by a pair such that the product yz is a
real number. We can distinguish several possible cases using the
4p3
discriminant concept, depending on the sign of D = q2 + 27 or
equivalently, depending on the sign of 4p3 + 27q2.
Case 4p3 + 27q2 > 0 (one real and two complex conjugate roots for
f(x) = 0).
4p3
-q+ q2 + 27
q q2 p3
U1 = 2 =-2 + 4 + 27 and
q q2 p3
U2 = - 2 - 4 + 27 [A1.8]
282 Reinforced Concrete Beams, Columns and Frames
To have the product yz as a real number, the possible couples (y, z) (or
equivalently (z,y)) are then:
3 3 3 3 3 3
( U1; U2 ), ( j U1; j2 U2 ), ( j2 U1; j U2 ) [A1.9]
where j denotes the complex number that is the cubic root of unity. The
solutions in x are then:
3 3
q q2 p3 q q2 p3
x1 = -2+ 4 + 27 + -2- 4 + 27
3 3
q q2 p3 2 q q2 p3
x2 = j -2+ 4 + 27 +j -2- 4 + 27
3 3
q q2 p3 q q2 p3
x3 = j2 -2+ 4 + 27 +j -2- 4 + 27
3
1 27a2d+2b3-9abc ⎛27a2d+2b3-9abc⎞2
t = 3a - + ⎜ ⎟ + (3ac-b2)3 +
2 ⎝ 2 ⎠
3
1 27a2d+2b3-9abc ⎛27a2d+2b3-9abc⎞2 b
- - ⎜ ⎟ + (3ac-b2)3 -
3a 2 ⎝ 2 ⎠ 3a
[A1.11]
Case 4p3 + 27q2 = 0 (one real and one double real roots for f(x) = 0).
q 3q 3
In this case, U1 and U2 are real numbers with U1 = U2 = - 2 = ⎛2p⎞ =
⎝ ⎠
U. The product yz being real, the possible couples (y, z) (or equivalently
(z,y)) are given by:
3 3 3 3 3 3
( U ; U ), (j U ;j2 U ), (j2 U ;j U ) [A1.12]
where j denotes the complex number that is the cubic root of unity. Using the
fundamental property 1 + j + j2 = 0, the solutions in x are given by:
3 q 3q
simple root: x1 = 2 -2 = p ;
3q
double root: x2 = x3 = - 2p [A1.13]
The real roots of the initial cubic equation g = 0 in “t” (equation [A1.2])
are then:
3q b 9a2d + b3 - 4abc
t1 = p - 3a = and
a(3ac - b2)
3q b - 9ad + bc
t2 = t3 = - 2p - 3a = [A1.14]
2(3ac - b2)
Case 4p3 + 27q2 < 0 (three real roots for f(x) = 0).
1 p q
3 = - 3 k = - cos 3a for k ≠ 0 [A1.15]
4k
3
⎧k2 = - 4p ⎧k = - 4p3
⎨ 3 cos 3a or equivalently ⎨ 3 cos 3a when p < 0 [A1.16]
⎩k = - 4q ⎩k = - 4q
3q 3
The elimination of k gives: cos 3a = 2p -p which should be
3 1⎡ ⎛ 3q 3⎞ ⎤
k= - 4p and a = 3 ⎢Arc cos ⎜ 2p - p ⎟ + 2kπ ⎥ [A1.17]
⎣ ⎝ ⎠ ⎦
⎡ ⎛ 3q 3⎞ ⎤
⎢ Arc cos ⎜ 2p - p⎟ + 2π ⎥
p ⎝ ⎠
x1 = 2 - 3 cos ⎢ ⎥
⎣ 3 ⎦
⎡ ⎛ 3q 3⎞ ⎤
⎢ Arc cos ⎜ 2p - p⎟ + 4π ⎥
p ⎝ ⎠
x2 = 2 - 3 cos ⎢ ⎥ [A1.18]
⎣ 3 ⎦
Appendix 1 285
⎡ ⎛ 3q 3 ⎞⎤
p ⎢Arc cos ⎜⎝ 2p - p ⎟⎥
⎠⎥
x3 = 2 -3 cos ⎢
⎣ 3 ⎦
The roots of the initial cubic equation [A1.2] g(t) = 0 are then (with t1
< t2 < t3 ):
- 1.5
⎪⎧Arc cos ⎡⎢ sgn(-a) (27a2d+2b3-9abc)(b2-3ac) ⎤⎥ + 2π ⎪⎫
2 ⎨ ⎣ 2 ⎦ ⎬ b
t1 = 3|a| b2 - 3ac cos ⎪ ⎪⎭ - 3a
⎩ 3
- 1.5
⎪⎧Arc cos ⎡⎢ sgn(-a) (27a2d+2b3-9abc)(b2-3ac) ⎤⎥ + 4π ⎪⎫
2 ⎨ ⎣ 2 ⎦ ⎬ b
t2 = 3|a| b2 - 3ac cos ⎪ ⎪⎭ - 3a
⎩ 3
- 1.5
⎪⎧Arc cos ⎡⎢ sgn(-a) (27a2d+2b3-9abc)(b2-3ac) ⎤⎥⎪⎫
2 ⎨ ⎣ 2 ⎦⎬ b
t3 = 3|a| b2 - 3ac cos ⎪ ⎪⎭ - 3a [A1.19]
⎩ 3
q q 2 p3 3 q q 2 p3 b
α1 = 3 − + + + − − + − [A1.22]
2 4 27 2 4 27 3a
If 4 p 3 + 27 q 2 < 0 , the three real solutions are given by:
286 Reinforced Concrete Beams, Columns and Frames
⎧ ⎡ ⎛ 3q 3 ⎞ ⎤
⎪ ⎢ Arc cos ⎜ ⎟ + 2π ⎥
⎪ −p ⎢ ⎝ 2p −p ⎠ ⎥− b
⎪ α1 = 2 3 cos ⎢ 3 ⎥ 3a
⎪ ⎢ ⎥
⎪ ⎢⎣ ⎥⎦
⎪
⎪ ⎡ ⎛ 3q 3 ⎞ ⎤
⎪ ⎢ Arc cos ⎜ ⎟ + 4π ⎥
⎪ −p
cos ⎢⎢ ⎝ 2p −p ⎠ ⎥− b
⎨ α2 = 2 ⎥ 3a [A1.23]
⎪ 3 3
⎢ ⎥
⎪ ⎢⎣ ⎥⎦
⎪
⎪ ⎡ ⎛ 3q 3 ⎞⎤
⎪ ⎢ Arc cos ⎜ ⎟⎥
⎪ −p
cos ⎢⎢ ⎝ 2p −p ⎠⎥ b
⎪ α3 = 2 ⎥ − 3a
⎪ 3 3
⎢ ⎥
⎪ ⎢⎣ ⎥⎦
⎩⎪
a = + 1, b = − 2, c = − 1 and d = + 2 [A1.25]
We calculate now p and q for determining the nature of the solutions:
b2 7 2 3 bc 20
p=c− = − and q = d + b − = [A1.26]
3 3 27 3 27
Hence, we have three real solutions for this cubic equation. It can be
relevant to compute the following number for the root calculation:
Appendix 1 287
⎛ 3q 3⎞ ⎛ 10 ⎞
Arc cos ⎜⎜ − ⎟⎟ = Arc cos ⎜ − ⎟ ≈ 2.141173137... [A1.28]
⎝ 2p p⎠ ⎝ 7 7⎠
We then compute the three roots of the cubic from equation [A1.23] as:
⎧ 7 ⎡ 2.141173137... + 2π ⎤ 2
⎪ α1 = 2 cos ⎢ ⎥ + 3 = −1
⎪ 3 ⎣ 3 ⎦
⎪⎪ 7 ⎡ 2.141173137... + 4π ⎤ 2
⎨ α2 = 2 cos ⎢ ⎥ + 3 =1 [A1.29]
⎪ 3 ⎣ 3 ⎦
⎪ 7 ⎡ 2.141173137... ⎤ 2
⎪ α3 = 2 cos ⎢ ⎥+ 3 =2
⎪⎩ 3 ⎣ 3 ⎦
a 2 ⎛ a2 ⎞
f(x) = ⎛x2+2 x + y⎞ + ⎜ -2y - 4 + b⎟ x2 + (-ay+c)x+(d-y2) [A1.31]
⎝ ⎠ ⎝ ⎠
a2
- α2 = -2y - 4 + b and - β2 = d-y2 [A1.32]
y is chosen such that the second trinome of f(x), constituted of the three last
terms of f(x), could be considered in a square format. It is then necessary
that:
288 Reinforced Concrete Beams, Columns and Frames
⎛ a2 ⎞
(-ay+c)2 - 4 ⎜ -2y - 4 + b⎟ (d-y2) = 0 [A1.33]
⎝ ⎠
8bd
+ 3 - a2d - c2 = 0 [A1.34]
which can be solved with the previous Cardano’s cubic method. Let y1, y2
and y3 be the three roots of this cubic equation. The parameters α and β will
be chosen as:
a2
α= 2y1 + 4 -b and β = y12 -d if ay1 - c ≥ 0 and
Once the cubic root y is calculated y = y1, the quartic function f(x) has the
following form:
a 2 2
f(x) = ⎛x2+2 x + y1⎞ - (αx+β)
⎝ ⎠
a a
= ⎡x2+⎛2 - α⎞x+y1- β⎤ ⎡x2+⎛2 + α⎞x+y1+ β⎤ = 0 [A1.36]
⎣ ⎝ ⎠ ⎦⎣ ⎝ ⎠ ⎦