Consider an elliptic curve (in Weierstrass form)
over a field .
Let be a point on .
Negation
To compute , we need to find the line through and (recall ), and find the third point of intersection. The line through and is the vertical line through , so we need to find the points of intersection of and the curve. In other words, we need to solve Since we know one solution is , we know that the other must be . That is, Recall that if , we can affinely transform the curve so that , so that to find the inverse of we simply negate its -coordinate.
Point Doubling
To find (whose coordinate we'll denote by ), we need the equation of the tangent at . The gradient of the tangent at the point is given by . So setting means the tangent at is given by the equation . Substituting this into the equation for and negating the coefficient of gives the sum of the roots: which means the -coordinate of the third point of intersection must be and the corresponding -coordinate can be found from the equation of the tangent at : Lastly we need to negate which from above is
Point Addition
Suppose we have a second point different from . We wish to find whose coordinates we shall denote by . If , then . Otherwise the gradient of the line determined by and is and the equation of the line between and is . Substituting this into the curve gives the equation The sum of the roots, i.e. the negation of the coefficient of is , hence and the corresponding -coordinate can be found by substituting into the equation of the - line: As before, we must negate this third point which from above gives