Point negation (-P)
An elliptic curve over the field Fp is written in the short Weierstrass form:E: y² = x³ + a·x + b (mod p). The points of the curve and the special «point at infinity» O together form a group: points can be added, and O acts as zero.
The curve is symmetric with respect to the x axis: if (x, y) is a point, (x, -y) will also be a point (because only y² is involved in the equation). It is exactly this second point that is called the negation of the first:
-P = (x, -y mod p)
The meaning of negation is simple from a group point of view: P + (-P) = O, meaning that when a point is added to its negation, it results in the point at infinity (the neutral element). Subtraction is also defined through this: P - Q = P + (-Q).
Curve parameters:
p = 9739
a = 497
b = 1768
Given point: P = (6700, 4533)
Find the point -P.
Answer: the coordinates of the point in the format x,y — first x, then a comma, then y (e.g. 1234,5678).