associativity ec
https://file.scirp.org/Html/1-5301366_80983.htm
https://brilliant.org/wiki/cubic-discriminant/
We can compute the discriminant of any power of a polynomial. For example, the quadratic discriminant is given by \Delta_2 = b^2 - 4acΔ2=b2−4ac. But it gets more complicated for higher-degree polynomials.
The discriminant of a cubic polynomial ax^3 + bx^2 + cx + dax3+bx2+cx+d is given by
\Delta_3 = b^2 c^2 - 4ac^3 - 4b^3 d - 27a^2 d^2 + 18abcd.Δ3=b2c2−4ac3−4b3d−27a2d2+18abcd.
If \Delta_3 > 0Δ3>0, then the equation has three distinct real roots.
If \Delta_3 = 0Δ3=0, then the equation has a repeated root and all its roots are real.
If \Delta_3 < 0Δ3<0, then the equation has one real root and two non-real complex conjugate roots.
Discriminant, in mathematics, a parameter of an object or system calculated as an aid to its classification or solution. In the case of a quadratic equation ax2 + bx + c = 0, the discriminant is b2 − 4ac; for a cubic equation x3 + ax2 + bx + c = 0, the discriminant is a2b2 + 18abc − 4b3 − 4a3c − 27c2. The roots of a quadratic or cubic equation with real coefficients are real and distinct if the discriminant is positive, are real with at least two equal if the discriminant is zero, and include a conjugate pair of complex roots if the discriminant is negative. A discriminant can be found for the general quadratic, or conic, equation ax2 + bxy + cy2 + dx + ey + f = 0; it indicates whether the conic represented is an ellipse, a hyperbola, or a parabola.
In this paper we revisit the addition of elliptic curves and give an algebraic proof to the associative law by use of MATHEMATICA. The existing proofs of the associative law are rather complicated and hard to understand for beginners. An ‘‘elementary” proof to it based on algebra has not been given as far as we know. Undergraduates or non-experts can master the addition of elliptic curves through this paper. After mastering it they should challenge the elliptic curve cryptography.
Keywords:
Elliptic Curve, Addition, Associative Law, MATHEMATICA, Elliptic Curve Cryptography
Ciphering is essential for the security of internet. The RSA cryptography [1] [2] [3] is now commonly used. However, in the very near future the RSA cryptography will be replaced by the elliptic curve cryptography because of its efficiency; the RSA system is based on 2048 bits, while the elliptic system is based on 224 bits (2016, [4] ).
The target reader of this note is undergraduates or non-experts. Those who are interested in cryptography are strongly encouraged to master the theory of elliptic curve cryptography as soon as possible. For this purpose they must study an additional structure of elliptic curves. However, it is not so hard except for the associative law.
As far as we know an algebraic proof to it has not yet been given1. Therefore, we give an ‘‘elementary” proof by use of MATHEMATICA for them.
2. Addition of Points of an Elliptic Curve
Let us start by recalling the definition of an elliptic curve [5] [6]
𝑦2=𝑥3+𝑎𝑥+𝑏y2=x3+ax+b(1)
where a and b are some real constants. In the following we consider only real category. The discriminant of the cubic equation
𝑥3+𝑎𝑥+𝑏=0x3+ax+b=0
is given by
𝐷=−4𝑎3−27𝑏2D=−4a3−27b2(2)
(see for example [5] ) and we assume 𝐷<0D<0 in the following, so the point crossing the real axis is just one.
For the graph of the elliptic curve (1)
𝐸={(𝑥,𝑦)∈𝑅2∣∣𝑦2=𝑥3+𝑎𝑥+𝑏}E={(x,y)∈R2 | y2=x3+ax+b}(3)
we want to introduce an addition, which is essential in the elliptic curve cryptography. For the purpose we must add the infinity point 𝑂=(∞,∞)O=(∞,∞) to (3). As a result, our space is not 𝐑2R2 but a two dimensional sphere 𝐑2∪𝑂=𝐒2R2∪O=S2 . Later it turns out that O is the identity element of the addition, see (10), (11). This justifies the notation O for the infinity point.
Here we note
𝑃=(𝑥,𝑦)∈𝐸⇒−𝑃=(𝑥,−𝑦)∈𝐸P=(x,y)∈E ⇒ −P=(x,−y)∈E(4)
where we have adopted the notation −𝑃−P for the mirror image of 𝑃P with respect to the real axis, see (11).
Let us introduce the addition in E. For two points 𝑃1,𝑃2∈𝐸P1,P2∈E we associate another point 𝑃3∈𝐸P3∈E . Consider the straight line passing through 𝑃1P1 and 𝑃2P2 . We set R the crossing point of the line and the elliptic curve.
A simple-minded candidate of the addition is
𝑃1⊕𝑃2=𝑅P1⊕P2=R
Unfortunately, this is not good because the associative law does not hold. Instead, we take the reflection point of R
𝑃1⊕𝑃2=−𝑅≡𝑃3.P1⊕P2=−R≡P3.(5)
This is correct as shown in the paper. See the following Figure 1.
Next, we want to express the addition above by use of the coordinate system. For the purpose we set
𝑃1=(𝑥1,𝑦1),𝑃2=(𝑥2,𝑦2)and𝑃3=(𝑥3,𝑦3).P1=(x1,y1), P2=(x2,y2) and P3=(x3,y3).
Formula The addition formula
(𝑥1,𝑦1)⊕(𝑥2,𝑦2)=(𝑥3,𝑦3)(x1,y1)⊕(x2,y2)=(x3,y3)
is given by
𝑥3=(𝑦2−𝑦1𝑥2−𝑥1)2−(𝑥1+𝑥2),x3=(y2−y1x2−x1)2−(x1+x2),
𝑦3=−(𝑦2−𝑦1𝑥2−𝑥1)3+(𝑦2−𝑦1𝑥2−𝑥1)(2𝑥1+𝑥2)−𝑦1.y3=−(y2−y1x2−x1)3+(y2−y1x2−x1)(2x1+x2)−y1.(6)
Proof To give an elementary proof for undergraduates or non-experts is educational.
First of all we set the coordinate of the point 𝑅=(𝑥𝑟,𝑦𝑟)R=(xr,yr) and look for 𝑥𝑟xr and 𝑦𝑟yr . The straight line passing through 𝑃1P1 and 𝑃2P2 is given by
𝑦=𝑦2−𝑦1𝑥2−𝑥1(𝑥−𝑥1)+𝑦1.y=y2−y1x2−x1(x−x1)+y1.
By taking 𝑥−𝑥1x−x1 into consideration we have
𝑦2=𝑥3+𝑎𝑥+𝑏=(𝑥−𝑥1+𝑥1)3+𝑎(𝑥−𝑥1+𝑥1)+𝑏=(𝑥−𝑥1)3+3(𝑥−𝑥1)2𝑥1+3(𝑥−𝑥1)𝑥21+𝑎(𝑥−𝑥1)+𝑥31+𝑎𝑥1+𝑏=(𝑥−𝑥1)3+3(𝑥−𝑥1)2𝑥1+3(𝑥−𝑥1)𝑥21+𝑎(𝑥−𝑥1)+𝑦21.y2=x3+ax+b=(x−x1+x1)3+a(x−x1+x1)+b=(x−x1)3+3(x−x1)2x1+3(x−x1)x12+a(x−x1)+x13+ax1+b=(x−x1)3+3(x−x1)2x1+3(x−x1)x12+a(x−x1)+y12.
We substitute the straight line for the equation above
(𝑦2−𝑦1𝑥2−𝑥1)2(𝑥−𝑥1)2+2𝑦2−𝑦1𝑥2−𝑥1(𝑥−𝑥1)𝑦1+𝑦21=(𝑥−𝑥1)3+3(𝑥−𝑥1)2𝑥1+3(𝑥−𝑥1)𝑥21+𝑎(𝑥−𝑥1)+𝑦21.(y2−y1x2−x1)2(x−x1)2+2y2−y1x2−x1(x−x1)y1+y12=(x−x1)3+3(x−x1)2x1+3(x−x1)x12+a(x−x1)+y12.
A short calculation gives
(𝑦2−𝑦1𝑥2−𝑥1)2(𝑥−𝑥1)+2𝑦2−𝑦1𝑥2−𝑥1𝑦1=(𝑥−𝑥1)2+3𝑥1(𝑥−𝑥1)+3𝑥21+𝑎(y2−y1x2−x1)2(x−x1)+2y2−y1x2−x1y1=(x−x1)2+3x1(x−x1)+3x12+a
and
(𝑥−𝑥1)2−{(𝑦2−𝑦1𝑥2−𝑥1)2−3𝑥1}(𝑥−𝑥1)+3𝑥21−2𝑦2−𝑦1𝑥2−𝑥1𝑦1+𝑎=0.(x−x1)2−{(y2−y1x2−x1)2−3x1}(x−x1)+3x12−2y2−y1x2−x1y1+a=0.
This is a quadratic equation and it is easy to solve
𝑥−𝑥1=12{(𝑦2−𝑦1𝑥2−𝑥1)2−3𝑥1±{(𝑦2−𝑦1𝑥2−𝑥1)2−3𝑥1}2−4(3𝑥21−2𝑦2−𝑦1𝑥2−𝑥1𝑦1+𝑎)‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾√}.x−x1=12{(y2−y1x2−x1)2−3x1±{(y2−y1x2−x1)2−3x1}2−4(3x12−2y2−y1x2−x1y1+a)}.
Here we set
(#)={(𝑦2−𝑦1𝑥2−𝑥1)2−3𝑥1}2−4(3𝑥21−2𝑦2−𝑦1𝑥2−𝑥1𝑦1+𝑎).(#)={(y2−y1x2−x1)2−3x1}2−4(3x12−2y2−y1x2−x1y1+a).
By expanding and arranging (#)(#) we have
(#)=(𝑦2−𝑦1𝑥2−𝑥1)4−6𝑥1(𝑦2−𝑦1𝑥2−𝑥1)2+8𝑦2−𝑦1𝑥2−𝑥1𝑦1−3𝑥21−4𝑎.(#)=(y2−y1x2−x1)4−6x1(y2−y1x2−x1)2+8y2−y1x2−x1y1−3x12−4a.
Some calculation (this is a key point) gives
(#)=(𝑦2−𝑦1𝑥2−𝑥1)4−6𝑥1(𝑦2−𝑦1𝑥2−𝑥1)2−4(𝑦2−𝑦1)2𝑥2−𝑥1+4(𝑦2−𝑦1)2𝑥2−𝑥1+8𝑦2−𝑦1𝑥2−𝑥1𝑦1−3𝑥21−4𝑎=(𝑦2−𝑦1𝑥2−𝑥1)4−{6𝑥1+4(𝑥2−𝑥1)}(𝑦2−𝑦1𝑥2−𝑥1)2+4(𝑦2−𝑦1){